azure_mgmt_iot_hub 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_iot_hub.rb +9 -11
  3. data/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb +5 -6
  4. data/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +553 -346
  5. data/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +7 -5
  6. data/lib/generated/azure_mgmt_iot_hub/models/error_details.rb +5 -2
  7. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +3 -3
  8. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +5 -3
  9. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +15 -45
  10. data/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +3 -3
  11. data/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +9 -6
  12. data/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +4 -4
  13. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +7 -3
  14. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +8 -7
  15. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +3 -2
  16. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +4 -2
  17. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +32 -17
  18. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +4 -1
  19. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +4 -3
  20. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +3 -3
  21. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +4 -2
  22. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +8 -9
  23. data/lib/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +5 -5
  24. data/lib/generated/azure_mgmt_iot_hub/models/job_response.rb +18 -20
  25. data/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +2 -2
  26. data/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +9 -6
  27. data/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +2 -2
  28. data/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +1 -0
  29. data/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +3 -1
  30. data/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +9 -4
  31. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +14 -13
  32. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +2 -2
  33. data/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +11 -8
  34. data/lib/generated/azure_mgmt_iot_hub/version.rb +1 -1
  35. metadata +4 -6
  36. data/lib/generated/azure_mgmt_iot_hub/models/sbaccess_rights.rb +0 -18
  37. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_authorization_rule.rb +0 -143
@@ -6,52 +6,58 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The Iot Hub properties.
9
+ # The properties of an IoT hub.
10
10
  #
11
11
  class IotHubProperties
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<SharedAccessSignatureAuthorizationRule>] The
16
- # authorization rules.
15
+ # @return [Array<SharedAccessSignatureAuthorizationRule>] The shared
16
+ # access policies you can use to secure a connection to the IoT hub.
17
17
  attr_accessor :authorization_policies
18
18
 
19
19
  # @return [Array<IpFilterRule>] The IP filter rules.
20
20
  attr_accessor :ip_filter_rules
21
21
 
22
+ # @return [String] The provisioning state.
23
+ attr_accessor :provisioning_state
24
+
22
25
  # @return [String] The name of the host.
23
26
  attr_accessor :host_name
24
27
 
25
- # @return [Hash{String => EventHubProperties}] The event hub endpoint
26
- # properties.
28
+ # @return [Hash{String => EventHubProperties}] The Event Hub-compatible
29
+ # endpoint properties. The possible keys to this dictionary are events
30
+ # and operationsMonitoringEvents. Both of these keys have to be present
31
+ # in the dictionary while making create or update calls for the IoT hub.
27
32
  attr_accessor :event_hub_endpoints
28
33
 
29
- # @return [Hash{String => StorageEndpointProperties}] The list of storage
30
- # end points where files can be uploaded. Currently only one storage
31
- # account can be configured.
34
+ # @return [Hash{String => StorageEndpointProperties}] The list of Azure
35
+ # Storage endpoints where you can upload files. Currently you can
36
+ # configure only one Azure Storage account and that MUST have its key as
37
+ # $default. Specifying more than one storage account causes an error to
38
+ # be thrown. Not specifying a value for this property when the
39
+ # enableFileUploadNotifications property is set to True, causes an error
40
+ # to be thrown.
32
41
  attr_accessor :storage_endpoints
33
42
 
34
- # @return [Hash{String => MessagingEndpointProperties}] The list of
35
- # messaging end points configured.
43
+ # @return [Hash{String => MessagingEndpointProperties}] The messaging
44
+ # endpoint properties for the file upload notification queue.
36
45
  attr_accessor :messaging_endpoints
37
46
 
38
- # @return [Boolean] The flag which indicates whether file upload
39
- # notification should be enabled. This is optional at iot hub level. When
40
- # enabled upload notifications will be available.
47
+ # @return [Boolean] If True, file upload notifications are enabled.
41
48
  attr_accessor :enable_file_upload_notifications
42
49
 
43
50
  # @return [CloudToDeviceProperties]
44
51
  attr_accessor :cloud_to_device
45
52
 
46
- # @return [String] The comments.
53
+ # @return [String] Comments.
47
54
  attr_accessor :comments
48
55
 
49
56
  # @return [OperationsMonitoringProperties]
50
57
  attr_accessor :operations_monitoring_properties
51
58
 
52
- # @return [Capabilities] The Capabilities/Features that need to be
53
- # enabled for the Hub. Possible values include: 'None',
54
- # 'DeviceManagement'
59
+ # @return [Capabilities] The capabilities and features enabled for the
60
+ # IoT hub. Possible values include: 'None', 'DeviceManagement'
55
61
  attr_accessor :features
56
62
 
57
63
 
@@ -97,8 +103,17 @@ module Azure::ARM::IotHub
97
103
  }
98
104
  }
99
105
  },
106
+ provisioning_state: {
107
+ required: false,
108
+ read_only: true,
109
+ serialized_name: 'provisioningState',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
100
114
  host_name: {
101
115
  required: false,
116
+ read_only: true,
102
117
  serialized_name: 'hostName',
103
118
  type: {
104
119
  name: 'String'
@@ -6,7 +6,7 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The properties related to quota metrics.
9
+ # Quota metrics properties.
10
10
  #
11
11
  class IotHubQuotaMetricInfo
12
12
 
@@ -36,6 +36,7 @@ module Azure::ARM::IotHub
36
36
  model_properties: {
37
37
  name: {
38
38
  required: false,
39
+ read_only: true,
39
40
  serialized_name: 'Name',
40
41
  type: {
41
42
  name: 'String'
@@ -43,6 +44,7 @@ module Azure::ARM::IotHub
43
44
  },
44
45
  current_value: {
45
46
  required: false,
47
+ read_only: true,
46
48
  serialized_name: 'CurrentValue',
47
49
  type: {
48
50
  name: 'Number'
@@ -50,6 +52,7 @@ module Azure::ARM::IotHub
50
52
  },
51
53
  max_value: {
52
54
  required: false,
55
+ read_only: true,
53
56
  serialized_name: 'MaxValue',
54
57
  type: {
55
58
  name: 'Number'
@@ -6,14 +6,15 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The list of IotHubQuotaMetricInfo objects with a next link.
9
+ # The JSON-serialized array of IotHubQuotaMetricInfo objects with a next
10
+ # link.
10
11
  #
11
12
  class IotHubQuotaMetricInfoListResult
12
13
 
13
14
  include MsRestAzure
14
15
 
15
- # @return [Array<IotHubQuotaMetricInfo>] The list of
16
- # IotHubQuotaMetricInfo.
16
+ # @return [Array<IotHubQuotaMetricInfo>] The array of quota metrics
17
+ # objects.
17
18
  attr_accessor :value
18
19
 
19
20
  # @return [String] The next link.
@@ -6,7 +6,7 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The properties related to the Sku.
9
+ # SKU properties.
10
10
  #
11
11
  class IotHubSkuDescription
12
12
 
@@ -43,7 +43,7 @@ module Azure::ARM::IotHub
43
43
  }
44
44
  },
45
45
  sku: {
46
- required: false,
46
+ required: true,
47
47
  serialized_name: 'sku',
48
48
  type: {
49
49
  name: 'Composite',
@@ -51,7 +51,7 @@ module Azure::ARM::IotHub
51
51
  }
52
52
  },
53
53
  capacity: {
54
- required: false,
54
+ required: true,
55
55
  serialized_name: 'capacity',
56
56
  type: {
57
57
  name: 'Composite',
@@ -6,13 +6,15 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The list of IotHubSkuDescription objects with a next link.
9
+ # The JSON-serialized array of IotHubSkuDescription objects with a next
10
+ # link.
10
11
  #
11
12
  class IotHubSkuDescriptionListResult
12
13
 
13
14
  include MsRestAzure
14
15
 
15
- # @return [Array<IotHubSkuDescription>] The list of IotHubSkuDescription.
16
+ # @return [Array<IotHubSkuDescription>] The array of
17
+ # IotHubSkuDescription.
16
18
  attr_accessor :value
17
19
 
18
20
  # @return [String] The next link.
@@ -6,23 +6,22 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The Sku related information for the hub.
9
+ # Information about the SKU of the IoT hub.
10
10
  #
11
11
  class IotHubSkuInfo
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [IotHubSku] The name of the Sku. Possible values include: 'F1',
15
+ # @return [IotHubSku] The name of the SKU. Possible values include: 'F1',
16
16
  # 'S1', 'S2', 'S3'
17
17
  attr_accessor :name
18
18
 
19
- # @return [IotHubSkuTier] The tier. Possible values include: 'Free',
20
- # 'Standard'
19
+ # @return [IotHubSkuTier] The billing tier for the IoT hub. Possible
20
+ # values include: 'Free', 'Standard'
21
21
  attr_accessor :tier
22
22
 
23
- # @return [Integer] The number of units being provisioned. Range of
24
- # values [For F1: 1-1, S1: 1-200, S2: 1-200, S3: 1-10]. To go above this
25
- # range, call support.
23
+ # @return [Integer] The number of provisioned IoT Hub units. See:
24
+ # https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.
26
25
  attr_accessor :capacity
27
26
 
28
27
 
@@ -39,7 +38,7 @@ module Azure::ARM::IotHub
39
38
  class_name: 'IotHubSkuInfo',
40
39
  model_properties: {
41
40
  name: {
42
- required: false,
41
+ required: true,
43
42
  serialized_name: 'name',
44
43
  type: {
45
44
  name: 'String'
@@ -55,7 +54,7 @@ module Azure::ARM::IotHub
55
54
  }
56
55
  },
57
56
  capacity: {
58
- required: false,
57
+ required: true,
59
58
  serialized_name: 'capacity',
60
59
  type: {
61
60
  name: 'Number'
@@ -6,7 +6,7 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # IP filter Rule
9
+ # The IP filter rules for the IoT hub.
10
10
  #
11
11
  class IpFilterRule
12
12
 
@@ -15,12 +15,12 @@ module Azure::ARM::IotHub
15
15
  # @return [String] The name of the IP filter rule.
16
16
  attr_accessor :filter_name
17
17
 
18
- # @return [IpFilterActionType] The action desired - accept or reject.
19
- # Possible values include: 'Accept', 'Reject'
18
+ # @return [IpFilterActionType] The desired action for requests captured
19
+ # by this rule. Possible values include: 'Accept', 'Reject'
20
20
  attr_accessor :action
21
21
 
22
- # @return [String] A string containing the IPAddress/range in CIDR
23
- # notation.
22
+ # @return [String] A string that contains the IP address range in CIDR
23
+ # notation for the rule.
24
24
  attr_accessor :ip_mask
25
25
 
26
26
 
@@ -6,7 +6,7 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The properties describing a Job Response.
9
+ # The properties of the Job Response object.
10
10
  #
11
11
  class JobResponse
12
12
 
@@ -15,33 +15,30 @@ module Azure::ARM::IotHub
15
15
  # @return [String] The job identifier.
16
16
  attr_accessor :job_id
17
17
 
18
- # @return [DateTime] Start time of the Job.
18
+ # @return [DateTime] The start time of the Job.
19
19
  attr_accessor :start_time_utc
20
20
 
21
- # @return [DateTime] Represents the time the job stopped processing.
21
+ # @return [DateTime] The time the job stopped processing.
22
22
  attr_accessor :end_time_utc
23
23
 
24
- # @return [JobType] The type of job to execute. Possible values include:
24
+ # @return [JobType] The type of the job. Possible values include:
25
25
  # 'unknown', 'export', 'import', 'backup', 'readDeviceProperties',
26
26
  # 'writeDeviceProperties', 'updateDeviceConfiguration', 'rebootDevice',
27
27
  # 'factoryResetDevice', 'firmwareUpdate'
28
28
  attr_accessor :type
29
29
 
30
- # @return [JobStatus] Status of the Job. Possible values include:
30
+ # @return [JobStatus] The status of the job. Possible values include:
31
31
  # 'unknown', 'enqueued', 'running', 'completed', 'failed', 'cancelled'
32
32
  attr_accessor :status
33
33
 
34
- # @return [String] If status == failure, this represents a string
35
- # containing the reason.
34
+ # @return [String] If status == failed, this string containing the reason
35
+ # for the failure.
36
36
  attr_accessor :failure_reason
37
37
 
38
38
  # @return [String] The status message for the job.
39
39
  attr_accessor :status_message
40
40
 
41
- # @return [String] The deviceId related to this response.
42
- attr_accessor :device_id
43
-
44
- # @return [String] The jobId of the parent job, if any.
41
+ # @return [String] The job identifier of the parent job, if any.
45
42
  attr_accessor :parent_job_id
46
43
 
47
44
 
@@ -59,6 +56,7 @@ module Azure::ARM::IotHub
59
56
  model_properties: {
60
57
  job_id: {
61
58
  required: false,
59
+ read_only: true,
62
60
  serialized_name: 'jobId',
63
61
  type: {
64
62
  name: 'String'
@@ -66,20 +64,23 @@ module Azure::ARM::IotHub
66
64
  },
67
65
  start_time_utc: {
68
66
  required: false,
67
+ read_only: true,
69
68
  serialized_name: 'startTimeUtc',
70
69
  type: {
71
- name: 'DateTime'
70
+ name: 'DateTimeRfc1123'
72
71
  }
73
72
  },
74
73
  end_time_utc: {
75
74
  required: false,
75
+ read_only: true,
76
76
  serialized_name: 'endTimeUtc',
77
77
  type: {
78
- name: 'DateTime'
78
+ name: 'DateTimeRfc1123'
79
79
  }
80
80
  },
81
81
  type: {
82
82
  required: false,
83
+ read_only: true,
83
84
  serialized_name: 'type',
84
85
  type: {
85
86
  name: 'String'
@@ -87,6 +88,7 @@ module Azure::ARM::IotHub
87
88
  },
88
89
  status: {
89
90
  required: false,
91
+ read_only: true,
90
92
  serialized_name: 'status',
91
93
  type: {
92
94
  name: 'Enum',
@@ -95,6 +97,7 @@ module Azure::ARM::IotHub
95
97
  },
96
98
  failure_reason: {
97
99
  required: false,
100
+ read_only: true,
98
101
  serialized_name: 'failureReason',
99
102
  type: {
100
103
  name: 'String'
@@ -102,20 +105,15 @@ module Azure::ARM::IotHub
102
105
  },
103
106
  status_message: {
104
107
  required: false,
108
+ read_only: true,
105
109
  serialized_name: 'statusMessage',
106
110
  type: {
107
111
  name: 'String'
108
112
  }
109
113
  },
110
- device_id: {
111
- required: false,
112
- serialized_name: 'deviceId',
113
- type: {
114
- name: 'String'
115
- }
116
- },
117
114
  parent_job_id: {
118
115
  required: false,
116
+ read_only: true,
119
117
  serialized_name: 'parentJobId',
120
118
  type: {
121
119
  name: 'String'
@@ -6,13 +6,13 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The list of JobResponse objects with a next link.
9
+ # The JSON-serialized array of JobResponse objects with a next link.
10
10
  #
11
11
  class JobResponseListResult
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<JobResponse>] The list of JobResponse.
15
+ # @return [Array<JobResponse>] The array of JobResponse objects.
16
16
  attr_accessor :value
17
17
 
18
18
  # @return [String] The next link.
@@ -6,21 +6,24 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The properties of the Messaging Endpoints used by this IoT Hub.
9
+ # The properties of the messaging endpoints used by this IoT hub.
10
10
  #
11
11
  class MessagingEndpointProperties
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Duration] The lock duration. Range: 5 Sec (PT5S) - 5 Min
16
- # (PT5M).
15
+ # @return [Duration] The lock duration. See:
16
+ # https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
17
17
  attr_accessor :lock_duration_as_iso8601
18
18
 
19
- # @return [Duration] The time to live. Range: 1 Min (PT1M) - 2 Days
20
- # (P2D).
19
+ # @return [Duration] The period of time for which a message is available
20
+ # to consume before it is expired by the IoT hub. See:
21
+ # https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
21
22
  attr_accessor :ttl_as_iso8601
22
23
 
23
- # @return [Integer] The max delivery count. Range: 1-100.
24
+ # @return [Integer] The number of times the IoT hub attempts to deliver a
25
+ # message. See:
26
+ # https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
24
27
  attr_accessor :max_delivery_count
25
28
 
26
29
 
@@ -6,13 +6,13 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # OperationInputs.
9
+ # Input values.
10
10
  #
11
11
  class OperationInputs
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] The name of the iot hub.
15
+ # @return [String] The name of the IoT hub to check.
16
16
  attr_accessor :name
17
17
 
18
18