azure_mgmt_scheduler 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_scheduler.rb +18 -18
  3. data/lib/generated/azure_mgmt_scheduler/job_collections.rb +130 -130
  4. data/lib/generated/azure_mgmt_scheduler/jobs.rb +76 -72
  5. data/lib/generated/azure_mgmt_scheduler/models/basic_authentication.rb +4 -2
  6. data/lib/generated/azure_mgmt_scheduler/models/client_cert_authentication.rb +6 -3
  7. data/lib/generated/azure_mgmt_scheduler/models/day_of_week.rb +1 -1
  8. data/lib/generated/azure_mgmt_scheduler/models/http_authentication.rb +3 -2
  9. data/lib/generated/azure_mgmt_scheduler/models/http_authentication_type.rb +1 -1
  10. data/lib/generated/azure_mgmt_scheduler/models/http_request.rb +5 -3
  11. data/lib/generated/azure_mgmt_scheduler/models/job_action.rb +2 -1
  12. data/lib/generated/azure_mgmt_scheduler/models/job_action_type.rb +1 -1
  13. data/lib/generated/azure_mgmt_scheduler/models/job_collection_definition.rb +2 -1
  14. data/lib/generated/azure_mgmt_scheduler/models/job_collection_list_result.rb +1 -1
  15. data/lib/generated/azure_mgmt_scheduler/models/job_collection_properties.rb +2 -1
  16. data/lib/generated/azure_mgmt_scheduler/models/job_collection_quota.rb +2 -1
  17. data/lib/generated/azure_mgmt_scheduler/models/job_collection_state.rb +1 -1
  18. data/lib/generated/azure_mgmt_scheduler/models/job_definition.rb +2 -1
  19. data/lib/generated/azure_mgmt_scheduler/models/job_error_action.rb +2 -1
  20. data/lib/generated/azure_mgmt_scheduler/models/job_execution_status.rb +1 -1
  21. data/lib/generated/azure_mgmt_scheduler/models/job_history_action_name.rb +1 -1
  22. data/lib/generated/azure_mgmt_scheduler/models/job_history_definition.rb +2 -1
  23. data/lib/generated/azure_mgmt_scheduler/models/job_history_definition_properties.rb +2 -1
  24. data/lib/generated/azure_mgmt_scheduler/models/job_history_filter.rb +2 -1
  25. data/lib/generated/azure_mgmt_scheduler/models/job_history_list_result.rb +1 -1
  26. data/lib/generated/azure_mgmt_scheduler/models/job_list_result.rb +1 -1
  27. data/lib/generated/azure_mgmt_scheduler/models/job_max_recurrence.rb +2 -1
  28. data/lib/generated/azure_mgmt_scheduler/models/job_properties.rb +2 -1
  29. data/lib/generated/azure_mgmt_scheduler/models/job_recurrence.rb +4 -3
  30. data/lib/generated/azure_mgmt_scheduler/models/job_recurrence_schedule.rb +4 -3
  31. data/lib/generated/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb +5 -4
  32. data/lib/generated/azure_mgmt_scheduler/models/job_schedule_day.rb +1 -1
  33. data/lib/generated/azure_mgmt_scheduler/models/job_state.rb +1 -1
  34. data/lib/generated/azure_mgmt_scheduler/models/job_state_filter.rb +4 -3
  35. data/lib/generated/azure_mgmt_scheduler/models/job_status.rb +3 -3
  36. data/lib/generated/azure_mgmt_scheduler/models/oauth_authentication.rb +4 -2
  37. data/lib/generated/azure_mgmt_scheduler/models/recurrence_frequency.rb +1 -1
  38. data/lib/generated/azure_mgmt_scheduler/models/retry_policy.rb +4 -2
  39. data/lib/generated/azure_mgmt_scheduler/models/retry_type.rb +1 -1
  40. data/lib/generated/azure_mgmt_scheduler/models/service_bus_authentication.rb +2 -1
  41. data/lib/generated/azure_mgmt_scheduler/models/service_bus_authentication_type.rb +1 -1
  42. data/lib/generated/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb +6 -5
  43. data/lib/generated/azure_mgmt_scheduler/models/service_bus_message.rb +6 -4
  44. data/lib/generated/azure_mgmt_scheduler/models/service_bus_queue_message.rb +2 -1
  45. data/lib/generated/azure_mgmt_scheduler/models/service_bus_topic_message.rb +2 -1
  46. data/lib/generated/azure_mgmt_scheduler/models/service_bus_transport_type.rb +1 -1
  47. data/lib/generated/azure_mgmt_scheduler/models/sku.rb +2 -1
  48. data/lib/generated/azure_mgmt_scheduler/models/sku_definition.rb +1 -1
  49. data/lib/generated/azure_mgmt_scheduler/models/storage_queue_message.rb +2 -1
  50. data/lib/generated/azure_mgmt_scheduler/module_definition.rb +1 -1
  51. data/lib/generated/azure_mgmt_scheduler/scheduler_management_client.rb +14 -1
  52. data/lib/generated/azure_mgmt_scheduler/version.rb +2 -2
  53. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e416ae5638b29aee29897cd02585b0445b1a4a8b
4
- data.tar.gz: 9f6baf7db6f51a7d8d925f2f58fc5e7f4ee3b363
3
+ metadata.gz: a17bbf54fcdc91a5f49a75aa4e749d414dda44c8
4
+ data.tar.gz: 47e9a8e6375ac37e06944e6cd44ee31d5ac90888
5
5
  SHA512:
6
- metadata.gz: 3eb8424cbd8804427b5ad728b0091f46b70c1ab08df12c358275c7fac278b0ac34473bf054722375a4aa0b7e32c6166913a5063a619d1d2ad884e32497c58e04
7
- data.tar.gz: 4bfd2e007845f2a390d0be1d1fcf478f80f5c88e5e81004e1ddfb3505892237f903fd1b84c4dadd593b4b1e35a59e176b8fa3c1499515d85552b80afe5288be3
6
+ metadata.gz: ebf650870510e1d913e909ebe782aea4cfe5f1c2e7010eefa4236464c41cfdeebf2ff9bd854ac0f72d76f0100a8d52c6dbf8668b9c8d19d892f3dec7dc9d6018
7
+ data.tar.gz: aa9110680f793179504b5adbd422116b49b2ce3f3cf90519300ccc699a7526315aa028060b1ea0eafc3f920fbe8bb6b9882fd7345a2fda8140d869f7b924faf7
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -25,33 +25,33 @@ module Azure::ARM::Scheduler
25
25
  autoload :SchedulerManagementClient, 'generated/azure_mgmt_scheduler/scheduler_management_client.rb'
26
26
 
27
27
  module Models
28
- autoload :JobCollectionListResult, 'generated/azure_mgmt_scheduler/models/job_collection_list_result.rb'
29
- autoload :JobCollectionDefinition, 'generated/azure_mgmt_scheduler/models/job_collection_definition.rb'
30
- autoload :JobCollectionProperties, 'generated/azure_mgmt_scheduler/models/job_collection_properties.rb'
31
- autoload :Sku, 'generated/azure_mgmt_scheduler/models/sku.rb'
32
- autoload :JobCollectionQuota, 'generated/azure_mgmt_scheduler/models/job_collection_quota.rb'
33
- autoload :JobMaxRecurrence, 'generated/azure_mgmt_scheduler/models/job_max_recurrence.rb'
34
- autoload :JobListResult, 'generated/azure_mgmt_scheduler/models/job_list_result.rb'
35
- autoload :JobDefinition, 'generated/azure_mgmt_scheduler/models/job_definition.rb'
36
- autoload :JobProperties, 'generated/azure_mgmt_scheduler/models/job_properties.rb'
37
- autoload :JobAction, 'generated/azure_mgmt_scheduler/models/job_action.rb'
38
- autoload :HttpRequest, 'generated/azure_mgmt_scheduler/models/http_request.rb'
39
- autoload :HttpAuthentication, 'generated/azure_mgmt_scheduler/models/http_authentication.rb'
40
- autoload :StorageQueueMessage, 'generated/azure_mgmt_scheduler/models/storage_queue_message.rb'
41
- autoload :RetryPolicy, 'generated/azure_mgmt_scheduler/models/retry_policy.rb'
42
28
  autoload :JobErrorAction, 'generated/azure_mgmt_scheduler/models/job_error_action.rb'
29
+ autoload :JobCollectionListResult, 'generated/azure_mgmt_scheduler/models/job_collection_list_result.rb'
43
30
  autoload :JobRecurrence, 'generated/azure_mgmt_scheduler/models/job_recurrence.rb'
31
+ autoload :JobCollectionProperties, 'generated/azure_mgmt_scheduler/models/job_collection_properties.rb'
44
32
  autoload :JobRecurrenceSchedule, 'generated/azure_mgmt_scheduler/models/job_recurrence_schedule.rb'
33
+ autoload :JobCollectionQuota, 'generated/azure_mgmt_scheduler/models/job_collection_quota.rb'
45
34
  autoload :JobRecurrenceScheduleMonthlyOccurrence, 'generated/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb'
35
+ autoload :JobListResult, 'generated/azure_mgmt_scheduler/models/job_list_result.rb'
46
36
  autoload :JobStatus, 'generated/azure_mgmt_scheduler/models/job_status.rb'
37
+ autoload :JobProperties, 'generated/azure_mgmt_scheduler/models/job_properties.rb'
47
38
  autoload :JobHistoryListResult, 'generated/azure_mgmt_scheduler/models/job_history_list_result.rb'
39
+ autoload :HttpRequest, 'generated/azure_mgmt_scheduler/models/http_request.rb'
48
40
  autoload :JobHistoryDefinition, 'generated/azure_mgmt_scheduler/models/job_history_definition.rb'
41
+ autoload :StorageQueueMessage, 'generated/azure_mgmt_scheduler/models/storage_queue_message.rb'
49
42
  autoload :JobHistoryDefinitionProperties, 'generated/azure_mgmt_scheduler/models/job_history_definition_properties.rb'
50
- autoload :ServiceBusMessage, 'generated/azure_mgmt_scheduler/models/service_bus_message.rb'
43
+ autoload :HttpAuthentication, 'generated/azure_mgmt_scheduler/models/http_authentication.rb'
44
+ autoload :RetryPolicy, 'generated/azure_mgmt_scheduler/models/retry_policy.rb'
51
45
  autoload :ServiceBusAuthentication, 'generated/azure_mgmt_scheduler/models/service_bus_authentication.rb'
52
- autoload :ServiceBusBrokeredMessageProperties, 'generated/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb'
53
- autoload :JobStateFilter, 'generated/azure_mgmt_scheduler/models/job_state_filter.rb'
46
+ autoload :Sku, 'generated/azure_mgmt_scheduler/models/sku.rb'
47
+ autoload :JobDefinition, 'generated/azure_mgmt_scheduler/models/job_definition.rb'
54
48
  autoload :JobHistoryFilter, 'generated/azure_mgmt_scheduler/models/job_history_filter.rb'
49
+ autoload :JobCollectionDefinition, 'generated/azure_mgmt_scheduler/models/job_collection_definition.rb'
50
+ autoload :JobStateFilter, 'generated/azure_mgmt_scheduler/models/job_state_filter.rb'
51
+ autoload :JobAction, 'generated/azure_mgmt_scheduler/models/job_action.rb'
52
+ autoload :ServiceBusBrokeredMessageProperties, 'generated/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb'
53
+ autoload :JobMaxRecurrence, 'generated/azure_mgmt_scheduler/models/job_max_recurrence.rb'
54
+ autoload :ServiceBusMessage, 'generated/azure_mgmt_scheduler/models/service_bus_message.rb'
55
55
  autoload :ServiceBusQueueMessage, 'generated/azure_mgmt_scheduler/models/service_bus_queue_message.rb'
56
56
  autoload :ServiceBusTopicMessage, 'generated/azure_mgmt_scheduler/models/service_bus_topic_message.rb'
57
57
  autoload :ClientCertAuthentication, 'generated/azure_mgmt_scheduler/models/client_cert_authentication.rb'
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -22,26 +22,6 @@ module Azure::ARM::Scheduler
22
22
  # @return [SchedulerManagementClient] reference to the SchedulerManagementClient
23
23
  attr_reader :client
24
24
 
25
- #
26
- # Gets all job collections under specified subscription.
27
- #
28
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
29
- # will be added to the HTTP request.
30
- #
31
- # @return [JobCollectionListResult] which provide lazy access to pages of the
32
- # response.
33
- #
34
- def list_by_subscription_as_lazy(custom_headers = nil)
35
- response = list_by_subscription_async(custom_headers).value!
36
- unless response.nil?
37
- page = response.body
38
- page.next_method = Proc.new do |next_page_link|
39
- list_by_subscription_next_async(next_page_link, custom_headers)
40
- end
41
- page
42
- end
43
- end
44
-
45
25
  #
46
26
  # Gets all job collections under specified subscription.
47
27
  #
@@ -125,27 +105,6 @@ module Azure::ARM::Scheduler
125
105
  promise.execute
126
106
  end
127
107
 
128
- #
129
- # Gets all job collections under specified resource group.
130
- #
131
- # @param resource_group_name [String] The resource group name.
132
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
133
- # will be added to the HTTP request.
134
- #
135
- # @return [JobCollectionListResult] which provide lazy access to pages of the
136
- # response.
137
- #
138
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
139
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
140
- unless response.nil?
141
- page = response.body
142
- page.next_method = Proc.new do |next_page_link|
143
- list_by_resource_group_next_async(next_page_link, custom_headers)
144
- end
145
- page
146
- end
147
- end
148
-
149
108
  #
150
109
  # Gets all job collections under specified resource group.
151
110
  #
@@ -586,6 +545,82 @@ module Azure::ARM::Scheduler
586
545
  promise
587
546
  end
588
547
 
548
+ #
549
+ # Enables all of the jobs in the job collection.
550
+ #
551
+ # @param resource_group_name [String] The resource group name.
552
+ # @param job_collection_name [String] The job collection name.
553
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
554
+ # will be added to the HTTP request.
555
+ #
556
+ def enable(resource_group_name, job_collection_name, custom_headers = nil)
557
+ response = enable_async(resource_group_name, job_collection_name, custom_headers).value!
558
+ nil
559
+ end
560
+
561
+ #
562
+ # @param resource_group_name [String] The resource group name.
563
+ # @param job_collection_name [String] The job collection name.
564
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
565
+ # will be added to the HTTP request.
566
+ #
567
+ # @return [Concurrent::Promise] promise which provides async access to http
568
+ # response.
569
+ #
570
+ def enable_async(resource_group_name, job_collection_name, custom_headers = nil)
571
+ # Send request
572
+ promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers)
573
+
574
+ promise = promise.then do |response|
575
+ # Defining deserialization method.
576
+ deserialize_method = lambda do |parsed_response|
577
+ end
578
+
579
+ # Waiting for response.
580
+ @client.get_long_running_operation_result(response, deserialize_method)
581
+ end
582
+
583
+ promise
584
+ end
585
+
586
+ #
587
+ # Disables all of the jobs in the job collection.
588
+ #
589
+ # @param resource_group_name [String] The resource group name.
590
+ # @param job_collection_name [String] The job collection name.
591
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
592
+ # will be added to the HTTP request.
593
+ #
594
+ def disable(resource_group_name, job_collection_name, custom_headers = nil)
595
+ response = disable_async(resource_group_name, job_collection_name, custom_headers).value!
596
+ nil
597
+ end
598
+
599
+ #
600
+ # @param resource_group_name [String] The resource group name.
601
+ # @param job_collection_name [String] The job collection name.
602
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
603
+ # will be added to the HTTP request.
604
+ #
605
+ # @return [Concurrent::Promise] promise which provides async access to http
606
+ # response.
607
+ #
608
+ def disable_async(resource_group_name, job_collection_name, custom_headers = nil)
609
+ # Send request
610
+ promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers)
611
+
612
+ promise = promise.then do |response|
613
+ # Defining deserialization method.
614
+ deserialize_method = lambda do |parsed_response|
615
+ end
616
+
617
+ # Waiting for response.
618
+ @client.get_long_running_operation_result(response, deserialize_method)
619
+ end
620
+
621
+ promise
622
+ end
623
+
589
624
  #
590
625
  # Deletes a job collection.
591
626
  #
@@ -666,44 +701,6 @@ module Azure::ARM::Scheduler
666
701
  promise.execute
667
702
  end
668
703
 
669
- #
670
- # Enables all of the jobs in the job collection.
671
- #
672
- # @param resource_group_name [String] The resource group name.
673
- # @param job_collection_name [String] The job collection name.
674
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
675
- # will be added to the HTTP request.
676
- #
677
- def enable(resource_group_name, job_collection_name, custom_headers = nil)
678
- response = enable_async(resource_group_name, job_collection_name, custom_headers).value!
679
- nil
680
- end
681
-
682
- #
683
- # @param resource_group_name [String] The resource group name.
684
- # @param job_collection_name [String] The job collection name.
685
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
686
- # will be added to the HTTP request.
687
- #
688
- # @return [Concurrent::Promise] promise which provides async access to http
689
- # response.
690
- #
691
- def enable_async(resource_group_name, job_collection_name, custom_headers = nil)
692
- # Send request
693
- promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers)
694
-
695
- promise = promise.then do |response|
696
- # Defining deserialization method.
697
- deserialize_method = lambda do |parsed_response|
698
- end
699
-
700
- # Waiting for response.
701
- @client.get_long_running_operation_result(response, deserialize_method)
702
- end
703
-
704
- promise
705
- end
706
-
707
704
  #
708
705
  # Enables all of the jobs in the job collection.
709
706
  #
@@ -784,44 +781,6 @@ module Azure::ARM::Scheduler
784
781
  promise.execute
785
782
  end
786
783
 
787
- #
788
- # Disables all of the jobs in the job collection.
789
- #
790
- # @param resource_group_name [String] The resource group name.
791
- # @param job_collection_name [String] The job collection name.
792
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
793
- # will be added to the HTTP request.
794
- #
795
- def disable(resource_group_name, job_collection_name, custom_headers = nil)
796
- response = disable_async(resource_group_name, job_collection_name, custom_headers).value!
797
- nil
798
- end
799
-
800
- #
801
- # @param resource_group_name [String] The resource group name.
802
- # @param job_collection_name [String] The job collection name.
803
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
804
- # will be added to the HTTP request.
805
- #
806
- # @return [Concurrent::Promise] promise which provides async access to http
807
- # response.
808
- #
809
- def disable_async(resource_group_name, job_collection_name, custom_headers = nil)
810
- # Send request
811
- promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers)
812
-
813
- promise = promise.then do |response|
814
- # Defining deserialization method.
815
- deserialize_method = lambda do |parsed_response|
816
- end
817
-
818
- # Waiting for response.
819
- @client.get_long_running_operation_result(response, deserialize_method)
820
- end
821
-
822
- promise
823
- end
824
-
825
784
  #
826
785
  # Disables all of the jobs in the job collection.
827
786
  #
@@ -905,8 +864,8 @@ module Azure::ARM::Scheduler
905
864
  #
906
865
  # Gets all job collections under specified subscription.
907
866
  #
908
- # @param next_page_link [String] The NextLink from the previous successful
909
- # call to List operation.
867
+ # @param next_page_link [String] The NextLink from the previous successful call
868
+ # to List operation.
910
869
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
911
870
  # will be added to the HTTP request.
912
871
  #
@@ -920,8 +879,8 @@ module Azure::ARM::Scheduler
920
879
  #
921
880
  # Gets all job collections under specified subscription.
922
881
  #
923
- # @param next_page_link [String] The NextLink from the previous successful
924
- # call to List operation.
882
+ # @param next_page_link [String] The NextLink from the previous successful call
883
+ # to List operation.
925
884
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
926
885
  # will be added to the HTTP request.
927
886
  #
@@ -934,8 +893,8 @@ module Azure::ARM::Scheduler
934
893
  #
935
894
  # Gets all job collections under specified subscription.
936
895
  #
937
- # @param next_page_link [String] The NextLink from the previous successful
938
- # call to List operation.
896
+ # @param next_page_link [String] The NextLink from the previous successful call
897
+ # to List operation.
939
898
  # @param [Hash{String => String}] A hash of custom headers that will be added
940
899
  # to the HTTP request.
941
900
  #
@@ -992,8 +951,8 @@ module Azure::ARM::Scheduler
992
951
  #
993
952
  # Gets all job collections under specified resource group.
994
953
  #
995
- # @param next_page_link [String] The NextLink from the previous successful
996
- # call to List operation.
954
+ # @param next_page_link [String] The NextLink from the previous successful call
955
+ # to List operation.
997
956
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
998
957
  # will be added to the HTTP request.
999
958
  #
@@ -1007,8 +966,8 @@ module Azure::ARM::Scheduler
1007
966
  #
1008
967
  # Gets all job collections under specified resource group.
1009
968
  #
1010
- # @param next_page_link [String] The NextLink from the previous successful
1011
- # call to List operation.
969
+ # @param next_page_link [String] The NextLink from the previous successful call
970
+ # to List operation.
1012
971
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1013
972
  # will be added to the HTTP request.
1014
973
  #
@@ -1021,8 +980,8 @@ module Azure::ARM::Scheduler
1021
980
  #
1022
981
  # Gets all job collections under specified resource group.
1023
982
  #
1024
- # @param next_page_link [String] The NextLink from the previous successful
1025
- # call to List operation.
983
+ # @param next_page_link [String] The NextLink from the previous successful call
984
+ # to List operation.
1026
985
  # @param [Hash{String => String}] A hash of custom headers that will be added
1027
986
  # to the HTTP request.
1028
987
  #
@@ -1076,5 +1035,46 @@ module Azure::ARM::Scheduler
1076
1035
  promise.execute
1077
1036
  end
1078
1037
 
1038
+ #
1039
+ # Gets all job collections under specified subscription.
1040
+ #
1041
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1042
+ # will be added to the HTTP request.
1043
+ #
1044
+ # @return [JobCollectionListResult] which provide lazy access to pages of the
1045
+ # response.
1046
+ #
1047
+ def list_by_subscription_as_lazy(custom_headers = nil)
1048
+ response = list_by_subscription_async(custom_headers).value!
1049
+ unless response.nil?
1050
+ page = response.body
1051
+ page.next_method = Proc.new do |next_page_link|
1052
+ list_by_subscription_next_async(next_page_link, custom_headers)
1053
+ end
1054
+ page
1055
+ end
1056
+ end
1057
+
1058
+ #
1059
+ # Gets all job collections under specified resource group.
1060
+ #
1061
+ # @param resource_group_name [String] The resource group name.
1062
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1063
+ # will be added to the HTTP request.
1064
+ #
1065
+ # @return [JobCollectionListResult] which provide lazy access to pages of the
1066
+ # response.
1067
+ #
1068
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
1069
+ response = list_by_resource_group_async(resource_group_name, custom_headers).value!
1070
+ unless response.nil?
1071
+ page = response.body
1072
+ page.next_method = Proc.new do |next_page_link|
1073
+ list_by_resource_group_next_async(next_page_link, custom_headers)
1074
+ end
1075
+ page
1076
+ end
1077
+ end
1078
+
1079
1079
  end
1080
1080
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -516,32 +516,8 @@ module Azure::ARM::Scheduler
516
516
  #
517
517
  # @param resource_group_name [String] The resource group name.
518
518
  # @param job_collection_name [String] The job collection name.
519
- # @param top [Integer] The number of jobs to request, in the of range [1..100].
520
- # @param skip [Integer] The (0-based) index of the job history list from which
521
- # to begin requesting entries.
522
- # @param filter [String] The filter to apply on the job state.
523
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
524
- # will be added to the HTTP request.
525
- #
526
- # @return [JobListResult] which provide lazy access to pages of the response.
527
- #
528
- def list_as_lazy(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
529
- response = list_async(resource_group_name, job_collection_name, top, skip, filter, custom_headers).value!
530
- unless response.nil?
531
- page = response.body
532
- page.next_method = Proc.new do |next_page_link|
533
- list_next_async(next_page_link, custom_headers)
534
- end
535
- page
536
- end
537
- end
538
-
539
- #
540
- # Lists all jobs under the specified job collection.
541
- #
542
- # @param resource_group_name [String] The resource group name.
543
- # @param job_collection_name [String] The job collection name.
544
- # @param top [Integer] The number of jobs to request, in the of range [1..100].
519
+ # @param top [Integer] The number of jobs to request, in the of range of
520
+ # [1..100].
545
521
  # @param skip [Integer] The (0-based) index of the job history list from which
546
522
  # to begin requesting entries.
547
523
  # @param filter [String] The filter to apply on the job state.
@@ -560,7 +536,8 @@ module Azure::ARM::Scheduler
560
536
  #
561
537
  # @param resource_group_name [String] The resource group name.
562
538
  # @param job_collection_name [String] The job collection name.
563
- # @param top [Integer] The number of jobs to request, in the of range [1..100].
539
+ # @param top [Integer] The number of jobs to request, in the of range of
540
+ # [1..100].
564
541
  # @param skip [Integer] The (0-based) index of the job history list from which
565
542
  # to begin requesting entries.
566
543
  # @param filter [String] The filter to apply on the job state.
@@ -578,7 +555,8 @@ module Azure::ARM::Scheduler
578
555
  #
579
556
  # @param resource_group_name [String] The resource group name.
580
557
  # @param job_collection_name [String] The job collection name.
581
- # @param top [Integer] The number of jobs to request, in the of range [1..100].
558
+ # @param top [Integer] The number of jobs to request, in the of range of
559
+ # [1..100].
582
560
  # @param skip [Integer] The (0-based) index of the job history list from which
583
561
  # to begin requesting entries.
584
562
  # @param filter [String] The filter to apply on the job state.
@@ -645,35 +623,7 @@ module Azure::ARM::Scheduler
645
623
  # @param resource_group_name [String] The resource group name.
646
624
  # @param job_collection_name [String] The job collection name.
647
625
  # @param job_name [String] The job name.
648
- # @param top [Integer] the number of job history to request, in the of range
649
- # [1..100].
650
- # @param skip [Integer] The (0-based) index of the job history list from which
651
- # to begin requesting entries.
652
- # @param filter [String] The filter to apply on the job state.
653
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
654
- # will be added to the HTTP request.
655
- #
656
- # @return [JobHistoryListResult] which provide lazy access to pages of the
657
- # response.
658
- #
659
- def list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
660
- response = list_job_history_async(resource_group_name, job_collection_name, job_name, top, skip, filter, custom_headers).value!
661
- unless response.nil?
662
- page = response.body
663
- page.next_method = Proc.new do |next_page_link|
664
- list_job_history_next_async(next_page_link, custom_headers)
665
- end
666
- page
667
- end
668
- end
669
-
670
- #
671
- # Lists job history.
672
- #
673
- # @param resource_group_name [String] The resource group name.
674
- # @param job_collection_name [String] The job collection name.
675
- # @param job_name [String] The job name.
676
- # @param top [Integer] the number of job history to request, in the of range
626
+ # @param top [Integer] the number of job history to request, in the of range of
677
627
  # [1..100].
678
628
  # @param skip [Integer] The (0-based) index of the job history list from which
679
629
  # to begin requesting entries.
@@ -694,7 +644,7 @@ module Azure::ARM::Scheduler
694
644
  # @param resource_group_name [String] The resource group name.
695
645
  # @param job_collection_name [String] The job collection name.
696
646
  # @param job_name [String] The job name.
697
- # @param top [Integer] the number of job history to request, in the of range
647
+ # @param top [Integer] the number of job history to request, in the of range of
698
648
  # [1..100].
699
649
  # @param skip [Integer] The (0-based) index of the job history list from which
700
650
  # to begin requesting entries.
@@ -714,7 +664,7 @@ module Azure::ARM::Scheduler
714
664
  # @param resource_group_name [String] The resource group name.
715
665
  # @param job_collection_name [String] The job collection name.
716
666
  # @param job_name [String] The job name.
717
- # @param top [Integer] the number of job history to request, in the of range
667
+ # @param top [Integer] the number of job history to request, in the of range of
718
668
  # [1..100].
719
669
  # @param skip [Integer] The (0-based) index of the job history list from which
720
670
  # to begin requesting entries.
@@ -780,8 +730,8 @@ module Azure::ARM::Scheduler
780
730
  #
781
731
  # Lists all jobs under the specified job collection.
782
732
  #
783
- # @param next_page_link [String] The NextLink from the previous successful
784
- # call to List operation.
733
+ # @param next_page_link [String] The NextLink from the previous successful call
734
+ # to List operation.
785
735
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
786
736
  # will be added to the HTTP request.
787
737
  #
@@ -795,8 +745,8 @@ module Azure::ARM::Scheduler
795
745
  #
796
746
  # Lists all jobs under the specified job collection.
797
747
  #
798
- # @param next_page_link [String] The NextLink from the previous successful
799
- # call to List operation.
748
+ # @param next_page_link [String] The NextLink from the previous successful call
749
+ # to List operation.
800
750
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
801
751
  # will be added to the HTTP request.
802
752
  #
@@ -809,8 +759,8 @@ module Azure::ARM::Scheduler
809
759
  #
810
760
  # Lists all jobs under the specified job collection.
811
761
  #
812
- # @param next_page_link [String] The NextLink from the previous successful
813
- # call to List operation.
762
+ # @param next_page_link [String] The NextLink from the previous successful call
763
+ # to List operation.
814
764
  # @param [Hash{String => String}] A hash of custom headers that will be added
815
765
  # to the HTTP request.
816
766
  #
@@ -867,8 +817,8 @@ module Azure::ARM::Scheduler
867
817
  #
868
818
  # Lists job history.
869
819
  #
870
- # @param next_page_link [String] The NextLink from the previous successful
871
- # call to List operation.
820
+ # @param next_page_link [String] The NextLink from the previous successful call
821
+ # to List operation.
872
822
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
873
823
  # will be added to the HTTP request.
874
824
  #
@@ -882,8 +832,8 @@ module Azure::ARM::Scheduler
882
832
  #
883
833
  # Lists job history.
884
834
  #
885
- # @param next_page_link [String] The NextLink from the previous successful
886
- # call to List operation.
835
+ # @param next_page_link [String] The NextLink from the previous successful call
836
+ # to List operation.
887
837
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
888
838
  # will be added to the HTTP request.
889
839
  #
@@ -896,8 +846,8 @@ module Azure::ARM::Scheduler
896
846
  #
897
847
  # Lists job history.
898
848
  #
899
- # @param next_page_link [String] The NextLink from the previous successful
900
- # call to List operation.
849
+ # @param next_page_link [String] The NextLink from the previous successful call
850
+ # to List operation.
901
851
  # @param [Hash{String => String}] A hash of custom headers that will be added
902
852
  # to the HTTP request.
903
853
  #
@@ -951,5 +901,59 @@ module Azure::ARM::Scheduler
951
901
  promise.execute
952
902
  end
953
903
 
904
+ #
905
+ # Lists all jobs under the specified job collection.
906
+ #
907
+ # @param resource_group_name [String] The resource group name.
908
+ # @param job_collection_name [String] The job collection name.
909
+ # @param top [Integer] The number of jobs to request, in the of range of
910
+ # [1..100].
911
+ # @param skip [Integer] The (0-based) index of the job history list from which
912
+ # to begin requesting entries.
913
+ # @param filter [String] The filter to apply on the job state.
914
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
915
+ # will be added to the HTTP request.
916
+ #
917
+ # @return [JobListResult] which provide lazy access to pages of the response.
918
+ #
919
+ def list_as_lazy(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
920
+ response = list_async(resource_group_name, job_collection_name, top, skip, filter, custom_headers).value!
921
+ unless response.nil?
922
+ page = response.body
923
+ page.next_method = Proc.new do |next_page_link|
924
+ list_next_async(next_page_link, custom_headers)
925
+ end
926
+ page
927
+ end
928
+ end
929
+
930
+ #
931
+ # Lists job history.
932
+ #
933
+ # @param resource_group_name [String] The resource group name.
934
+ # @param job_collection_name [String] The job collection name.
935
+ # @param job_name [String] The job name.
936
+ # @param top [Integer] the number of job history to request, in the of range of
937
+ # [1..100].
938
+ # @param skip [Integer] The (0-based) index of the job history list from which
939
+ # to begin requesting entries.
940
+ # @param filter [String] The filter to apply on the job state.
941
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
942
+ # will be added to the HTTP request.
943
+ #
944
+ # @return [JobHistoryListResult] which provide lazy access to pages of the
945
+ # response.
946
+ #
947
+ def list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
948
+ response = list_job_history_async(resource_group_name, job_collection_name, job_name, top, skip, filter, custom_headers).value!
949
+ unless response.nil?
950
+ page = response.body
951
+ page.next_method = Proc.new do |next_page_link|
952
+ list_job_history_next_async(next_page_link, custom_headers)
953
+ end
954
+ page
955
+ end
956
+ end
957
+
954
958
  end
955
959
  end