azure_mgmt_iot_hub 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_iot_hub.gemspec +34 -0
- data/lib/azure_mgmt_iot_hub.rb +5 -0
- data/lib/generated/azure_mgmt_iot_hub.rb +66 -0
- data/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb +66 -0
- data/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +2920 -0
- data/lib/generated/azure_mgmt_iot_hub/models/access_rights.rb +29 -0
- data/lib/generated/azure_mgmt_iot_hub/models/capabilities.rb +16 -0
- data/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +71 -0
- data/lib/generated/azure_mgmt_iot_hub/models/error_details.rb +75 -0
- data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +71 -0
- data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +130 -0
- data/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +56 -0
- data/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +70 -0
- data/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +55 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +80 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +137 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +67 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +16 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +177 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +64 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +17 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +18 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +67 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +70 -0
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +16 -0
- data/lib/generated/azure_mgmt_iot_hub/models/job_response.rb +130 -0
- data/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_iot_hub/models/job_status.rb +20 -0
- data/lib/generated/azure_mgmt_iot_hub/models/job_type.rb +24 -0
- data/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +70 -0
- data/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +44 -0
- data/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +17 -0
- data/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +51 -0
- data/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +64 -0
- data/lib/generated/azure_mgmt_iot_hub/models/sbaccess_rights.rb +18 -0
- data/lib/generated/azure_mgmt_iot_hub/models/shared_access_authorization_rule.rb +142 -0
- data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +83 -0
- data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +98 -0
- data/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +66 -0
- data/lib/generated/azure_mgmt_iot_hub/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_iot_hub/version.rb +8 -0
- metadata +162 -0
@@ -0,0 +1,29 @@
|
|
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 AccessRights
|
10
|
+
#
|
11
|
+
module AccessRights
|
12
|
+
RegistryRead = "RegistryRead"
|
13
|
+
RegistryWrite = "RegistryWrite"
|
14
|
+
ServiceConnect = "ServiceConnect"
|
15
|
+
DeviceConnect = "DeviceConnect"
|
16
|
+
RegistryReadRegistryWrite = "RegistryRead, RegistryWrite"
|
17
|
+
RegistryReadServiceConnect = "RegistryRead, ServiceConnect"
|
18
|
+
RegistryReadDeviceConnect = "RegistryRead, DeviceConnect"
|
19
|
+
RegistryWriteServiceConnect = "RegistryWrite, ServiceConnect"
|
20
|
+
RegistryWriteDeviceConnect = "RegistryWrite, DeviceConnect"
|
21
|
+
ServiceConnectDeviceConnect = "ServiceConnect, DeviceConnect"
|
22
|
+
RegistryReadRegistryWriteServiceConnect = "RegistryRead, RegistryWrite, ServiceConnect"
|
23
|
+
RegistryReadRegistryWriteDeviceConnect = "RegistryRead, RegistryWrite, DeviceConnect"
|
24
|
+
RegistryReadServiceConnectDeviceConnect = "RegistryRead, ServiceConnect, DeviceConnect"
|
25
|
+
RegistryWriteServiceConnectDeviceConnect = "RegistryWrite, ServiceConnect, DeviceConnect"
|
26
|
+
RegistryReadRegistryWriteServiceConnectDeviceConnect = "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
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 Capabilities
|
10
|
+
#
|
11
|
+
module Capabilities
|
12
|
+
None = "None"
|
13
|
+
DeviceManagement = "DeviceManagement"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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 Cloud-To-Device messaging properties.
|
10
|
+
#
|
11
|
+
class CloudToDeviceProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] The max delivery count for the device queue. Range :
|
16
|
+
# 1-100.
|
17
|
+
attr_accessor :max_delivery_count
|
18
|
+
|
19
|
+
# @return [Duration] The default time to live for the device queue.
|
20
|
+
# Range : 1 Min (PT1M) - 2 Days (P2D).
|
21
|
+
attr_accessor :default_ttl_as_iso8601
|
22
|
+
|
23
|
+
# @return [FeedbackProperties]
|
24
|
+
attr_accessor :feedback
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for CloudToDeviceProperties class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'CloudToDeviceProperties',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'CloudToDeviceProperties',
|
38
|
+
model_properties: {
|
39
|
+
max_delivery_count: {
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'maxDeliveryCount',
|
42
|
+
constraints: {
|
43
|
+
InclusiveMaximum: 100,
|
44
|
+
InclusiveMinimum: 1
|
45
|
+
},
|
46
|
+
type: {
|
47
|
+
name: 'Number'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
default_ttl_as_iso8601: {
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'defaultTtlAsIso8601',
|
53
|
+
type: {
|
54
|
+
name: 'TimeSpan'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
feedback: {
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'feedback',
|
60
|
+
type: {
|
61
|
+
name: 'Composite',
|
62
|
+
class_name: 'FeedbackProperties'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,75 @@
|
|
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 details of an error.
|
10
|
+
#
|
11
|
+
class ErrorDetails
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The error code.
|
16
|
+
attr_accessor :code
|
17
|
+
|
18
|
+
# @return [String] The http status code.
|
19
|
+
attr_accessor :http_status_code
|
20
|
+
|
21
|
+
# @return [String] The error message.
|
22
|
+
attr_accessor :message
|
23
|
+
|
24
|
+
# @return [String] The error details.
|
25
|
+
attr_accessor :details
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for ErrorDetails class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'ErrorDetails',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'ErrorDetails',
|
39
|
+
model_properties: {
|
40
|
+
code: {
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'Code',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
http_status_code: {
|
48
|
+
required: false,
|
49
|
+
read_only: true,
|
50
|
+
serialized_name: 'HttpStatusCode',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
message: {
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'Message',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
details: {
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'Details',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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 the EventHubConsumerGroupInfo.
|
10
|
+
#
|
11
|
+
class EventHubConsumerGroupInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => String}] The tags.
|
16
|
+
attr_accessor :tags
|
17
|
+
|
18
|
+
# @return [String] The event hub consumer group identifier.
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# @return [String] The event hub consumer group name.
|
22
|
+
attr_accessor :name
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for EventHubConsumerGroupInfo class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'EventHubConsumerGroupInfo',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'EventHubConsumerGroupInfo',
|
36
|
+
model_properties: {
|
37
|
+
tags: {
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'tags',
|
40
|
+
type: {
|
41
|
+
name: 'Dictionary',
|
42
|
+
value: {
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'StringElementType',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
},
|
51
|
+
id: {
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'id',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
name: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'name',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,93 @@
|
|
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 eventhub consumer group names with a next link.
|
10
|
+
#
|
11
|
+
class EventHubConsumerGroupsListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<String>] The list of eventhub consumer group names.
|
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<>] 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 [EventHubConsumerGroupsListResult] 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 EventHubConsumerGroupsListResult class as Ruby Hash.
|
55
|
+
# This will be used for serialization/deserialization.
|
56
|
+
#
|
57
|
+
def self.mapper()
|
58
|
+
{
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'EventHubConsumerGroupsListResult',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'EventHubConsumerGroupsListResult',
|
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: 'StringElementType',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
},
|
79
|
+
next_link: {
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'nextLink',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
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 of the provisioned event hub used by the Iot Hub.
|
10
|
+
#
|
11
|
+
class EventHubProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] The retention time in days. Range of values [For F1:
|
16
|
+
# 1-1, S1: 1-7, S2: 1-7, S3: 1-7].
|
17
|
+
attr_accessor :retention_time_in_days
|
18
|
+
|
19
|
+
# @return [Integer] The partition count. Range of values [For F1: 2-2,
|
20
|
+
# S1: 2-128, S2: 2-128, S3: 2-128].
|
21
|
+
attr_accessor :partition_count
|
22
|
+
|
23
|
+
# @return [Array<String>] The partition ids.
|
24
|
+
attr_accessor :partition_ids
|
25
|
+
|
26
|
+
# @return [String] The eventhub path.
|
27
|
+
attr_accessor :path
|
28
|
+
|
29
|
+
# @return [String] The endpoint.
|
30
|
+
attr_accessor :endpoint
|
31
|
+
|
32
|
+
# @return [Array<SharedAccessAuthorizationRule>] The internal
|
33
|
+
# authorization rules.
|
34
|
+
attr_accessor :internal_authorization_policies
|
35
|
+
|
36
|
+
# @return [Array<SharedAccessAuthorizationRule>] The authorization rules.
|
37
|
+
attr_accessor :authorization_policies
|
38
|
+
|
39
|
+
|
40
|
+
#
|
41
|
+
# Mapper for EventHubProperties class as Ruby Hash.
|
42
|
+
# This will be used for serialization/deserialization.
|
43
|
+
#
|
44
|
+
def self.mapper()
|
45
|
+
{
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'EventHubProperties',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'EventHubProperties',
|
51
|
+
model_properties: {
|
52
|
+
retention_time_in_days: {
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'retentionTimeInDays',
|
55
|
+
type: {
|
56
|
+
name: 'Number'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
partition_count: {
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'partitionCount',
|
62
|
+
type: {
|
63
|
+
name: 'Number'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
partition_ids: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'partitionIds',
|
69
|
+
type: {
|
70
|
+
name: 'Sequence',
|
71
|
+
element: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'StringElementType',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
path: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'path',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
endpoint: {
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'endpoint',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
internal_authorization_policies: {
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'internalAuthorizationPolicies',
|
97
|
+
type: {
|
98
|
+
name: 'Sequence',
|
99
|
+
element: {
|
100
|
+
required: false,
|
101
|
+
serialized_name: 'SharedAccessAuthorizationRuleElementType',
|
102
|
+
type: {
|
103
|
+
name: 'Composite',
|
104
|
+
class_name: 'SharedAccessAuthorizationRule'
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
},
|
109
|
+
authorization_policies: {
|
110
|
+
required: false,
|
111
|
+
serialized_name: 'authorizationPolicies',
|
112
|
+
type: {
|
113
|
+
name: 'Sequence',
|
114
|
+
element: {
|
115
|
+
required: false,
|
116
|
+
serialized_name: 'SharedAccessAuthorizationRuleElementType',
|
117
|
+
type: {
|
118
|
+
name: 'Composite',
|
119
|
+
class_name: 'SharedAccessAuthorizationRule'
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|