Class: Azure::ARM::Scheduler::JobCollections

Inherits:
Object
  • Object
show all
Includes:
Models, MsRestAzure
Defined in:
lib/generated/azure_mgmt_scheduler/job_collections.rb

Overview

JobCollections

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ JobCollections

Creates and initializes a new instance of the JobCollections class.

Parameters:

  • client

    service class for accessing basic functionality.



18
19
20
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 18

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientSchedulerManagementClient (readonly)

Returns reference to the SchedulerManagementClient.

Returns:



23
24
25
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 23

def client
  @client
end

Instance Method Details

#begin_delete(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Object

Deletes a job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that



613
614
615
616
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 613

def begin_delete(resource_group_name, job_collection_name, custom_headers = nil)
  response = begin_delete_async(resource_group_name, job_collection_name, custom_headers).value!
  nil
end

#begin_delete_async(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Concurrent::Promise

Deletes a job collection.

to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 642

def begin_delete_async(resource_group_name, job_collection_name, custom_headers = nil)
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobCollectionName' => job_collection_name},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {})
  }

  request_url = @base_url || @client.base_url

  request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
  promise = request.run_promise do |req|
    @client.credentials.sign_request(req) unless @client.credentials.nil?
  end

  promise = promise.then do |http_response|
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200 || status_code == 202
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
    end

    # Create Result
    result = MsRestAzure::AzureOperationResponse.new(request, http_response)
    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end

#begin_delete_with_http_info(resource_group_name, job_collection_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Deletes a job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



628
629
630
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 628

def begin_delete_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
  begin_delete_async(resource_group_name, job_collection_name, custom_headers).value!
end

#begin_disable(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Object

Disables all of the jobs in the job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that



855
856
857
858
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 855

def begin_disable(resource_group_name, job_collection_name, custom_headers = nil)
  response = begin_disable_async(resource_group_name, job_collection_name, custom_headers).value!
  nil
end

#begin_disable_async(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Concurrent::Promise

Disables all of the jobs in the job collection.

to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 884

def begin_disable_async(resource_group_name, job_collection_name, custom_headers = nil)
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/disable'
  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobCollectionName' => job_collection_name},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {})
  }

  request_url = @base_url || @client.base_url

  request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
  promise = request.run_promise do |req|
    @client.credentials.sign_request(req) unless @client.credentials.nil?
  end

  promise = promise.then do |http_response|
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200 || status_code == 202
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
    end

    # Create Result
    result = MsRestAzure::AzureOperationResponse.new(request, http_response)
    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end

#begin_disable_with_http_info(resource_group_name, job_collection_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Disables all of the jobs in the job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



870
871
872
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 870

def begin_disable_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
  begin_disable_async(resource_group_name, job_collection_name, custom_headers).value!
end

#begin_enable(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Object

Enables all of the jobs in the job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that



734
735
736
737
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 734

def begin_enable(resource_group_name, job_collection_name, custom_headers = nil)
  response = begin_enable_async(resource_group_name, job_collection_name, custom_headers).value!
  nil
end

#begin_enable_async(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Concurrent::Promise

Enables all of the jobs in the job collection.

to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 763

def begin_enable_async(resource_group_name, job_collection_name, custom_headers = nil)
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/enable'
  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobCollectionName' => job_collection_name},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {})
  }

  request_url = @base_url || @client.base_url

  request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
  promise = request.run_promise do |req|
    @client.credentials.sign_request(req) unless @client.credentials.nil?
  end

  promise = promise.then do |http_response|
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200 || status_code == 202
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
    end

    # Create Result
    result = MsRestAzure::AzureOperationResponse.new(request, http_response)
    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end

#begin_enable_with_http_info(resource_group_name, job_collection_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Enables all of the jobs in the job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



749
750
751
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 749

def begin_enable_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
  begin_enable_async(resource_group_name, job_collection_name, custom_headers).value!
end

#create_or_update(resource_group_name, job_collection_name, job_collection, custom_headers = nil) ⇒ JobCollectionDefinition

Provisions a new job collection or updates an existing job collection.

definition. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • job_collection (JobCollectionDefinition)

    The job collection

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:



348
349
350
351
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 348

def create_or_update(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
  response = create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
  response.body unless response.nil?
end

#create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers = nil) ⇒ Concurrent::Promise

Provisions a new job collection or updates an existing job collection.

definition. to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • job_collection (JobCollectionDefinition)

    The job collection

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 381

def create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, 'job_collection is nil' if job_collection.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Serialize Request
  request_mapper = JobCollectionDefinition.mapper()
  request_content = @client.serialize(request_mapper,  job_collection, 'job_collection')
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobCollectionName' => job_collection_name},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {})
  }

  request_url = @base_url || @client.base_url

  request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
  promise = request.run_promise do |req|
    @client.credentials.sign_request(req) unless @client.credentials.nil?
  end

  promise = promise.then do |http_response|
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200 || status_code == 201
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
    end

    # Create Result
    result = MsRestAzure::AzureOperationResponse.new(request, http_response)
    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = JobCollectionDefinition.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end
    # Deserialize Response
    if status_code == 201
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = JobCollectionDefinition.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#create_or_update_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Provisions a new job collection or updates an existing job collection.

definition. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • job_collection (JobCollectionDefinition)

    The job collection

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



365
366
367
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 365

def create_or_update_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
  create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
end

#delete(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Object

Deletes a job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that



574
575
576
577
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 574

def delete(resource_group_name, job_collection_name, custom_headers = nil)
  response = delete_async(resource_group_name, job_collection_name, custom_headers).value!
  nil
end

#delete_async(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Concurrent::Promise

will be added to the HTTP request.

response.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (Concurrent::Promise)

    promise which provides async access to http



588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 588

def delete_async(resource_group_name, job_collection_name, custom_headers = nil)
  # Send request
  promise = begin_delete_async(resource_group_name, job_collection_name, custom_headers)

  promise = promise.then do |response|
    # Defining deserialization method.
    deserialize_method = lambda do |parsed_response|
    end

    # Waiting for response.
    @client.get_long_running_operation_result(response, deserialize_method)
  end

  promise
end

#disable(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Object

Disables all of the jobs in the job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that



816
817
818
819
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 816

def disable(resource_group_name, job_collection_name, custom_headers = nil)
  response = disable_async(resource_group_name, job_collection_name, custom_headers).value!
  nil
end

#disable_async(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Concurrent::Promise

will be added to the HTTP request.

response.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (Concurrent::Promise)

    promise which provides async access to http



830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 830

def disable_async(resource_group_name, job_collection_name, custom_headers = nil)
  # Send request
  promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers)

  promise = promise.then do |response|
    # Defining deserialization method.
    deserialize_method = lambda do |parsed_response|
    end

    # Waiting for response.
    @client.get_long_running_operation_result(response, deserialize_method)
  end

  promise
end

#enable(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Object

Enables all of the jobs in the job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that



695
696
697
698
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 695

def enable(resource_group_name, job_collection_name, custom_headers = nil)
  response = enable_async(resource_group_name, job_collection_name, custom_headers).value!
  nil
end

#enable_async(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Concurrent::Promise

will be added to the HTTP request.

response.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (Concurrent::Promise)

    promise which provides async access to http



709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 709

def enable_async(resource_group_name, job_collection_name, custom_headers = nil)
  # Send request
  promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers)

  promise = promise.then do |response|
    # Defining deserialization method.
    deserialize_method = lambda do |parsed_response|
    end

    # Waiting for response.
    @client.get_long_running_operation_result(response, deserialize_method)
  end

  promise
end

#get(resource_group_name, job_collection_name, custom_headers = nil) ⇒ JobCollectionDefinition

Gets a job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:



252
253
254
255
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 252

def get(resource_group_name, job_collection_name, custom_headers = nil)
  response = get_async(resource_group_name, job_collection_name, custom_headers).value!
  response.body unless response.nil?
end

#get_async(resource_group_name, job_collection_name, custom_headers = nil) ⇒ Concurrent::Promise

Gets a job collection.

to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 281

def get_async(resource_group_name, job_collection_name, custom_headers = nil)
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobCollectionName' => job_collection_name},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {})
  }

  request_url = @base_url || @client.base_url

  request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
  promise = request.run_promise do |req|
    @client.credentials.sign_request(req) unless @client.credentials.nil?
  end

  promise = promise.then do |http_response|
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
    end

    # Create Result
    result = MsRestAzure::AzureOperationResponse.new(request, http_response)
    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = JobCollectionDefinition.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#get_with_http_info(resource_group_name, job_collection_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Gets a job collection.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



267
268
269
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 267

def get_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
  get_async(resource_group_name, job_collection_name, custom_headers).value!
end

#list_by_resource_group(resource_group_name, custom_headers = nil) ⇒ Array<JobCollectionDefinition>

Gets all job collections under specified resource group.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:



161
162
163
164
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 161

def list_by_resource_group(resource_group_name, custom_headers = nil)
  first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
  first_page.get_all_items
end

#list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) ⇒ JobCollectionListResult

Gets all job collections under specified resource group.

will be added to the HTTP request.

response.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:



141
142
143
144
145
146
147
148
149
150
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 141

def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
  response = list_by_resource_group_async(resource_group_name, custom_headers).value!
  unless response.nil?
    page = response.body
    page.next_method = Proc.new do |next_link|
      list_by_resource_group_next_async(next_link, custom_headers)
    end
    page
  end
end

#list_by_resource_group_async(resource_group_name, custom_headers = nil) ⇒ Concurrent::Promise

Gets all job collections under specified resource group.

to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 188

def list_by_resource_group_async(resource_group_name, custom_headers = nil)
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections'
  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {})
  }

  request_url = @base_url || @client.base_url

  request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
  promise = request.run_promise do |req|
    @client.credentials.sign_request(req) unless @client.credentials.nil?
  end

  promise = promise.then do |http_response|
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
    end

    # Create Result
    result = MsRestAzure::AzureOperationResponse.new(request, http_response)
    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = JobCollectionListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_by_resource_group_next(next_page_link, custom_headers = nil) ⇒ JobCollectionListResult

Gets all job collections under specified resource group.

call to List operation. will be added to the HTTP request.

Parameters:

  • next_page_link (String)

    The NextLink from the previous successful

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:



1029
1030
1031
1032
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 1029

def list_by_resource_group_next(next_page_link, custom_headers = nil)
  response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
  response.body unless response.nil?
end

#list_by_resource_group_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise

Gets all job collections under specified resource group.

call to List operation. to the HTTP request.

Parameters:

  • next_page_link (String)

    The NextLink from the previous successful

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 1058

def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{nextLink}'
  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      skip_encoding_path_params: {'nextLink' => next_page_link},
      headers: request_headers.merge(custom_headers || {})
  }

  request_url = @base_url || @client.base_url

  request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
  promise = request.run_promise do |req|
    @client.credentials.sign_request(req) unless @client.credentials.nil?
  end

  promise = promise.then do |http_response|
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
    end

    # Create Result
    result = MsRestAzure::AzureOperationResponse.new(request, http_response)
    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = JobCollectionListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Gets all job collections under specified resource group.

call to List operation. will be added to the HTTP request.

Parameters:

  • next_page_link (String)

    The NextLink from the previous successful

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



1044
1045
1046
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 1044

def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
  list_by_resource_group_next_async(next_page_link, custom_headers).value!
end

#list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Gets all job collections under specified resource group.

will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



175
176
177
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 175

def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
  list_by_resource_group_async(resource_group_name, custom_headers).value!
end

#list_by_subscription(custom_headers = nil) ⇒ Array<JobCollectionDefinition>

Gets all job collections under specified subscription.

will be added to the HTTP request.

Parameters:

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:



53
54
55
56
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 53

def list_by_subscription(custom_headers = nil)
  first_page = list_by_subscription_as_lazy(custom_headers)
  first_page.get_all_items
end

#list_by_subscription_as_lazy(custom_headers = nil) ⇒ JobCollectionListResult

Gets all job collections under specified subscription.

will be added to the HTTP request.

response.

Parameters:

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:



34
35
36
37
38
39
40
41
42
43
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 34

def list_by_subscription_as_lazy(custom_headers = nil)
  response = list_by_subscription_async(custom_headers).value!
  unless response.nil?
    page = response.body
    page.next_method = Proc.new do |next_link|
      list_by_subscription_next_async(next_link, custom_headers)
    end
    page
  end
end

#list_by_subscription_async(custom_headers = nil) ⇒ Concurrent::Promise

Gets all job collections under specified subscription.

to the HTTP request.

Parameters:

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 78

def list_by_subscription_async(custom_headers = nil)
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Scheduler/jobCollections'
  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {})
  }

  request_url = @base_url || @client.base_url

  request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
  promise = request.run_promise do |req|
    @client.credentials.sign_request(req) unless @client.credentials.nil?
  end

  promise = promise.then do |http_response|
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
    end

    # Create Result
    result = MsRestAzure::AzureOperationResponse.new(request, http_response)
    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = JobCollectionListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_by_subscription_next(next_page_link, custom_headers = nil) ⇒ JobCollectionListResult

Gets all job collections under specified subscription.

call to List operation. will be added to the HTTP request.

Parameters:

  • next_page_link (String)

    The NextLink from the previous successful

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:



939
940
941
942
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 939

def list_by_subscription_next(next_page_link, custom_headers = nil)
  response = list_by_subscription_next_async(next_page_link, custom_headers).value!
  response.body unless response.nil?
end

#list_by_subscription_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise

Gets all job collections under specified subscription.

call to List operation. to the HTTP request.

Parameters:

  • next_page_link (String)

    The NextLink from the previous successful

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 968

def list_by_subscription_next_async(next_page_link, custom_headers = nil)
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{nextLink}'
  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      skip_encoding_path_params: {'nextLink' => next_page_link},
      headers: request_headers.merge(custom_headers || {})
  }

  request_url = @base_url || @client.base_url

  request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
  promise = request.run_promise do |req|
    @client.credentials.sign_request(req) unless @client.credentials.nil?
  end

  promise = promise.then do |http_response|
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
    end

    # Create Result
    result = MsRestAzure::AzureOperationResponse.new(request, http_response)
    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = JobCollectionListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Gets all job collections under specified subscription.

call to List operation. will be added to the HTTP request.

Parameters:

  • next_page_link (String)

    The NextLink from the previous successful

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



954
955
956
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 954

def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil)
  list_by_subscription_next_async(next_page_link, custom_headers).value!
end

#list_by_subscription_with_http_info(custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Gets all job collections under specified subscription.

will be added to the HTTP request.

Parameters:

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



66
67
68
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 66

def list_by_subscription_with_http_info(custom_headers = nil)
  list_by_subscription_async(custom_headers).value!
end

#patch(resource_group_name, job_collection_name, job_collection, custom_headers = nil) ⇒ JobCollectionDefinition

Patches an existing job collection.

definition. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • job_collection (JobCollectionDefinition)

    The job collection

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:



468
469
470
471
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 468

def patch(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
  response = patch_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
  response.body unless response.nil?
end

#patch_async(resource_group_name, job_collection_name, job_collection, custom_headers = nil) ⇒ Concurrent::Promise

Patches an existing job collection.

definition. to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • job_collection (JobCollectionDefinition)

    The job collection

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 501

def patch_async(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, 'job_collection is nil' if job_collection.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Serialize Request
  request_mapper = JobCollectionDefinition.mapper()
  request_content = @client.serialize(request_mapper,  job_collection, 'job_collection')
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobCollectionName' => job_collection_name},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {})
  }

  request_url = @base_url || @client.base_url

  request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, options)
  promise = request.run_promise do |req|
    @client.credentials.sign_request(req) unless @client.credentials.nil?
  end

  promise = promise.then do |http_response|
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
    end

    # Create Result
    result = MsRestAzure::AzureOperationResponse.new(request, http_response)
    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = JobCollectionDefinition.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#patch_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Patches an existing job collection.

definition. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The resource group name.

  • job_collection_name (String)

    The job collection name.

  • job_collection (JobCollectionDefinition)

    The job collection

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



485
486
487
# File 'lib/generated/azure_mgmt_scheduler/job_collections.rb', line 485

def patch_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
  patch_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
end