get_schema_version
¶
get_schema_version(
type: SchemaVersionType,
schema_versioned_id: SchemaVersionedId,
*,
config_overrides: Optional[IoTManagedIntegrationsClientConfig] = None,
format: Optional[SchemaVersionFormat] = None,
) -> GetSchemaVersionResponse
Gets a schema version with the provided information.
Parameters:
-
type(SchemaVersionType) –The type of schema version.
-
schema_versioned_id(SchemaVersionedId) –Schema id with a version specified. If the version is missing, it defaults to latest version.
-
format(Optional[SchemaVersionFormat], default:None) –The format of the schema version.
Raises:
-
AccessDeniedException–User is not authorized.
-
ConflictException–There is a conflict with the request.
-
InternalServerException–Internal error from the service that indicates an unexpected error or that the service is unavailable.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
ValidationException–A validation error occurred when performing the API request.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
GetSchemaVersion happy path for an example schema version.
>>> client.get_schema_version(schema_versioned_id='[email protected]', type='capability')
GetSchemaVersion happy path for an example schema version.
>>> client.get_schema_version(schema_versioned_id='[email protected]', type='capability', format='ZCL')
GetSchemaVersion error path for an example schema version that does not exist.
Source code in docs_src/capo_iot_managed_integrations/_services/io_t_managed_integrations.py
6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 | |