azure_mgmt_iot_hub 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_iot_hub.rb +14 -6
  3. data/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb +2 -2
  4. data/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +88 -89
  5. data/lib/generated/azure_mgmt_iot_hub/models/access_rights.rb +1 -1
  6. data/lib/generated/azure_mgmt_iot_hub/models/capabilities.rb +1 -1
  7. data/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +2 -1
  8. data/lib/generated/azure_mgmt_iot_hub/models/error_details.rb +2 -1
  9. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +2 -1
  10. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +2 -1
  11. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +2 -1
  12. data/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +2 -1
  13. data/lib/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb +96 -0
  14. data/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +2 -1
  15. data/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +2 -1
  16. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +2 -1
  17. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +2 -1
  18. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +2 -1
  19. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +2 -1
  20. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +1 -1
  21. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +13 -1
  22. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +2 -1
  23. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +2 -1
  24. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +1 -1
  25. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +1 -1
  26. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +2 -1
  27. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +2 -1
  28. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +2 -1
  29. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +1 -1
  30. data/lib/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +1 -1
  31. data/lib/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +2 -1
  32. data/lib/generated/azure_mgmt_iot_hub/models/job_response.rb +3 -2
  33. data/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +2 -1
  34. data/lib/generated/azure_mgmt_iot_hub/models/job_status.rb +1 -1
  35. data/lib/generated/azure_mgmt_iot_hub/models/job_type.rb +1 -1
  36. data/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +5 -4
  37. data/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +2 -1
  38. data/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +1 -1
  39. data/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +5 -2
  40. data/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +2 -1
  41. data/lib/generated/azure_mgmt_iot_hub/models/route_properties.rb +110 -0
  42. data/lib/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb +98 -0
  43. data/lib/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb +83 -0
  44. data/lib/generated/azure_mgmt_iot_hub/models/routing_properties.rb +84 -0
  45. data/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb +86 -0
  46. data/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb +86 -0
  47. data/lib/generated/azure_mgmt_iot_hub/models/routing_source.rb +18 -0
  48. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +2 -1
  49. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +2 -1
  50. data/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +2 -1
  51. data/lib/generated/azure_mgmt_iot_hub/module_definition.rb +1 -1
  52. data/lib/generated/azure_mgmt_iot_hub/version.rb +2 -2
  53. metadata +12 -4
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::IotHub
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String] The name of the IP filter rule.
16
17
  attr_accessor :filter_name
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,10 +12,11 @@ module Azure::ARM::IotHub
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String] The job identifier.
16
17
  attr_accessor :job_id
17
18
 
18
- # @return [DateTime] The start time of the Job.
19
+ # @return [DateTime] The start time of the job.
19
20
  attr_accessor :start_time_utc
20
21
 
21
22
  # @return [DateTime] The time the job stopped processing.
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::IotHub
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Array<JobResponse>] The array of JobResponse objects.
16
17
  attr_accessor :value
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,18 +12,19 @@ module Azure::ARM::IotHub
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Duration] The lock duration. See:
16
- # https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
17
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
17
18
  attr_accessor :lock_duration_as_iso8601
18
19
 
19
20
  # @return [Duration] The period of time for which a message is available
20
21
  # 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
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
22
23
  attr_accessor :ttl_as_iso8601
23
24
 
24
25
  # @return [Integer] The number of times the IoT hub attempts to deliver a
25
26
  # message. See:
26
- # https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
27
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
27
28
  attr_accessor :max_delivery_count
28
29
 
29
30
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::IotHub
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String] The name of the IoT hub to check.
16
17
  attr_accessor :name
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,12 +8,15 @@ module Azure::ARM::IotHub
8
8
  #
9
9
  # The operations monitoring properties for the IoT hub. The possible keys
10
10
  # to the dictionary are Connections, DeviceTelemetry, C2DCommands,
11
- # DeviceIdentityOperations, FileUploadOperations.
11
+ # DeviceIdentityOperations, FileUploadOperations, Routes,
12
+ # D2CTwinOperations, C2DTwinOperations, TwinQueries, JobsOperations,
13
+ # DirectMethods.
12
14
  #
13
15
  class OperationsMonitoringProperties
14
16
 
15
17
  include MsRestAzure
16
18
 
19
+ include MsRest::JSONable
17
20
  # @return [Hash{String => OperationMonitoringLevel}]
18
21
  attr_accessor :events
19
22
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::IotHub
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Integer] The total count of devices in the identity registry.
16
17
  attr_accessor :total_device_count
17
18
 
@@ -0,0 +1,110 @@
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 of a routing rule that your IoT hub uses to route messages
10
+ # to endpoints.
11
+ #
12
+ class RouteProperties
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [String] The name of the route. The name can only include
18
+ # alphanumeric characters, periods, underscores, hyphens, has a maximum
19
+ # length of 64 characters, and must be unique.
20
+ attr_accessor :name
21
+
22
+ # @return [RoutingSource] The source that the routing rule is to be
23
+ # applied to, such as DeviceMessages. Possible values include:
24
+ # 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents',
25
+ # 'DeviceJobLifecycleEvents'
26
+ attr_accessor :source
27
+
28
+ # @return [String] The condition that is evaluated to apply the routing
29
+ # rule. If no condition is provided, it evaluates to true by default. For
30
+ # grammar, See:
31
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
32
+ attr_accessor :condition
33
+
34
+ # @return [Array<String>] The list of endpoints to which messages that
35
+ # satisfy the condition are routed. Currently only one endpoint is
36
+ # allowed.
37
+ attr_accessor :endpoint_names
38
+
39
+ # @return [Boolean] Used to specify whether a route is enabled.
40
+ attr_accessor :is_enabled
41
+
42
+
43
+ #
44
+ # Mapper for RouteProperties class as Ruby Hash.
45
+ # This will be used for serialization/deserialization.
46
+ #
47
+ def self.mapper()
48
+ {
49
+ required: false,
50
+ serialized_name: 'RouteProperties',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'RouteProperties',
54
+ model_properties: {
55
+ name: {
56
+ required: true,
57
+ serialized_name: 'name',
58
+ constraints: {
59
+ Pattern: '^[A-Za-z0-9-._]{1,64}$'
60
+ },
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ source: {
66
+ required: true,
67
+ serialized_name: 'source',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ condition: {
73
+ required: false,
74
+ serialized_name: 'condition',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ endpoint_names: {
80
+ required: true,
81
+ serialized_name: 'endpointNames',
82
+ constraints: {
83
+ MaxItems: 1,
84
+ MinItems: 1
85
+ },
86
+ type: {
87
+ name: 'Sequence',
88
+ element: {
89
+ required: false,
90
+ serialized_name: 'StringElementType',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ },
97
+ is_enabled: {
98
+ required: true,
99
+ serialized_name: 'isEnabled',
100
+ type: {
101
+ name: 'Boolean'
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ end
108
+ end
109
+ end
110
+ end
@@ -0,0 +1,98 @@
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 the custom endpoints to which your IoT hub
10
+ # routes messages based on the routing rules. A maximum of 10 custom
11
+ # endpoints are allowed across all endpoint types for paid hubs and only 1
12
+ # custom endpoint is allowed across all endpoint types for free hubs.
13
+ #
14
+ class RoutingEndpoints
15
+
16
+ include MsRestAzure
17
+
18
+ include MsRest::JSONable
19
+ # @return [Array<RoutingServiceBusQueueEndpointProperties>] The list of
20
+ # Service Bus queue endpoints that IoT hub routes the messages to, based
21
+ # on the routing rules.
22
+ attr_accessor :service_bus_queues
23
+
24
+ # @return [Array<RoutingServiceBusTopicEndpointProperties>] The list of
25
+ # Service Bus topic endpoints that the IoT hub routes the messages to,
26
+ # based on the routing rules.
27
+ attr_accessor :service_bus_topics
28
+
29
+ # @return [Array<RoutingEventHubProperties>] The list of Event Hubs
30
+ # endpoints that IoT hub routes messages to, based on the routing rules.
31
+ # This list does not include the built-in Event Hubs endpoint.
32
+ attr_accessor :event_hubs
33
+
34
+
35
+ #
36
+ # Mapper for RoutingEndpoints class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ required: false,
42
+ serialized_name: 'RoutingEndpoints',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'RoutingEndpoints',
46
+ model_properties: {
47
+ service_bus_queues: {
48
+ required: false,
49
+ serialized_name: 'serviceBusQueues',
50
+ type: {
51
+ name: 'Sequence',
52
+ element: {
53
+ required: false,
54
+ serialized_name: 'RoutingServiceBusQueueEndpointPropertiesElementType',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'RoutingServiceBusQueueEndpointProperties'
58
+ }
59
+ }
60
+ }
61
+ },
62
+ service_bus_topics: {
63
+ required: false,
64
+ serialized_name: 'serviceBusTopics',
65
+ type: {
66
+ name: 'Sequence',
67
+ element: {
68
+ required: false,
69
+ serialized_name: 'RoutingServiceBusTopicEndpointPropertiesElementType',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'RoutingServiceBusTopicEndpointProperties'
73
+ }
74
+ }
75
+ }
76
+ },
77
+ event_hubs: {
78
+ required: false,
79
+ serialized_name: 'eventHubs',
80
+ type: {
81
+ name: 'Sequence',
82
+ element: {
83
+ required: false,
84
+ serialized_name: 'RoutingEventHubPropertiesElementType',
85
+ type: {
86
+ name: 'Composite',
87
+ class_name: 'RoutingEventHubProperties'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,83 @@
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 an event hub endpoint.
10
+ #
11
+ class RoutingEventHubProperties
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The connection string of the event hub endpoint.
17
+ attr_accessor :connection_string
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.
24
+ attr_accessor :name
25
+
26
+ # @return [String] The subscription identifier of the event hub endpoint.
27
+ attr_accessor :subscription_id
28
+
29
+ # @return [String] The name of the resource group of the event hub
30
+ # endpoint.
31
+ attr_accessor :resource_group
32
+
33
+
34
+ #
35
+ # Mapper for RoutingEventHubProperties class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ required: false,
41
+ serialized_name: 'RoutingEventHubProperties',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'RoutingEventHubProperties',
45
+ model_properties: {
46
+ connection_string: {
47
+ required: true,
48
+ serialized_name: 'connectionString',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ name: {
54
+ required: true,
55
+ serialized_name: 'name',
56
+ constraints: {
57
+ Pattern: '^[A-Za-z0-9-._]{1,64}$'
58
+ },
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ subscription_id: {
64
+ required: false,
65
+ serialized_name: 'subscriptionId',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ resource_group: {
71
+ required: false,
72
+ serialized_name: 'resourceGroup',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ end
81
+ end
82
+ end
83
+ end