azure.mgmt.iothub.v2019_07_01_preview.models module

class azure.mgmt.iothub.v2019_07_01_preview.models.AccessRights(*values)[source]

Bases: str, Enum

The permissions assigned to the shared access policy.

DEVICE_CONNECT = 'DeviceConnect'
REGISTRY_READ = 'RegistryRead'
REGISTRY_READ_DEVICE_CONNECT = 'RegistryRead, DeviceConnect'
REGISTRY_READ_REGISTRY_WRITE = 'RegistryRead, RegistryWrite'
REGISTRY_READ_REGISTRY_WRITE_DEVICE_CONNECT = 'RegistryRead, RegistryWrite, DeviceConnect'
REGISTRY_READ_REGISTRY_WRITE_SERVICE_CONNECT = 'RegistryRead, RegistryWrite, ServiceConnect'
REGISTRY_READ_REGISTRY_WRITE_SERVICE_CONNECT_DEVICE_CONNECT = 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect'
REGISTRY_READ_SERVICE_CONNECT = 'RegistryRead, ServiceConnect'
REGISTRY_READ_SERVICE_CONNECT_DEVICE_CONNECT = 'RegistryRead, ServiceConnect, DeviceConnect'
REGISTRY_WRITE = 'RegistryWrite'
REGISTRY_WRITE_DEVICE_CONNECT = 'RegistryWrite, DeviceConnect'
REGISTRY_WRITE_SERVICE_CONNECT = 'RegistryWrite, ServiceConnect'
REGISTRY_WRITE_SERVICE_CONNECT_DEVICE_CONNECT = 'RegistryWrite, ServiceConnect, DeviceConnect'
SERVICE_CONNECT = 'ServiceConnect'
SERVICE_CONNECT_DEVICE_CONNECT = 'ServiceConnect, DeviceConnect'
class azure.mgmt.iothub.v2019_07_01_preview.models.Capabilities(*values)[source]

Bases: str, Enum

The capabilities and features enabled for the IoT hub.

DEVICE_MANAGEMENT = 'DeviceManagement'
NONE = 'None'
class azure.mgmt.iothub.v2019_07_01_preview.models.CertificateBodyDescription(*, certificate: str | None = None, **kwargs: Any)[source]

Bases: Model

The JSON-serialized X509 Certificate.

Variables:

certificate (str) – base-64 representation of the X509 leaf certificate .cer file or just .pem file content.

Keyword Arguments:

certificate (str) – base-64 representation of the X509 leaf certificate .cer file or just .pem file content.

class azure.mgmt.iothub.v2019_07_01_preview.models.CertificateDescription(*, properties: _models.CertificateProperties | None = None, **kwargs: Any)[source]

Bases: Model

The X509 Certificate.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • properties (CertificateProperties) – The description of an X509 CA Certificate.

  • id (str) – The resource identifier.

  • name (str) – The name of the certificate.

  • etag (str) – The entity tag.

  • type (str) – The resource type.

Keyword Arguments:

properties (CertificateProperties) – The description of an X509 CA Certificate.

class azure.mgmt.iothub.v2019_07_01_preview.models.CertificateListDescription(*, value: List[_models.CertificateDescription] | None = None, **kwargs: Any)[source]

Bases: Model

The JSON-serialized array of Certificate objects.

Variables:

value (list[CertificateDescription]) – The array of Certificate objects.

Keyword Arguments:

value (list[CertificateDescription]) – The array of Certificate objects.

class azure.mgmt.iothub.v2019_07_01_preview.models.CertificateProperties(*, certificate: str | None = None, **kwargs: Any)[source]

Bases: Model

The description of an X509 CA Certificate.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • subject (str) – The certificate’s subject name.

  • expiry (datetime) – The certificate’s expiration date and time.

  • thumbprint (str) – The certificate’s thumbprint.

  • is_verified (bool) – Determines whether certificate has been verified.

  • created (datetime) – The certificate’s create date and time.

  • updated (datetime) – The certificate’s last update date and time.

  • certificate (str) – The certificate content.

Keyword Arguments:

certificate (str) – The certificate content.

class azure.mgmt.iothub.v2019_07_01_preview.models.CertificatePropertiesWithNonce(**kwargs: Any)[source]

Bases: Model

The description of an X509 CA Certificate including the challenge nonce issued for the Proof-Of-Possession flow.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • subject (str) – The certificate’s subject name.

  • expiry (datetime) – The certificate’s expiration date and time.

  • thumbprint (str) – The certificate’s thumbprint.

  • is_verified (bool) – Determines whether certificate has been verified.

  • created (datetime) – The certificate’s create date and time.

  • updated (datetime) – The certificate’s last update date and time.

  • verification_code (str) – The certificate’s verification code that will be used for proof of possession.

  • certificate (str) – The certificate content.

class azure.mgmt.iothub.v2019_07_01_preview.models.CertificateVerificationDescription(*, certificate: str | None = None, **kwargs: Any)[source]

Bases: Model

The JSON-serialized leaf certificate.

Variables:

certificate (str) – base-64 representation of X509 certificate .cer file or just .pem file content.

Keyword Arguments:

certificate (str) – base-64 representation of X509 certificate .cer file or just .pem file content.

class azure.mgmt.iothub.v2019_07_01_preview.models.CertificateWithNonceDescription(*, properties: _models.CertificatePropertiesWithNonce | None = None, **kwargs: Any)[source]

Bases: Model

The X509 Certificate.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • properties (CertificatePropertiesWithNonce) – The description of an X509 CA Certificate including the challenge nonce issued for the Proof-Of-Possession flow.

  • id (str) – The resource identifier.

  • name (str) – The name of the certificate.

  • etag (str) – The entity tag.

  • type (str) – The resource type.

Keyword Arguments:

properties (CertificatePropertiesWithNonce) – The description of an X509 CA Certificate including the challenge nonce issued for the Proof-Of-Possession flow.

class azure.mgmt.iothub.v2019_07_01_preview.models.CloudToDeviceProperties(*, max_delivery_count: int | None = None, default_ttl_as_iso8601: timedelta | None = None, feedback: _models.FeedbackProperties | None = None, **kwargs: Any)[source]

Bases: Model

The IoT hub cloud-to-device messaging properties.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.EndpointHealthData(*, endpoint_id: str | None = None, health_status: str | _models.EndpointHealthStatus | None = None, **kwargs: Any)[source]

Bases: Model

The health data for an endpoint.

Variables:
  • endpoint_id (str) – Id of the endpoint.

  • health_status (str or EndpointHealthStatus) – Health statuses have following meanings. The ‘healthy’ status shows that the endpoint is accepting messages as expected. The ‘unhealthy’ status shows that the endpoint is not accepting messages as expected and IoT Hub is retrying to send data to this endpoint. The status of an unhealthy endpoint will be updated to healthy when IoT Hub has established an eventually consistent state of health. The ‘dead’ status shows that the endpoint is not accepting messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to identify errors and monitor issues with endpoints. The ‘unknown’ status shows that the IoT Hub has not established a connection with the endpoint. No messages have been delivered to or rejected from this endpoint. Known values are: “unknown”, “healthy”, “unhealthy”, and “dead”.

Keyword Arguments:
  • endpoint_id (str) – Id of the endpoint.

  • health_status (str or EndpointHealthStatus) – Health statuses have following meanings. The ‘healthy’ status shows that the endpoint is accepting messages as expected. The ‘unhealthy’ status shows that the endpoint is not accepting messages as expected and IoT Hub is retrying to send data to this endpoint. The status of an unhealthy endpoint will be updated to healthy when IoT Hub has established an eventually consistent state of health. The ‘dead’ status shows that the endpoint is not accepting messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to identify errors and monitor issues with endpoints. The ‘unknown’ status shows that the IoT Hub has not established a connection with the endpoint. No messages have been delivered to or rejected from this endpoint. Known values are: “unknown”, “healthy”, “unhealthy”, and “dead”.

class azure.mgmt.iothub.v2019_07_01_preview.models.EndpointHealthDataListResult(*, value: List[_models.EndpointHealthData] | None = None, **kwargs: Any)[source]

Bases: Model

The JSON-serialized array of EndpointHealthData objects with a next link.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • value (list[EndpointHealthData]) – JSON-serialized array of Endpoint health data.

  • next_link (str) – Link to more results.

Keyword Arguments:

value (list[EndpointHealthData]) – JSON-serialized array of Endpoint health data.

class azure.mgmt.iothub.v2019_07_01_preview.models.EndpointHealthStatus(*values)[source]

Bases: str, Enum

Health statuses have following meanings. The ‘healthy’ status shows that the endpoint is accepting messages as expected. The ‘unhealthy’ status shows that the endpoint is not accepting messages as expected and IoT Hub is retrying to send data to this endpoint. The status of an unhealthy endpoint will be updated to healthy when IoT Hub has established an eventually consistent state of health. The ‘dead’ status shows that the endpoint is not accepting messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to identify errors and monitor issues with endpoints. The ‘unknown’ status shows that the IoT Hub has not established a connection with the endpoint. No messages have been delivered to or rejected from this endpoint.

DEAD = 'dead'
HEALTHY = 'healthy'
UNHEALTHY = 'unhealthy'
UNKNOWN = 'unknown'
class azure.mgmt.iothub.v2019_07_01_preview.models.EnrichmentProperties(*, key: str, value: str, endpoint_names: List[str], **kwargs: Any)[source]

Bases: Model

The properties of an enrichment that your IoT hub applies to messages delivered to endpoints.

All required parameters must be populated in order to send to server.

Variables:
  • key (str) – The key or name for the enrichment property. Required.

  • value (str) – The value for the enrichment property. Required.

  • endpoint_names (list[str]) – The list of endpoints for which the enrichment is applied to the message. Required.

Keyword Arguments:
  • key (str) – The key or name for the enrichment property. Required.

  • value (str) – The value for the enrichment property. Required.

  • endpoint_names (list[str]) – The list of endpoints for which the enrichment is applied to the message. Required.

class azure.mgmt.iothub.v2019_07_01_preview.models.ErrorDetails(**kwargs: Any)[source]

Bases: Model

Error details.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • code (str) – The error code.

  • http_status_code (str) – The HTTP status code.

  • message (str) – The error message.

  • details (str) – The error details.

class azure.mgmt.iothub.v2019_07_01_preview.models.EventHubConsumerGroupInfo(*, properties: Dict[str, str] | None = None, **kwargs: Any)[source]

Bases: Model

The properties of the EventHubConsumerGroupInfo object.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • properties (dict[str, str]) – The tags.

  • id (str) – The Event Hub-compatible consumer group identifier.

  • name (str) – The Event Hub-compatible consumer group name.

  • type (str) – the resource type.

  • etag (str) – The etag.

Keyword Arguments:

properties (dict[str, str]) – The tags.

class azure.mgmt.iothub.v2019_07_01_preview.models.EventHubConsumerGroupsListResult(*, value: List[_models.EventHubConsumerGroupInfo] | None = None, **kwargs: Any)[source]

Bases: Model

The JSON-serialized array of Event Hub-compatible consumer group names with a next link.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
Keyword Arguments:

value (list[EventHubConsumerGroupInfo]) – List of consumer groups objects.

class azure.mgmt.iothub.v2019_07_01_preview.models.EventHubProperties(*, retention_time_in_days: int | None = None, partition_count: int | None = None, **kwargs: Any)[source]

Bases: Model

The properties of the provisioned Event Hub-compatible endpoint used by the IoT hub.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.ExportDevicesRequest(*, export_blob_container_uri: str, exclude_keys: bool, **kwargs: Any)[source]

Bases: Model

Use to provide parameters when requesting an export of all devices in the IoT hub.

All required parameters must be populated in order to send to server.

Variables:
  • export_blob_container_uri (str) – The export blob container URI. Required.

  • exclude_keys (bool) – The value indicating whether keys should be excluded during export. Required.

Keyword Arguments:
  • export_blob_container_uri (str) – The export blob container URI. Required.

  • exclude_keys (bool) – The value indicating whether keys should be excluded during export. Required.

class azure.mgmt.iothub.v2019_07_01_preview.models.FailoverInput(*, failover_region: str, **kwargs: Any)[source]

Bases: Model

Use to provide failover region when requesting manual Failover for a hub.

All required parameters must be populated in order to send to server.

Variables:

failover_region (str) – Region the hub will be failed over to. Required.

Keyword Arguments:

failover_region (str) – Region the hub will be failed over to. Required.

class azure.mgmt.iothub.v2019_07_01_preview.models.FallbackRouteProperties(*, source: str | _models.RoutingSource, endpoint_names: List[str], is_enabled: bool, name: str | None = None, condition: str | None = None, **kwargs: Any)[source]

Bases: Model

The properties of the fallback route. IoT Hub uses these properties when it routes messages to the fallback endpoint.

All required parameters must be populated in order to send to server.

Variables:
  • name (str) – The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.

  • source (str or RoutingSource) – The source to which the routing rule is to be applied to. For example, DeviceMessages. Required. Known values are: “Invalid”, “DeviceMessages”, “TwinChangeEvents”, “DeviceLifecycleEvents”, “DeviceJobLifecycleEvents”, and “DigitalTwinChangeEvents”.

  • condition (str) – The condition which is evaluated in order to apply the fallback route. If the condition is not provided it will evaluate to true by default. For grammar, See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

  • endpoint_names (list[str]) – The list of endpoints to which the messages that satisfy the condition are routed to. Currently only 1 endpoint is allowed. Required.

  • is_enabled (bool) – Used to specify whether the fallback route is enabled. Required.

Keyword Arguments:
  • name (str) – The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.

  • source (str or RoutingSource) – The source to which the routing rule is to be applied to. For example, DeviceMessages. Required. Known values are: “Invalid”, “DeviceMessages”, “TwinChangeEvents”, “DeviceLifecycleEvents”, “DeviceJobLifecycleEvents”, and “DigitalTwinChangeEvents”.

  • condition (str) – The condition which is evaluated in order to apply the fallback route. If the condition is not provided it will evaluate to true by default. For grammar, See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

  • endpoint_names (list[str]) – The list of endpoints to which the messages that satisfy the condition are routed to. Currently only 1 endpoint is allowed. Required.

  • is_enabled (bool) – Used to specify whether the fallback route is enabled. Required.

class azure.mgmt.iothub.v2019_07_01_preview.models.FeedbackProperties(*, lock_duration_as_iso8601: timedelta | None = None, ttl_as_iso8601: timedelta | None = None, max_delivery_count: int | None = None, **kwargs: Any)[source]

Bases: Model

The properties of the feedback queue for cloud-to-device messages.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.ImportDevicesRequest(*, input_blob_container_uri: str, output_blob_container_uri: str, **kwargs: Any)[source]

Bases: Model

Use to provide parameters when requesting an import of all devices in the hub.

All required parameters must be populated in order to send to server.

Variables:
  • input_blob_container_uri (str) – The input blob container URI. Required.

  • output_blob_container_uri (str) – The output blob container URI. Required.

Keyword Arguments:
  • input_blob_container_uri (str) – The input blob container URI. Required.

  • output_blob_container_uri (str) – The output blob container URI. Required.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubCapacity(**kwargs: Any)[source]

Bases: Model

IoT Hub capacity information.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • minimum (int) – The minimum number of units.

  • maximum (int) – The maximum number of units.

  • default (int) – The default number of units.

  • scale_type (str or IotHubScaleType) – The type of the scaling enabled. Known values are: “Automatic”, “Manual”, and “None”.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubDescription(*, location: str, sku: _models.IotHubSkuInfo, tags: Dict[str, str] | None = None, etag: str | None = None, properties: _models.IotHubProperties | None = None, **kwargs: Any)[source]

Bases: Resource

The description of the IoT hub.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to server.

Variables:
  • id (str) – The resource identifier.

  • name (str) – The resource name.

  • type (str) – The resource type.

  • location (str) – The resource location. Required.

  • tags (dict[str, str]) – The resource tags.

  • etag (str) – The Etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.

  • properties (IotHubProperties) – IotHub properties.

  • sku (IotHubSkuInfo) – IotHub SKU info. Required.

Keyword Arguments:
  • location (str) – The resource location. Required.

  • tags (dict[str, str]) – The resource tags.

  • etag (str) – The Etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.

  • properties (IotHubProperties) – IotHub properties.

  • sku (IotHubSkuInfo) – IotHub SKU info. Required.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubDescriptionListResult(*, value: List[_models.IotHubDescription] | None = None, **kwargs: Any)[source]

Bases: Model

The JSON-serialized array of IotHubDescription objects with a next link.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
Keyword Arguments:

value (list[IotHubDescription]) – The array of IotHubDescription objects.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubLocationDescription(*, location: str | None = None, role: str | _models.IotHubReplicaRoleType | None = None, **kwargs: Any)[source]

Bases: Model

Public representation of one of the locations where a resource is provisioned.

Variables:
  • location (str) – Azure Geo Regions.

  • role (str or IotHubReplicaRoleType) – Specific Role assigned to this location. Known values are: “primary” and “secondary”.

Keyword Arguments:
  • location (str) – Azure Geo Regions.

  • role (str or IotHubReplicaRoleType) – Specific Role assigned to this location. Known values are: “primary” and “secondary”.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubNameAvailabilityInfo(*, message: str | None = None, **kwargs: Any)[source]

Bases: Model

The properties indicating whether a given IoT hub name is available.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • name_available (bool) – The value which indicates whether the provided name is available.

  • reason (str or IotHubNameUnavailabilityReason) – The reason for unavailability. Known values are: “Invalid” and “AlreadyExists”.

  • message (str) – The detailed reason message.

Keyword Arguments:

message (str) – The detailed reason message.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubNameUnavailabilityReason(*values)[source]

Bases: str, Enum

The reason for unavailability.

ALREADY_EXISTS = 'AlreadyExists'
INVALID = 'Invalid'
class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubProperties(*, authorization_policies: List[_models.SharedAccessSignatureAuthorizationRule] | None = None, ip_filter_rules: List[_models.IpFilterRule] | None = None, event_hub_endpoints: Dict[str, _models.EventHubProperties] | None = None, routing: _models.RoutingProperties | None = None, storage_endpoints: Dict[str, _models.StorageEndpointProperties] | None = None, messaging_endpoints: Dict[str, _models.MessagingEndpointProperties] | None = None, enable_file_upload_notifications: bool | None = None, cloud_to_device: _models.CloudToDeviceProperties | None = None, comments: str | None = None, device_streams: _models.IotHubPropertiesDeviceStreams | None = None, features: str | _models.Capabilities | None = None, **kwargs: Any)[source]

Bases: Model

The properties of an IoT hub.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • authorization_policies (list[SharedAccessSignatureAuthorizationRule]) – The shared access policies you can use to secure a connection to the IoT hub.

  • ip_filter_rules (list[IpFilterRule]) – The IP filter rules.

  • provisioning_state (str) – The provisioning state.

  • state (str) – The hub state.

  • host_name (str) – The name of the host.

  • event_hub_endpoints (dict[str, EventHubProperties]) – The Event Hub-compatible endpoint properties. The only possible keys to this dictionary is events. This key has to be present in the dictionary while making create or update calls for the IoT hub.

  • routing (RoutingProperties) – The routing related properties of the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging.

  • storage_endpoints (dict[str, StorageEndpointProperties]) – The list of Azure Storage endpoints where you can upload files. Currently you can configure only one Azure Storage account and that MUST have its key as $default. Specifying more than one storage account causes an error to be thrown. Not specifying a value for this property when the enableFileUploadNotifications property is set to True, causes an error to be thrown.

  • messaging_endpoints (dict[str, MessagingEndpointProperties]) – The messaging endpoint properties for the file upload notification queue.

  • enable_file_upload_notifications (bool) – If True, file upload notifications are enabled.

  • cloud_to_device (CloudToDeviceProperties) – The IoT hub cloud-to-device messaging properties.

  • comments (str) – IoT hub comments.

  • device_streams (IotHubPropertiesDeviceStreams) – The device streams properties of iothub.

  • features (str or Capabilities) – The capabilities and features enabled for the IoT hub. Known values are: “None” and “DeviceManagement”.

  • locations (list[IotHubLocationDescription]) – Primary and secondary location for iot hub.

Keyword Arguments:
  • authorization_policies (list[SharedAccessSignatureAuthorizationRule]) – The shared access policies you can use to secure a connection to the IoT hub.

  • ip_filter_rules (list[IpFilterRule]) – The IP filter rules.

  • event_hub_endpoints (dict[str, EventHubProperties]) – The Event Hub-compatible endpoint properties. The only possible keys to this dictionary is events. This key has to be present in the dictionary while making create or update calls for the IoT hub.

  • routing (RoutingProperties) – The routing related properties of the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging.

  • storage_endpoints (dict[str, StorageEndpointProperties]) – The list of Azure Storage endpoints where you can upload files. Currently you can configure only one Azure Storage account and that MUST have its key as $default. Specifying more than one storage account causes an error to be thrown. Not specifying a value for this property when the enableFileUploadNotifications property is set to True, causes an error to be thrown.

  • messaging_endpoints (dict[str, MessagingEndpointProperties]) – The messaging endpoint properties for the file upload notification queue.

  • enable_file_upload_notifications (bool) – If True, file upload notifications are enabled.

  • cloud_to_device (CloudToDeviceProperties) – The IoT hub cloud-to-device messaging properties.

  • comments (str) – IoT hub comments.

  • device_streams (IotHubPropertiesDeviceStreams) – The device streams properties of iothub.

  • features (str or Capabilities) – The capabilities and features enabled for the IoT hub. Known values are: “None” and “DeviceManagement”.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubPropertiesDeviceStreams(*, streaming_endpoints: List[str] | None = None, **kwargs: Any)[source]

Bases: Model

The device streams properties of iothub.

Variables:

streaming_endpoints (list[str]) – List of Device Streams Endpoints.

Keyword Arguments:

streaming_endpoints (list[str]) – List of Device Streams Endpoints.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubQuotaMetricInfo(**kwargs: Any)[source]

Bases: Model

Quota metrics properties.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • name (str) – The name of the quota metric.

  • current_value (int) – The current value for the quota metric.

  • max_value (int) – The maximum value of the quota metric.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubQuotaMetricInfoListResult(*, value: List[_models.IotHubQuotaMetricInfo] | None = None, **kwargs: Any)[source]

Bases: Model

The JSON-serialized array of IotHubQuotaMetricInfo objects with a next link.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
Keyword Arguments:

value (list[IotHubQuotaMetricInfo]) – The array of quota metrics objects.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubReplicaRoleType(*values)[source]

Bases: str, Enum

Specific Role assigned to this location.

PRIMARY = 'primary'
SECONDARY = 'secondary'
class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubScaleType(*values)[source]

Bases: str, Enum

The type of the scaling enabled.

AUTOMATIC = 'Automatic'
MANUAL = 'Manual'
NONE = 'None'
class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubSku(*values)[source]

Bases: str, Enum

The name of the SKU.

B1 = 'B1'
B2 = 'B2'
B3 = 'B3'
F1 = 'F1'
S1 = 'S1'
S2 = 'S2'
S3 = 'S3'
class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubSkuDescription(*, sku: _models.IotHubSkuInfo, capacity: _models.IotHubCapacity, **kwargs: Any)[source]

Bases: Model

SKU properties.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to server.

Variables:
  • resource_type (str) – The type of the resource.

  • sku (IotHubSkuInfo) – The type of the resource. Required.

  • capacity (IotHubCapacity) – IotHub capacity. Required.

Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubSkuDescriptionListResult(*, value: List[_models.IotHubSkuDescription] | None = None, **kwargs: Any)[source]

Bases: Model

The JSON-serialized array of IotHubSkuDescription objects with a next link.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
Keyword Arguments:

value (list[IotHubSkuDescription]) – The array of IotHubSkuDescription.

class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubSkuInfo(*, name: str | _models.IotHubSku, capacity: int | None = None, **kwargs: Any)[source]

Bases: Model

Information about the SKU of the IoT hub.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to server.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.IotHubSkuTier(*values)[source]

Bases: str, Enum

The billing tier for the IoT hub.

BASIC = 'Basic'
FREE = 'Free'
STANDARD = 'Standard'
class azure.mgmt.iothub.v2019_07_01_preview.models.IpFilterActionType(*values)[source]

Bases: str, Enum

The desired action for requests captured by this rule.

ACCEPT = 'Accept'
REJECT = 'Reject'
class azure.mgmt.iothub.v2019_07_01_preview.models.IpFilterRule(*, filter_name: str, action: str | _models.IpFilterActionType, ip_mask: str, **kwargs: Any)[source]

Bases: Model

The IP filter rules for the IoT hub.

All required parameters must be populated in order to send to server.

Variables:
  • filter_name (str) – The name of the IP filter rule. Required.

  • action (str or IpFilterActionType) – The desired action for requests captured by this rule. Required. Known values are: “Accept” and “Reject”.

  • ip_mask (str) – A string that contains the IP address range in CIDR notation for the rule. Required.

Keyword Arguments:
  • filter_name (str) – The name of the IP filter rule. Required.

  • action (str or IpFilterActionType) – The desired action for requests captured by this rule. Required. Known values are: “Accept” and “Reject”.

  • ip_mask (str) – A string that contains the IP address range in CIDR notation for the rule. Required.

class azure.mgmt.iothub.v2019_07_01_preview.models.JobResponse(**kwargs: Any)[source]

Bases: Model

The properties of the Job Response object.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • job_id (str) – The job identifier.

  • start_time_utc (datetime) – The start time of the job.

  • end_time_utc (datetime) – The time the job stopped processing.

  • type (str or JobType) – The type of the job. Known values are: “unknown”, “export”, “import”, “backup”, “readDeviceProperties”, “writeDeviceProperties”, “updateDeviceConfiguration”, “rebootDevice”, “factoryResetDevice”, “firmwareUpdate”, and “import”.

  • status (str or JobStatus) – The status of the job. Known values are: “unknown”, “enqueued”, “running”, “completed”, “failed”, and “cancelled”.

  • failure_reason (str) – If status == failed, this string containing the reason for the failure.

  • status_message (str) – The status message for the job.

  • parent_job_id (str) – The job identifier of the parent job, if any.

class azure.mgmt.iothub.v2019_07_01_preview.models.JobResponseListResult(*, value: List[_models.JobResponse] | None = None, **kwargs: Any)[source]

Bases: Model

The JSON-serialized array of JobResponse objects with a next link.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • value (list[JobResponse]) – The array of JobResponse objects.

  • next_link (str) – The next link.

Keyword Arguments:

value (list[JobResponse]) – The array of JobResponse objects.

class azure.mgmt.iothub.v2019_07_01_preview.models.JobStatus(*values)[source]

Bases: str, Enum

The status of the job.

CANCELLED = 'cancelled'
COMPLETED = 'completed'
ENQUEUED = 'enqueued'
FAILED = 'failed'
RUNNING = 'running'
UNKNOWN = 'unknown'
class azure.mgmt.iothub.v2019_07_01_preview.models.JobType(*values)[source]

Bases: str, Enum

The type of the job.

BACKUP = 'backup'
EXPORT = 'export'
FACTORY_RESET_DEVICE = 'factoryResetDevice'
FIRMWARE_UPDATE = 'firmwareUpdate'
IMPORT = 'import'
IMPORT_ENUM = 'import'
READ_DEVICE_PROPERTIES = 'readDeviceProperties'
REBOOT_DEVICE = 'rebootDevice'
UNKNOWN = 'unknown'
UPDATE_DEVICE_CONFIGURATION = 'updateDeviceConfiguration'
WRITE_DEVICE_PROPERTIES = 'writeDeviceProperties'
class azure.mgmt.iothub.v2019_07_01_preview.models.MatchedRoute(*, properties: _models.RouteProperties | None = None, **kwargs: Any)[source]

Bases: Model

Routes that matched.

Variables:

properties (RouteProperties) – Properties of routes that matched.

Keyword Arguments:

properties (RouteProperties) – Properties of routes that matched.

class azure.mgmt.iothub.v2019_07_01_preview.models.MessagingEndpointProperties(*, lock_duration_as_iso8601: timedelta | None = None, ttl_as_iso8601: timedelta | None = None, max_delivery_count: int | None = None, **kwargs: Any)[source]

Bases: Model

The properties of the messaging endpoints used by this IoT hub.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.Name(*, value: str | None = None, localized_value: str | None = None, **kwargs: Any)[source]

Bases: Model

Name of Iot Hub type.

Variables:
  • value (str) – IotHub type.

  • localized_value (str) – Localized value of name.

Keyword Arguments:
  • value (str) – IotHub type.

  • localized_value (str) – Localized value of name.

class azure.mgmt.iothub.v2019_07_01_preview.models.Operation(*, display: _models.OperationDisplay | None = None, **kwargs: Any)[source]

Bases: Model

IoT Hub REST API operation.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • name (str) – Operation name: {provider}/{resource}/{read | write | action | delete}.

  • display (OperationDisplay) – The object that represents the operation.

Keyword Arguments:

display (OperationDisplay) – The object that represents the operation.

class azure.mgmt.iothub.v2019_07_01_preview.models.OperationDisplay(**kwargs: Any)[source]

Bases: Model

The object that represents the operation.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • provider (str) – Service provider: Microsoft Devices.

  • resource (str) – Resource Type: IotHubs.

  • operation (str) – Name of the operation.

  • description (str) – Description of the operation.

class azure.mgmt.iothub.v2019_07_01_preview.models.OperationInputs(*, name: str, **kwargs: Any)[source]

Bases: Model

Input values.

All required parameters must be populated in order to send to server.

Variables:

name (str) – The name of the IoT hub to check. Required.

Keyword Arguments:

name (str) – The name of the IoT hub to check. Required.

class azure.mgmt.iothub.v2019_07_01_preview.models.OperationListResult(**kwargs: Any)[source]

Bases: Model

Result of the request to list IoT Hub operations. It contains a list of operations and a URL link to get the next set of results.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • value (list[Operation]) – List of IoT Hub operations supported by the Microsoft.Devices resource provider.

  • next_link (str) – URL to get the next set of operation list results if there are any.

class azure.mgmt.iothub.v2019_07_01_preview.models.RegistryStatistics(**kwargs: Any)[source]

Bases: Model

Identity registry statistics.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • total_device_count (int) – The total count of devices in the identity registry.

  • enabled_device_count (int) – The count of enabled devices in the identity registry.

  • disabled_device_count (int) – The count of disabled devices in the identity registry.

class azure.mgmt.iothub.v2019_07_01_preview.models.Resource(*, location: str, tags: Dict[str, str] | None = None, **kwargs: Any)[source]

Bases: Model

The common properties of an Azure resource.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to server.

Variables:
  • id (str) – The resource identifier.

  • name (str) – The resource name.

  • type (str) – The resource type.

  • location (str) – The resource location. Required.

  • tags (dict[str, str]) – The resource tags.

Keyword Arguments:
  • location (str) – The resource location. Required.

  • tags (dict[str, str]) – The resource tags.

class azure.mgmt.iothub.v2019_07_01_preview.models.RouteCompilationError(*, message: str | None = None, severity: str | _models.RouteErrorSeverity | None = None, location: _models.RouteErrorRange | None = None, **kwargs: Any)[source]

Bases: Model

Compilation error when evaluating route.

Variables:
  • message (str) – Route error message.

  • severity (str or RouteErrorSeverity) – Severity of the route error. Known values are: “error” and “warning”.

  • location (RouteErrorRange) – Location where the route error happened.

Keyword Arguments:
  • message (str) – Route error message.

  • severity (str or RouteErrorSeverity) – Severity of the route error. Known values are: “error” and “warning”.

  • location (RouteErrorRange) – Location where the route error happened.

class azure.mgmt.iothub.v2019_07_01_preview.models.RouteErrorPosition(*, line: int | None = None, column: int | None = None, **kwargs: Any)[source]

Bases: Model

Position where the route error happened.

Variables:
  • line (int) – Line where the route error happened.

  • column (int) – Column where the route error happened.

Keyword Arguments:
  • line (int) – Line where the route error happened.

  • column (int) – Column where the route error happened.

class azure.mgmt.iothub.v2019_07_01_preview.models.RouteErrorRange(*, start: _models.RouteErrorPosition | None = None, end: _models.RouteErrorPosition | None = None, **kwargs: Any)[source]

Bases: Model

Range of route errors.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.RouteErrorSeverity(*values)[source]

Bases: str, Enum

Severity of the route error.

ERROR = 'error'
WARNING = 'warning'
class azure.mgmt.iothub.v2019_07_01_preview.models.RouteProperties(*, name: str, source: str | _models.RoutingSource, endpoint_names: List[str], is_enabled: bool, condition: str | None = None, **kwargs: Any)[source]

Bases: Model

The properties of a routing rule that your IoT hub uses to route messages to endpoints.

All required parameters must be populated in order to send to server.

Variables:
  • name (str) – The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique. Required.

  • source (str or RoutingSource) – The source that the routing rule is to be applied to, such as DeviceMessages. Required. Known values are: “Invalid”, “DeviceMessages”, “TwinChangeEvents”, “DeviceLifecycleEvents”, “DeviceJobLifecycleEvents”, and “DigitalTwinChangeEvents”.

  • condition (str) – The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

  • endpoint_names (list[str]) – The list of endpoints to which messages that satisfy the condition are routed. Currently only one endpoint is allowed. Required.

  • is_enabled (bool) – Used to specify whether a route is enabled. Required.

Keyword Arguments:
  • name (str) – The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique. Required.

  • source (str or RoutingSource) – The source that the routing rule is to be applied to, such as DeviceMessages. Required. Known values are: “Invalid”, “DeviceMessages”, “TwinChangeEvents”, “DeviceLifecycleEvents”, “DeviceJobLifecycleEvents”, and “DigitalTwinChangeEvents”.

  • condition (str) – The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

  • endpoint_names (list[str]) – The list of endpoints to which messages that satisfy the condition are routed. Currently only one endpoint is allowed. Required.

  • is_enabled (bool) – Used to specify whether a route is enabled. Required.

class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingEndpoints(*, service_bus_queues: List[_models.RoutingServiceBusQueueEndpointProperties] | None = None, service_bus_topics: List[_models.RoutingServiceBusTopicEndpointProperties] | None = None, event_hubs: List[_models.RoutingEventHubProperties] | None = None, storage_containers: List[_models.RoutingStorageContainerProperties] | None = None, **kwargs: Any)[source]

Bases: Model

The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint is allowed across all endpoint types for free hubs.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingEventHubProperties(*, connection_string: str, name: str, subscription_id: str | None = None, resource_group: str | None = None, **kwargs: Any)[source]

Bases: Model

The properties related to an event hub endpoint.

All required parameters must be populated in order to send to server.

Variables:
  • connection_string (str) – The connection string of the event hub endpoint. Required.

  • name (str) – The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. Required.

  • subscription_id (str) – The subscription identifier of the event hub endpoint.

  • resource_group (str) – The name of the resource group of the event hub endpoint.

Keyword Arguments:
  • connection_string (str) – The connection string of the event hub endpoint. Required.

  • name (str) – The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. Required.

  • subscription_id (str) – The subscription identifier of the event hub endpoint.

  • resource_group (str) – The name of the resource group of the event hub endpoint.

class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingMessage(*, body: str | None = None, app_properties: Dict[str, str] | None = None, system_properties: Dict[str, str] | None = None, **kwargs: Any)[source]

Bases: Model

Routing message.

Variables:
  • body (str) – Body of routing message.

  • app_properties (dict[str, str]) – App properties.

  • system_properties (dict[str, str]) – System properties.

Keyword Arguments:
  • body (str) – Body of routing message.

  • app_properties (dict[str, str]) – App properties.

  • system_properties (dict[str, str]) – System properties.

class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingProperties(*, endpoints: _models.RoutingEndpoints | None = None, routes: List[_models.RouteProperties] | None = None, fallback_route: _models.FallbackRouteProperties | None = None, enrichments: List[_models.EnrichmentProperties] | None = None, **kwargs: Any)[source]

Bases: Model

The routing related properties of the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging.

Variables:
  • endpoints (RoutingEndpoints) – The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint is allowed across all endpoint types for free hubs.

  • routes (list[RouteProperties]) – The list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs.

  • fallback_route (FallbackRouteProperties) – The properties of the route that is used as a fall-back route when none of the conditions specified in the ‘routes’ section are met. This is an optional parameter. When this property is not set, the messages which do not meet any of the conditions specified in the ‘routes’ section get routed to the built-in eventhub endpoint.

  • enrichments (list[EnrichmentProperties]) – The list of user-provided enrichments that the IoT hub applies to messages to be delivered to built-in and custom endpoints. See: https://aka.ms/iotmsgenrich.

Keyword Arguments:
  • endpoints (RoutingEndpoints) – The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint is allowed across all endpoint types for free hubs.

  • routes (list[RouteProperties]) – The list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs.

  • fallback_route (FallbackRouteProperties) – The properties of the route that is used as a fall-back route when none of the conditions specified in the ‘routes’ section are met. This is an optional parameter. When this property is not set, the messages which do not meet any of the conditions specified in the ‘routes’ section get routed to the built-in eventhub endpoint.

  • enrichments (list[EnrichmentProperties]) – The list of user-provided enrichments that the IoT hub applies to messages to be delivered to built-in and custom endpoints. See: https://aka.ms/iotmsgenrich.

class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingServiceBusQueueEndpointProperties(*, connection_string: str, name: str, subscription_id: str | None = None, resource_group: str | None = None, **kwargs: Any)[source]

Bases: Model

The properties related to service bus queue endpoint types.

All required parameters must be populated in order to send to server.

Variables:
  • connection_string (str) – The connection string of the service bus queue endpoint. Required.

  • name (str) – The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name. Required.

  • subscription_id (str) – The subscription identifier of the service bus queue endpoint.

  • resource_group (str) – The name of the resource group of the service bus queue endpoint.

Keyword Arguments:
  • connection_string (str) – The connection string of the service bus queue endpoint. Required.

  • name (str) – The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name. Required.

  • subscription_id (str) – The subscription identifier of the service bus queue endpoint.

  • resource_group (str) – The name of the resource group of the service bus queue endpoint.

class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingServiceBusTopicEndpointProperties(*, connection_string: str, name: str, subscription_id: str | None = None, resource_group: str | None = None, **kwargs: Any)[source]

Bases: Model

The properties related to service bus topic endpoint types.

All required parameters must be populated in order to send to server.

Variables:
  • connection_string (str) – The connection string of the service bus topic endpoint. Required.

  • name (str) – The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name. Required.

  • subscription_id (str) – The subscription identifier of the service bus topic endpoint.

  • resource_group (str) – The name of the resource group of the service bus topic endpoint.

Keyword Arguments:
  • connection_string (str) – The connection string of the service bus topic endpoint. Required.

  • name (str) – The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name. Required.

  • subscription_id (str) – The subscription identifier of the service bus topic endpoint.

  • resource_group (str) – The name of the resource group of the service bus topic endpoint.

class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingSource(*values)[source]

Bases: str, Enum

The source that the routing rule is to be applied to, such as DeviceMessages.

DEVICE_JOB_LIFECYCLE_EVENTS = 'DeviceJobLifecycleEvents'
DEVICE_LIFECYCLE_EVENTS = 'DeviceLifecycleEvents'
DEVICE_MESSAGES = 'DeviceMessages'
DIGITAL_TWIN_CHANGE_EVENTS = 'DigitalTwinChangeEvents'
INVALID = 'Invalid'
TWIN_CHANGE_EVENTS = 'TwinChangeEvents'
class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingStorageContainerProperties(*, connection_string: str, name: str, container_name: str, subscription_id: str | None = None, resource_group: str | None = None, file_name_format: str | None = None, batch_frequency_in_seconds: int | None = None, max_chunk_size_in_bytes: int | None = None, encoding: str | _models.RoutingStorageContainerPropertiesEncoding | None = None, **kwargs: Any)[source]

Bases: Model

The properties related to a storage container endpoint.

All required parameters must be populated in order to send to server.

Variables:
  • connection_string (str) – The connection string of the storage account. Required.

  • name (str) – The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. Required.

  • subscription_id (str) – The subscription identifier of the storage account.

  • resource_group (str) – The name of the resource group of the storage account.

  • container_name (str) – The name of storage container in the storage account. Required.

  • file_name_format (str) – File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered.

  • batch_frequency_in_seconds (int) – Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds.

  • max_chunk_size_in_bytes (int) – Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB).

  • encoding (str or RoutingStorageContainerPropertiesEncoding) – Encoding that is used to serialize messages to blobs. Supported values are ‘avro’, ‘avrodeflate’, and ‘JSON’. Default value is ‘avro’. Known values are: “Avro”, “AvroDeflate”, and “JSON”.

Keyword Arguments:
  • connection_string (str) – The connection string of the storage account. Required.

  • name (str) – The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. Required.

  • subscription_id (str) – The subscription identifier of the storage account.

  • resource_group (str) – The name of the resource group of the storage account.

  • container_name (str) – The name of storage container in the storage account. Required.

  • file_name_format (str) – File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered.

  • batch_frequency_in_seconds (int) – Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds.

  • max_chunk_size_in_bytes (int) – Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB).

  • encoding (str or RoutingStorageContainerPropertiesEncoding) – Encoding that is used to serialize messages to blobs. Supported values are ‘avro’, ‘avrodeflate’, and ‘JSON’. Default value is ‘avro’. Known values are: “Avro”, “AvroDeflate”, and “JSON”.

class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingStorageContainerPropertiesEncoding(*values)[source]

Bases: str, Enum

Encoding that is used to serialize messages to blobs. Supported values are ‘avro’, ‘avrodeflate’, and ‘JSON’. Default value is ‘avro’.

AVRO = 'Avro'
AVRO_DEFLATE = 'AvroDeflate'
JSON = 'JSON'
class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingTwin(*, tags: MutableMapping[str, Any] | None = None, properties: _models.RoutingTwinProperties | None = None, **kwargs: Any)[source]

Bases: Model

Twin reference input parameter. This is an optional parameter.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.RoutingTwinProperties(*, desired: MutableMapping[str, Any] | None = None, reported: MutableMapping[str, Any] | None = None, **kwargs: Any)[source]

Bases: Model

RoutingTwinProperties.

Variables:
  • desired (JSON) – Twin desired properties.

  • reported (JSON) – Twin desired properties.

Keyword Arguments:
  • desired (JSON) – Twin desired properties.

  • reported (JSON) – Twin desired properties.

class azure.mgmt.iothub.v2019_07_01_preview.models.SharedAccessSignatureAuthorizationRule(*, key_name: str, rights: str | _models.AccessRights, primary_key: str | None = None, secondary_key: str | None = None, **kwargs: Any)[source]

Bases: Model

The properties of an IoT hub shared access policy.

All required parameters must be populated in order to send to server.

Variables:
  • key_name (str) – The name of the shared access policy. Required.

  • primary_key (str) – The primary key.

  • secondary_key (str) – The secondary key.

  • rights (str or AccessRights) – The permissions assigned to the shared access policy. Required. Known values are: “RegistryRead”, “RegistryWrite”, “ServiceConnect”, “DeviceConnect”, “RegistryRead, RegistryWrite”, “RegistryRead, ServiceConnect”, “RegistryRead, DeviceConnect”, “RegistryWrite, ServiceConnect”, “RegistryWrite, DeviceConnect”, “ServiceConnect, DeviceConnect”, “RegistryRead, RegistryWrite, ServiceConnect”, “RegistryRead, RegistryWrite, DeviceConnect”, “RegistryRead, ServiceConnect, DeviceConnect”, “RegistryWrite, ServiceConnect, DeviceConnect”, and “RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect”.

Keyword Arguments:
  • key_name (str) – The name of the shared access policy. Required.

  • primary_key (str) – The primary key.

  • secondary_key (str) – The secondary key.

  • rights (str or AccessRights) – The permissions assigned to the shared access policy. Required. Known values are: “RegistryRead”, “RegistryWrite”, “ServiceConnect”, “DeviceConnect”, “RegistryRead, RegistryWrite”, “RegistryRead, ServiceConnect”, “RegistryRead, DeviceConnect”, “RegistryWrite, ServiceConnect”, “RegistryWrite, DeviceConnect”, “ServiceConnect, DeviceConnect”, “RegistryRead, RegistryWrite, ServiceConnect”, “RegistryRead, RegistryWrite, DeviceConnect”, “RegistryRead, ServiceConnect, DeviceConnect”, “RegistryWrite, ServiceConnect, DeviceConnect”, and “RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect”.

class azure.mgmt.iothub.v2019_07_01_preview.models.SharedAccessSignatureAuthorizationRuleListResult(*, value: List[_models.SharedAccessSignatureAuthorizationRule] | None = None, **kwargs: Any)[source]

Bases: Model

The list of shared access policies with a next link.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
Keyword Arguments:

value (list[SharedAccessSignatureAuthorizationRule]) – The list of shared access policies.

class azure.mgmt.iothub.v2019_07_01_preview.models.StorageEndpointProperties(*, connection_string: str, container_name: str, sas_ttl_as_iso8601: timedelta | None = None, **kwargs: Any)[source]

Bases: Model

The properties of the Azure Storage endpoint for file upload.

All required parameters must be populated in order to send to server.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.TagsResource(*, tags: Dict[str, str] | None = None, **kwargs: Any)[source]

Bases: Model

A container holding only the Tags for a resource, allowing the user to update the tags on an IoT Hub instance.

Variables:

tags (dict[str, str]) – Resource tags.

Keyword Arguments:

tags (dict[str, str]) – Resource tags.

class azure.mgmt.iothub.v2019_07_01_preview.models.TestAllRoutesInput(*, routing_source: str | _models.RoutingSource | None = None, message: _models.RoutingMessage | None = None, twin: _models.RoutingTwin | None = None, **kwargs: Any)[source]

Bases: Model

Input for testing all routes.

Variables:
  • routing_source (str or RoutingSource) – Routing source. Known values are: “Invalid”, “DeviceMessages”, “TwinChangeEvents”, “DeviceLifecycleEvents”, “DeviceJobLifecycleEvents”, and “DigitalTwinChangeEvents”.

  • message (RoutingMessage) – Routing message.

  • twin (RoutingTwin) – Routing Twin Reference.

Keyword Arguments:
  • routing_source (str or RoutingSource) – Routing source. Known values are: “Invalid”, “DeviceMessages”, “TwinChangeEvents”, “DeviceLifecycleEvents”, “DeviceJobLifecycleEvents”, and “DigitalTwinChangeEvents”.

  • message (RoutingMessage) – Routing message.

  • twin (RoutingTwin) – Routing Twin Reference.

class azure.mgmt.iothub.v2019_07_01_preview.models.TestAllRoutesResult(*, routes: List[_models.MatchedRoute] | None = None, **kwargs: Any)[source]

Bases: Model

Result of testing all routes.

Variables:

routes (list[MatchedRoute]) – JSON-serialized array of matched routes.

Keyword Arguments:

routes (list[MatchedRoute]) – JSON-serialized array of matched routes.

class azure.mgmt.iothub.v2019_07_01_preview.models.TestResultStatus(*values)[source]

Bases: str, Enum

Result of testing route.

FALSE = 'false'
TRUE = 'true'
UNDEFINED = 'undefined'
class azure.mgmt.iothub.v2019_07_01_preview.models.TestRouteInput(*, route: _models.RouteProperties, message: _models.RoutingMessage | None = None, twin: _models.RoutingTwin | None = None, **kwargs: Any)[source]

Bases: Model

Input for testing route.

All required parameters must be populated in order to send to server.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.TestRouteResult(*, result: str | _models.TestResultStatus | None = None, details: _models.TestRouteResultDetails | None = None, **kwargs: Any)[source]

Bases: Model

Result of testing one route.

Variables:
Keyword Arguments:
class azure.mgmt.iothub.v2019_07_01_preview.models.TestRouteResultDetails(*, compilation_errors: List[_models.RouteCompilationError] | None = None, **kwargs: Any)[source]

Bases: Model

Detailed result of testing a route.

Variables:

compilation_errors (list[RouteCompilationError]) – JSON-serialized list of route compilation errors.

Keyword Arguments:

compilation_errors (list[RouteCompilationError]) – JSON-serialized list of route compilation errors.

class azure.mgmt.iothub.v2019_07_01_preview.models.UserSubscriptionQuota(*, id: str | None = None, type: str | None = None, unit: str | None = None, current_value: int | None = None, limit: int | None = None, name: _models.Name | None = None, **kwargs: Any)[source]

Bases: Model

User subscription quota response.

Variables:
  • id (str) – IotHub type id.

  • type (str) – Response type.

  • unit (str) – Unit of IotHub type.

  • current_value (int) – Current number of IotHub type.

  • limit (int) – Numerical limit on IotHub type.

  • name (Name) – IotHub type.

Keyword Arguments:
  • id (str) – IotHub type id.

  • type (str) – Response type.

  • unit (str) – Unit of IotHub type.

  • current_value (int) – Current number of IotHub type.

  • limit (int) – Numerical limit on IotHub type.

  • name (Name) – IotHub type.

class azure.mgmt.iothub.v2019_07_01_preview.models.UserSubscriptionQuotaListResult(*, value: List[_models.UserSubscriptionQuota] | None = None, **kwargs: Any)[source]

Bases: Model

Json-serialized array of User subscription quota response.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
Keyword Arguments:

value (list[UserSubscriptionQuota])