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,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 related to the Sku.
10
+ #
11
+ class IotHubSkuDescription
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The type of the resource.
16
+ attr_accessor :resource_type
17
+
18
+ # @return [IotHubSkuInfo]
19
+ attr_accessor :sku
20
+
21
+ # @return [IotHubCapacity]
22
+ attr_accessor :capacity
23
+
24
+
25
+ #
26
+ # Mapper for IotHubSkuDescription class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ required: false,
32
+ serialized_name: 'IotHubSkuDescription',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'IotHubSkuDescription',
36
+ model_properties: {
37
+ resource_type: {
38
+ required: false,
39
+ read_only: true,
40
+ serialized_name: 'resourceType',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ sku: {
46
+ required: false,
47
+ serialized_name: 'sku',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'IotHubSkuInfo'
51
+ }
52
+ },
53
+ capacity: {
54
+ required: false,
55
+ serialized_name: 'capacity',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'IotHubCapacity'
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ end
65
+ end
66
+ end
67
+ 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 IotHubSkuDescription objects with a next link.
10
+ #
11
+ class IotHubSkuDescriptionListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<IotHubSkuDescription>] The list of IotHubSkuDescription.
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<IotHubSkuDescription>] 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 [IotHubSkuDescriptionListResult] 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 IotHubSkuDescriptionListResult class as Ruby Hash.
55
+ # This will be used for serialization/deserialization.
56
+ #
57
+ def self.mapper()
58
+ {
59
+ required: false,
60
+ serialized_name: 'IotHubSkuDescriptionListResult',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'IotHubSkuDescriptionListResult',
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: 'IotHubSkuDescriptionElementType',
73
+ type: {
74
+ name: 'Composite',
75
+ class_name: 'IotHubSkuDescription'
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
@@ -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 Sku related information for the hub.
10
+ #
11
+ class IotHubSkuInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [IotHubSku] The name of the Sku. Possible values include:
16
+ # 'F1', 'S1', 'S2', 'S3'
17
+ attr_accessor :name
18
+
19
+ # @return [IotHubSkuTier] The tier. Possible values include: 'Free',
20
+ # 'Standard'
21
+ attr_accessor :tier
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
25
+ # this range, call support.
26
+ attr_accessor :capacity
27
+
28
+
29
+ #
30
+ # Mapper for IotHubSkuInfo class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'IotHubSkuInfo',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'IotHubSkuInfo',
40
+ model_properties: {
41
+ name: {
42
+ required: false,
43
+ serialized_name: 'name',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ tier: {
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'tier',
52
+ type: {
53
+ name: 'Enum',
54
+ module: 'IotHubSkuTier'
55
+ }
56
+ },
57
+ capacity: {
58
+ required: false,
59
+ serialized_name: 'capacity',
60
+ type: {
61
+ name: 'Number'
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ end
68
+ end
69
+ end
70
+ 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 IotHubSkuTier
10
+ #
11
+ module IotHubSkuTier
12
+ Free = "Free"
13
+ Standard = "Standard"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,130 @@
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 describing a Job Response.
10
+ #
11
+ class JobResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The job identifier.
16
+ attr_accessor :job_id
17
+
18
+ # @return [DateTime] Start time of the Job.
19
+ attr_accessor :start_time_utc
20
+
21
+ # @return [DateTime] Represents the time the job stopped processing.
22
+ attr_accessor :end_time_utc
23
+
24
+ # @return [JobType] The type of job to execute. Possible values include:
25
+ # 'unknown', 'export', 'import', 'backup', 'readDeviceProperties',
26
+ # 'writeDeviceProperties', 'updateDeviceConfiguration', 'rebootDevice',
27
+ # 'factoryResetDevice', 'firmwareUpdate'
28
+ attr_accessor :type
29
+
30
+ # @return [JobStatus] Status of the Job. Possible values include:
31
+ # 'unknown', 'enqueued', 'running', 'completed', 'failed', 'cancelled'
32
+ attr_accessor :status
33
+
34
+ # @return [String] If status == failure, this represents a string
35
+ # containing the reason.
36
+ attr_accessor :failure_reason
37
+
38
+ # @return [String] The status message for the job.
39
+ attr_accessor :status_message
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.
45
+ attr_accessor :parent_job_id
46
+
47
+
48
+ #
49
+ # Mapper for JobResponse class as Ruby Hash.
50
+ # This will be used for serialization/deserialization.
51
+ #
52
+ def self.mapper()
53
+ {
54
+ required: false,
55
+ serialized_name: 'JobResponse',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'JobResponse',
59
+ model_properties: {
60
+ job_id: {
61
+ required: false,
62
+ serialized_name: 'jobId',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ start_time_utc: {
68
+ required: false,
69
+ serialized_name: 'startTimeUtc',
70
+ type: {
71
+ name: 'DateTime'
72
+ }
73
+ },
74
+ end_time_utc: {
75
+ required: false,
76
+ serialized_name: 'endTimeUtc',
77
+ type: {
78
+ name: 'DateTime'
79
+ }
80
+ },
81
+ type: {
82
+ required: false,
83
+ serialized_name: 'type',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ status: {
89
+ required: false,
90
+ serialized_name: 'status',
91
+ type: {
92
+ name: 'Enum',
93
+ module: 'JobStatus'
94
+ }
95
+ },
96
+ failure_reason: {
97
+ required: false,
98
+ serialized_name: 'failureReason',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ status_message: {
104
+ required: false,
105
+ serialized_name: 'statusMessage',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ device_id: {
111
+ required: false,
112
+ serialized_name: 'deviceId',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ },
117
+ parent_job_id: {
118
+ required: false,
119
+ serialized_name: 'parentJobId',
120
+ type: {
121
+ name: 'String'
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ end
128
+ end
129
+ end
130
+ 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 JobResponse objects with a next link.
10
+ #
11
+ class JobResponseListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<JobResponse>] The list of JobResponse.
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<JobResponse>] 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 [JobResponseListResult] 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 JobResponseListResult class as Ruby Hash.
55
+ # This will be used for serialization/deserialization.
56
+ #
57
+ def self.mapper()
58
+ {
59
+ required: false,
60
+ serialized_name: 'JobResponseListResult',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'JobResponseListResult',
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: 'JobResponseElementType',
73
+ type: {
74
+ name: 'Composite',
75
+ class_name: 'JobResponse'
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