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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fbe5c9e92fc41839763e214657aad821a6a8e07d45cb1ab1c22a612895a65db
4
- data.tar.gz: 126a1d6cf4b9682296be83b71d26ad7a77c2764c0eabc6c60bfeeac26fcd4c22
3
+ metadata.gz: 1cfe5c68c1c6b271790e06970113e699dba54c990632d9d7bd83ee06378205f9
4
+ data.tar.gz: 29d7c09865197efbecf46798d7b92f461ec4448b0b65609364ffc9c5778c93c4
5
5
  SHA512:
6
- metadata.gz: 61b40e1a2d93222f72c0c29f1bdcf42cb58dbdbcbea17664b89348b166f89486e5eee15ce6a3b979a077fe605e90b348928acef1fbe995e98a456195c6fdec27
7
- data.tar.gz: ab8eed7ad328ce53baaa4d956ca636b7176c73a1ad4b4b7b58e2ea3f5ae3803c0b448392690f54e6f00772d75e4c4a25f8f7458face6c02b87dc0d9262b4b3c1
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.17.1"
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
  #
@@ -12,14 +12,11 @@ module Azure::EdgeGateway::Mgmt::V2019_03_01
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] The Channel Integrity Key (CIK) of the device.
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 Channel Integrity Key (CIK) of the device.
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 order details of a device.
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 order details of a device.
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 order details of a device.
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 order details of a device.
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 order details of a device.
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|
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::EdgeGateway::Mgmt
6
- VERSION = '0.17.1'
6
+ VERSION = '0.18.0'
7
7
  end
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.17.1
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-03-13 00:00:00.000000000 Z
11
+ date: 2019-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler