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,20 @@
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 JobStatus
10
+ #
11
+ module JobStatus
12
+ Unknown = "unknown"
13
+ Enqueued = "enqueued"
14
+ Running = "running"
15
+ Completed = "completed"
16
+ Failed = "failed"
17
+ Cancelled = "cancelled"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,24 @@
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 JobType
10
+ #
11
+ module JobType
12
+ Unknown = "unknown"
13
+ Export = "export"
14
+ Import = "import"
15
+ Backup = "backup"
16
+ ReadDeviceProperties = "readDeviceProperties"
17
+ WriteDeviceProperties = "writeDeviceProperties"
18
+ UpdateDeviceConfiguration = "updateDeviceConfiguration"
19
+ RebootDevice = "rebootDevice"
20
+ FactoryResetDevice = "factoryResetDevice"
21
+ FirmwareUpdate = "firmwareUpdate"
22
+ end
23
+ end
24
+ 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 properties of the Messaging Endpoints used by this IoT Hub.
10
+ #
11
+ class MessagingEndpointProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Duration] The lock duration. Range: 5 Sec (PT5S) - 5 Min
16
+ # (PT5M).
17
+ attr_accessor :lock_duration_as_iso8601
18
+
19
+ # @return [Duration] The time to live. Range: 1 Min (PT1M) - 2 Days
20
+ # (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 MessagingEndpointProperties class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'MessagingEndpointProperties',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'MessagingEndpointProperties',
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,44 @@
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
+ # OperationInputs.
10
+ #
11
+ class OperationInputs
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the iot hub.
16
+ attr_accessor :name
17
+
18
+
19
+ #
20
+ # Mapper for OperationInputs class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'OperationInputs',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'OperationInputs',
30
+ model_properties: {
31
+ name: {
32
+ required: false,
33
+ serialized_name: 'Name',
34
+ type: {
35
+ name: 'String'
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ end
42
+ end
43
+ end
44
+ 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 OperationMonitoringLevel
10
+ #
11
+ module OperationMonitoringLevel
12
+ None = "None"
13
+ Error = "Error"
14
+ Information = "Information"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,51 @@
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 Operation Monitoring properties.
10
+ #
11
+ class OperationsMonitoringProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => OperationMonitoringLevel}]
16
+ attr_accessor :events
17
+
18
+
19
+ #
20
+ # Mapper for OperationsMonitoringProperties class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'OperationsMonitoringProperties',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'OperationsMonitoringProperties',
30
+ model_properties: {
31
+ events: {
32
+ required: false,
33
+ serialized_name: 'events',
34
+ type: {
35
+ name: 'Dictionary',
36
+ value: {
37
+ required: false,
38
+ serialized_name: 'OperationMonitoringLevelElementType',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ end
49
+ end
50
+ end
51
+ 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 the registry statistics.
10
+ #
11
+ class RegistryStatistics
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The total device count.
16
+ attr_accessor :total_device_count
17
+
18
+ # @return [Integer] The enabled device count.
19
+ attr_accessor :enabled_device_count
20
+
21
+ # @return [Integer] The disabled device count.
22
+ attr_accessor :disabled_device_count
23
+
24
+
25
+ #
26
+ # Mapper for RegistryStatistics class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ required: false,
32
+ serialized_name: 'RegistryStatistics',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'RegistryStatistics',
36
+ model_properties: {
37
+ total_device_count: {
38
+ required: false,
39
+ serialized_name: 'totalDeviceCount',
40
+ type: {
41
+ name: 'Number'
42
+ }
43
+ },
44
+ enabled_device_count: {
45
+ required: false,
46
+ serialized_name: 'enabledDeviceCount',
47
+ type: {
48
+ name: 'Number'
49
+ }
50
+ },
51
+ disabled_device_count: {
52
+ required: false,
53
+ serialized_name: 'disabledDeviceCount',
54
+ type: {
55
+ name: 'Number'
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ end
62
+ end
63
+ end
64
+ 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 SBAccessRights
10
+ #
11
+ module SBAccessRights
12
+ Manage = "Manage"
13
+ Send = "Send"
14
+ Listen = "Listen"
15
+ ManageNotificationHub = "ManageNotificationHub"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,142 @@
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
+ # Model object.
10
+ #
11
+ class SharedAccessAuthorizationRule
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The key name.
16
+ attr_accessor :key_name
17
+
18
+ # @return [String] The primary key.
19
+ attr_accessor :primary_key
20
+
21
+ # @return [String] The issuer name.
22
+ attr_accessor :issuer_name
23
+
24
+ # @return [String] The secondary key.
25
+ attr_accessor :secondary_key
26
+
27
+ # @return [String] The claim type.
28
+ attr_accessor :claim_type
29
+
30
+ # @return [String] The claim value.
31
+ attr_accessor :claim_value
32
+
33
+ # @return [Array<SBAccessRights>] The rights.
34
+ attr_accessor :rights
35
+
36
+ # @return [DateTime] The created time.
37
+ attr_accessor :created_time
38
+
39
+ # @return [DateTime] The modified time.
40
+ attr_accessor :modified_time
41
+
42
+ # @return [Integer] The revision.
43
+ attr_accessor :revision
44
+
45
+
46
+ #
47
+ # Mapper for SharedAccessAuthorizationRule class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ required: false,
53
+ serialized_name: 'SharedAccessAuthorizationRule',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'SharedAccessAuthorizationRule',
57
+ model_properties: {
58
+ key_name: {
59
+ required: false,
60
+ serialized_name: 'KeyName',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ primary_key: {
66
+ required: false,
67
+ serialized_name: 'PrimaryKey',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ issuer_name: {
73
+ required: false,
74
+ serialized_name: 'IssuerName',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ secondary_key: {
80
+ required: false,
81
+ serialized_name: 'SecondaryKey',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ claim_type: {
87
+ required: false,
88
+ serialized_name: 'ClaimType',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ claim_value: {
94
+ required: false,
95
+ serialized_name: 'ClaimValue',
96
+ type: {
97
+ name: 'String'
98
+ }
99
+ },
100
+ rights: {
101
+ required: false,
102
+ serialized_name: 'Rights',
103
+ type: {
104
+ name: 'Sequence',
105
+ element: {
106
+ required: false,
107
+ serialized_name: 'SBAccessRightsElementType',
108
+ type: {
109
+ name: 'Enum',
110
+ module: 'SBAccessRights'
111
+ }
112
+ }
113
+ }
114
+ },
115
+ created_time: {
116
+ required: false,
117
+ serialized_name: 'CreatedTime',
118
+ type: {
119
+ name: 'DateTime'
120
+ }
121
+ },
122
+ modified_time: {
123
+ required: false,
124
+ serialized_name: 'ModifiedTime',
125
+ type: {
126
+ name: 'DateTime'
127
+ }
128
+ },
129
+ revision: {
130
+ required: false,
131
+ serialized_name: 'Revision',
132
+ type: {
133
+ name: 'Number'
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ end
140
+ end
141
+ end
142
+ end