azure_mgmt_relay 0.15.2 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29434fa3e75bd7bfb0495ae38ee491a59a13b289
4
- data.tar.gz: ee43d68c7c699282ce7d6da762da6031d1a800c1
3
+ metadata.gz: 7ecb17faf6376c8403dc29cbbda18adebd5fc0e8
4
+ data.tar.gz: a5f620984d1e36d3d43291dd5a95e32da236fdae
5
5
  SHA512:
6
- metadata.gz: 0947ae5d08c1cab1e5712bace19821ee34dfc6d45509d74e59fab20eb54bba123600f8801111a353f9bf3aaf627676970132825fd5c28ed93ee450aad5beeced
7
- data.tar.gz: 3d26e7f8b9a1498fbd1d016fbce094fc198360133e76a6a37507e27b415839c53a345a3c4196877b288cf915990ceb5b53cb281e4786079d885bdde9bc3c722a
6
+ metadata.gz: 2955fe6a195bef85464a97935e7490fa0f10ea4d0de654c539a77b83a5bd91ff221c8b3362556422cc93cfd6b5dd521f62195620c8d7a9a4377ca6ebe295d3cb
7
+ data.tar.gz: 6cf0068dd2498fb4b50ad74ed684ad4f7586d15c8956a000abe814220d4ad5ac19c04d4bcf32c6e3d51ea72995fb884b69e2c1285e0c25a15878de5830b1bd52
@@ -33,8 +33,8 @@ module Azure::Relay::Mgmt::V2016_07_01
33
33
  #
34
34
  # @return [Array<HybridConnection>] operation results.
35
35
  #
36
- def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil)
37
- first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers)
36
+ def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil)
37
+ first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
38
38
  first_page.get_all_items
39
39
  end
40
40
 
@@ -49,8 +49,8 @@ module Azure::Relay::Mgmt::V2016_07_01
49
49
  #
50
50
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
51
51
  #
52
- def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
53
- list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
52
+ def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
53
+ list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
54
54
  end
55
55
 
56
56
  #
@@ -64,7 +64,7 @@ module Azure::Relay::Mgmt::V2016_07_01
64
64
  #
65
65
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
66
66
  #
67
- def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil)
67
+ def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil)
68
68
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
69
69
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
70
70
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -76,6 +76,7 @@ module Azure::Relay::Mgmt::V2016_07_01
76
76
 
77
77
 
78
78
  request_headers = {}
79
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
80
 
80
81
  # Set Headers
81
82
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -134,8 +135,8 @@ module Azure::Relay::Mgmt::V2016_07_01
134
135
  #
135
136
  # @return [HybridConnection] operation results.
136
137
  #
137
- def create_or_update(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers = nil)
138
- response = create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers).value!
138
+ def create_or_update(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil)
139
+ response = create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:custom_headers).value!
139
140
  response.body unless response.nil?
140
141
  end
141
142
 
@@ -153,8 +154,8 @@ module Azure::Relay::Mgmt::V2016_07_01
153
154
  #
154
155
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
155
156
  #
156
- def create_or_update_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers = nil)
157
- create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers).value!
157
+ def create_or_update_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil)
158
+ create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:custom_headers).value!
158
159
  end
159
160
 
160
161
  #
@@ -171,7 +172,7 @@ module Azure::Relay::Mgmt::V2016_07_01
171
172
  #
172
173
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
173
174
  #
174
- def create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers = nil)
175
+ def create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil)
175
176
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
176
177
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
177
178
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -187,13 +188,12 @@ module Azure::Relay::Mgmt::V2016_07_01
187
188
 
188
189
 
189
190
  request_headers = {}
191
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
190
192
 
191
193
  # Set Headers
192
194
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
193
195
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
194
196
 
195
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
196
-
197
197
  # Serialize Request
198
198
  request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::HybridConnection.mapper()
199
199
  request_content = @client.serialize(request_mapper, parameters)
@@ -251,8 +251,8 @@ module Azure::Relay::Mgmt::V2016_07_01
251
251
  # will be added to the HTTP request.
252
252
  #
253
253
  #
254
- def delete(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
255
- response = delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
254
+ def delete(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
255
+ response = delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
256
256
  nil
257
257
  end
258
258
 
@@ -268,8 +268,8 @@ module Azure::Relay::Mgmt::V2016_07_01
268
268
  #
269
269
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
270
270
  #
271
- def delete_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
272
- delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
271
+ def delete_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
272
+ delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
273
273
  end
274
274
 
275
275
  #
@@ -284,7 +284,7 @@ module Azure::Relay::Mgmt::V2016_07_01
284
284
  #
285
285
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
286
286
  #
287
- def delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
287
+ def delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
288
288
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
289
289
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
290
290
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -299,6 +299,7 @@ module Azure::Relay::Mgmt::V2016_07_01
299
299
 
300
300
 
301
301
  request_headers = {}
302
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
302
303
 
303
304
  # Set Headers
304
305
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -345,8 +346,8 @@ module Azure::Relay::Mgmt::V2016_07_01
345
346
  #
346
347
  # @return [HybridConnection] operation results.
347
348
  #
348
- def get(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
349
- response = get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
349
+ def get(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
350
+ response = get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
350
351
  response.body unless response.nil?
351
352
  end
352
353
 
@@ -362,8 +363,8 @@ module Azure::Relay::Mgmt::V2016_07_01
362
363
  #
363
364
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
364
365
  #
365
- def get_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
366
- get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
366
+ def get_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
367
+ get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
367
368
  end
368
369
 
369
370
  #
@@ -378,7 +379,7 @@ module Azure::Relay::Mgmt::V2016_07_01
378
379
  #
379
380
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
380
381
  #
381
- def get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
382
+ def get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
382
383
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
383
384
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
384
385
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -393,6 +394,7 @@ module Azure::Relay::Mgmt::V2016_07_01
393
394
 
394
395
 
395
396
  request_headers = {}
397
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
396
398
 
397
399
  # Set Headers
398
400
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -449,8 +451,8 @@ module Azure::Relay::Mgmt::V2016_07_01
449
451
  #
450
452
  # @return [Array<AuthorizationRule>] operation results.
451
453
  #
452
- def list_authorization_rules(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
453
- first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers)
454
+ def list_authorization_rules(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
455
+ first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers)
454
456
  first_page.get_all_items
455
457
  end
456
458
 
@@ -466,8 +468,8 @@ module Azure::Relay::Mgmt::V2016_07_01
466
468
  #
467
469
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
468
470
  #
469
- def list_authorization_rules_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
470
- list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
471
+ def list_authorization_rules_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
472
+ list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
471
473
  end
472
474
 
473
475
  #
@@ -482,7 +484,7 @@ module Azure::Relay::Mgmt::V2016_07_01
482
484
  #
483
485
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
484
486
  #
485
- def list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
487
+ def list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
486
488
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
487
489
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
488
490
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -497,6 +499,7 @@ module Azure::Relay::Mgmt::V2016_07_01
497
499
 
498
500
 
499
501
  request_headers = {}
502
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
500
503
 
501
504
  # Set Headers
502
505
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -555,8 +558,8 @@ module Azure::Relay::Mgmt::V2016_07_01
555
558
  #
556
559
  # @return [AuthorizationRule] operation results.
557
560
  #
558
- def create_or_update_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil)
559
- response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value!
561
+ def create_or_update_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
562
+ response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
560
563
  response.body unless response.nil?
561
564
  end
562
565
 
@@ -574,8 +577,8 @@ module Azure::Relay::Mgmt::V2016_07_01
574
577
  #
575
578
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
576
579
  #
577
- def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil)
578
- create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value!
580
+ def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
581
+ create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
579
582
  end
580
583
 
581
584
  #
@@ -592,7 +595,7 @@ module Azure::Relay::Mgmt::V2016_07_01
592
595
  #
593
596
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
594
597
  #
595
- def create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil)
598
+ def create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
596
599
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
597
600
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
598
601
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -611,13 +614,12 @@ module Azure::Relay::Mgmt::V2016_07_01
611
614
 
612
615
 
613
616
  request_headers = {}
617
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
614
618
 
615
619
  # Set Headers
616
620
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
617
621
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
618
622
 
619
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
620
-
621
623
  # Serialize Request
622
624
  request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::AuthorizationRule.mapper()
623
625
  request_content = @client.serialize(request_mapper, parameters)
@@ -676,8 +678,8 @@ module Azure::Relay::Mgmt::V2016_07_01
676
678
  # will be added to the HTTP request.
677
679
  #
678
680
  #
679
- def delete_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
680
- response = delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
681
+ def delete_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
682
+ response = delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
681
683
  nil
682
684
  end
683
685
 
@@ -694,8 +696,8 @@ module Azure::Relay::Mgmt::V2016_07_01
694
696
  #
695
697
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
696
698
  #
697
- def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
698
- delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
699
+ def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
700
+ delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
699
701
  end
700
702
 
701
703
  #
@@ -711,7 +713,7 @@ module Azure::Relay::Mgmt::V2016_07_01
711
713
  #
712
714
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
713
715
  #
714
- def delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
716
+ def delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
715
717
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
716
718
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
717
719
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -729,6 +731,7 @@ module Azure::Relay::Mgmt::V2016_07_01
729
731
 
730
732
 
731
733
  request_headers = {}
734
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
732
735
 
733
736
  # Set Headers
734
737
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -776,8 +779,8 @@ module Azure::Relay::Mgmt::V2016_07_01
776
779
  #
777
780
  # @return [AuthorizationRule] operation results.
778
781
  #
779
- def get_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
780
- response = get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
782
+ def get_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
783
+ response = get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
781
784
  response.body unless response.nil?
782
785
  end
783
786
 
@@ -794,8 +797,8 @@ module Azure::Relay::Mgmt::V2016_07_01
794
797
  #
795
798
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
796
799
  #
797
- def get_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
798
- get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
800
+ def get_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
801
+ get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
799
802
  end
800
803
 
801
804
  #
@@ -811,7 +814,7 @@ module Azure::Relay::Mgmt::V2016_07_01
811
814
  #
812
815
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
813
816
  #
814
- def get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
817
+ def get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
815
818
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
816
819
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
817
820
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -829,6 +832,7 @@ module Azure::Relay::Mgmt::V2016_07_01
829
832
 
830
833
 
831
834
  request_headers = {}
835
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
832
836
 
833
837
  # Set Headers
834
838
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -886,8 +890,8 @@ module Azure::Relay::Mgmt::V2016_07_01
886
890
  #
887
891
  # @return [AuthorizationRuleKeys] operation results.
888
892
  #
889
- def list_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
890
- response = list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
893
+ def list_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
894
+ response = list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
891
895
  response.body unless response.nil?
892
896
  end
893
897
 
@@ -904,8 +908,8 @@ module Azure::Relay::Mgmt::V2016_07_01
904
908
  #
905
909
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
906
910
  #
907
- def list_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
908
- list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value!
911
+ def list_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
912
+ list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value!
909
913
  end
910
914
 
911
915
  #
@@ -921,7 +925,7 @@ module Azure::Relay::Mgmt::V2016_07_01
921
925
  #
922
926
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
923
927
  #
924
- def list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
928
+ def list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil)
925
929
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
926
930
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
927
931
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -939,6 +943,7 @@ module Azure::Relay::Mgmt::V2016_07_01
939
943
 
940
944
 
941
945
  request_headers = {}
946
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
942
947
 
943
948
  # Set Headers
944
949
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -999,8 +1004,8 @@ module Azure::Relay::Mgmt::V2016_07_01
999
1004
  #
1000
1005
  # @return [AuthorizationRuleKeys] operation results.
1001
1006
  #
1002
- def regenerate_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil)
1003
- response = regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value!
1007
+ def regenerate_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
1008
+ response = regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
1004
1009
  response.body unless response.nil?
1005
1010
  end
1006
1011
 
@@ -1020,8 +1025,8 @@ module Azure::Relay::Mgmt::V2016_07_01
1020
1025
  #
1021
1026
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1022
1027
  #
1023
- def regenerate_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil)
1024
- regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value!
1028
+ def regenerate_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
1029
+ regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
1025
1030
  end
1026
1031
 
1027
1032
  #
@@ -1040,7 +1045,7 @@ module Azure::Relay::Mgmt::V2016_07_01
1040
1045
  #
1041
1046
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1042
1047
  #
1043
- def regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil)
1048
+ def regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil)
1044
1049
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1045
1050
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1046
1051
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1059,13 +1064,12 @@ module Azure::Relay::Mgmt::V2016_07_01
1059
1064
 
1060
1065
 
1061
1066
  request_headers = {}
1067
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1062
1068
 
1063
1069
  # Set Headers
1064
1070
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1065
1071
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1066
1072
 
1067
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1068
-
1069
1073
  # Serialize Request
1070
1074
  request_mapper = Azure::Relay::Mgmt::V2016_07_01::Models::RegenerateKeysParameters.mapper()
1071
1075
  request_content = @client.serialize(request_mapper, parameters)
@@ -1122,8 +1126,8 @@ module Azure::Relay::Mgmt::V2016_07_01
1122
1126
  #
1123
1127
  # @return [HybridConnectionListResult] operation results.
1124
1128
  #
1125
- def list_by_namespace_next(next_page_link, custom_headers = nil)
1126
- response = list_by_namespace_next_async(next_page_link, custom_headers).value!
1129
+ def list_by_namespace_next(next_page_link, custom_headers:nil)
1130
+ response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
1127
1131
  response.body unless response.nil?
1128
1132
  end
1129
1133
 
@@ -1137,8 +1141,8 @@ module Azure::Relay::Mgmt::V2016_07_01
1137
1141
  #
1138
1142
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1139
1143
  #
1140
- def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil)
1141
- list_by_namespace_next_async(next_page_link, custom_headers).value!
1144
+ def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil)
1145
+ list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value!
1142
1146
  end
1143
1147
 
1144
1148
  #
@@ -1151,11 +1155,12 @@ module Azure::Relay::Mgmt::V2016_07_01
1151
1155
  #
1152
1156
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1153
1157
  #
1154
- def list_by_namespace_next_async(next_page_link, custom_headers = nil)
1158
+ def list_by_namespace_next_async(next_page_link, custom_headers:nil)
1155
1159
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1156
1160
 
1157
1161
 
1158
1162
  request_headers = {}
1163
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1159
1164
 
1160
1165
  # Set Headers
1161
1166
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1209,8 +1214,8 @@ module Azure::Relay::Mgmt::V2016_07_01
1209
1214
  #
1210
1215
  # @return [AuthorizationRuleListResult] operation results.
1211
1216
  #
1212
- def list_authorization_rules_next(next_page_link, custom_headers = nil)
1213
- response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
1217
+ def list_authorization_rules_next(next_page_link, custom_headers:nil)
1218
+ response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
1214
1219
  response.body unless response.nil?
1215
1220
  end
1216
1221
 
@@ -1224,8 +1229,8 @@ module Azure::Relay::Mgmt::V2016_07_01
1224
1229
  #
1225
1230
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1226
1231
  #
1227
- def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil)
1228
- list_authorization_rules_next_async(next_page_link, custom_headers).value!
1232
+ def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
1233
+ list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
1229
1234
  end
1230
1235
 
1231
1236
  #
@@ -1238,11 +1243,12 @@ module Azure::Relay::Mgmt::V2016_07_01
1238
1243
  #
1239
1244
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1240
1245
  #
1241
- def list_authorization_rules_next_async(next_page_link, custom_headers = nil)
1246
+ def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
1242
1247
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1243
1248
 
1244
1249
 
1245
1250
  request_headers = {}
1251
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1246
1252
 
1247
1253
  # Set Headers
1248
1254
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1298,12 +1304,12 @@ module Azure::Relay::Mgmt::V2016_07_01
1298
1304
  # @return [HybridConnectionListResult] which provide lazy access to pages of
1299
1305
  # the response.
1300
1306
  #
1301
- def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
1302
- response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
1307
+ def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
1308
+ response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
1303
1309
  unless response.nil?
1304
1310
  page = response.body
1305
1311
  page.next_method = Proc.new do |next_page_link|
1306
- list_by_namespace_next_async(next_page_link, custom_headers)
1312
+ list_by_namespace_next_async(next_page_link, custom_headers:custom_headers)
1307
1313
  end
1308
1314
  page
1309
1315
  end
@@ -1322,12 +1328,12 @@ module Azure::Relay::Mgmt::V2016_07_01
1322
1328
  # @return [AuthorizationRuleListResult] which provide lazy access to pages of
1323
1329
  # the response.
1324
1330
  #
1325
- def list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
1326
- response = list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value!
1331
+ def list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil)
1332
+ response = list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value!
1327
1333
  unless response.nil?
1328
1334
  page = response.body
1329
1335
  page.next_method = Proc.new do |next_page_link|
1330
- list_authorization_rules_next_async(next_page_link, custom_headers)
1336
+ list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
1331
1337
  end
1332
1338
  page
1333
1339
  end