azure_mgmt_iot_hub 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/LICENSE.txt +21 -0
  4. data/Rakefile +5 -0
  5. data/azure_mgmt_iot_hub.gemspec +34 -0
  6. data/lib/azure_mgmt_iot_hub.rb +5 -0
  7. data/lib/generated/azure_mgmt_iot_hub.rb +66 -0
  8. data/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb +66 -0
  9. data/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +2920 -0
  10. data/lib/generated/azure_mgmt_iot_hub/models/access_rights.rb +29 -0
  11. data/lib/generated/azure_mgmt_iot_hub/models/capabilities.rb +16 -0
  12. data/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +71 -0
  13. data/lib/generated/azure_mgmt_iot_hub/models/error_details.rb +75 -0
  14. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +71 -0
  15. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +93 -0
  16. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +130 -0
  17. data/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +56 -0
  18. data/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +70 -0
  19. data/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +55 -0
  20. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +80 -0
  21. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +137 -0
  22. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +94 -0
  23. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +67 -0
  24. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +16 -0
  25. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +177 -0
  26. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +64 -0
  27. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +95 -0
  28. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +17 -0
  29. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +18 -0
  30. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +67 -0
  31. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +94 -0
  32. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +70 -0
  33. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +16 -0
  34. data/lib/generated/azure_mgmt_iot_hub/models/job_response.rb +130 -0
  35. data/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +94 -0
  36. data/lib/generated/azure_mgmt_iot_hub/models/job_status.rb +20 -0
  37. data/lib/generated/azure_mgmt_iot_hub/models/job_type.rb +24 -0
  38. data/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +70 -0
  39. data/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +44 -0
  40. data/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +17 -0
  41. data/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +51 -0
  42. data/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +64 -0
  43. data/lib/generated/azure_mgmt_iot_hub/models/sbaccess_rights.rb +18 -0
  44. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_authorization_rule.rb +142 -0
  45. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +83 -0
  46. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +98 -0
  47. data/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +66 -0
  48. data/lib/generated/azure_mgmt_iot_hub/module_definition.rb +8 -0
  49. data/lib/generated/azure_mgmt_iot_hub/version.rb +8 -0
  50. metadata +162 -0
@@ -0,0 +1,67 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::IotHub
7
+ module Models
8
+ #
9
+ # The properties indicating whether a given iothub name is available.
10
+ #
11
+ class IotHubNameAvailabilityInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] The value which indicates whether the provided name
16
+ # is available.
17
+ attr_accessor :name_available
18
+
19
+ # @return [IotHubNameUnavailabilityReason] The reason for
20
+ # unavailability. Possible values include: 'Invalid', 'AlreadyExists'
21
+ attr_accessor :reason
22
+
23
+ # @return [String] The message describing the detailed reason.
24
+ attr_accessor :message
25
+
26
+
27
+ #
28
+ # Mapper for IotHubNameAvailabilityInfo class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'IotHubNameAvailabilityInfo',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'IotHubNameAvailabilityInfo',
38
+ model_properties: {
39
+ name_available: {
40
+ required: false,
41
+ serialized_name: 'nameAvailable',
42
+ type: {
43
+ name: 'Boolean'
44
+ }
45
+ },
46
+ reason: {
47
+ required: false,
48
+ serialized_name: 'reason',
49
+ type: {
50
+ name: 'Enum',
51
+ module: 'IotHubNameUnavailabilityReason'
52
+ }
53
+ },
54
+ message: {
55
+ required: false,
56
+ serialized_name: 'message',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::IotHub
7
+ module Models
8
+ #
9
+ # Defines values for IotHubNameUnavailabilityReason
10
+ #
11
+ module IotHubNameUnavailabilityReason
12
+ Invalid = "Invalid"
13
+ AlreadyExists = "AlreadyExists"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,177 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::IotHub
7
+ module Models
8
+ #
9
+ # The Iot Hub properties.
10
+ #
11
+ class IotHubProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<SharedAccessSignatureAuthorizationRule>] The
16
+ # authorization rules.
17
+ attr_accessor :authorization_policies
18
+
19
+ # @return [String] The name of the host.
20
+ attr_accessor :host_name
21
+
22
+ # @return [Hash{String => EventHubProperties}] The event hub endpoint
23
+ # properties.
24
+ attr_accessor :event_hub_endpoints
25
+
26
+ # @return [Hash{String => StorageEndpointProperties}] The list of
27
+ # storage end points where files can be uploaded. Currently only one
28
+ # storage account can be configured.
29
+ attr_accessor :storage_endpoints
30
+
31
+ # @return [Hash{String => MessagingEndpointProperties}] The list of
32
+ # messaging end points configured.
33
+ attr_accessor :messaging_endpoints
34
+
35
+ # @return [Boolean] The flag which indicates whether file upload
36
+ # notification should be enabled. This is optional at iot hub level.
37
+ # When enabled upload notifications will be available.
38
+ attr_accessor :enable_file_upload_notifications
39
+
40
+ # @return [CloudToDeviceProperties]
41
+ attr_accessor :cloud_to_device
42
+
43
+ # @return [String] The comments.
44
+ attr_accessor :comments
45
+
46
+ # @return [OperationsMonitoringProperties]
47
+ attr_accessor :operations_monitoring_properties
48
+
49
+ # @return [Capabilities] The Capabilities/Features that need to be
50
+ # enabled for the Hub. Possible values include: 'None',
51
+ # 'DeviceManagement'
52
+ attr_accessor :features
53
+
54
+
55
+ #
56
+ # Mapper for IotHubProperties class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ required: false,
62
+ serialized_name: 'IotHubProperties',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'IotHubProperties',
66
+ model_properties: {
67
+ authorization_policies: {
68
+ required: false,
69
+ serialized_name: 'authorizationPolicies',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ required: false,
74
+ serialized_name: 'SharedAccessSignatureAuthorizationRuleElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'SharedAccessSignatureAuthorizationRule'
78
+ }
79
+ }
80
+ }
81
+ },
82
+ host_name: {
83
+ required: false,
84
+ serialized_name: 'hostName',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ event_hub_endpoints: {
90
+ required: false,
91
+ serialized_name: 'eventHubEndpoints',
92
+ type: {
93
+ name: 'Dictionary',
94
+ value: {
95
+ required: false,
96
+ serialized_name: 'EventHubPropertiesElementType',
97
+ type: {
98
+ name: 'Composite',
99
+ class_name: 'EventHubProperties'
100
+ }
101
+ }
102
+ }
103
+ },
104
+ storage_endpoints: {
105
+ required: false,
106
+ serialized_name: 'storageEndpoints',
107
+ type: {
108
+ name: 'Dictionary',
109
+ value: {
110
+ required: false,
111
+ serialized_name: 'StorageEndpointPropertiesElementType',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'StorageEndpointProperties'
115
+ }
116
+ }
117
+ }
118
+ },
119
+ messaging_endpoints: {
120
+ required: false,
121
+ serialized_name: 'messagingEndpoints',
122
+ type: {
123
+ name: 'Dictionary',
124
+ value: {
125
+ required: false,
126
+ serialized_name: 'MessagingEndpointPropertiesElementType',
127
+ type: {
128
+ name: 'Composite',
129
+ class_name: 'MessagingEndpointProperties'
130
+ }
131
+ }
132
+ }
133
+ },
134
+ enable_file_upload_notifications: {
135
+ required: false,
136
+ serialized_name: 'enableFileUploadNotifications',
137
+ type: {
138
+ name: 'Boolean'
139
+ }
140
+ },
141
+ cloud_to_device: {
142
+ required: false,
143
+ serialized_name: 'cloudToDevice',
144
+ type: {
145
+ name: 'Composite',
146
+ class_name: 'CloudToDeviceProperties'
147
+ }
148
+ },
149
+ comments: {
150
+ required: false,
151
+ serialized_name: 'comments',
152
+ type: {
153
+ name: 'String'
154
+ }
155
+ },
156
+ operations_monitoring_properties: {
157
+ required: false,
158
+ serialized_name: 'operationsMonitoringProperties',
159
+ type: {
160
+ name: 'Composite',
161
+ class_name: 'OperationsMonitoringProperties'
162
+ }
163
+ },
164
+ features: {
165
+ required: false,
166
+ serialized_name: 'features',
167
+ type: {
168
+ name: 'String'
169
+ }
170
+ }
171
+ }
172
+ }
173
+ }
174
+ end
175
+ end
176
+ end
177
+ end
@@ -0,0 +1,64 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::IotHub
7
+ module Models
8
+ #
9
+ # The properties related to quota metrics.
10
+ #
11
+ class IotHubQuotaMetricInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the quota metric.
16
+ attr_accessor :name
17
+
18
+ # @return [Integer] The current value for the quota metric.
19
+ attr_accessor :current_value
20
+
21
+ # @return [Integer] The maximum value of the quota metric.
22
+ attr_accessor :max_value
23
+
24
+
25
+ #
26
+ # Mapper for IotHubQuotaMetricInfo class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ required: false,
32
+ serialized_name: 'IotHubQuotaMetricInfo',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'IotHubQuotaMetricInfo',
36
+ model_properties: {
37
+ name: {
38
+ required: false,
39
+ serialized_name: 'Name',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ current_value: {
45
+ required: false,
46
+ serialized_name: 'CurrentValue',
47
+ type: {
48
+ name: 'Number'
49
+ }
50
+ },
51
+ max_value: {
52
+ required: false,
53
+ serialized_name: 'MaxValue',
54
+ type: {
55
+ name: 'Number'
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,95 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::IotHub
7
+ module Models
8
+ #
9
+ # The list of IotHubQuotaMetricInfo objects with a next link.
10
+ #
11
+ class IotHubQuotaMetricInfoListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<IotHubQuotaMetricInfo>] The list of
16
+ # IotHubQuotaMetricInfo.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The next link.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<IotHubQuotaMetricInfo>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [IotHubQuotaMetricInfoListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for IotHubQuotaMetricInfoListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'IotHubQuotaMetricInfoListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'IotHubQuotaMetricInfoListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'IotHubQuotaMetricInfoElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'IotHubQuotaMetricInfo'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'nextLink',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::IotHub
7
+ module Models
8
+ #
9
+ # Defines values for IotHubScaleType
10
+ #
11
+ module IotHubScaleType
12
+ Automatic = "Automatic"
13
+ Manual = "Manual"
14
+ None = "None"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,18 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::IotHub
7
+ module Models
8
+ #
9
+ # Defines values for IotHubSku
10
+ #
11
+ module IotHubSku
12
+ F1 = "F1"
13
+ S1 = "S1"
14
+ S2 = "S2"
15
+ S3 = "S3"
16
+ end
17
+ end
18
+ end