azure_mgmt_iot_hub 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_iot_hub.rb +21 -16
  3. data/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb +5 -1
  4. data/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +0 -0
  5. data/lib/generated/azure_mgmt_iot_hub/models/access_rights.rb +0 -0
  6. data/lib/generated/azure_mgmt_iot_hub/models/capabilities.rb +0 -0
  7. data/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +0 -0
  8. data/lib/generated/azure_mgmt_iot_hub/models/error_details.rb +0 -0
  9. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +0 -0
  10. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +0 -0
  11. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +0 -0
  12. data/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +0 -0
  13. data/lib/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb +5 -5
  14. data/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +0 -0
  15. data/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +0 -0
  16. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +0 -0
  17. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +0 -0
  18. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +0 -0
  19. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +0 -0
  20. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +0 -0
  21. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +1 -1
  22. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +0 -0
  23. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +0 -0
  24. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +0 -0
  25. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +0 -0
  26. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +0 -0
  27. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +0 -0
  28. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +0 -0
  29. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +0 -0
  30. data/lib/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +0 -0
  31. data/lib/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +0 -0
  32. data/lib/generated/azure_mgmt_iot_hub/models/job_response.rb +0 -0
  33. data/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +0 -0
  34. data/lib/generated/azure_mgmt_iot_hub/models/job_status.rb +0 -0
  35. data/lib/generated/azure_mgmt_iot_hub/models/job_type.rb +0 -0
  36. data/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +0 -0
  37. data/lib/generated/azure_mgmt_iot_hub/models/operation.rb +58 -0
  38. data/lib/generated/azure_mgmt_iot_hub/models/operation_display.rb +68 -0
  39. data/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +0 -0
  40. data/lib/generated/azure_mgmt_iot_hub/models/operation_list_result.rb +99 -0
  41. data/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +0 -0
  42. data/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +0 -0
  43. data/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +0 -0
  44. data/lib/generated/azure_mgmt_iot_hub/models/route_properties.rb +2 -2
  45. data/lib/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb +20 -0
  46. data/lib/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb +5 -5
  47. data/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb +4 -4
  48. data/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb +4 -4
  49. data/lib/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb +147 -0
  50. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +0 -0
  51. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +0 -0
  52. data/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +0 -0
  53. data/lib/generated/azure_mgmt_iot_hub/module_definition.rb +0 -0
  54. data/lib/generated/azure_mgmt_iot_hub/operations.rb +213 -0
  55. data/lib/generated/azure_mgmt_iot_hub/version.rb +1 -1
  56. metadata +9 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8a730b7aa3d764c38819836495bb12bf8cdaf41
4
- data.tar.gz: 6afad72644bda07f89a2b857b696cc7145c6d825
3
+ metadata.gz: 262cd88bf9d18fbffdabb5d237e1209e2a87331d
4
+ data.tar.gz: d96cf7e89bf50eee61c31590cdc6b69ceb97ffba
5
5
  SHA512:
6
- metadata.gz: 4c27d53b6b831bb7f7be4c23e5e795ea9aa9119cf4654fa62237a09f67893b2239bc99c121005aa3f6cd515d6b1521c1bbf136e35387ed8a600311eaa3e5366e
7
- data.tar.gz: 946a40a86bd582674000613b29a9b4c9667776c706efe456306cf98dddd27d8f2a9b7c869cc31d15105587774b41ad26162c2499b6577e636ae455b6725a6dea
6
+ metadata.gz: 9a2f7ec1b068cbe743e7bd9b2b6c897a157610a753065e22f2dbd94a5617e8d3f62bcdd65a427ba6e966f6653fea0a5fedf06452fe301ab1914d6b1acfa53167
7
+ data.tar.gz: 54bc4b2401238d604a8542d8843fe7ef090bf3ea94ba4cc26754c3095b2cd99c8e43229666816a96b51e603433d52653c13eb407b7215b4212d813a1e2f0b034
@@ -20,43 +20,48 @@ require 'generated/azure_mgmt_iot_hub/module_definition'
20
20
  require 'ms_rest_azure'
21
21
 
22
22
  module Azure::ARM::IotHub
23
+ autoload :Operations, 'generated/azure_mgmt_iot_hub/operations.rb'
23
24
  autoload :IotHubResource, 'generated/azure_mgmt_iot_hub/iot_hub_resource.rb'
24
25
  autoload :IotHubClient, 'generated/azure_mgmt_iot_hub/iot_hub_client.rb'
25
26
 
26
27
  module Models
27
- autoload :SharedAccessSignatureAuthorizationRule, 'generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb'
28
28
  autoload :SharedAccessSignatureAuthorizationRuleListResult, 'generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb'
29
+ autoload :SharedAccessSignatureAuthorizationRule, 'generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb'
30
+ autoload :OperationDisplay, 'generated/azure_mgmt_iot_hub/models/operation_display.rb'
29
31
  autoload :EventHubProperties, 'generated/azure_mgmt_iot_hub/models/event_hub_properties.rb'
30
- autoload :ErrorDetails, 'generated/azure_mgmt_iot_hub/models/error_details.rb'
32
+ autoload :Operation, 'generated/azure_mgmt_iot_hub/models/operation.rb'
31
33
  autoload :RoutingServiceBusTopicEndpointProperties, 'generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb'
34
+ autoload :OperationListResult, 'generated/azure_mgmt_iot_hub/models/operation_list_result.rb'
35
+ autoload :RoutingStorageContainerProperties, 'generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb'
36
+ autoload :ErrorDetails, 'generated/azure_mgmt_iot_hub/models/error_details.rb'
37
+ autoload :RouteProperties, 'generated/azure_mgmt_iot_hub/models/route_properties.rb'
32
38
  autoload :IotHubQuotaMetricInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb'
33
- autoload :RoutingEndpoints, 'generated/azure_mgmt_iot_hub/models/routing_endpoints.rb'
39
+ autoload :RoutingProperties, 'generated/azure_mgmt_iot_hub/models/routing_properties.rb'
34
40
  autoload :IotHubQuotaMetricInfoListResult, 'generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb'
35
- autoload :FallbackRouteProperties, 'generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb'
41
+ autoload :MessagingEndpointProperties, 'generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb'
36
42
  autoload :RegistryStatistics, 'generated/azure_mgmt_iot_hub/models/registry_statistics.rb'
37
- autoload :StorageEndpointProperties, 'generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb'
43
+ autoload :CloudToDeviceProperties, 'generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb'
38
44
  autoload :JobResponse, 'generated/azure_mgmt_iot_hub/models/job_response.rb'
39
- autoload :FeedbackProperties, 'generated/azure_mgmt_iot_hub/models/feedback_properties.rb'
45
+ autoload :IotHubProperties, 'generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb'
40
46
  autoload :JobResponseListResult, 'generated/azure_mgmt_iot_hub/models/job_response_list_result.rb'
41
- autoload :OperationsMonitoringProperties, 'generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb'
42
47
  autoload :IotHubCapacity, 'generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb'
43
- autoload :IotHubSkuInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb'
48
+ autoload :RoutingServiceBusQueueEndpointProperties, 'generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb'
44
49
  autoload :IotHubSkuDescription, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb'
45
- autoload :IpFilterRule, 'generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb'
50
+ autoload :RoutingEndpoints, 'generated/azure_mgmt_iot_hub/models/routing_endpoints.rb'
46
51
  autoload :EventHubConsumerGroupsListResult, 'generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb'
47
- autoload :RoutingEventHubProperties, 'generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb'
52
+ autoload :StorageEndpointProperties, 'generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb'
48
53
  autoload :EventHubConsumerGroupInfo, 'generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb'
49
- autoload :RoutingProperties, 'generated/azure_mgmt_iot_hub/models/routing_properties.rb'
54
+ autoload :OperationsMonitoringProperties, 'generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb'
50
55
  autoload :IotHubSkuDescriptionListResult, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb'
51
- autoload :CloudToDeviceProperties, 'generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb'
56
+ autoload :IpFilterRule, 'generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb'
52
57
  autoload :IotHubDescriptionListResult, 'generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb'
53
- autoload :RoutingServiceBusQueueEndpointProperties, 'generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb'
58
+ autoload :FallbackRouteProperties, 'generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb'
54
59
  autoload :OperationInputs, 'generated/azure_mgmt_iot_hub/models/operation_inputs.rb'
55
- autoload :MessagingEndpointProperties, 'generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb'
60
+ autoload :IotHubSkuInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb'
56
61
  autoload :IotHubNameAvailabilityInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb'
57
- autoload :RouteProperties, 'generated/azure_mgmt_iot_hub/models/route_properties.rb'
62
+ autoload :FeedbackProperties, 'generated/azure_mgmt_iot_hub/models/feedback_properties.rb'
58
63
  autoload :ExportDevicesRequest, 'generated/azure_mgmt_iot_hub/models/export_devices_request.rb'
59
- autoload :IotHubProperties, 'generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb'
64
+ autoload :RoutingEventHubProperties, 'generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb'
60
65
  autoload :ImportDevicesRequest, 'generated/azure_mgmt_iot_hub/models/import_devices_request.rb'
61
66
  autoload :IotHubDescription, 'generated/azure_mgmt_iot_hub/models/iot_hub_description.rb'
62
67
  autoload :AccessRights, 'generated/azure_mgmt_iot_hub/models/access_rights.rb'
@@ -34,6 +34,9 @@ module Azure::ARM::IotHub
34
34
  # is generated and included in each request. Default is true.
35
35
  attr_accessor :generate_client_request_id
36
36
 
37
+ # @return [Operations] operations
38
+ attr_reader :operations
39
+
37
40
  # @return [IotHubResource] iot_hub_resource
38
41
  attr_reader :iot_hub_resource
39
42
 
@@ -50,8 +53,9 @@ module Azure::ARM::IotHub
50
53
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
51
54
  @credentials = credentials
52
55
 
56
+ @operations = Operations.new(self)
53
57
  @iot_hub_resource = IotHubResource.new(self)
54
- @api_version = '2017-01-19'
58
+ @api_version = '2017-07-01'
55
59
  @accept_language = 'en-US'
56
60
  @long_running_operation_retry_timeout = 30
57
61
  @generate_client_request_id = true
@@ -6,8 +6,8 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The properties related to the fallback route based on which the IoT hub
10
- # routes messages to the fallback endpoint.
9
+ # The properties of the fallback route. IoT Hub uses these properties when
10
+ # it routes messages to the fallback endpoint.
11
11
  #
12
12
  class FallbackRouteProperties
13
13
 
@@ -15,7 +15,7 @@ module Azure::ARM::IotHub
15
15
 
16
16
  include MsRest::JSONable
17
17
  # @return [String] The source to which the routing rule is to be applied
18
- # to. e.g. DeviceMessages. Default value: 'DeviceMessages' .
18
+ # to. For example, DeviceMessages. Default value: 'DeviceMessages' .
19
19
  attr_accessor :source
20
20
 
21
21
  # @return [String] The condition which is evaluated in order to apply the
@@ -29,8 +29,8 @@ module Azure::ARM::IotHub
29
29
  # allowed.
30
30
  attr_accessor :endpoint_names
31
31
 
32
- # @return [Boolean] Used to specify whether the fallback route is enabled
33
- # or not.
32
+ # @return [Boolean] Used to specify whether the fallback route is
33
+ # enabled.
34
34
  attr_accessor :is_enabled
35
35
 
36
36
 
@@ -54,7 +54,7 @@ module Azure::ARM::IotHub
54
54
  # @return [CloudToDeviceProperties]
55
55
  attr_accessor :cloud_to_device
56
56
 
57
- # @return [String] Comments.
57
+ # @return [String] IoT hub comments.
58
58
  attr_accessor :comments
59
59
 
60
60
  # @return [OperationsMonitoringProperties]
@@ -0,0 +1,58 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
+ # IoT Hub REST API operation
10
+ #
11
+ class Operation
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] Operation name: {provider}/{resource}/{read | write |
17
+ # action | delete}
18
+ attr_accessor :name
19
+
20
+ # @return [OperationDisplay] The object that represents the operation.
21
+ attr_accessor :display
22
+
23
+
24
+ #
25
+ # Mapper for Operation class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'Operation',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'Operation',
35
+ model_properties: {
36
+ name: {
37
+ required: false,
38
+ read_only: true,
39
+ serialized_name: 'name',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ display: {
45
+ required: false,
46
+ serialized_name: 'display',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'OperationDisplay'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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 object that represents the operation.
10
+ #
11
+ class OperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] Service provider: Microsoft Devices
17
+ attr_accessor :provider
18
+
19
+ # @return [String] Resource Type: IotHubs
20
+ attr_accessor :resource
21
+
22
+ # @return [String] Name of the operation
23
+ attr_accessor :operation
24
+
25
+
26
+ #
27
+ # Mapper for OperationDisplay class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'Operation_display',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'OperationDisplay',
37
+ model_properties: {
38
+ provider: {
39
+ required: false,
40
+ read_only: true,
41
+ serialized_name: 'provider',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ resource: {
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'resource',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ operation: {
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'operation',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,99 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
+ # Result of the request to list IoT Hub operations. It contains a list of
10
+ # operations and a URL link to get the next set of results.
11
+ #
12
+ class OperationListResult
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<Operation>] List of IoT Hub operations supported by the
18
+ # Microsoft.Devices resource provider.
19
+ attr_accessor :value
20
+
21
+ # @return [String] URL to get the next set of operation list results if
22
+ # there are any.
23
+ attr_accessor :next_link
24
+
25
+ # return [Proc] with next page method call.
26
+ attr_accessor :next_method
27
+
28
+ #
29
+ # Gets the rest of the items for the request, enabling auto-pagination.
30
+ #
31
+ # @return [Array<Operation>] operation results.
32
+ #
33
+ def get_all_items
34
+ items = @value
35
+ page = self
36
+ while page.next_link != nil do
37
+ page = page.get_next_page
38
+ items.concat(page.value)
39
+ end
40
+ items
41
+ end
42
+
43
+ #
44
+ # Gets the next page of results.
45
+ #
46
+ # @return [OperationListResult] with next page content.
47
+ #
48
+ def get_next_page
49
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
50
+ unless response.nil?
51
+ @next_link = response.body.next_link
52
+ @value = response.body.value
53
+ self
54
+ end
55
+ end
56
+
57
+ #
58
+ # Mapper for OperationListResult class as Ruby Hash.
59
+ # This will be used for serialization/deserialization.
60
+ #
61
+ def self.mapper()
62
+ {
63
+ required: false,
64
+ serialized_name: 'OperationListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'OperationListResult',
68
+ model_properties: {
69
+ value: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ required: false,
77
+ serialized_name: 'OperationElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'Operation'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'nextLink',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end
@@ -16,7 +16,7 @@ module Azure::ARM::IotHub
16
16
  include MsRest::JSONable
17
17
  # @return [String] The name of the route. The name can only include
18
18
  # alphanumeric characters, periods, underscores, hyphens, has a maximum
19
- # length of 64 characters, and must be unique.
19
+ # length of 64 characters, and must be unique.
20
20
  attr_accessor :name
21
21
 
22
22
  # @return [RoutingSource] The source that the routing rule is to be
@@ -27,7 +27,7 @@ module Azure::ARM::IotHub
27
27
 
28
28
  # @return [String] The condition that is evaluated to apply the routing
29
29
  # rule. If no condition is provided, it evaluates to true by default. For
30
- # grammar, See:
30
+ # grammar, see:
31
31
  # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
32
32
  attr_accessor :condition
33
33
 
@@ -31,6 +31,11 @@ module Azure::ARM::IotHub
31
31
  # This list does not include the built-in Event Hubs endpoint.
32
32
  attr_accessor :event_hubs
33
33
 
34
+ # @return [Array<RoutingStorageContainerProperties>] The list of storage
35
+ # container endpoints that IoT hub routes messages to, based on the
36
+ # routing rules.
37
+ attr_accessor :storage_containers
38
+
34
39
 
35
40
  #
36
41
  # Mapper for RoutingEndpoints class as Ruby Hash.
@@ -88,6 +93,21 @@ module Azure::ARM::IotHub
88
93
  }
89
94
  }
90
95
  }
96
+ },
97
+ storage_containers: {
98
+ required: false,
99
+ serialized_name: 'storageContainers',
100
+ type: {
101
+ name: 'Sequence',
102
+ element: {
103
+ required: false,
104
+ serialized_name: 'RoutingStorageContainerPropertiesElementType',
105
+ type: {
106
+ name: 'Composite',
107
+ class_name: 'RoutingStorageContainerProperties'
108
+ }
109
+ }
110
+ }
91
111
  }
92
112
  }
93
113
  }
@@ -16,11 +16,11 @@ module Azure::ARM::IotHub
16
16
  # @return [String] The connection string of the event hub endpoint.
17
17
  attr_accessor :connection_string
18
18
 
19
- # @return [String] The name of the event hub endpoint. The name can only
20
- # include alphanumeric characters, periods, underscores, hyphens and has
21
- # a maximum length of 64 characters. The following names are reserved;
22
- # events, operationsMonitoringEvents, fileNotifications, $default.
23
- # Endpoint names must be unique across endpoint types.
19
+ # @return [String] The name that identifies this endpoint. The name can
20
+ # only include alphanumeric characters, periods, underscores, hyphens and
21
+ # has a maximum length of 64 characters. The following names are
22
+ # reserved: events, operationsMonitoringEvents, fileNotifications,
23
+ # $default. Endpoint names must be unique across endpoint types.
24
24
  attr_accessor :name
25
25
 
26
26
  # @return [String] The subscription identifier of the event hub endpoint.
@@ -17,10 +17,10 @@ module Azure::ARM::IotHub
17
17
  # endpoint.
18
18
  attr_accessor :connection_string
19
19
 
20
- # @return [String] The name of the service bus queue endpoint. The name
21
- # can only include alphanumeric characters, periods, underscores, hyphens
22
- # and has a maximum length of 64 characters. The following names are
23
- # reserved; events, operationsMonitoringEvents, fileNotifications,
20
+ # @return [String] The name that identifies this endpoint. The name can
21
+ # only include alphanumeric characters, periods, underscores, hyphens and
22
+ # has a maximum length of 64 characters. The following names are
23
+ # reserved: events, operationsMonitoringEvents, fileNotifications,
24
24
  # $default. Endpoint names must be unique across endpoint types. The name
25
25
  # need not be the same as the actual queue name.
26
26
  attr_accessor :name
@@ -17,10 +17,10 @@ module Azure::ARM::IotHub
17
17
  # endpoint.
18
18
  attr_accessor :connection_string
19
19
 
20
- # @return [String] The name of the service bus topic endpoint. The name
21
- # can only include alphanumeric characters, periods, underscores, hyphens
22
- # and has a maximum length of 64 characters. The following names are
23
- # reserved; events, operationsMonitoringEvents, fileNotifications,
20
+ # @return [String] The name that identifies this endpoint. The name can
21
+ # only include alphanumeric characters, periods, underscores, hyphens and
22
+ # has a maximum length of 64 characters. The following names are
23
+ # reserved: events, operationsMonitoringEvents, fileNotifications,
24
24
  # $default. Endpoint names must be unique across endpoint types. The
25
25
  # name need not be the same as the actual topic name.
26
26
  attr_accessor :name
@@ -0,0 +1,147 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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 a storage container endpoint.
10
+ #
11
+ class RoutingStorageContainerProperties
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The connection string of the storage account.
17
+ attr_accessor :connection_string
18
+
19
+ # @return [String] The name that identifies this endpoint. The name can
20
+ # only include alphanumeric characters, periods, underscores, hyphens and
21
+ # has a maximum length of 64 characters. The following names are
22
+ # reserved: events, operationsMonitoringEvents, fileNotifications,
23
+ # $default. Endpoint names must be unique across endpoint types.
24
+ attr_accessor :name
25
+
26
+ # @return [String] The subscription identifier of the storage account.
27
+ attr_accessor :subscription_id
28
+
29
+ # @return [String] The name of the resource group of the storage account.
30
+ attr_accessor :resource_group
31
+
32
+ # @return [String] The name of storage container in the storage account.
33
+ attr_accessor :container_name
34
+
35
+ # @return [String] File name format for the blob. Default format is
36
+ # {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are
37
+ # mandatory but can be reordered.
38
+ attr_accessor :file_name_format
39
+
40
+ # @return [Integer] Time interval at which blobs are written to storage.
41
+ # Value should be between 60 and 720 seconds. Default value is 300
42
+ # seconds.
43
+ attr_accessor :batch_frequency_in_seconds
44
+
45
+ # @return [Integer] Maximum number of bytes for each blob written to
46
+ # storage. Value should be between 10485760(10MB) and 524288000(500MB).
47
+ # Default value is 314572800(300MB).
48
+ attr_accessor :max_chunk_size_in_bytes
49
+
50
+ # @return [String] Encoding that is used to serialize messages to blobs.
51
+ # Supported values are 'avro' and 'avrodeflate'. Default value is 'avro'.
52
+ attr_accessor :encoding
53
+
54
+
55
+ #
56
+ # Mapper for RoutingStorageContainerProperties class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ required: false,
62
+ serialized_name: 'RoutingStorageContainerProperties',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'RoutingStorageContainerProperties',
66
+ model_properties: {
67
+ connection_string: {
68
+ required: true,
69
+ serialized_name: 'connectionString',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ name: {
75
+ required: true,
76
+ serialized_name: 'name',
77
+ constraints: {
78
+ Pattern: '^[A-Za-z0-9-._]{1,64}$'
79
+ },
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ subscription_id: {
85
+ required: false,
86
+ serialized_name: 'subscriptionId',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ resource_group: {
92
+ required: false,
93
+ serialized_name: 'resourceGroup',
94
+ type: {
95
+ name: 'String'
96
+ }
97
+ },
98
+ container_name: {
99
+ required: true,
100
+ serialized_name: 'containerName',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
105
+ file_name_format: {
106
+ required: false,
107
+ serialized_name: 'fileNameFormat',
108
+ type: {
109
+ name: 'String'
110
+ }
111
+ },
112
+ batch_frequency_in_seconds: {
113
+ required: false,
114
+ serialized_name: 'batchFrequencyInSeconds',
115
+ constraints: {
116
+ InclusiveMaximum: 720,
117
+ InclusiveMinimum: 60
118
+ },
119
+ type: {
120
+ name: 'Number'
121
+ }
122
+ },
123
+ max_chunk_size_in_bytes: {
124
+ required: false,
125
+ serialized_name: 'maxChunkSizeInBytes',
126
+ constraints: {
127
+ InclusiveMaximum: 524288000,
128
+ InclusiveMinimum: 10485760
129
+ },
130
+ type: {
131
+ name: 'Number'
132
+ }
133
+ },
134
+ encoding: {
135
+ required: false,
136
+ serialized_name: 'encoding',
137
+ type: {
138
+ name: 'String'
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ end
145
+ end
146
+ end
147
+ end
@@ -0,0 +1,213 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::IotHub
7
+ #
8
+ # Use this API to manage the IoT hubs in your Azure subscription.
9
+ #
10
+ class Operations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Operations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [IotHubClient] reference to the IotHubClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists all of the available IoT Hub REST API operations.
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def list(custom_headers = nil)
33
+ first_page = list_as_lazy(custom_headers)
34
+ first_page.get_all_items
35
+ end
36
+
37
+ #
38
+ # Lists all of the available IoT Hub REST API operations.
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers = nil)
46
+ list_async(custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Lists all of the available IoT Hub REST API operations.
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers = nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+
63
+ # Set Headers
64
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
65
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
66
+ path_template = 'providers/Microsoft.Devices/operations'
67
+
68
+ request_url = @base_url || @client.base_url
69
+
70
+ options = {
71
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
72
+ query_params: {'api-version' => @client.api_version},
73
+ headers: request_headers.merge(custom_headers || {}),
74
+ base_url: request_url
75
+ }
76
+ promise = @client.make_request_async(:get, path_template, options)
77
+
78
+ promise = promise.then do |result|
79
+ http_response = result.response
80
+ status_code = http_response.status
81
+ response_content = http_response.body
82
+ unless status_code == 200
83
+ error_model = JSON.load(response_content)
84
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
85
+ end
86
+
87
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
88
+ # Deserialize Response
89
+ if status_code == 200
90
+ begin
91
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
92
+ result_mapper = Azure::ARM::IotHub::Models::OperationListResult.mapper()
93
+ result.body = @client.deserialize(result_mapper, parsed_response)
94
+ rescue Exception => e
95
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
96
+ end
97
+ end
98
+
99
+ result
100
+ end
101
+
102
+ promise.execute
103
+ end
104
+
105
+ #
106
+ # Lists all of the available IoT Hub REST API operations.
107
+ #
108
+ # @param next_page_link [String] The NextLink from the previous successful call
109
+ # to List operation.
110
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
111
+ # will be added to the HTTP request.
112
+ #
113
+ # @return [OperationListResult] operation results.
114
+ #
115
+ def list_next(next_page_link, custom_headers = nil)
116
+ response = list_next_async(next_page_link, custom_headers).value!
117
+ response.body unless response.nil?
118
+ end
119
+
120
+ #
121
+ # Lists all of the available IoT Hub REST API operations.
122
+ #
123
+ # @param next_page_link [String] The NextLink from the previous successful call
124
+ # to List operation.
125
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
126
+ # will be added to the HTTP request.
127
+ #
128
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
129
+ #
130
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
131
+ list_next_async(next_page_link, custom_headers).value!
132
+ end
133
+
134
+ #
135
+ # Lists all of the available IoT Hub REST API operations.
136
+ #
137
+ # @param next_page_link [String] The NextLink from the previous successful call
138
+ # to List operation.
139
+ # @param [Hash{String => String}] A hash of custom headers that will be added
140
+ # to the HTTP request.
141
+ #
142
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
143
+ #
144
+ def list_next_async(next_page_link, custom_headers = nil)
145
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
146
+
147
+
148
+ request_headers = {}
149
+
150
+ # Set Headers
151
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
152
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
153
+ path_template = '{nextLink}'
154
+
155
+ request_url = @base_url || @client.base_url
156
+
157
+ options = {
158
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
159
+ skip_encoding_path_params: {'nextLink' => next_page_link},
160
+ headers: request_headers.merge(custom_headers || {}),
161
+ base_url: request_url
162
+ }
163
+ promise = @client.make_request_async(:get, path_template, options)
164
+
165
+ promise = promise.then do |result|
166
+ http_response = result.response
167
+ status_code = http_response.status
168
+ response_content = http_response.body
169
+ unless status_code == 200
170
+ error_model = JSON.load(response_content)
171
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
172
+ end
173
+
174
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
175
+ # Deserialize Response
176
+ if status_code == 200
177
+ begin
178
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
179
+ result_mapper = Azure::ARM::IotHub::Models::OperationListResult.mapper()
180
+ result.body = @client.deserialize(result_mapper, parsed_response)
181
+ rescue Exception => e
182
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
183
+ end
184
+ end
185
+
186
+ result
187
+ end
188
+
189
+ promise.execute
190
+ end
191
+
192
+ #
193
+ # Lists all of the available IoT Hub REST API operations.
194
+ #
195
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
196
+ # will be added to the HTTP request.
197
+ #
198
+ # @return [OperationListResult] which provide lazy access to pages of the
199
+ # response.
200
+ #
201
+ def list_as_lazy(custom_headers = nil)
202
+ response = list_async(custom_headers).value!
203
+ unless response.nil?
204
+ page = response.body
205
+ page.next_method = Proc.new do |next_page_link|
206
+ list_next_async(next_page_link, custom_headers)
207
+ end
208
+ page
209
+ end
210
+ end
211
+
212
+ end
213
+ end
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::IotHub
7
- VERSION = '0.11.0'
7
+ VERSION = '0.12.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_iot_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-19 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.8.0
75
+ version: 0.9.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.8.0
82
+ version: 0.9.0
83
83
  description: Microsoft Azure IoT Hub Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -123,7 +123,10 @@ files:
123
123
  - lib/generated/azure_mgmt_iot_hub/models/job_status.rb
124
124
  - lib/generated/azure_mgmt_iot_hub/models/job_type.rb
125
125
  - lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb
126
+ - lib/generated/azure_mgmt_iot_hub/models/operation.rb
127
+ - lib/generated/azure_mgmt_iot_hub/models/operation_display.rb
126
128
  - lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb
129
+ - lib/generated/azure_mgmt_iot_hub/models/operation_list_result.rb
127
130
  - lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb
128
131
  - lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb
129
132
  - lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb
@@ -134,10 +137,12 @@ files:
134
137
  - lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb
135
138
  - lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb
136
139
  - lib/generated/azure_mgmt_iot_hub/models/routing_source.rb
140
+ - lib/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb
137
141
  - lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb
138
142
  - lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb
139
143
  - lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb
140
144
  - lib/generated/azure_mgmt_iot_hub/module_definition.rb
145
+ - lib/generated/azure_mgmt_iot_hub/operations.rb
141
146
  - lib/generated/azure_mgmt_iot_hub/version.rb
142
147
  homepage: https://aka.ms/azure-sdk-for-ruby
143
148
  licenses: