azure_mgmt_scheduler 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-03-01/generated/azure_mgmt_scheduler.rb +0 -1
- data/lib/2016-03-01/generated/azure_mgmt_scheduler/job_collections.rb +78 -72
- data/lib/2016-03-01/generated/azure_mgmt_scheduler/jobs.rb +60 -55
- data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/basic_authentication.rb +10 -4
- data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/client_cert_authentication.rb +10 -4
- data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/http_authentication.rb +11 -12
- data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/http_request.rb +2 -0
- data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/oauth_authentication.rb +10 -4
- data/lib/2016-03-01/generated/azure_mgmt_scheduler/scheduler_management_client.rb +4 -1
- data/lib/profiles/latest/modules/scheduler_profile_module.rb +160 -145
- data/lib/profiles/latest/scheduler_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/scheduler_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +3 -4
- data/lib/2016-03-01/generated/azure_mgmt_scheduler/models/http_authentication_type.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48d8f2a0ba389a42041b0165f1ac693a3fa476be
|
4
|
+
data.tar.gz: 139e0987530235036960d8782a274f17a35c5c59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c08eda10485762294ce409123d2005f46d48e450e5337da4f7d8e41e3af674efdd0b83cbcc2418fcb38ff6d61ab8082a65820521285fe482123a6af089564d96
|
7
|
+
data.tar.gz: 12566f2b5f883b38ad55ae8473477463ec6a6e3d3f9aafe719cda6cbb1a9c80788069ee6645f5a5bb7853576b8fffaf79fa40dce998c6bfa06306c32b49e8d63
|
@@ -61,7 +61,6 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
61
61
|
autoload :JobCollectionState, '2016-03-01/generated/azure_mgmt_scheduler/models/job_collection_state.rb'
|
62
62
|
autoload :RecurrenceFrequency, '2016-03-01/generated/azure_mgmt_scheduler/models/recurrence_frequency.rb'
|
63
63
|
autoload :JobActionType, '2016-03-01/generated/azure_mgmt_scheduler/models/job_action_type.rb'
|
64
|
-
autoload :HttpAuthenticationType, '2016-03-01/generated/azure_mgmt_scheduler/models/http_authentication_type.rb'
|
65
64
|
autoload :RetryType, '2016-03-01/generated/azure_mgmt_scheduler/models/retry_type.rb'
|
66
65
|
autoload :DayOfWeek, '2016-03-01/generated/azure_mgmt_scheduler/models/day_of_week.rb'
|
67
66
|
autoload :JobScheduleDay, '2016-03-01/generated/azure_mgmt_scheduler/models/job_schedule_day.rb'
|
@@ -29,8 +29,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
29
29
|
#
|
30
30
|
# @return [Array<JobCollectionDefinition>] operation results.
|
31
31
|
#
|
32
|
-
def list_by_subscription(custom_headers
|
33
|
-
first_page = list_by_subscription_as_lazy(custom_headers)
|
32
|
+
def list_by_subscription(custom_headers:nil)
|
33
|
+
first_page = list_by_subscription_as_lazy(custom_headers:custom_headers)
|
34
34
|
first_page.get_all_items
|
35
35
|
end
|
36
36
|
|
@@ -42,8 +42,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
42
42
|
#
|
43
43
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
44
|
#
|
45
|
-
def list_by_subscription_with_http_info(custom_headers
|
46
|
-
list_by_subscription_async(custom_headers).value!
|
45
|
+
def list_by_subscription_with_http_info(custom_headers:nil)
|
46
|
+
list_by_subscription_async(custom_headers:custom_headers).value!
|
47
47
|
end
|
48
48
|
|
49
49
|
#
|
@@ -54,12 +54,13 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
54
54
|
#
|
55
55
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
56
|
#
|
57
|
-
def list_by_subscription_async(custom_headers
|
57
|
+
def list_by_subscription_async(custom_headers:nil)
|
58
58
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
59
59
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
60
60
|
|
61
61
|
|
62
62
|
request_headers = {}
|
63
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
63
64
|
|
64
65
|
# Set Headers
|
65
66
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -113,8 +114,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
113
114
|
#
|
114
115
|
# @return [Array<JobCollectionDefinition>] operation results.
|
115
116
|
#
|
116
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
117
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
117
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
118
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
118
119
|
first_page.get_all_items
|
119
120
|
end
|
120
121
|
|
@@ -127,8 +128,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
127
128
|
#
|
128
129
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
129
130
|
#
|
130
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
131
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
131
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
132
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
132
133
|
end
|
133
134
|
|
134
135
|
#
|
@@ -140,13 +141,14 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
140
141
|
#
|
141
142
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
142
143
|
#
|
143
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
144
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
144
145
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
145
146
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
146
147
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
147
148
|
|
148
149
|
|
149
150
|
request_headers = {}
|
151
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
150
152
|
|
151
153
|
# Set Headers
|
152
154
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -201,8 +203,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
201
203
|
#
|
202
204
|
# @return [JobCollectionDefinition] operation results.
|
203
205
|
#
|
204
|
-
def get(resource_group_name, job_collection_name, custom_headers
|
205
|
-
response = get_async(resource_group_name, job_collection_name, custom_headers).value!
|
206
|
+
def get(resource_group_name, job_collection_name, custom_headers:nil)
|
207
|
+
response = get_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
206
208
|
response.body unless response.nil?
|
207
209
|
end
|
208
210
|
|
@@ -216,8 +218,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
216
218
|
#
|
217
219
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
218
220
|
#
|
219
|
-
def get_with_http_info(resource_group_name, job_collection_name, custom_headers
|
220
|
-
get_async(resource_group_name, job_collection_name, custom_headers).value!
|
221
|
+
def get_with_http_info(resource_group_name, job_collection_name, custom_headers:nil)
|
222
|
+
get_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
221
223
|
end
|
222
224
|
|
223
225
|
#
|
@@ -230,7 +232,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
230
232
|
#
|
231
233
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
232
234
|
#
|
233
|
-
def get_async(resource_group_name, job_collection_name, custom_headers
|
235
|
+
def get_async(resource_group_name, job_collection_name, custom_headers:nil)
|
234
236
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
235
237
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
236
238
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -238,6 +240,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
238
240
|
|
239
241
|
|
240
242
|
request_headers = {}
|
243
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
241
244
|
|
242
245
|
# Set Headers
|
243
246
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -294,8 +297,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
294
297
|
#
|
295
298
|
# @return [JobCollectionDefinition] operation results.
|
296
299
|
#
|
297
|
-
def create_or_update(resource_group_name, job_collection_name, job_collection, custom_headers
|
298
|
-
response = create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
|
300
|
+
def create_or_update(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
|
301
|
+
response = create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value!
|
299
302
|
response.body unless response.nil?
|
300
303
|
end
|
301
304
|
|
@@ -311,8 +314,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
311
314
|
#
|
312
315
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
313
316
|
#
|
314
|
-
def create_or_update_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers
|
315
|
-
create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
|
317
|
+
def create_or_update_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
|
318
|
+
create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value!
|
316
319
|
end
|
317
320
|
|
318
321
|
#
|
@@ -327,7 +330,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
327
330
|
#
|
328
331
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
329
332
|
#
|
330
|
-
def create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers
|
333
|
+
def create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
|
331
334
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
332
335
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
333
336
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -336,13 +339,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
336
339
|
|
337
340
|
|
338
341
|
request_headers = {}
|
342
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
339
343
|
|
340
344
|
# Set Headers
|
341
345
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
342
346
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
343
347
|
|
344
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
345
|
-
|
346
348
|
# Serialize Request
|
347
349
|
request_mapper = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionDefinition.mapper()
|
348
350
|
request_content = @client.serialize(request_mapper, job_collection)
|
@@ -411,8 +413,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
411
413
|
#
|
412
414
|
# @return [JobCollectionDefinition] operation results.
|
413
415
|
#
|
414
|
-
def patch(resource_group_name, job_collection_name, job_collection, custom_headers
|
415
|
-
response = patch_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
|
416
|
+
def patch(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
|
417
|
+
response = patch_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value!
|
416
418
|
response.body unless response.nil?
|
417
419
|
end
|
418
420
|
|
@@ -428,8 +430,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
428
430
|
#
|
429
431
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
430
432
|
#
|
431
|
-
def patch_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers
|
432
|
-
patch_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
|
433
|
+
def patch_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
|
434
|
+
patch_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value!
|
433
435
|
end
|
434
436
|
|
435
437
|
#
|
@@ -444,7 +446,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
444
446
|
#
|
445
447
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
446
448
|
#
|
447
|
-
def patch_async(resource_group_name, job_collection_name, job_collection, custom_headers
|
449
|
+
def patch_async(resource_group_name, job_collection_name, job_collection, custom_headers:nil)
|
448
450
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
449
451
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
450
452
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -453,13 +455,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
453
455
|
|
454
456
|
|
455
457
|
request_headers = {}
|
458
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
456
459
|
|
457
460
|
# Set Headers
|
458
461
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
459
462
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
460
463
|
|
461
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
462
|
-
|
463
464
|
# Serialize Request
|
464
465
|
request_mapper = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionDefinition.mapper()
|
465
466
|
request_content = @client.serialize(request_mapper, job_collection)
|
@@ -514,8 +515,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
514
515
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
515
516
|
# will be added to the HTTP request.
|
516
517
|
#
|
517
|
-
def delete(resource_group_name, job_collection_name, custom_headers
|
518
|
-
response = delete_async(resource_group_name, job_collection_name, custom_headers).value!
|
518
|
+
def delete(resource_group_name, job_collection_name, custom_headers:nil)
|
519
|
+
response = delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
519
520
|
nil
|
520
521
|
end
|
521
522
|
|
@@ -528,9 +529,9 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
528
529
|
# @return [Concurrent::Promise] promise which provides async access to http
|
529
530
|
# response.
|
530
531
|
#
|
531
|
-
def delete_async(resource_group_name, job_collection_name, custom_headers
|
532
|
+
def delete_async(resource_group_name, job_collection_name, custom_headers:nil)
|
532
533
|
# Send request
|
533
|
-
promise = begin_delete_async(resource_group_name, job_collection_name, custom_headers)
|
534
|
+
promise = begin_delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers)
|
534
535
|
|
535
536
|
promise = promise.then do |response|
|
536
537
|
# Defining deserialization method.
|
@@ -552,8 +553,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
552
553
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
553
554
|
# will be added to the HTTP request.
|
554
555
|
#
|
555
|
-
def enable(resource_group_name, job_collection_name, custom_headers
|
556
|
-
response = enable_async(resource_group_name, job_collection_name, custom_headers).value!
|
556
|
+
def enable(resource_group_name, job_collection_name, custom_headers:nil)
|
557
|
+
response = enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
557
558
|
nil
|
558
559
|
end
|
559
560
|
|
@@ -566,9 +567,9 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
566
567
|
# @return [Concurrent::Promise] promise which provides async access to http
|
567
568
|
# response.
|
568
569
|
#
|
569
|
-
def enable_async(resource_group_name, job_collection_name, custom_headers
|
570
|
+
def enable_async(resource_group_name, job_collection_name, custom_headers:nil)
|
570
571
|
# Send request
|
571
|
-
promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers)
|
572
|
+
promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers)
|
572
573
|
|
573
574
|
promise = promise.then do |response|
|
574
575
|
# Defining deserialization method.
|
@@ -590,8 +591,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
590
591
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
591
592
|
# will be added to the HTTP request.
|
592
593
|
#
|
593
|
-
def disable(resource_group_name, job_collection_name, custom_headers
|
594
|
-
response = disable_async(resource_group_name, job_collection_name, custom_headers).value!
|
594
|
+
def disable(resource_group_name, job_collection_name, custom_headers:nil)
|
595
|
+
response = disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
595
596
|
nil
|
596
597
|
end
|
597
598
|
|
@@ -604,9 +605,9 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
604
605
|
# @return [Concurrent::Promise] promise which provides async access to http
|
605
606
|
# response.
|
606
607
|
#
|
607
|
-
def disable_async(resource_group_name, job_collection_name, custom_headers
|
608
|
+
def disable_async(resource_group_name, job_collection_name, custom_headers:nil)
|
608
609
|
# Send request
|
609
|
-
promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers)
|
610
|
+
promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers)
|
610
611
|
|
611
612
|
promise = promise.then do |response|
|
612
613
|
# Defining deserialization method.
|
@@ -629,8 +630,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
629
630
|
# will be added to the HTTP request.
|
630
631
|
#
|
631
632
|
#
|
632
|
-
def begin_delete(resource_group_name, job_collection_name, custom_headers
|
633
|
-
response = begin_delete_async(resource_group_name, job_collection_name, custom_headers).value!
|
633
|
+
def begin_delete(resource_group_name, job_collection_name, custom_headers:nil)
|
634
|
+
response = begin_delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
634
635
|
nil
|
635
636
|
end
|
636
637
|
|
@@ -644,8 +645,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
644
645
|
#
|
645
646
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
646
647
|
#
|
647
|
-
def begin_delete_with_http_info(resource_group_name, job_collection_name, custom_headers
|
648
|
-
begin_delete_async(resource_group_name, job_collection_name, custom_headers).value!
|
648
|
+
def begin_delete_with_http_info(resource_group_name, job_collection_name, custom_headers:nil)
|
649
|
+
begin_delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
649
650
|
end
|
650
651
|
|
651
652
|
#
|
@@ -658,7 +659,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
658
659
|
#
|
659
660
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
660
661
|
#
|
661
|
-
def begin_delete_async(resource_group_name, job_collection_name, custom_headers
|
662
|
+
def begin_delete_async(resource_group_name, job_collection_name, custom_headers:nil)
|
662
663
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
663
664
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
664
665
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -666,6 +667,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
666
667
|
|
667
668
|
|
668
669
|
request_headers = {}
|
670
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
669
671
|
|
670
672
|
# Set Headers
|
671
673
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -709,8 +711,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
709
711
|
# will be added to the HTTP request.
|
710
712
|
#
|
711
713
|
#
|
712
|
-
def begin_enable(resource_group_name, job_collection_name, custom_headers
|
713
|
-
response = begin_enable_async(resource_group_name, job_collection_name, custom_headers).value!
|
714
|
+
def begin_enable(resource_group_name, job_collection_name, custom_headers:nil)
|
715
|
+
response = begin_enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
714
716
|
nil
|
715
717
|
end
|
716
718
|
|
@@ -724,8 +726,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
724
726
|
#
|
725
727
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
726
728
|
#
|
727
|
-
def begin_enable_with_http_info(resource_group_name, job_collection_name, custom_headers
|
728
|
-
begin_enable_async(resource_group_name, job_collection_name, custom_headers).value!
|
729
|
+
def begin_enable_with_http_info(resource_group_name, job_collection_name, custom_headers:nil)
|
730
|
+
begin_enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
729
731
|
end
|
730
732
|
|
731
733
|
#
|
@@ -738,7 +740,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
738
740
|
#
|
739
741
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
740
742
|
#
|
741
|
-
def begin_enable_async(resource_group_name, job_collection_name, custom_headers
|
743
|
+
def begin_enable_async(resource_group_name, job_collection_name, custom_headers:nil)
|
742
744
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
743
745
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
744
746
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -746,6 +748,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
746
748
|
|
747
749
|
|
748
750
|
request_headers = {}
|
751
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
749
752
|
|
750
753
|
# Set Headers
|
751
754
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -789,8 +792,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
789
792
|
# will be added to the HTTP request.
|
790
793
|
#
|
791
794
|
#
|
792
|
-
def begin_disable(resource_group_name, job_collection_name, custom_headers
|
793
|
-
response = begin_disable_async(resource_group_name, job_collection_name, custom_headers).value!
|
795
|
+
def begin_disable(resource_group_name, job_collection_name, custom_headers:nil)
|
796
|
+
response = begin_disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
794
797
|
nil
|
795
798
|
end
|
796
799
|
|
@@ -804,8 +807,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
804
807
|
#
|
805
808
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
806
809
|
#
|
807
|
-
def begin_disable_with_http_info(resource_group_name, job_collection_name, custom_headers
|
808
|
-
begin_disable_async(resource_group_name, job_collection_name, custom_headers).value!
|
810
|
+
def begin_disable_with_http_info(resource_group_name, job_collection_name, custom_headers:nil)
|
811
|
+
begin_disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value!
|
809
812
|
end
|
810
813
|
|
811
814
|
#
|
@@ -818,7 +821,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
818
821
|
#
|
819
822
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
820
823
|
#
|
821
|
-
def begin_disable_async(resource_group_name, job_collection_name, custom_headers
|
824
|
+
def begin_disable_async(resource_group_name, job_collection_name, custom_headers:nil)
|
822
825
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
823
826
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
824
827
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -826,6 +829,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
826
829
|
|
827
830
|
|
828
831
|
request_headers = {}
|
832
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
829
833
|
|
830
834
|
# Set Headers
|
831
835
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -870,8 +874,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
870
874
|
#
|
871
875
|
# @return [JobCollectionListResult] operation results.
|
872
876
|
#
|
873
|
-
def list_by_subscription_next(next_page_link, custom_headers
|
874
|
-
response = list_by_subscription_next_async(next_page_link, custom_headers).value!
|
877
|
+
def list_by_subscription_next(next_page_link, custom_headers:nil)
|
878
|
+
response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
875
879
|
response.body unless response.nil?
|
876
880
|
end
|
877
881
|
|
@@ -885,8 +889,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
885
889
|
#
|
886
890
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
887
891
|
#
|
888
|
-
def list_by_subscription_next_with_http_info(next_page_link, custom_headers
|
889
|
-
list_by_subscription_next_async(next_page_link, custom_headers).value!
|
892
|
+
def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
|
893
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
890
894
|
end
|
891
895
|
|
892
896
|
#
|
@@ -899,11 +903,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
899
903
|
#
|
900
904
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
901
905
|
#
|
902
|
-
def list_by_subscription_next_async(next_page_link, custom_headers
|
906
|
+
def list_by_subscription_next_async(next_page_link, custom_headers:nil)
|
903
907
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
904
908
|
|
905
909
|
|
906
910
|
request_headers = {}
|
911
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
907
912
|
|
908
913
|
# Set Headers
|
909
914
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -957,8 +962,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
957
962
|
#
|
958
963
|
# @return [JobCollectionListResult] operation results.
|
959
964
|
#
|
960
|
-
def list_by_resource_group_next(next_page_link, custom_headers
|
961
|
-
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
965
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
966
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
962
967
|
response.body unless response.nil?
|
963
968
|
end
|
964
969
|
|
@@ -972,8 +977,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
972
977
|
#
|
973
978
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
974
979
|
#
|
975
|
-
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers
|
976
|
-
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
980
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
981
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
977
982
|
end
|
978
983
|
|
979
984
|
#
|
@@ -986,11 +991,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
986
991
|
#
|
987
992
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
988
993
|
#
|
989
|
-
def list_by_resource_group_next_async(next_page_link, custom_headers
|
994
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
990
995
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
991
996
|
|
992
997
|
|
993
998
|
request_headers = {}
|
999
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
994
1000
|
|
995
1001
|
# Set Headers
|
996
1002
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1043,12 +1049,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
1043
1049
|
# @return [JobCollectionListResult] which provide lazy access to pages of the
|
1044
1050
|
# response.
|
1045
1051
|
#
|
1046
|
-
def list_by_subscription_as_lazy(custom_headers
|
1047
|
-
response = list_by_subscription_async(custom_headers).value!
|
1052
|
+
def list_by_subscription_as_lazy(custom_headers:nil)
|
1053
|
+
response = list_by_subscription_async(custom_headers:custom_headers).value!
|
1048
1054
|
unless response.nil?
|
1049
1055
|
page = response.body
|
1050
1056
|
page.next_method = Proc.new do |next_page_link|
|
1051
|
-
list_by_subscription_next_async(next_page_link, custom_headers)
|
1057
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
|
1052
1058
|
end
|
1053
1059
|
page
|
1054
1060
|
end
|
@@ -1064,12 +1070,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01
|
|
1064
1070
|
# @return [JobCollectionListResult] which provide lazy access to pages of the
|
1065
1071
|
# response.
|
1066
1072
|
#
|
1067
|
-
def list_by_resource_group_as_lazy(resource_group_name, custom_headers
|
1068
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
1073
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
1074
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
1069
1075
|
unless response.nil?
|
1070
1076
|
page = response.body
|
1071
1077
|
page.next_method = Proc.new do |next_page_link|
|
1072
|
-
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1078
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
1073
1079
|
end
|
1074
1080
|
page
|
1075
1081
|
end
|