azure_mgmt_iot_hub 0.14.0 → 0.15.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.rb +67 -0
- data/lib/2016-02-03/generated/azure_mgmt_iot_hub/iot_hub_client.rb +129 -0
- data/lib/2016-02-03/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +3048 -0
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/access_rights.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/capabilities.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/error_details.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +1 -1
- data/lib/2016-02-03/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +100 -0
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/export_devices_request.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/feedback_properties.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/import_devices_request.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_description.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +1 -1
- data/lib/2016-02-03/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +210 -0
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_sku.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/ip_filter_rule.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/job_response.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/job_response_list_result.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/job_status.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/job_type.rb +1 -1
- data/lib/2016-02-03/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +73 -0
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/operation_inputs.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +1 -1
- data/lib/2016-02-03/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +53 -0
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/registry_statistics.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/resource.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +1 -1
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +1 -1
- data/lib/2016-02-03/generated/azure_mgmt_iot_hub/module_definition.rb +9 -0
- data/lib/{generated → 2016-02-03/generated}/azure_mgmt_iot_hub/version.rb +2 -2
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub.rb +75 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_client.rb +129 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +3048 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/access_rights.rb +29 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/capabilities.rb +16 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +73 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/error_details.rb +78 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +71 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +96 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +100 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +56 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb +95 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +73 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +55 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +84 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +138 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +96 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +69 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +16 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +221 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +67 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +97 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +17 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +18 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +67 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +97 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +69 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +16 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +16 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +67 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb +128 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +95 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_status.rb +20 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_type.rb +24 -0
- data/lib/{generated → 2017-01-19/generated}/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +1 -1
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +44 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +18 -0
- data/lib/{generated → 2017-01-19/generated}/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +1 -1
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +69 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/resource.rb +97 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/route_properties.rb +109 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb +97 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb +82 -0
- data/lib/{generated → 2017-01-19/generated}/azure_mgmt_iot_hub/models/routing_properties.rb +1 -1
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb +85 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb +85 -0
- data/lib/{generated → 2017-01-19/generated}/azure_mgmt_iot_hub/models/routing_source.rb +1 -1
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +84 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +99 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +69 -0
- data/lib/2017-01-19/generated/azure_mgmt_iot_hub/module_definition.rb +9 -0
- data/lib/{generated/azure_mgmt_iot_hub/module_definition.rb → 2017-01-19/generated/azure_mgmt_iot_hub/version.rb} +3 -3
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub.rb +88 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/certificates.rb +9 -9
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/iot_hub_client.rb +3 -3
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/iot_hub_resource.rb +34 -34
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/access_rights.rb +29 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/capabilities.rb +16 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_body_description.rb +1 -1
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_description.rb +1 -1
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_list_description.rb +1 -1
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_properties.rb +1 -1
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb +1 -1
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_verification_description.rb +1 -1
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +73 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/error_details.rb +78 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +71 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +96 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/event_hub_properties.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +56 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/fallback_route_properties.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +73 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +55 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +84 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +138 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +96 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +69 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +16 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/iot_hub_properties.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +67 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +97 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +17 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +18 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +67 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +97 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +69 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +16 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +16 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +67 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/job_response.rb +128 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +95 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/job_status.rb +20 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/job_type.rb +24 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +73 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/operation.rb +1 -1
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/operation_display.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +44 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/operation_list_result.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +18 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +55 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +69 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/resource.rb +97 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/route_properties.rb +1 -1
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/routing_endpoints.rb +1 -1
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/routing_properties.rb +83 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb +1 -1
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/routing_source.rb +18 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +84 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +99 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +69 -0
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/module_definition.rb +9 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_iot_hub/operations.rb +3 -3
- data/lib/2017-07-01/generated/azure_mgmt_iot_hub/version.rb +8 -0
- data/lib/azure_mgmt_iot_hub.rb +4 -1
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/iothub_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/iothub_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/iothub_profile_module.rb +278 -0
- data/lib/version.rb +7 -0
- metadata +170 -67
- data/lib/generated/azure_mgmt_iot_hub.rb +0 -88
@@ -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::V2016_02_03
|
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. See:
|
16
|
+
# https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
|
17
|
+
attr_accessor :lock_duration_as_iso8601
|
18
|
+
|
19
|
+
# @return [Duration] The period of time for which a message is available
|
20
|
+
# to consume before it is expired by the IoT hub. See:
|
21
|
+
# https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
|
22
|
+
attr_accessor :ttl_as_iso8601
|
23
|
+
|
24
|
+
# @return [Integer] The number of times the IoT hub attempts to deliver a
|
25
|
+
# message. See:
|
26
|
+
# https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
|
27
|
+
attr_accessor :max_delivery_count
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for MessagingEndpointProperties class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'MessagingEndpointProperties',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'MessagingEndpointProperties',
|
41
|
+
model_properties: {
|
42
|
+
lock_duration_as_iso8601: {
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'lockDurationAsIso8601',
|
45
|
+
type: {
|
46
|
+
name: 'TimeSpan'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
ttl_as_iso8601: {
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'ttlAsIso8601',
|
52
|
+
type: {
|
53
|
+
name: 'TimeSpan'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
max_delivery_count: {
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'maxDeliveryCount',
|
59
|
+
constraints: {
|
60
|
+
InclusiveMaximum: 100,
|
61
|
+
InclusiveMinimum: 1
|
62
|
+
},
|
63
|
+
type: {
|
64
|
+
name: 'Number'
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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::V2016_02_03
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The operations monitoring properties for the IoT hub. The possible keys
|
10
|
+
# to the dictionary are Connections, DeviceTelemetry, C2DCommands,
|
11
|
+
# DeviceIdentityOperations, FileUploadOperations.
|
12
|
+
#
|
13
|
+
class OperationsMonitoringProperties
|
14
|
+
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
# @return [Hash{String => OperationMonitoringLevel}]
|
18
|
+
attr_accessor :events
|
19
|
+
|
20
|
+
|
21
|
+
#
|
22
|
+
# Mapper for OperationsMonitoringProperties class as Ruby Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'OperationsMonitoringProperties',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'OperationsMonitoringProperties',
|
32
|
+
model_properties: {
|
33
|
+
events: {
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'events',
|
36
|
+
type: {
|
37
|
+
name: 'Dictionary',
|
38
|
+
value: {
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'OperationMonitoringLevelElementType',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::IotHub end
|
8
|
+
module Azure::IotHub::Mgmt end
|
9
|
+
module Azure::IotHub::Mgmt::V2016_02_03 end
|
@@ -0,0 +1,75 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2017-01-19/generated/azure_mgmt_iot_hub/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::IotHub::Mgmt::V2017_01_19
|
23
|
+
autoload :IotHubResource, '2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_resource.rb'
|
24
|
+
autoload :IotHubClient, '2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_client.rb'
|
25
|
+
|
26
|
+
module Models
|
27
|
+
autoload :Resource, '2017-01-19/generated/azure_mgmt_iot_hub/models/resource.rb'
|
28
|
+
autoload :SharedAccessSignatureAuthorizationRule, '2017-01-19/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb'
|
29
|
+
autoload :SharedAccessSignatureAuthorizationRuleListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb'
|
30
|
+
autoload :EventHubProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb'
|
31
|
+
autoload :ErrorDetails, '2017-01-19/generated/azure_mgmt_iot_hub/models/error_details.rb'
|
32
|
+
autoload :RoutingServiceBusTopicEndpointProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb'
|
33
|
+
autoload :IotHubQuotaMetricInfo, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb'
|
34
|
+
autoload :RoutingEndpoints, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb'
|
35
|
+
autoload :IotHubQuotaMetricInfoListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb'
|
36
|
+
autoload :FallbackRouteProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb'
|
37
|
+
autoload :RegistryStatistics, '2017-01-19/generated/azure_mgmt_iot_hub/models/registry_statistics.rb'
|
38
|
+
autoload :StorageEndpointProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb'
|
39
|
+
autoload :JobResponse, '2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb'
|
40
|
+
autoload :FeedbackProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/feedback_properties.rb'
|
41
|
+
autoload :JobResponseListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb'
|
42
|
+
autoload :OperationsMonitoringProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb'
|
43
|
+
autoload :IotHubCapacity, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb'
|
44
|
+
autoload :IotHubSkuInfo, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb'
|
45
|
+
autoload :IotHubSkuDescription, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb'
|
46
|
+
autoload :IpFilterRule, '2017-01-19/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb'
|
47
|
+
autoload :EventHubConsumerGroupsListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb'
|
48
|
+
autoload :RoutingEventHubProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb'
|
49
|
+
autoload :EventHubConsumerGroupInfo, '2017-01-19/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb'
|
50
|
+
autoload :RoutingProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_properties.rb'
|
51
|
+
autoload :IotHubSkuDescriptionListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb'
|
52
|
+
autoload :CloudToDeviceProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb'
|
53
|
+
autoload :IotHubDescriptionListResult, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb'
|
54
|
+
autoload :RoutingServiceBusQueueEndpointProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb'
|
55
|
+
autoload :OperationInputs, '2017-01-19/generated/azure_mgmt_iot_hub/models/operation_inputs.rb'
|
56
|
+
autoload :MessagingEndpointProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb'
|
57
|
+
autoload :IotHubNameAvailabilityInfo, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb'
|
58
|
+
autoload :RouteProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/route_properties.rb'
|
59
|
+
autoload :ExportDevicesRequest, '2017-01-19/generated/azure_mgmt_iot_hub/models/export_devices_request.rb'
|
60
|
+
autoload :IotHubProperties, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb'
|
61
|
+
autoload :ImportDevicesRequest, '2017-01-19/generated/azure_mgmt_iot_hub/models/import_devices_request.rb'
|
62
|
+
autoload :IotHubDescription, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb'
|
63
|
+
autoload :AccessRights, '2017-01-19/generated/azure_mgmt_iot_hub/models/access_rights.rb'
|
64
|
+
autoload :IpFilterActionType, '2017-01-19/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb'
|
65
|
+
autoload :RoutingSource, '2017-01-19/generated/azure_mgmt_iot_hub/models/routing_source.rb'
|
66
|
+
autoload :OperationMonitoringLevel, '2017-01-19/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb'
|
67
|
+
autoload :Capabilities, '2017-01-19/generated/azure_mgmt_iot_hub/models/capabilities.rb'
|
68
|
+
autoload :IotHubSku, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb'
|
69
|
+
autoload :IotHubSkuTier, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb'
|
70
|
+
autoload :JobType, '2017-01-19/generated/azure_mgmt_iot_hub/models/job_type.rb'
|
71
|
+
autoload :JobStatus, '2017-01-19/generated/azure_mgmt_iot_hub/models/job_status.rb'
|
72
|
+
autoload :IotHubScaleType, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb'
|
73
|
+
autoload :IotHubNameUnavailabilityReason, '2017-01-19/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb'
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,129 @@
|
|
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::V2017_01_19
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class IotHubClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] The subscription identifier.
|
21
|
+
attr_accessor :subscription_id
|
22
|
+
|
23
|
+
# @return [String] The version of the API.
|
24
|
+
attr_reader :api_version
|
25
|
+
|
26
|
+
# @return [String] Gets or sets the preferred language for the response.
|
27
|
+
attr_accessor :accept_language
|
28
|
+
|
29
|
+
# @return [Integer] Gets or sets the retry timeout in seconds for Long
|
30
|
+
# Running Operations. Default value is 30.
|
31
|
+
attr_accessor :long_running_operation_retry_timeout
|
32
|
+
|
33
|
+
# @return [Boolean] When set to true a unique x-ms-client-request-id value
|
34
|
+
# is generated and included in each request. Default is true.
|
35
|
+
attr_accessor :generate_client_request_id
|
36
|
+
|
37
|
+
# @return [IotHubResource] iot_hub_resource
|
38
|
+
attr_reader :iot_hub_resource
|
39
|
+
|
40
|
+
#
|
41
|
+
# Creates initializes a new instance of the IotHubClient class.
|
42
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
43
|
+
# @param base_url [String] the base URI of the service.
|
44
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
45
|
+
#
|
46
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
47
|
+
super(credentials, options)
|
48
|
+
@base_url = base_url || 'https://management.azure.com'
|
49
|
+
|
50
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
51
|
+
@credentials = credentials
|
52
|
+
|
53
|
+
@iot_hub_resource = IotHubResource.new(self)
|
54
|
+
@api_version = '2017-01-19'
|
55
|
+
@accept_language = 'en-US'
|
56
|
+
@long_running_operation_retry_timeout = 30
|
57
|
+
@generate_client_request_id = true
|
58
|
+
add_telemetry
|
59
|
+
end
|
60
|
+
|
61
|
+
#
|
62
|
+
# Makes a request and returns the body of the response.
|
63
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
64
|
+
# @param path [String] the path, relative to {base_url}.
|
65
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
66
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
67
|
+
# Example:
|
68
|
+
#
|
69
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
70
|
+
# path = "/path"
|
71
|
+
# options = {
|
72
|
+
# body: request_content,
|
73
|
+
# query_params: {'api-version' => '2016-02-01'}
|
74
|
+
# }
|
75
|
+
# result = @client.make_request(:put, path, options)
|
76
|
+
#
|
77
|
+
def make_request(method, path, options = {})
|
78
|
+
result = make_request_with_http_info(method, path, options)
|
79
|
+
result.body unless result.nil?
|
80
|
+
end
|
81
|
+
|
82
|
+
#
|
83
|
+
# Makes a request and returns the operation response.
|
84
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
85
|
+
# @param path [String] the path, relative to {base_url}.
|
86
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
87
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
88
|
+
#
|
89
|
+
def make_request_with_http_info(method, path, options = {})
|
90
|
+
result = make_request_async(method, path, options).value!
|
91
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
92
|
+
result
|
93
|
+
end
|
94
|
+
|
95
|
+
#
|
96
|
+
# Makes a request asynchronously.
|
97
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
98
|
+
# @param path [String] the path, relative to {base_url}.
|
99
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
100
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
101
|
+
#
|
102
|
+
def make_request_async(method, path, options = {})
|
103
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
104
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
105
|
+
|
106
|
+
request_url = options[:base_url] || @base_url
|
107
|
+
|
108
|
+
request_headers = @request_headers
|
109
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
110
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
111
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
112
|
+
|
113
|
+
super(request_url, method, path, options)
|
114
|
+
end
|
115
|
+
|
116
|
+
|
117
|
+
private
|
118
|
+
#
|
119
|
+
# Adds telemetry information.
|
120
|
+
#
|
121
|
+
def add_telemetry
|
122
|
+
sdk_information = 'azure_mgmt_iot_hub'
|
123
|
+
if defined? Azure::IotHub::Mgmt::V2017_01_19::VERSION
|
124
|
+
sdk_information = "#{sdk_information}/#{Azure::IotHub::Mgmt::V2017_01_19::VERSION}"
|
125
|
+
end
|
126
|
+
add_user_agent_information(sdk_information)
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|