azure_mgmt_iot_hub 0.17.4 → 0.17.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-02-03/generated/azure_mgmt_iot_hub/iot_hub_client.rb +1 -1
  3. data/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_client.rb +1 -1
  4. data/lib/2017-07-01/generated/azure_mgmt_iot_hub/iot_hub_client.rb +1 -1
  5. data/lib/2018-01-22/generated/azure_mgmt_iot_hub/iot_hub_client.rb +1 -1
  6. data/lib/2018-04-01/generated/azure_mgmt_iot_hub/iot_hub_client.rb +1 -1
  7. data/lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/iot_hub_client.rb +1 -1
  8. data/lib/2019-03-22-preview/generated/azure_mgmt_iot_hub/iot_hub_client.rb +1 -1
  9. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub.rb +114 -0
  10. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/certificates.rb +723 -0
  11. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/iot_hub.rb +172 -0
  12. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/iot_hub_client.rb +147 -0
  13. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +3738 -0
  14. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/access_rights.rb +29 -0
  15. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/capabilities.rb +16 -0
  16. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/certificate_body_description.rb +47 -0
  17. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/certificate_description.rb +95 -0
  18. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/certificate_list_description.rb +56 -0
  19. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/certificate_properties.rb +118 -0
  20. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb +133 -0
  21. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/certificate_verification_description.rb +47 -0
  22. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb +95 -0
  23. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +77 -0
  24. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/endpoint_health_data.rb +69 -0
  25. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/endpoint_health_data_list_result.rb +100 -0
  26. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/endpoint_health_status.rb +18 -0
  27. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/enrichment_properties.rb +81 -0
  28. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/error_details.rb +83 -0
  29. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +102 -0
  30. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +101 -0
  31. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +107 -0
  32. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +59 -0
  33. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/failover_input.rb +46 -0
  34. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb +114 -0
  35. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +77 -0
  36. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +58 -0
  37. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +89 -0
  38. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +126 -0
  39. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +100 -0
  40. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_location_description.rb +59 -0
  41. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +73 -0
  42. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb +16 -0
  43. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +275 -0
  44. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_properties_device_streams.rb +54 -0
  45. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +71 -0
  46. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +101 -0
  47. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_replica_role_type.rb +16 -0
  48. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb +17 -0
  49. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb +21 -0
  50. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +71 -0
  51. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +101 -0
  52. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +73 -0
  53. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb +17 -0
  54. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb +16 -0
  55. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +71 -0
  56. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/job_response.rb +137 -0
  57. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +99 -0
  58. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/job_status.rb +20 -0
  59. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/job_type.rb +24 -0
  60. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/matched_route.rb +47 -0
  61. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +77 -0
  62. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/name.rb +57 -0
  63. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/operation.rb +60 -0
  64. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/operation_display.rb +83 -0
  65. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +46 -0
  66. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/operation_list_result.rb +103 -0
  67. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +73 -0
  68. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/resource.rb +113 -0
  69. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/route_compilation_error.rb +70 -0
  70. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/route_error_position.rb +57 -0
  71. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/route_error_range.rb +59 -0
  72. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/route_error_severity.rb +16 -0
  73. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/route_properties.rb +116 -0
  74. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb +126 -0
  75. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb +87 -0
  76. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_message.rb +84 -0
  77. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_properties.rb +110 -0
  78. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb +90 -0
  79. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb +90 -0
  80. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_source.rb +20 -0
  81. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb +157 -0
  82. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_twin.rb +58 -0
  83. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/routing_twin_properties.rb +58 -0
  84. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +89 -0
  85. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +103 -0
  86. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +73 -0
  87. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/tags_resource.rb +55 -0
  88. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/test_all_routes_input.rb +73 -0
  89. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/test_all_routes_result.rb +55 -0
  90. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/test_result_status.rb +17 -0
  91. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/test_route_input.rb +71 -0
  92. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/test_route_result.rb +59 -0
  93. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/test_route_result_details.rb +56 -0
  94. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/user_subscription_quota.rb +102 -0
  95. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/models/user_subscription_quota_list_result.rb +67 -0
  96. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/module_definition.rb +9 -0
  97. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/operations.rb +219 -0
  98. data/lib/2019-07-01-preview/generated/azure_mgmt_iot_hub/resource_provider_common.rb +117 -0
  99. data/lib/azure_mgmt_iot_hub.rb +5 -4
  100. data/lib/version.rb +1 -1
  101. metadata +93 -3
@@ -0,0 +1,90 @@
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::V2019_07_01_preview
7
+ module Models
8
+ #
9
+ # The properties related to service bus topic endpoint types.
10
+ #
11
+ class RoutingServiceBusTopicEndpointProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The connection string of the service bus topic
16
+ # endpoint.
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, fileNotifications, $default. Endpoint names must be
23
+ # unique across endpoint types. The name need not be the same as the
24
+ # actual topic name.
25
+ attr_accessor :name
26
+
27
+ # @return [String] The subscription identifier of the service bus topic
28
+ # endpoint.
29
+ attr_accessor :subscription_id
30
+
31
+ # @return [String] The name of the resource group of the service bus
32
+ # topic endpoint.
33
+ attr_accessor :resource_group
34
+
35
+
36
+ #
37
+ # Mapper for RoutingServiceBusTopicEndpointProperties class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'RoutingServiceBusTopicEndpointProperties',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'RoutingServiceBusTopicEndpointProperties',
48
+ model_properties: {
49
+ connection_string: {
50
+ client_side_validation: true,
51
+ required: true,
52
+ serialized_name: 'connectionString',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ name: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'name',
61
+ constraints: {
62
+ Pattern: '^[A-Za-z0-9-._]{1,64}$'
63
+ },
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ subscription_id: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'subscriptionId',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ resource_group: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'resourceGroup',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,20 @@
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::V2019_07_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for RoutingSource
10
+ #
11
+ module RoutingSource
12
+ Invalid = "Invalid"
13
+ DeviceMessages = "DeviceMessages"
14
+ TwinChangeEvents = "TwinChangeEvents"
15
+ DeviceLifecycleEvents = "DeviceLifecycleEvents"
16
+ DeviceJobLifecycleEvents = "DeviceJobLifecycleEvents"
17
+ DigitalTwinChangeEvents = "DigitalTwinChangeEvents"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,157 @@
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::V2019_07_01_preview
7
+ module Models
8
+ #
9
+ # The properties related to a storage container endpoint.
10
+ #
11
+ class RoutingStorageContainerProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The connection string of the storage account.
16
+ attr_accessor :connection_string
17
+
18
+ # @return [String] The name that identifies this endpoint. The name can
19
+ # only include alphanumeric characters, periods, underscores, hyphens and
20
+ # has a maximum length of 64 characters. The following names are
21
+ # reserved: events, fileNotifications, $default. Endpoint names must be
22
+ # unique across endpoint types.
23
+ attr_accessor :name
24
+
25
+ # @return [String] The subscription identifier of the storage account.
26
+ attr_accessor :subscription_id
27
+
28
+ # @return [String] The name of the resource group of the storage account.
29
+ attr_accessor :resource_group
30
+
31
+ # @return [String] The name of storage container in the storage account.
32
+ attr_accessor :container_name
33
+
34
+ # @return [String] File name format for the blob. Default format is
35
+ # {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are
36
+ # mandatory but can be reordered.
37
+ attr_accessor :file_name_format
38
+
39
+ # @return [Integer] Time interval at which blobs are written to storage.
40
+ # Value should be between 60 and 720 seconds. Default value is 300
41
+ # seconds.
42
+ attr_accessor :batch_frequency_in_seconds
43
+
44
+ # @return [Integer] Maximum number of bytes for each blob written to
45
+ # storage. Value should be between 10485760(10MB) and 524288000(500MB).
46
+ # Default value is 314572800(300MB).
47
+ attr_accessor :max_chunk_size_in_bytes
48
+
49
+ # @return [Enum] Encoding that is used to serialize messages to blobs.
50
+ # Supported values are 'avro', 'avrodeflate', and 'JSON'. Default value
51
+ # is 'avro'. Possible values include: 'Avro', 'AvroDeflate', 'JSON'
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
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'RoutingStorageContainerProperties',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'RoutingStorageContainerProperties',
67
+ model_properties: {
68
+ connection_string: {
69
+ client_side_validation: true,
70
+ required: true,
71
+ serialized_name: 'connectionString',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ name: {
77
+ client_side_validation: true,
78
+ required: true,
79
+ serialized_name: 'name',
80
+ constraints: {
81
+ Pattern: '^[A-Za-z0-9-._]{1,64}$'
82
+ },
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ subscription_id: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'subscriptionId',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ resource_group: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'resourceGroup',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ container_name: {
104
+ client_side_validation: true,
105
+ required: true,
106
+ serialized_name: 'containerName',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ file_name_format: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ serialized_name: 'fileNameFormat',
115
+ type: {
116
+ name: 'String'
117
+ }
118
+ },
119
+ batch_frequency_in_seconds: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ serialized_name: 'batchFrequencyInSeconds',
123
+ constraints: {
124
+ InclusiveMaximum: 720,
125
+ InclusiveMinimum: 60
126
+ },
127
+ type: {
128
+ name: 'Number'
129
+ }
130
+ },
131
+ max_chunk_size_in_bytes: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ serialized_name: 'maxChunkSizeInBytes',
135
+ constraints: {
136
+ InclusiveMaximum: 524288000,
137
+ InclusiveMinimum: 10485760
138
+ },
139
+ type: {
140
+ name: 'Number'
141
+ }
142
+ },
143
+ encoding: {
144
+ client_side_validation: true,
145
+ required: false,
146
+ serialized_name: 'encoding',
147
+ type: {
148
+ name: 'String'
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ end
155
+ end
156
+ end
157
+ end
@@ -0,0 +1,58 @@
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::V2019_07_01_preview
7
+ module Models
8
+ #
9
+ # Twin reference input parameter. This is an optional parameter
10
+ #
11
+ class RoutingTwin
12
+
13
+ include MsRestAzure
14
+
15
+ # @return Twin Tags
16
+ attr_accessor :tags
17
+
18
+ # @return [RoutingTwinProperties]
19
+ attr_accessor :properties
20
+
21
+
22
+ #
23
+ # Mapper for RoutingTwin class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'RoutingTwin',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'RoutingTwin',
34
+ model_properties: {
35
+ tags: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'tags',
39
+ type: {
40
+ name: 'Object'
41
+ }
42
+ },
43
+ properties: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'properties',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'RoutingTwinProperties'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,58 @@
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::V2019_07_01_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class RoutingTwinProperties
13
+
14
+ include MsRestAzure
15
+
16
+ # @return Twin desired properties
17
+ attr_accessor :desired
18
+
19
+ # @return Twin desired properties
20
+ attr_accessor :reported
21
+
22
+
23
+ #
24
+ # Mapper for RoutingTwinProperties class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'RoutingTwin_properties',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'RoutingTwinProperties',
35
+ model_properties: {
36
+ desired: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'desired',
40
+ type: {
41
+ name: 'Object'
42
+ }
43
+ },
44
+ reported: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'reported',
48
+ type: {
49
+ name: 'Object'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,89 @@
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::V2019_07_01_preview
7
+ module Models
8
+ #
9
+ # The properties of an IoT hub shared access policy.
10
+ #
11
+ class SharedAccessSignatureAuthorizationRule
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the shared access policy.
16
+ attr_accessor :key_name
17
+
18
+ # @return [String] The primary key.
19
+ attr_accessor :primary_key
20
+
21
+ # @return [String] The secondary key.
22
+ attr_accessor :secondary_key
23
+
24
+ # @return [AccessRights] The permissions assigned to the shared access
25
+ # policy. Possible values include: 'RegistryRead', 'RegistryWrite',
26
+ # 'ServiceConnect', 'DeviceConnect', 'RegistryRead, RegistryWrite',
27
+ # 'RegistryRead, ServiceConnect', 'RegistryRead, DeviceConnect',
28
+ # 'RegistryWrite, ServiceConnect', 'RegistryWrite, DeviceConnect',
29
+ # 'ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite,
30
+ # ServiceConnect', 'RegistryRead, RegistryWrite, DeviceConnect',
31
+ # 'RegistryRead, ServiceConnect, DeviceConnect', 'RegistryWrite,
32
+ # ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite,
33
+ # ServiceConnect, DeviceConnect'
34
+ attr_accessor :rights
35
+
36
+
37
+ #
38
+ # Mapper for SharedAccessSignatureAuthorizationRule class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'SharedAccessSignatureAuthorizationRule',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'SharedAccessSignatureAuthorizationRule',
49
+ model_properties: {
50
+ key_name: {
51
+ client_side_validation: true,
52
+ required: true,
53
+ serialized_name: 'keyName',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ primary_key: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'primaryKey',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ secondary_key: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'secondaryKey',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ rights: {
75
+ client_side_validation: true,
76
+ required: true,
77
+ serialized_name: 'rights',
78
+ type: {
79
+ name: 'Enum',
80
+ module: 'AccessRights'
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ end
87
+ end
88
+ end
89
+ end