azure_mgmt_edgegateway 0.17.1 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/data_box_edge_management_client.rb +1 -1
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/devices.rb +0 -106
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/data_box_edge_device_extended_info.rb +3 -14
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/periodic_timer_source_info.rb +3 -1
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/orders.rb +5 -5
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/triggers.rb +16 -8
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cfe5c68c1c6b271790e06970113e699dba54c990632d9d7bd83ee06378205f9
|
4
|
+
data.tar.gz: 29d7c09865197efbecf46798d7b92f461ec4448b0b65609364ffc9c5778c93c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6d433101a4a0aa397142b981c19021090141cd67adcaf1b0ae1b727bb3e933e86d1d7a08a1fadff317b235c6dd76ece74c222db471f0fd6f69fd03a0fd3e7d5
|
7
|
+
data.tar.gz: 3ec3ee44f663c65e236156d6b3079f118d349442fab8eb83aeb53f08c7c67135d9de8ddee290433da059ecae17b6e9f93914f86fe17482a61e61377676431834
|
@@ -168,7 +168,7 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
168
168
|
#
|
169
169
|
def add_telemetry
|
170
170
|
sdk_information = 'azure_mgmt_edgegateway'
|
171
|
-
sdk_information = "#{sdk_information}/0.
|
171
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
172
172
|
add_user_agent_information(sdk_information)
|
173
173
|
end
|
174
174
|
end
|
@@ -526,112 +526,6 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
526
526
|
promise
|
527
527
|
end
|
528
528
|
|
529
|
-
#
|
530
|
-
# Creates or updates the additional information of a the data box edge/gateway
|
531
|
-
# device.
|
532
|
-
#
|
533
|
-
# @param device_name [String] The device name.
|
534
|
-
# @param parameters [DataBoxEdgeDeviceExtendedInfo] The additional information.
|
535
|
-
# @param resource_group_name [String] The resource group name.
|
536
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
537
|
-
# will be added to the HTTP request.
|
538
|
-
#
|
539
|
-
# @return [DataBoxEdgeDeviceExtendedInfo] operation results.
|
540
|
-
#
|
541
|
-
def create_or_update_extended_info(device_name, parameters, resource_group_name, custom_headers:nil)
|
542
|
-
response = create_or_update_extended_info_async(device_name, parameters, resource_group_name, custom_headers:custom_headers).value!
|
543
|
-
response.body unless response.nil?
|
544
|
-
end
|
545
|
-
|
546
|
-
#
|
547
|
-
# Creates or updates the additional information of a the data box edge/gateway
|
548
|
-
# device.
|
549
|
-
#
|
550
|
-
# @param device_name [String] The device name.
|
551
|
-
# @param parameters [DataBoxEdgeDeviceExtendedInfo] The additional information.
|
552
|
-
# @param resource_group_name [String] The resource group name.
|
553
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
554
|
-
# will be added to the HTTP request.
|
555
|
-
#
|
556
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
557
|
-
#
|
558
|
-
def create_or_update_extended_info_with_http_info(device_name, parameters, resource_group_name, custom_headers:nil)
|
559
|
-
create_or_update_extended_info_async(device_name, parameters, resource_group_name, custom_headers:custom_headers).value!
|
560
|
-
end
|
561
|
-
|
562
|
-
#
|
563
|
-
# Creates or updates the additional information of a the data box edge/gateway
|
564
|
-
# device.
|
565
|
-
#
|
566
|
-
# @param device_name [String] The device name.
|
567
|
-
# @param parameters [DataBoxEdgeDeviceExtendedInfo] The additional information.
|
568
|
-
# @param resource_group_name [String] The resource group name.
|
569
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
570
|
-
# to the HTTP request.
|
571
|
-
#
|
572
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
573
|
-
#
|
574
|
-
def create_or_update_extended_info_async(device_name, parameters, resource_group_name, custom_headers:nil)
|
575
|
-
fail ArgumentError, 'device_name is nil' if device_name.nil?
|
576
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
577
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
578
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
579
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
580
|
-
|
581
|
-
|
582
|
-
request_headers = {}
|
583
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
584
|
-
|
585
|
-
# Set Headers
|
586
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
587
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
588
|
-
|
589
|
-
# Serialize Request
|
590
|
-
request_mapper = Azure::EdgeGateway::Mgmt::V2019_03_01::Models::DataBoxEdgeDeviceExtendedInfo.mapper()
|
591
|
-
request_content = @client.serialize(request_mapper, parameters)
|
592
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
593
|
-
|
594
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/getExtendedInformation'
|
595
|
-
|
596
|
-
request_url = @base_url || @client.base_url
|
597
|
-
|
598
|
-
options = {
|
599
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
600
|
-
path_params: {'deviceName' => device_name,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
601
|
-
query_params: {'api-version' => @client.api_version},
|
602
|
-
body: request_content,
|
603
|
-
headers: request_headers.merge(custom_headers || {}),
|
604
|
-
base_url: request_url
|
605
|
-
}
|
606
|
-
promise = @client.make_request_async(:put, path_template, options)
|
607
|
-
|
608
|
-
promise = promise.then do |result|
|
609
|
-
http_response = result.response
|
610
|
-
status_code = http_response.status
|
611
|
-
response_content = http_response.body
|
612
|
-
unless status_code == 200
|
613
|
-
error_model = JSON.load(response_content)
|
614
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
615
|
-
end
|
616
|
-
|
617
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
618
|
-
# Deserialize Response
|
619
|
-
if status_code == 200
|
620
|
-
begin
|
621
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
622
|
-
result_mapper = Azure::EdgeGateway::Mgmt::V2019_03_01::Models::DataBoxEdgeDeviceExtendedInfo.mapper()
|
623
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
624
|
-
rescue Exception => e
|
625
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
626
|
-
end
|
627
|
-
end
|
628
|
-
|
629
|
-
result
|
630
|
-
end
|
631
|
-
|
632
|
-
promise.execute
|
633
|
-
end
|
634
|
-
|
635
529
|
#
|
636
530
|
# Gets additional information for the specified data box edge/gateway device.
|
637
531
|
#
|
data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/data_box_edge_device_extended_info.rb
CHANGED
@@ -12,14 +12,11 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] The
|
16
|
-
attr_accessor :integrity_key
|
17
|
-
|
18
|
-
# @return [String] The certificate thumbprint that was used to encrypt
|
19
|
-
# the Channel Integrity Key (CIK).
|
15
|
+
# @return [String] The digital signature of encrypted certificate.
|
20
16
|
attr_accessor :encryption_key_thumbprint
|
21
17
|
|
22
|
-
# @return [String] The
|
18
|
+
# @return [String] The public part of the encryption certificate. Client
|
19
|
+
# uses this to encrypt any secret.
|
23
20
|
attr_accessor :encryption_key
|
24
21
|
|
25
22
|
# @return [String] The Resource ID of the Resource.
|
@@ -66,14 +63,6 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
66
63
|
name: 'String'
|
67
64
|
}
|
68
65
|
},
|
69
|
-
integrity_key: {
|
70
|
-
client_side_validation: true,
|
71
|
-
required: true,
|
72
|
-
serialized_name: 'properties.integrityKey',
|
73
|
-
type: {
|
74
|
-
name: 'String'
|
75
|
-
}
|
76
|
-
},
|
77
66
|
encryption_key_thumbprint: {
|
78
67
|
client_side_validation: true,
|
79
68
|
required: false,
|
@@ -13,7 +13,9 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
15
|
# @return [DateTime] The time of the day that results in a valid trigger.
|
16
|
-
# Schedule is computed with reference to the time specified
|
16
|
+
# Schedule is computed with reference to the time specified up to
|
17
|
+
# seconds. If timezone is not specified the time will considered to be in
|
18
|
+
# device timezone. The value will always be returned as UTC time.
|
17
19
|
attr_accessor :start_time
|
18
20
|
|
19
21
|
# @return [String] Periodic frequency at which timer event needs to be
|
@@ -208,7 +208,7 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
208
208
|
#
|
209
209
|
# Creates or updates an order.
|
210
210
|
#
|
211
|
-
# @param device_name [String] The
|
211
|
+
# @param device_name [String] The device name.
|
212
212
|
# @param order [Order] The order to be created or updated.
|
213
213
|
# @param resource_group_name [String] The resource group name.
|
214
214
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -222,7 +222,7 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
222
222
|
end
|
223
223
|
|
224
224
|
#
|
225
|
-
# @param device_name [String] The
|
225
|
+
# @param device_name [String] The device name.
|
226
226
|
# @param order [Order] The order to be created or updated.
|
227
227
|
# @param resource_group_name [String] The resource group name.
|
228
228
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -290,7 +290,7 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
290
290
|
#
|
291
291
|
# Creates or updates an order.
|
292
292
|
#
|
293
|
-
# @param device_name [String] The
|
293
|
+
# @param device_name [String] The device name.
|
294
294
|
# @param order [Order] The order to be created or updated.
|
295
295
|
# @param resource_group_name [String] The resource group name.
|
296
296
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -306,7 +306,7 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
306
306
|
#
|
307
307
|
# Creates or updates an order.
|
308
308
|
#
|
309
|
-
# @param device_name [String] The
|
309
|
+
# @param device_name [String] The device name.
|
310
310
|
# @param order [Order] The order to be created or updated.
|
311
311
|
# @param resource_group_name [String] The resource group name.
|
312
312
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -321,7 +321,7 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
321
321
|
#
|
322
322
|
# Creates or updates an order.
|
323
323
|
#
|
324
|
-
# @param device_name [String] The
|
324
|
+
# @param device_name [String] The device name.
|
325
325
|
# @param order [Order] The order to be created or updated.
|
326
326
|
# @param resource_group_name [String] The resource group name.
|
327
327
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -26,13 +26,15 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
26
26
|
#
|
27
27
|
# @param device_name [String] The device name.
|
28
28
|
# @param resource_group_name [String] The resource group name.
|
29
|
+
# @param expand [String] Specify $filter='CustomContextTag eq <tag>' to filter
|
30
|
+
# on custom context tag property
|
29
31
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
32
|
# will be added to the HTTP request.
|
31
33
|
#
|
32
34
|
# @return [Array<Trigger>] operation results.
|
33
35
|
#
|
34
|
-
def list_by_data_box_edge_device(device_name, resource_group_name, custom_headers:nil)
|
35
|
-
first_page = list_by_data_box_edge_device_as_lazy(device_name, resource_group_name, custom_headers:custom_headers)
|
36
|
+
def list_by_data_box_edge_device(device_name, resource_group_name, expand:nil, custom_headers:nil)
|
37
|
+
first_page = list_by_data_box_edge_device_as_lazy(device_name, resource_group_name, expand:expand, custom_headers:custom_headers)
|
36
38
|
first_page.get_all_items
|
37
39
|
end
|
38
40
|
|
@@ -41,13 +43,15 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
41
43
|
#
|
42
44
|
# @param device_name [String] The device name.
|
43
45
|
# @param resource_group_name [String] The resource group name.
|
46
|
+
# @param expand [String] Specify $filter='CustomContextTag eq <tag>' to filter
|
47
|
+
# on custom context tag property
|
44
48
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
49
|
# will be added to the HTTP request.
|
46
50
|
#
|
47
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
52
|
#
|
49
|
-
def list_by_data_box_edge_device_with_http_info(device_name, resource_group_name, custom_headers:nil)
|
50
|
-
list_by_data_box_edge_device_async(device_name, resource_group_name, custom_headers:custom_headers).value!
|
53
|
+
def list_by_data_box_edge_device_with_http_info(device_name, resource_group_name, expand:nil, custom_headers:nil)
|
54
|
+
list_by_data_box_edge_device_async(device_name, resource_group_name, expand:expand, custom_headers:custom_headers).value!
|
51
55
|
end
|
52
56
|
|
53
57
|
#
|
@@ -55,12 +59,14 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
55
59
|
#
|
56
60
|
# @param device_name [String] The device name.
|
57
61
|
# @param resource_group_name [String] The resource group name.
|
62
|
+
# @param expand [String] Specify $filter='CustomContextTag eq <tag>' to filter
|
63
|
+
# on custom context tag property
|
58
64
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
65
|
# to the HTTP request.
|
60
66
|
#
|
61
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
68
|
#
|
63
|
-
def list_by_data_box_edge_device_async(device_name, resource_group_name, custom_headers:nil)
|
69
|
+
def list_by_data_box_edge_device_async(device_name, resource_group_name, expand:nil, custom_headers:nil)
|
64
70
|
fail ArgumentError, 'device_name is nil' if device_name.nil?
|
65
71
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
66
72
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -80,7 +86,7 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
80
86
|
options = {
|
81
87
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
82
88
|
path_params: {'deviceName' => device_name,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
83
|
-
query_params: {'api-version' => @client.api_version},
|
89
|
+
query_params: {'api-version' => @client.api_version,'$expand' => expand},
|
84
90
|
headers: request_headers.merge(custom_headers || {}),
|
85
91
|
base_url: request_url
|
86
92
|
}
|
@@ -580,13 +586,15 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
|
|
580
586
|
#
|
581
587
|
# @param device_name [String] The device name.
|
582
588
|
# @param resource_group_name [String] The resource group name.
|
589
|
+
# @param expand [String] Specify $filter='CustomContextTag eq <tag>' to filter
|
590
|
+
# on custom context tag property
|
583
591
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
584
592
|
# will be added to the HTTP request.
|
585
593
|
#
|
586
594
|
# @return [TriggerList] which provide lazy access to pages of the response.
|
587
595
|
#
|
588
|
-
def list_by_data_box_edge_device_as_lazy(device_name, resource_group_name, custom_headers:nil)
|
589
|
-
response = list_by_data_box_edge_device_async(device_name, resource_group_name, custom_headers:custom_headers).value!
|
596
|
+
def list_by_data_box_edge_device_as_lazy(device_name, resource_group_name, expand:nil, custom_headers:nil)
|
597
|
+
response = list_by_data_box_edge_device_async(device_name, resource_group_name, expand:expand, custom_headers:custom_headers).value!
|
590
598
|
unless response.nil?
|
591
599
|
page = response.body
|
592
600
|
page.next_method = Proc.new do |next_page_link|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_edgegateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.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: 2019-
|
11
|
+
date: 2019-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|