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,83 @@
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 that describe the keys to access the IotHub artifacts.
10
+ #
11
+ class SharedAccessSignatureAuthorizationRule
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the key.
16
+ attr_accessor :key_name
17
+
18
+ # @return [String] The primary key.
19
+ attr_accessor :primary_key
20
+
21
+ # @return [String] The secondary key.
22
+ attr_accessor :secondary_key
23
+
24
+ # @return [AccessRights] The access rights. Possible values include:
25
+ # 'RegistryRead', 'RegistryWrite', 'ServiceConnect', 'DeviceConnect',
26
+ # 'RegistryRead, RegistryWrite', 'RegistryRead, ServiceConnect',
27
+ # 'RegistryRead, DeviceConnect', 'RegistryWrite, ServiceConnect',
28
+ # 'RegistryWrite, DeviceConnect', 'ServiceConnect, DeviceConnect',
29
+ # 'RegistryRead, RegistryWrite, ServiceConnect', 'RegistryRead,
30
+ # RegistryWrite, DeviceConnect', 'RegistryRead, ServiceConnect,
31
+ # DeviceConnect', 'RegistryWrite, ServiceConnect, DeviceConnect',
32
+ # 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect'
33
+ attr_accessor :rights
34
+
35
+
36
+ #
37
+ # Mapper for SharedAccessSignatureAuthorizationRule class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ required: false,
43
+ serialized_name: 'SharedAccessSignatureAuthorizationRule',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'SharedAccessSignatureAuthorizationRule',
47
+ model_properties: {
48
+ key_name: {
49
+ required: false,
50
+ serialized_name: 'keyName',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ primary_key: {
56
+ required: false,
57
+ serialized_name: 'primaryKey',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ secondary_key: {
63
+ required: false,
64
+ serialized_name: 'secondaryKey',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ rights: {
70
+ required: false,
71
+ serialized_name: 'rights',
72
+ type: {
73
+ name: 'Enum',
74
+ module: 'AccessRights'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,98 @@
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 authorization rules with a next link.
10
+ #
11
+ class SharedAccessSignatureAuthorizationRuleListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<SharedAccessSignatureAuthorizationRule>] The list of
16
+ # authorization rules.
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<SharedAccessSignatureAuthorizationRule>] operation
29
+ # results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [SharedAccessSignatureAuthorizationRuleListResult] with next
45
+ # page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for SharedAccessSignatureAuthorizationRuleListResult class as
58
+ # Ruby Hash.
59
+ # This will be used for serialization/deserialization.
60
+ #
61
+ def self.mapper()
62
+ {
63
+ required: false,
64
+ serialized_name: 'SharedAccessSignatureAuthorizationRuleListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'SharedAccessSignatureAuthorizationRuleListResult',
68
+ model_properties: {
69
+ value: {
70
+ required: false,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ required: false,
76
+ serialized_name: 'SharedAccessSignatureAuthorizationRuleElementType',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'SharedAccessSignatureAuthorizationRule'
80
+ }
81
+ }
82
+ }
83
+ },
84
+ next_link: {
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'nextLink',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,66 @@
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 of the Storage Endpoint for file upload.
10
+ #
11
+ class StorageEndpointProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Duration] SAS time to live. Range: 1 Min (PT1M) - 1 Day (P1D).
16
+ attr_accessor :sas_ttl_as_iso8601
17
+
18
+ # @return [String] The account key credentials for storage account
19
+ # selected by customer for uploading files.
20
+ attr_accessor :connection_string
21
+
22
+ # @return [String] The root container name where all files will be
23
+ # uploaded.
24
+ attr_accessor :container_name
25
+
26
+
27
+ #
28
+ # Mapper for StorageEndpointProperties class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'StorageEndpointProperties',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'StorageEndpointProperties',
38
+ model_properties: {
39
+ sas_ttl_as_iso8601: {
40
+ required: false,
41
+ serialized_name: 'sasTtlAsIso8601',
42
+ type: {
43
+ name: 'TimeSpan'
44
+ }
45
+ },
46
+ connection_string: {
47
+ required: false,
48
+ serialized_name: 'connectionString',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ container_name: {
54
+ required: false,
55
+ serialized_name: 'containerName',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,8 @@
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 end
7
+ module Azure::ARM end
8
+ module Azure::ARM::IotHub end
@@ -0,0 +1,8 @@
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
+ VERSION = '0.5.0'
8
+ end
metadata ADDED
@@ -0,0 +1,162 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: azure_mgmt_iot_hub
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ platform: ruby
6
+ authors:
7
+ - Microsoft Corporation
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-08-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: dotenv
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ms_rest_azure
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.4.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.4.0
83
+ description: Microsoft Azure IoT Hub Management Client Library for Ruby
84
+ email: azrubyteam@microsoft.com
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files: []
88
+ files:
89
+ - ".rspec"
90
+ - LICENSE.txt
91
+ - Rakefile
92
+ - azure_mgmt_iot_hub.gemspec
93
+ - lib/azure_mgmt_iot_hub.rb
94
+ - lib/generated/azure_mgmt_iot_hub.rb
95
+ - lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb
96
+ - lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb
97
+ - lib/generated/azure_mgmt_iot_hub/models/access_rights.rb
98
+ - lib/generated/azure_mgmt_iot_hub/models/capabilities.rb
99
+ - lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb
100
+ - lib/generated/azure_mgmt_iot_hub/models/error_details.rb
101
+ - lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb
102
+ - lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb
103
+ - lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb
104
+ - lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb
105
+ - lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb
106
+ - lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb
107
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb
108
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb
109
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb
110
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb
111
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb
112
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb
113
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb
114
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb
115
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb
116
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb
117
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb
118
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb
119
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb
120
+ - lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb
121
+ - lib/generated/azure_mgmt_iot_hub/models/job_response.rb
122
+ - lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb
123
+ - lib/generated/azure_mgmt_iot_hub/models/job_status.rb
124
+ - lib/generated/azure_mgmt_iot_hub/models/job_type.rb
125
+ - lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb
126
+ - lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb
127
+ - lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb
128
+ - lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb
129
+ - lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb
130
+ - lib/generated/azure_mgmt_iot_hub/models/sbaccess_rights.rb
131
+ - lib/generated/azure_mgmt_iot_hub/models/shared_access_authorization_rule.rb
132
+ - lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb
133
+ - lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb
134
+ - lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb
135
+ - lib/generated/azure_mgmt_iot_hub/module_definition.rb
136
+ - lib/generated/azure_mgmt_iot_hub/version.rb
137
+ homepage: https://aka.ms/azure-sdk-for-ruby
138
+ licenses:
139
+ - MIT
140
+ metadata: {}
141
+ post_install_message:
142
+ rdoc_options: []
143
+ require_paths:
144
+ - lib
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: 1.9.3
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ requirements: []
156
+ rubyforge_project:
157
+ rubygems_version: 2.4.6
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: Official Ruby client library to consume Microsoft Azure IoT Hub Management
161
+ services.
162
+ test_files: []