azure_mgmt_iot_hub 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,56 @@
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
+ # Used to provide parameters when requesting an export of all devices in
10
+ # the hub.
11
+ #
12
+ class ExportDevicesRequest
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The export BLOB container URI.
17
+ attr_accessor :export_blob_container_uri
18
+
19
+ # @return [Boolean] The value indicating whether keys should be excluded
20
+ # during export.
21
+ attr_accessor :exclude_keys
22
+
23
+
24
+ #
25
+ # Mapper for ExportDevicesRequest class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'ExportDevicesRequest',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ExportDevicesRequest',
35
+ model_properties: {
36
+ export_blob_container_uri: {
37
+ required: true,
38
+ serialized_name: 'ExportBlobContainerUri',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ exclude_keys: {
44
+ required: true,
45
+ serialized_name: 'ExcludeKeys',
46
+ type: {
47
+ name: 'Boolean'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,70 @@
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 Feedback Queue properties.
10
+ #
11
+ class FeedbackProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Duration] The lock duration for the feedback queue. Range: 5
16
+ # Sec (PT5S) - 5 Min (PT5M).
17
+ attr_accessor :lock_duration_as_iso8601
18
+
19
+ # @return [Duration] The time to live for the feedback queue. Range: 1
20
+ # Min (PT1M) - 2 Days (P2D).
21
+ attr_accessor :ttl_as_iso8601
22
+
23
+ # @return [Integer] The max delivery count. Range : 1-100.
24
+ attr_accessor :max_delivery_count
25
+
26
+
27
+ #
28
+ # Mapper for FeedbackProperties class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'FeedbackProperties',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'FeedbackProperties',
38
+ model_properties: {
39
+ lock_duration_as_iso8601: {
40
+ required: false,
41
+ serialized_name: 'lockDurationAsIso8601',
42
+ type: {
43
+ name: 'TimeSpan'
44
+ }
45
+ },
46
+ ttl_as_iso8601: {
47
+ required: false,
48
+ serialized_name: 'ttlAsIso8601',
49
+ type: {
50
+ name: 'TimeSpan'
51
+ }
52
+ },
53
+ max_delivery_count: {
54
+ required: false,
55
+ serialized_name: 'maxDeliveryCount',
56
+ constraints: {
57
+ InclusiveMaximum: 100,
58
+ InclusiveMinimum: 1
59
+ },
60
+ type: {
61
+ name: 'Number'
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,55 @@
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
+ # Used to provide parameters when requesting an import of all devices in
10
+ # the hub.
11
+ #
12
+ class ImportDevicesRequest
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The input BLOB container URI.
17
+ attr_accessor :input_blob_container_uri
18
+
19
+ # @return [String] The output BLOB container URI.
20
+ attr_accessor :output_blob_container_uri
21
+
22
+
23
+ #
24
+ # Mapper for ImportDevicesRequest class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'ImportDevicesRequest',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ImportDevicesRequest',
34
+ model_properties: {
35
+ input_blob_container_uri: {
36
+ required: true,
37
+ serialized_name: 'InputBlobContainerUri',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ },
42
+ output_blob_container_uri: {
43
+ required: true,
44
+ serialized_name: 'OutputBlobContainerUri',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,80 @@
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 the capacity information.
10
+ #
11
+ class IotHubCapacity
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The minimum number of units.
16
+ attr_accessor :minimum
17
+
18
+ # @return [Integer] The maximum number of units.
19
+ attr_accessor :maximum
20
+
21
+ # @return [Integer] The default number of units.
22
+ attr_accessor :default
23
+
24
+ # @return [IotHubScaleType] The type of the scale. Possible values
25
+ # include: 'Automatic', 'Manual', 'None'
26
+ attr_accessor :scale_type
27
+
28
+
29
+ #
30
+ # Mapper for IotHubCapacity class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'IotHubCapacity',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'IotHubCapacity',
40
+ model_properties: {
41
+ minimum: {
42
+ required: false,
43
+ serialized_name: 'minimum',
44
+ constraints: {
45
+ InclusiveMaximum: 1,
46
+ InclusiveMinimum: 1
47
+ },
48
+ type: {
49
+ name: 'Number'
50
+ }
51
+ },
52
+ maximum: {
53
+ required: false,
54
+ serialized_name: 'maximum',
55
+ type: {
56
+ name: 'Number'
57
+ }
58
+ },
59
+ default: {
60
+ required: false,
61
+ serialized_name: 'default',
62
+ type: {
63
+ name: 'Number'
64
+ }
65
+ },
66
+ scale_type: {
67
+ required: false,
68
+ serialized_name: 'scaleType',
69
+ type: {
70
+ name: 'Enum',
71
+ module: 'IotHubScaleType'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,137 @@
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 description of the IotHub.
10
+ #
11
+ class IotHubDescription < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The subscription identifier.
16
+ attr_accessor :subscriptionid
17
+
18
+ # @return [String] The resource group name uniquely identifies the
19
+ # resource group within the user subscriptionId.
20
+ attr_accessor :resourcegroup
21
+
22
+ # @return [String] The Etag field is *not* required. If it is provided
23
+ # in the response body, it must also be provided as a header per the
24
+ # normal ETag convention.
25
+ attr_accessor :etag
26
+
27
+ # @return [IotHubProperties]
28
+ attr_accessor :properties
29
+
30
+ # @return [IotHubSkuInfo]
31
+ attr_accessor :sku
32
+
33
+
34
+ #
35
+ # Mapper for IotHubDescription class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ required: false,
41
+ serialized_name: 'IotHubDescription',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'IotHubDescription',
45
+ model_properties: {
46
+ id: {
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'id',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ name: {
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'name',
58
+ constraints: {
59
+ Pattern: '^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$'
60
+ },
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ type: {
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'type',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ location: {
74
+ required: false,
75
+ serialized_name: 'location',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ tags: {
81
+ required: false,
82
+ serialized_name: 'tags',
83
+ type: {
84
+ name: 'Dictionary',
85
+ value: {
86
+ required: false,
87
+ serialized_name: 'StringElementType',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ }
92
+ }
93
+ },
94
+ subscriptionid: {
95
+ required: false,
96
+ serialized_name: 'subscriptionid',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ resourcegroup: {
102
+ required: false,
103
+ serialized_name: 'resourcegroup',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ etag: {
109
+ required: false,
110
+ serialized_name: 'etag',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ },
115
+ properties: {
116
+ required: false,
117
+ serialized_name: 'properties',
118
+ type: {
119
+ name: 'Composite',
120
+ class_name: 'IotHubProperties'
121
+ }
122
+ },
123
+ sku: {
124
+ required: false,
125
+ serialized_name: 'sku',
126
+ type: {
127
+ name: 'Composite',
128
+ class_name: 'IotHubSkuInfo'
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ end
135
+ end
136
+ end
137
+ end
@@ -0,0 +1,94 @@
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 IotHubDescription objects with a next link.
10
+ #
11
+ class IotHubDescriptionListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<IotHubDescription>] The list of IotHubDescription.
16
+ attr_accessor :value
17
+
18
+ # @return [String] The next link.
19
+ attr_accessor :next_link
20
+
21
+ # return [Proc] with next page method call.
22
+ attr_accessor :next_method
23
+
24
+ #
25
+ # Gets the rest of the items for the request, enabling auto-pagination.
26
+ #
27
+ # @return [Array<IotHubDescription>] operation results.
28
+ #
29
+ def get_all_items
30
+ items = @value
31
+ page = self
32
+ while page.next_link != nil do
33
+ page = page.get_next_page
34
+ items.concat(page.value)
35
+ end
36
+ items
37
+ end
38
+
39
+ #
40
+ # Gets the next page of results.
41
+ #
42
+ # @return [IotHubDescriptionListResult] with next page content.
43
+ #
44
+ def get_next_page
45
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
46
+ unless response.nil?
47
+ @next_link = response.body.next_link
48
+ @value = response.body.value
49
+ self
50
+ end
51
+ end
52
+
53
+ #
54
+ # Mapper for IotHubDescriptionListResult class as Ruby Hash.
55
+ # This will be used for serialization/deserialization.
56
+ #
57
+ def self.mapper()
58
+ {
59
+ required: false,
60
+ serialized_name: 'IotHubDescriptionListResult',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'IotHubDescriptionListResult',
64
+ model_properties: {
65
+ value: {
66
+ required: false,
67
+ serialized_name: 'value',
68
+ type: {
69
+ name: 'Sequence',
70
+ element: {
71
+ required: false,
72
+ serialized_name: 'IotHubDescriptionElementType',
73
+ type: {
74
+ name: 'Composite',
75
+ class_name: 'IotHubDescription'
76
+ }
77
+ }
78
+ }
79
+ },
80
+ next_link: {
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end