azure_mgmt_iot_hub 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-02-03/generated/azure_mgmt_iot_hub/iot_hub_client.rb +7 -6
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_client.rb +7 -6
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/iot_hub_client.rb +7 -6
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub.rb +89 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/certificates.rb +711 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/iot_hub_client.rb +139 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +3242 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/access_rights.rb +29 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/capabilities.rb +16 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/certificate_body_description.rb +47 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/certificate_description.rb +95 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/certificate_list_description.rb +56 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/certificate_properties.rb +107 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb +121 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/certificate_verification_description.rb +47 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb +95 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +77 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/error_details.rb +83 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +102 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +101 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +107 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +59 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb +114 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +77 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +58 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +89 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +126 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +100 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +73 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +16 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +252 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +71 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +101 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +17 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +18 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +71 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +101 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +73 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +16 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +16 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +71 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/job_response.rb +137 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +99 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/job_status.rb +20 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/job_type.rb +24 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +77 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/operation.rb +60 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/operation_display.rb +71 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +46 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/operation_list_result.rb +103 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +18 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +58 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +73 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/resource.rb +104 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/route_properties.rb +116 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb +126 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb +87 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/routing_properties.rb +88 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb +90 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb +90 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/routing_source.rb +18 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb +156 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +89 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +103 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +73 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/models/tags_resource.rb +55 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/module_definition.rb +9 -0
- data/lib/2018-01-22/generated/azure_mgmt_iot_hub/operations.rb +215 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub.rb +108 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/certificates.rb +711 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/iot_hub_client.rb +143 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +3676 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/access_rights.rb +29 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/capabilities.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/certificate_body_description.rb +47 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/certificate_description.rb +95 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/certificate_list_description.rb +56 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/certificate_properties.rb +118 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb +133 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/certificate_verification_description.rb +47 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb +95 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +77 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/endpoint_health_data.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/endpoint_health_data_list_result.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/endpoint_health_status.rb +18 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/error_details.rb +83 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +102 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +101 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +107 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +59 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb +114 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +77 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +89 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +126 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +73 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +252 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +71 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +101 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +17 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +21 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +71 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +101 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +73 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +17 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +71 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/job_response.rb +137 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +99 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/job_status.rb +20 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/job_type.rb +24 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/matched_route.rb +47 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +77 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/name.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/operation.rb +60 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/operation_display.rb +71 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +46 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/operation_list_result.rb +103 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +18 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +73 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/resource.rb +104 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/route_compilation_error.rb +70 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/route_error_position.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/route_error_range.rb +59 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/route_error_severity.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/route_properties.rb +116 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb +126 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb +87 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/routing_message.rb +84 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/routing_properties.rb +88 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb +90 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb +90 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/routing_source.rb +19 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb +156 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +89 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +103 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +73 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/tags_resource.rb +55 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/test_all_routes_input.rb +60 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/test_all_routes_result.rb +55 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/test_result_status.rb +17 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/test_route_input.rb +59 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/test_route_result.rb +59 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/test_route_result_details.rb +56 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/user_subscription_quota.rb +102 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/user_subscription_quota_list_result.rb +67 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/module_definition.rb +9 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/operations.rb +215 -0
- data/lib/2018-04-01/generated/azure_mgmt_iot_hub/resource_provider_common.rb +115 -0
- data/lib/azure_mgmt_iot_hub.rb +3 -1
- data/lib/profiles/latest/modules/iothub_profile_module.rb +240 -162
- data/lib/version.rb +1 -1
- metadata +154 -5
@@ -0,0 +1,73 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::IotHub::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties indicating whether a given IoT hub name is available.
|
10
|
+
#
|
11
|
+
class IotHubNameAvailabilityInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Boolean] The value which indicates whether the provided name
|
16
|
+
# is available.
|
17
|
+
attr_accessor :name_available
|
18
|
+
|
19
|
+
# @return [IotHubNameUnavailabilityReason] The reason for unavailability.
|
20
|
+
# Possible values include: 'Invalid', 'AlreadyExists'
|
21
|
+
attr_accessor :reason
|
22
|
+
|
23
|
+
# @return [String] The detailed reason message.
|
24
|
+
attr_accessor :message
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for IotHubNameAvailabilityInfo class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'IotHubNameAvailabilityInfo',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'IotHubNameAvailabilityInfo',
|
39
|
+
model_properties: {
|
40
|
+
name_available: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
read_only: true,
|
44
|
+
serialized_name: 'nameAvailable',
|
45
|
+
type: {
|
46
|
+
name: 'Boolean'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
reason: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'reason',
|
54
|
+
type: {
|
55
|
+
name: 'Enum',
|
56
|
+
module: 'IotHubNameUnavailabilityReason'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
message: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'message',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::IotHub::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for IotHubNameUnavailabilityReason
|
10
|
+
#
|
11
|
+
module IotHubNameUnavailabilityReason
|
12
|
+
Invalid = "Invalid"
|
13
|
+
AlreadyExists = "AlreadyExists"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,252 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::IotHub::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties of an IoT hub.
|
10
|
+
#
|
11
|
+
class IotHubProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<SharedAccessSignatureAuthorizationRule>] The shared
|
16
|
+
# access policies you can use to secure a connection to the IoT hub.
|
17
|
+
attr_accessor :authorization_policies
|
18
|
+
|
19
|
+
# @return [Array<IpFilterRule>] The IP filter rules.
|
20
|
+
attr_accessor :ip_filter_rules
|
21
|
+
|
22
|
+
# @return [String] The provisioning state.
|
23
|
+
attr_accessor :provisioning_state
|
24
|
+
|
25
|
+
# @return [String] Thehub state state.
|
26
|
+
attr_accessor :state
|
27
|
+
|
28
|
+
# @return [String] The name of the host.
|
29
|
+
attr_accessor :host_name
|
30
|
+
|
31
|
+
# @return [Hash{String => EventHubProperties}] The Event Hub-compatible
|
32
|
+
# endpoint properties. The possible keys to this dictionary are events
|
33
|
+
# and operationsMonitoringEvents. Both of these keys have to be present
|
34
|
+
# in the dictionary while making create or update calls for the IoT hub.
|
35
|
+
attr_accessor :event_hub_endpoints
|
36
|
+
|
37
|
+
# @return [RoutingProperties]
|
38
|
+
attr_accessor :routing
|
39
|
+
|
40
|
+
# @return [Hash{String => StorageEndpointProperties}] The list of Azure
|
41
|
+
# Storage endpoints where you can upload files. Currently you can
|
42
|
+
# configure only one Azure Storage account and that MUST have its key as
|
43
|
+
# $default. Specifying more than one storage account causes an error to
|
44
|
+
# be thrown. Not specifying a value for this property when the
|
45
|
+
# enableFileUploadNotifications property is set to True, causes an error
|
46
|
+
# to be thrown.
|
47
|
+
attr_accessor :storage_endpoints
|
48
|
+
|
49
|
+
# @return [Hash{String => MessagingEndpointProperties}] The messaging
|
50
|
+
# endpoint properties for the file upload notification queue.
|
51
|
+
attr_accessor :messaging_endpoints
|
52
|
+
|
53
|
+
# @return [Boolean] If True, file upload notifications are enabled.
|
54
|
+
attr_accessor :enable_file_upload_notifications
|
55
|
+
|
56
|
+
# @return [CloudToDeviceProperties]
|
57
|
+
attr_accessor :cloud_to_device
|
58
|
+
|
59
|
+
# @return [String] IoT hub comments.
|
60
|
+
attr_accessor :comments
|
61
|
+
|
62
|
+
# @return [OperationsMonitoringProperties]
|
63
|
+
attr_accessor :operations_monitoring_properties
|
64
|
+
|
65
|
+
# @return [Capabilities] The capabilities and features enabled for the
|
66
|
+
# IoT hub. Possible values include: 'None', 'DeviceManagement'
|
67
|
+
attr_accessor :features
|
68
|
+
|
69
|
+
|
70
|
+
#
|
71
|
+
# Mapper for IotHubProperties class as Ruby Hash.
|
72
|
+
# This will be used for serialization/deserialization.
|
73
|
+
#
|
74
|
+
def self.mapper()
|
75
|
+
{
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'IotHubProperties',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'IotHubProperties',
|
82
|
+
model_properties: {
|
83
|
+
authorization_policies: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
serialized_name: 'authorizationPolicies',
|
87
|
+
type: {
|
88
|
+
name: 'Sequence',
|
89
|
+
element: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: false,
|
92
|
+
serialized_name: 'SharedAccessSignatureAuthorizationRuleElementType',
|
93
|
+
type: {
|
94
|
+
name: 'Composite',
|
95
|
+
class_name: 'SharedAccessSignatureAuthorizationRule'
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
},
|
100
|
+
ip_filter_rules: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'ipFilterRules',
|
104
|
+
type: {
|
105
|
+
name: 'Sequence',
|
106
|
+
element: {
|
107
|
+
client_side_validation: true,
|
108
|
+
required: false,
|
109
|
+
serialized_name: 'IpFilterRuleElementType',
|
110
|
+
type: {
|
111
|
+
name: 'Composite',
|
112
|
+
class_name: 'IpFilterRule'
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
},
|
117
|
+
provisioning_state: {
|
118
|
+
client_side_validation: true,
|
119
|
+
required: false,
|
120
|
+
read_only: true,
|
121
|
+
serialized_name: 'provisioningState',
|
122
|
+
type: {
|
123
|
+
name: 'String'
|
124
|
+
}
|
125
|
+
},
|
126
|
+
state: {
|
127
|
+
client_side_validation: true,
|
128
|
+
required: false,
|
129
|
+
read_only: true,
|
130
|
+
serialized_name: 'state',
|
131
|
+
type: {
|
132
|
+
name: 'String'
|
133
|
+
}
|
134
|
+
},
|
135
|
+
host_name: {
|
136
|
+
client_side_validation: true,
|
137
|
+
required: false,
|
138
|
+
read_only: true,
|
139
|
+
serialized_name: 'hostName',
|
140
|
+
type: {
|
141
|
+
name: 'String'
|
142
|
+
}
|
143
|
+
},
|
144
|
+
event_hub_endpoints: {
|
145
|
+
client_side_validation: true,
|
146
|
+
required: false,
|
147
|
+
serialized_name: 'eventHubEndpoints',
|
148
|
+
type: {
|
149
|
+
name: 'Dictionary',
|
150
|
+
value: {
|
151
|
+
client_side_validation: true,
|
152
|
+
required: false,
|
153
|
+
serialized_name: 'EventHubPropertiesElementType',
|
154
|
+
type: {
|
155
|
+
name: 'Composite',
|
156
|
+
class_name: 'EventHubProperties'
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
},
|
161
|
+
routing: {
|
162
|
+
client_side_validation: true,
|
163
|
+
required: false,
|
164
|
+
serialized_name: 'routing',
|
165
|
+
type: {
|
166
|
+
name: 'Composite',
|
167
|
+
class_name: 'RoutingProperties'
|
168
|
+
}
|
169
|
+
},
|
170
|
+
storage_endpoints: {
|
171
|
+
client_side_validation: true,
|
172
|
+
required: false,
|
173
|
+
serialized_name: 'storageEndpoints',
|
174
|
+
type: {
|
175
|
+
name: 'Dictionary',
|
176
|
+
value: {
|
177
|
+
client_side_validation: true,
|
178
|
+
required: false,
|
179
|
+
serialized_name: 'StorageEndpointPropertiesElementType',
|
180
|
+
type: {
|
181
|
+
name: 'Composite',
|
182
|
+
class_name: 'StorageEndpointProperties'
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
},
|
187
|
+
messaging_endpoints: {
|
188
|
+
client_side_validation: true,
|
189
|
+
required: false,
|
190
|
+
serialized_name: 'messagingEndpoints',
|
191
|
+
type: {
|
192
|
+
name: 'Dictionary',
|
193
|
+
value: {
|
194
|
+
client_side_validation: true,
|
195
|
+
required: false,
|
196
|
+
serialized_name: 'MessagingEndpointPropertiesElementType',
|
197
|
+
type: {
|
198
|
+
name: 'Composite',
|
199
|
+
class_name: 'MessagingEndpointProperties'
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
},
|
204
|
+
enable_file_upload_notifications: {
|
205
|
+
client_side_validation: true,
|
206
|
+
required: false,
|
207
|
+
serialized_name: 'enableFileUploadNotifications',
|
208
|
+
type: {
|
209
|
+
name: 'Boolean'
|
210
|
+
}
|
211
|
+
},
|
212
|
+
cloud_to_device: {
|
213
|
+
client_side_validation: true,
|
214
|
+
required: false,
|
215
|
+
serialized_name: 'cloudToDevice',
|
216
|
+
type: {
|
217
|
+
name: 'Composite',
|
218
|
+
class_name: 'CloudToDeviceProperties'
|
219
|
+
}
|
220
|
+
},
|
221
|
+
comments: {
|
222
|
+
client_side_validation: true,
|
223
|
+
required: false,
|
224
|
+
serialized_name: 'comments',
|
225
|
+
type: {
|
226
|
+
name: 'String'
|
227
|
+
}
|
228
|
+
},
|
229
|
+
operations_monitoring_properties: {
|
230
|
+
client_side_validation: true,
|
231
|
+
required: false,
|
232
|
+
serialized_name: 'operationsMonitoringProperties',
|
233
|
+
type: {
|
234
|
+
name: 'Composite',
|
235
|
+
class_name: 'OperationsMonitoringProperties'
|
236
|
+
}
|
237
|
+
},
|
238
|
+
features: {
|
239
|
+
client_side_validation: true,
|
240
|
+
required: false,
|
241
|
+
serialized_name: 'features',
|
242
|
+
type: {
|
243
|
+
name: 'String'
|
244
|
+
}
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
248
|
+
}
|
249
|
+
end
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::IotHub::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Quota metrics properties.
|
10
|
+
#
|
11
|
+
class IotHubQuotaMetricInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the quota metric.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [Integer] The current value for the quota metric.
|
19
|
+
attr_accessor :current_value
|
20
|
+
|
21
|
+
# @return [Integer] The maximum value of the quota metric.
|
22
|
+
attr_accessor :max_value
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for IotHubQuotaMetricInfo class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'IotHubQuotaMetricInfo',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'IotHubQuotaMetricInfo',
|
37
|
+
model_properties: {
|
38
|
+
name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
read_only: true,
|
42
|
+
serialized_name: 'name',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
current_value: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'currentValue',
|
52
|
+
type: {
|
53
|
+
name: 'Number'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
max_value: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
read_only: true,
|
60
|
+
serialized_name: 'maxValue',
|
61
|
+
type: {
|
62
|
+
name: 'Number'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
data/lib/2018-04-01/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::IotHub::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The JSON-serialized array of IotHubQuotaMetricInfo objects with a next
|
10
|
+
# link.
|
11
|
+
#
|
12
|
+
class IotHubQuotaMetricInfoListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<IotHubQuotaMetricInfo>] The array of quota metrics
|
18
|
+
# objects.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
# @return [String] The next link.
|
22
|
+
attr_accessor :next_link
|
23
|
+
|
24
|
+
# return [Proc] with next page method call.
|
25
|
+
attr_accessor :next_method
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
29
|
+
#
|
30
|
+
# @return [Array<IotHubQuotaMetricInfo>] operation results.
|
31
|
+
#
|
32
|
+
def get_all_items
|
33
|
+
items = @value
|
34
|
+
page = self
|
35
|
+
while page.next_link != nil do
|
36
|
+
page = page.get_next_page
|
37
|
+
items.concat(page.value)
|
38
|
+
end
|
39
|
+
items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets the next page of results.
|
44
|
+
#
|
45
|
+
# @return [IotHubQuotaMetricInfoListResult] with next 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 IotHubQuotaMetricInfoListResult class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'IotHubQuotaMetricInfoListResult',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'IotHubQuotaMetricInfoListResult',
|
68
|
+
model_properties: {
|
69
|
+
value: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'value',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'IotHubQuotaMetricInfoElementType',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'IotHubQuotaMetricInfo'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
next_link: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
read_only: true,
|
90
|
+
serialized_name: 'nextLink',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|