azure_mgmt_iot_hub 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_iot_hub.rb +27 -18
- data/lib/generated/azure_mgmt_iot_hub/certificates.rb +704 -0
- data/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb +4 -0
- data/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +34 -23
- data/lib/generated/azure_mgmt_iot_hub/models/certificate_body_description.rb +45 -0
- data/lib/generated/azure_mgmt_iot_hub/models/certificate_description.rb +89 -0
- data/lib/generated/azure_mgmt_iot_hub/models/certificate_list_description.rb +53 -0
- data/lib/generated/azure_mgmt_iot_hub/models/certificate_properties.rb +100 -0
- data/lib/generated/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb +113 -0
- data/lib/generated/azure_mgmt_iot_hub/models/certificate_verification_description.rb +45 -0
- data/lib/generated/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb +89 -0
- data/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/error_details.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +2 -3
- data/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +1 -2
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/job_response.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/operation.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/operation_display.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/resource.rb +97 -0
- data/lib/generated/azure_mgmt_iot_hub/models/route_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/routing_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +0 -1
- data/lib/generated/azure_mgmt_iot_hub/version.rb +1 -1
- metadata +11 -2
@@ -40,6 +40,9 @@ module Azure::ARM::IotHub
|
|
40
40
|
# @return [IotHubResource] iot_hub_resource
|
41
41
|
attr_reader :iot_hub_resource
|
42
42
|
|
43
|
+
# @return [Certificates] certificates
|
44
|
+
attr_reader :certificates
|
45
|
+
|
43
46
|
#
|
44
47
|
# Creates initializes a new instance of the IotHubClient class.
|
45
48
|
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
@@ -55,6 +58,7 @@ module Azure::ARM::IotHub
|
|
55
58
|
|
56
59
|
@operations = Operations.new(self)
|
57
60
|
@iot_hub_resource = IotHubResource.new(self)
|
61
|
+
@certificates = Certificates.new(self)
|
58
62
|
@api_version = '2017-07-01'
|
59
63
|
@accept_language = 'en-US'
|
60
64
|
@long_running_operation_retry_timeout = 30
|
@@ -130,34 +130,38 @@ module Azure::ARM::IotHub
|
|
130
130
|
#
|
131
131
|
# @param resource_group_name [String] The name of the resource group that
|
132
132
|
# contains the IoT hub.
|
133
|
-
# @param resource_name [String] The name of the IoT hub
|
133
|
+
# @param resource_name [String] The name of the IoT hub.
|
134
134
|
# @param iot_hub_description [IotHubDescription] The IoT hub metadata and
|
135
135
|
# security metadata.
|
136
|
+
# @param if_match [String] ETag of the IoT Hub. Do not specify for creating a
|
137
|
+
# brand new IoT Hub. Required to update an existing IoT Hub.
|
136
138
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
137
139
|
# will be added to the HTTP request.
|
138
140
|
#
|
139
141
|
# @return [IotHubDescription] operation results.
|
140
142
|
#
|
141
|
-
def create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers = nil)
|
142
|
-
response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value!
|
143
|
+
def create_or_update(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil)
|
144
|
+
response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers).value!
|
143
145
|
response.body unless response.nil?
|
144
146
|
end
|
145
147
|
|
146
148
|
#
|
147
149
|
# @param resource_group_name [String] The name of the resource group that
|
148
150
|
# contains the IoT hub.
|
149
|
-
# @param resource_name [String] The name of the IoT hub
|
151
|
+
# @param resource_name [String] The name of the IoT hub.
|
150
152
|
# @param iot_hub_description [IotHubDescription] The IoT hub metadata and
|
151
153
|
# security metadata.
|
154
|
+
# @param if_match [String] ETag of the IoT Hub. Do not specify for creating a
|
155
|
+
# brand new IoT Hub. Required to update an existing IoT Hub.
|
152
156
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
153
157
|
# will be added to the HTTP request.
|
154
158
|
#
|
155
159
|
# @return [Concurrent::Promise] promise which provides async access to http
|
156
160
|
# response.
|
157
161
|
#
|
158
|
-
def create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers = nil)
|
162
|
+
def create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil)
|
159
163
|
# Send request
|
160
|
-
promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers)
|
164
|
+
promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers)
|
161
165
|
|
162
166
|
promise = promise.then do |response|
|
163
167
|
# Defining deserialization method.
|
@@ -180,7 +184,7 @@ module Azure::ARM::IotHub
|
|
180
184
|
#
|
181
185
|
# @param resource_group_name [String] The name of the resource group that
|
182
186
|
# contains the IoT hub.
|
183
|
-
# @param resource_name [String] The name of the IoT hub
|
187
|
+
# @param resource_name [String] The name of the IoT hub.
|
184
188
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
185
189
|
# will be added to the HTTP request.
|
186
190
|
#
|
@@ -194,7 +198,7 @@ module Azure::ARM::IotHub
|
|
194
198
|
#
|
195
199
|
# @param resource_group_name [String] The name of the resource group that
|
196
200
|
# contains the IoT hub.
|
197
|
-
# @param resource_name [String] The name of the IoT hub
|
201
|
+
# @param resource_name [String] The name of the IoT hub.
|
198
202
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
199
203
|
# will be added to the HTTP request.
|
200
204
|
#
|
@@ -320,7 +324,7 @@ module Azure::ARM::IotHub
|
|
320
324
|
# Get all the IoT hubs in a resource group.
|
321
325
|
#
|
322
326
|
# @param resource_group_name [String] The name of the resource group that
|
323
|
-
# contains the IoT
|
327
|
+
# contains the IoT hub.
|
324
328
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
325
329
|
# will be added to the HTTP request.
|
326
330
|
#
|
@@ -337,7 +341,7 @@ module Azure::ARM::IotHub
|
|
337
341
|
# Get all the IoT hubs in a resource group.
|
338
342
|
#
|
339
343
|
# @param resource_group_name [String] The name of the resource group that
|
340
|
-
# contains the IoT
|
344
|
+
# contains the IoT hub.
|
341
345
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
342
346
|
# will be added to the HTTP request.
|
343
347
|
#
|
@@ -353,7 +357,7 @@ module Azure::ARM::IotHub
|
|
353
357
|
# Get all the IoT hubs in a resource group.
|
354
358
|
#
|
355
359
|
# @param resource_group_name [String] The name of the resource group that
|
356
|
-
# contains the IoT
|
360
|
+
# contains the IoT hub.
|
357
361
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
358
362
|
# to the HTTP request.
|
359
363
|
#
|
@@ -1953,16 +1957,18 @@ module Azure::ARM::IotHub
|
|
1953
1957
|
#
|
1954
1958
|
# @param resource_group_name [String] The name of the resource group that
|
1955
1959
|
# contains the IoT hub.
|
1956
|
-
# @param resource_name [String] The name of the IoT hub
|
1960
|
+
# @param resource_name [String] The name of the IoT hub.
|
1957
1961
|
# @param iot_hub_description [IotHubDescription] The IoT hub metadata and
|
1958
1962
|
# security metadata.
|
1963
|
+
# @param if_match [String] ETag of the IoT Hub. Do not specify for creating a
|
1964
|
+
# brand new IoT Hub. Required to update an existing IoT Hub.
|
1959
1965
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1960
1966
|
# will be added to the HTTP request.
|
1961
1967
|
#
|
1962
1968
|
# @return [IotHubDescription] operation results.
|
1963
1969
|
#
|
1964
|
-
def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers = nil)
|
1965
|
-
response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value!
|
1970
|
+
def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil)
|
1971
|
+
response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers).value!
|
1966
1972
|
response.body unless response.nil?
|
1967
1973
|
end
|
1968
1974
|
|
@@ -1975,16 +1981,18 @@ module Azure::ARM::IotHub
|
|
1975
1981
|
#
|
1976
1982
|
# @param resource_group_name [String] The name of the resource group that
|
1977
1983
|
# contains the IoT hub.
|
1978
|
-
# @param resource_name [String] The name of the IoT hub
|
1984
|
+
# @param resource_name [String] The name of the IoT hub.
|
1979
1985
|
# @param iot_hub_description [IotHubDescription] The IoT hub metadata and
|
1980
1986
|
# security metadata.
|
1987
|
+
# @param if_match [String] ETag of the IoT Hub. Do not specify for creating a
|
1988
|
+
# brand new IoT Hub. Required to update an existing IoT Hub.
|
1981
1989
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1982
1990
|
# will be added to the HTTP request.
|
1983
1991
|
#
|
1984
1992
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1985
1993
|
#
|
1986
|
-
def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, custom_headers = nil)
|
1987
|
-
begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value!
|
1994
|
+
def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil)
|
1995
|
+
begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers).value!
|
1988
1996
|
end
|
1989
1997
|
|
1990
1998
|
#
|
@@ -1996,15 +2004,17 @@ module Azure::ARM::IotHub
|
|
1996
2004
|
#
|
1997
2005
|
# @param resource_group_name [String] The name of the resource group that
|
1998
2006
|
# contains the IoT hub.
|
1999
|
-
# @param resource_name [String] The name of the IoT hub
|
2007
|
+
# @param resource_name [String] The name of the IoT hub.
|
2000
2008
|
# @param iot_hub_description [IotHubDescription] The IoT hub metadata and
|
2001
2009
|
# security metadata.
|
2010
|
+
# @param if_match [String] ETag of the IoT Hub. Do not specify for creating a
|
2011
|
+
# brand new IoT Hub. Required to update an existing IoT Hub.
|
2002
2012
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2003
2013
|
# to the HTTP request.
|
2004
2014
|
#
|
2005
2015
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2006
2016
|
#
|
2007
|
-
def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers = nil)
|
2017
|
+
def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil)
|
2008
2018
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2009
2019
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
2010
2020
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -2016,6 +2026,7 @@ module Azure::ARM::IotHub
|
|
2016
2026
|
|
2017
2027
|
# Set Headers
|
2018
2028
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2029
|
+
request_headers['If-Match'] = if_match unless if_match.nil?
|
2019
2030
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2020
2031
|
|
2021
2032
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
@@ -2083,7 +2094,7 @@ module Azure::ARM::IotHub
|
|
2083
2094
|
#
|
2084
2095
|
# @param resource_group_name [String] The name of the resource group that
|
2085
2096
|
# contains the IoT hub.
|
2086
|
-
# @param resource_name [String] The name of the IoT hub
|
2097
|
+
# @param resource_name [String] The name of the IoT hub.
|
2087
2098
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2088
2099
|
# will be added to the HTTP request.
|
2089
2100
|
#
|
@@ -2101,7 +2112,7 @@ module Azure::ARM::IotHub
|
|
2101
2112
|
#
|
2102
2113
|
# @param resource_group_name [String] The name of the resource group that
|
2103
2114
|
# contains the IoT hub.
|
2104
|
-
# @param resource_name [String] The name of the IoT hub
|
2115
|
+
# @param resource_name [String] The name of the IoT hub.
|
2105
2116
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2106
2117
|
# will be added to the HTTP request.
|
2107
2118
|
#
|
@@ -2118,7 +2129,7 @@ module Azure::ARM::IotHub
|
|
2118
2129
|
#
|
2119
2130
|
# @param resource_group_name [String] The name of the resource group that
|
2120
2131
|
# contains the IoT hub.
|
2121
|
-
# @param resource_name [String] The name of the IoT hub
|
2132
|
+
# @param resource_name [String] The name of the IoT hub.
|
2122
2133
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2123
2134
|
# to the HTTP request.
|
2124
2135
|
#
|
@@ -2893,7 +2904,7 @@ module Azure::ARM::IotHub
|
|
2893
2904
|
# Get all the IoT hubs in a resource group.
|
2894
2905
|
#
|
2895
2906
|
# @param resource_group_name [String] The name of the resource group that
|
2896
|
-
# contains the IoT
|
2907
|
+
# contains the IoT hub.
|
2897
2908
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2898
2909
|
# will be added to the HTTP request.
|
2899
2910
|
#
|
@@ -0,0 +1,45 @@
|
|
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::ARM::IotHub
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The JSON-serialized X509 Certificate.
|
10
|
+
#
|
11
|
+
class CertificateBodyDescription
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] base-64 representation of the X509 leaf certificate
|
16
|
+
# .cer file or just .pem file content.
|
17
|
+
attr_accessor :certificate
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for CertificateBodyDescription class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'CertificateBodyDescription',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'CertificateBodyDescription',
|
31
|
+
model_properties: {
|
32
|
+
certificate: {
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'certificate',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
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::ARM::IotHub
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The X509 Certificate.
|
10
|
+
#
|
11
|
+
class CertificateDescription
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [CertificateProperties]
|
16
|
+
attr_accessor :properties
|
17
|
+
|
18
|
+
# @return [String] The resource identifier.
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# @return [String] The name of the certificate.
|
22
|
+
attr_accessor :name
|
23
|
+
|
24
|
+
# @return [String] The entity tag.
|
25
|
+
attr_accessor :etag
|
26
|
+
|
27
|
+
# @return [String] The resource type.
|
28
|
+
attr_accessor :type
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for CertificateDescription class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'CertificateDescription',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'CertificateDescription',
|
42
|
+
model_properties: {
|
43
|
+
properties: {
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'properties',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'CertificateProperties'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
id: {
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'id',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
name: {
|
60
|
+
required: false,
|
61
|
+
read_only: true,
|
62
|
+
serialized_name: 'name',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
etag: {
|
68
|
+
required: false,
|
69
|
+
read_only: true,
|
70
|
+
serialized_name: 'etag',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
type: {
|
76
|
+
required: false,
|
77
|
+
read_only: true,
|
78
|
+
serialized_name: 'type',
|
79
|
+
type: {
|
80
|
+
name: 'String'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
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::ARM::IotHub
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The JSON-serialized array of Certificate objects.
|
10
|
+
#
|
11
|
+
class CertificateListDescription
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<CertificateDescription>] The array of Certificate
|
16
|
+
# objects.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for CertificateListDescription class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'CertificateListDescription',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'CertificateListDescription',
|
31
|
+
model_properties: {
|
32
|
+
value: {
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'value',
|
35
|
+
type: {
|
36
|
+
name: 'Sequence',
|
37
|
+
element: {
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'CertificateDescriptionElementType',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'CertificateDescription'
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,100 @@
|
|
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::ARM::IotHub
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The description of an X509 CA Certificate.
|
10
|
+
#
|
11
|
+
class CertificateProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The certificate's subject name.
|
16
|
+
attr_accessor :subject
|
17
|
+
|
18
|
+
# @return [DateTime] The certificate's expiration date and time.
|
19
|
+
attr_accessor :expiry
|
20
|
+
|
21
|
+
# @return [String] The certificate's thumbprint.
|
22
|
+
attr_accessor :thumbprint
|
23
|
+
|
24
|
+
# @return [Boolean] Determines whether certificate has been verified.
|
25
|
+
attr_accessor :is_verified
|
26
|
+
|
27
|
+
# @return [DateTime] The certificate's create date and time.
|
28
|
+
attr_accessor :created
|
29
|
+
|
30
|
+
# @return [DateTime] The certificate's last update date and time.
|
31
|
+
attr_accessor :updated
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for CertificateProperties class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'CertificateProperties',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'CertificateProperties',
|
45
|
+
model_properties: {
|
46
|
+
subject: {
|
47
|
+
required: false,
|
48
|
+
read_only: true,
|
49
|
+
serialized_name: 'subject',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
expiry: {
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'expiry',
|
58
|
+
type: {
|
59
|
+
name: 'DateTimeRfc1123'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
thumbprint: {
|
63
|
+
required: false,
|
64
|
+
read_only: true,
|
65
|
+
serialized_name: 'thumbprint',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
},
|
70
|
+
is_verified: {
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'isVerified',
|
74
|
+
type: {
|
75
|
+
name: 'Boolean'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
created: {
|
79
|
+
required: false,
|
80
|
+
read_only: true,
|
81
|
+
serialized_name: 'created',
|
82
|
+
type: {
|
83
|
+
name: 'DateTimeRfc1123'
|
84
|
+
}
|
85
|
+
},
|
86
|
+
updated: {
|
87
|
+
required: false,
|
88
|
+
read_only: true,
|
89
|
+
serialized_name: 'updated',
|
90
|
+
type: {
|
91
|
+
name: 'DateTimeRfc1123'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|