azure_mgmt_scheduler 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +13 -5
- data/azure_mgmt_scheduler.gemspec +2 -2
- data/lib/azure_mgmt_scheduler.rb +1 -1
- data/lib/azure_mgmt_scheduler/job_collections.rb +437 -56
- data/lib/azure_mgmt_scheduler/jobs.rb +359 -48
- data/lib/azure_mgmt_scheduler/models/basic_authentication.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/client_cert_authentication.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/day_of_week.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/http_authentication.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/http_authentication_type.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/http_request.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_action.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_action_type.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_collection_definition.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_collection_list_result.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_collection_properties.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_collection_quota.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_collection_state.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_definition.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_error_action.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_execution_status.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_history_action_name.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_history_definition.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_history_definition_properties.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_history_filter.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_history_list_result.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_list_result.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_max_recurrence.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_properties.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_recurrence.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_recurrence_schedule.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_schedule_day.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_state.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_state_filter.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/job_status.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/oauth_authentication.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/recurrence_frequency.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/retry_policy.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/retry_type.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/service_bus_authentication.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/service_bus_authentication_type.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/service_bus_message.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/service_bus_queue_message.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/service_bus_topic_message.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/service_bus_transport_type.rb +1 -1
- data/lib/azure_mgmt_scheduler/models/sku.rb +2 -2
- data/lib/azure_mgmt_scheduler/models/sku_definition.rb +3 -2
- data/lib/azure_mgmt_scheduler/models/storage_queue_message.rb +1 -1
- data/lib/azure_mgmt_scheduler/module_definition.rb +1 -1
- data/lib/azure_mgmt_scheduler/scheduler_management_client.rb +2 -2
- data/lib/azure_mgmt_scheduler/version.rb +2 -2
- metadata +31 -24
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MWY0MmJkOWUyOTBhMWYxYzUwN2NjMTk4YjYwNDhmNGI5ZDcyZGI1Ng==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MzExMjE1MzIwYWM0ZDQwZDQ4ZmZkYmI3OTBkZDY1ZjMyMmQ2ZTRkOA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OGIxOGYyODhmMDY0ZTUyNGM1YzE2YWEyMjJhMjU4OTU5ZjYwY2VjNjNjMTIy
|
10
|
+
NWE5ZDJjNDllMzBhZTgxYjJkMmFmMDNlN2M2MmUyYmRlMjY3MDBmM2ZkMDY5
|
11
|
+
N2Y4ZTJkZDU2MjgzMDY1MjU3NWIzMzQwN2NjMTk2Y2E3Mjc0ZTk=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YTIyNjZkYTM5YjkzMTlmYjM0YjY4NTI4OTFlM2UwODA2MjY4NmZlM2NlMTM3
|
14
|
+
Yzg1M2U3ZGU5NmVhZGE0N2M5ZWZmYWY2ZWU0MWE4NzhlZTRlYmY4MjlkOWY4
|
15
|
+
ZjMwZjdiZmFhODJkOTUxYzE1NDdlZWYwZWU4NzUxNThlYzc2NzM=
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'rake', '~> 10'
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3'
|
31
31
|
spec.add_development_dependency 'dotenv', '~> 2'
|
32
|
-
spec.add_development_dependency 'azure_mgmt_resources', '~> 0.
|
32
|
+
spec.add_development_dependency 'azure_mgmt_resources', '~> 0.3'
|
33
33
|
|
34
|
-
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.
|
34
|
+
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.3'
|
35
35
|
end
|
data/lib/azure_mgmt_scheduler.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -25,13 +25,37 @@ module Azure::ARM::Scheduler
|
|
25
25
|
#
|
26
26
|
# Gets all job collections under specified subscription.
|
27
27
|
#
|
28
|
-
# @param [Hash{String => String}]
|
29
|
-
#
|
28
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
|
+
# will be added to the HTTP request.
|
30
30
|
#
|
31
|
-
# @return [
|
32
|
-
# response.
|
31
|
+
# @return [JobCollectionListResult] operation results.
|
33
32
|
#
|
34
33
|
def list_by_subscription(custom_headers = nil)
|
34
|
+
response = list_by_subscription_async(custom_headers).value!
|
35
|
+
response.body unless response.nil?
|
36
|
+
end
|
37
|
+
|
38
|
+
#
|
39
|
+
# Gets all job collections under specified subscription.
|
40
|
+
#
|
41
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
42
|
+
# will be added to the HTTP request.
|
43
|
+
#
|
44
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
45
|
+
#
|
46
|
+
def list_by_subscription_with_http_info(custom_headers = nil)
|
47
|
+
list_by_subscription_async(custom_headers).value!
|
48
|
+
end
|
49
|
+
|
50
|
+
#
|
51
|
+
# Gets all job collections under specified subscription.
|
52
|
+
#
|
53
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
54
|
+
# to the HTTP request.
|
55
|
+
#
|
56
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
57
|
+
#
|
58
|
+
def list_by_subscription_async(custom_headers = nil)
|
35
59
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
36
60
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
37
61
|
request_headers = {}
|
@@ -46,7 +70,10 @@ module Azure::ARM::Scheduler
|
|
46
70
|
query_params: {'api-version' => @client.api_version},
|
47
71
|
headers: request_headers.merge(custom_headers || {})
|
48
72
|
}
|
49
|
-
|
73
|
+
|
74
|
+
request_url = @base_url || @client.base_url
|
75
|
+
|
76
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
50
77
|
promise = request.run_promise do |req|
|
51
78
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
52
79
|
end
|
@@ -85,13 +112,39 @@ module Azure::ARM::Scheduler
|
|
85
112
|
# Gets all job collections under specified resource group.
|
86
113
|
#
|
87
114
|
# @param resource_group_name [String] The resource group name.
|
88
|
-
# @param [Hash{String => String}]
|
89
|
-
#
|
115
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
116
|
+
# will be added to the HTTP request.
|
90
117
|
#
|
91
|
-
# @return [
|
92
|
-
# response.
|
118
|
+
# @return [JobCollectionListResult] operation results.
|
93
119
|
#
|
94
120
|
def list_by_resource_group(resource_group_name, custom_headers = nil)
|
121
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
122
|
+
response.body unless response.nil?
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Gets all job collections under specified resource group.
|
127
|
+
#
|
128
|
+
# @param resource_group_name [String] The resource group name.
|
129
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
130
|
+
# will be added to the HTTP request.
|
131
|
+
#
|
132
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
133
|
+
#
|
134
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
|
135
|
+
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
136
|
+
end
|
137
|
+
|
138
|
+
#
|
139
|
+
# Gets all job collections under specified resource group.
|
140
|
+
#
|
141
|
+
# @param resource_group_name [String] The resource group name.
|
142
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
143
|
+
# to the HTTP request.
|
144
|
+
#
|
145
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
146
|
+
#
|
147
|
+
def list_by_resource_group_async(resource_group_name, custom_headers = nil)
|
95
148
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
96
149
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
97
150
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -107,7 +160,10 @@ module Azure::ARM::Scheduler
|
|
107
160
|
query_params: {'api-version' => @client.api_version},
|
108
161
|
headers: request_headers.merge(custom_headers || {})
|
109
162
|
}
|
110
|
-
|
163
|
+
|
164
|
+
request_url = @base_url || @client.base_url
|
165
|
+
|
166
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
111
167
|
promise = request.run_promise do |req|
|
112
168
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
113
169
|
end
|
@@ -147,13 +203,41 @@ module Azure::ARM::Scheduler
|
|
147
203
|
#
|
148
204
|
# @param resource_group_name [String] The resource group name.
|
149
205
|
# @param job_collection_name [String] The job collection name.
|
150
|
-
# @param [Hash{String => String}]
|
151
|
-
#
|
206
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
207
|
+
# will be added to the HTTP request.
|
152
208
|
#
|
153
|
-
# @return [
|
154
|
-
# response.
|
209
|
+
# @return [JobCollectionDefinition] operation results.
|
155
210
|
#
|
156
211
|
def get(resource_group_name, job_collection_name, custom_headers = nil)
|
212
|
+
response = get_async(resource_group_name, job_collection_name, custom_headers).value!
|
213
|
+
response.body unless response.nil?
|
214
|
+
end
|
215
|
+
|
216
|
+
#
|
217
|
+
# Gets a job collection.
|
218
|
+
#
|
219
|
+
# @param resource_group_name [String] The resource group name.
|
220
|
+
# @param job_collection_name [String] The job collection name.
|
221
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
222
|
+
# will be added to the HTTP request.
|
223
|
+
#
|
224
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
225
|
+
#
|
226
|
+
def get_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
|
227
|
+
get_async(resource_group_name, job_collection_name, custom_headers).value!
|
228
|
+
end
|
229
|
+
|
230
|
+
#
|
231
|
+
# Gets a job collection.
|
232
|
+
#
|
233
|
+
# @param resource_group_name [String] The resource group name.
|
234
|
+
# @param job_collection_name [String] The job collection name.
|
235
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
236
|
+
# to the HTTP request.
|
237
|
+
#
|
238
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
239
|
+
#
|
240
|
+
def get_async(resource_group_name, job_collection_name, custom_headers = nil)
|
157
241
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
158
242
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
159
243
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -170,7 +254,10 @@ module Azure::ARM::Scheduler
|
|
170
254
|
query_params: {'api-version' => @client.api_version},
|
171
255
|
headers: request_headers.merge(custom_headers || {})
|
172
256
|
}
|
173
|
-
|
257
|
+
|
258
|
+
request_url = @base_url || @client.base_url
|
259
|
+
|
260
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
174
261
|
promise = request.run_promise do |req|
|
175
262
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
176
263
|
end
|
@@ -212,13 +299,45 @@ module Azure::ARM::Scheduler
|
|
212
299
|
# @param job_collection_name [String] The job collection name.
|
213
300
|
# @param job_collection [JobCollectionDefinition] The job collection
|
214
301
|
# definition.
|
215
|
-
# @param [Hash{String => String}]
|
216
|
-
#
|
302
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
303
|
+
# will be added to the HTTP request.
|
217
304
|
#
|
218
|
-
# @return [
|
219
|
-
# response.
|
305
|
+
# @return [JobCollectionDefinition] operation results.
|
220
306
|
#
|
221
307
|
def create_or_update(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
|
308
|
+
response = create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
|
309
|
+
response.body unless response.nil?
|
310
|
+
end
|
311
|
+
|
312
|
+
#
|
313
|
+
# Provisions a new job collection or updates an existing job collection.
|
314
|
+
#
|
315
|
+
# @param resource_group_name [String] The resource group name.
|
316
|
+
# @param job_collection_name [String] The job collection name.
|
317
|
+
# @param job_collection [JobCollectionDefinition] The job collection
|
318
|
+
# definition.
|
319
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
320
|
+
# will be added to the HTTP request.
|
321
|
+
#
|
322
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
323
|
+
#
|
324
|
+
def create_or_update_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
|
325
|
+
create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
|
326
|
+
end
|
327
|
+
|
328
|
+
#
|
329
|
+
# Provisions a new job collection or updates an existing job collection.
|
330
|
+
#
|
331
|
+
# @param resource_group_name [String] The resource group name.
|
332
|
+
# @param job_collection_name [String] The job collection name.
|
333
|
+
# @param job_collection [JobCollectionDefinition] The job collection
|
334
|
+
# definition.
|
335
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
336
|
+
# to the HTTP request.
|
337
|
+
#
|
338
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
339
|
+
#
|
340
|
+
def create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
|
222
341
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
223
342
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
224
343
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -236,7 +355,7 @@ module Azure::ARM::Scheduler
|
|
236
355
|
unless job_collection.nil?
|
237
356
|
job_collection = JobCollectionDefinition.serialize_object(job_collection)
|
238
357
|
end
|
239
|
-
request_content = JSON.generate(job_collection, quirks_mode: true)
|
358
|
+
request_content = job_collection != nil ? JSON.generate(job_collection, quirks_mode: true) : nil
|
240
359
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
|
241
360
|
options = {
|
242
361
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -245,7 +364,10 @@ module Azure::ARM::Scheduler
|
|
245
364
|
body: request_content,
|
246
365
|
headers: request_headers.merge(custom_headers || {})
|
247
366
|
}
|
248
|
-
|
367
|
+
|
368
|
+
request_url = @base_url || @client.base_url
|
369
|
+
|
370
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
249
371
|
promise = request.run_promise do |req|
|
250
372
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
251
373
|
end
|
@@ -299,13 +421,45 @@ module Azure::ARM::Scheduler
|
|
299
421
|
# @param job_collection_name [String] The job collection name.
|
300
422
|
# @param job_collection [JobCollectionDefinition] The job collection
|
301
423
|
# definition.
|
302
|
-
# @param [Hash{String => String}]
|
303
|
-
#
|
424
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
425
|
+
# will be added to the HTTP request.
|
304
426
|
#
|
305
|
-
# @return [
|
306
|
-
# response.
|
427
|
+
# @return [JobCollectionDefinition] operation results.
|
307
428
|
#
|
308
429
|
def patch(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
|
430
|
+
response = patch_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
|
431
|
+
response.body unless response.nil?
|
432
|
+
end
|
433
|
+
|
434
|
+
#
|
435
|
+
# Patches an existing job collection.
|
436
|
+
#
|
437
|
+
# @param resource_group_name [String] The resource group name.
|
438
|
+
# @param job_collection_name [String] The job collection name.
|
439
|
+
# @param job_collection [JobCollectionDefinition] The job collection
|
440
|
+
# definition.
|
441
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
442
|
+
# will be added to the HTTP request.
|
443
|
+
#
|
444
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
445
|
+
#
|
446
|
+
def patch_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
|
447
|
+
patch_async(resource_group_name, job_collection_name, job_collection, custom_headers).value!
|
448
|
+
end
|
449
|
+
|
450
|
+
#
|
451
|
+
# Patches an existing job collection.
|
452
|
+
#
|
453
|
+
# @param resource_group_name [String] The resource group name.
|
454
|
+
# @param job_collection_name [String] The job collection name.
|
455
|
+
# @param job_collection [JobCollectionDefinition] The job collection
|
456
|
+
# definition.
|
457
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
458
|
+
# to the HTTP request.
|
459
|
+
#
|
460
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
461
|
+
#
|
462
|
+
def patch_async(resource_group_name, job_collection_name, job_collection, custom_headers = nil)
|
309
463
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
310
464
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
311
465
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -323,7 +477,7 @@ module Azure::ARM::Scheduler
|
|
323
477
|
unless job_collection.nil?
|
324
478
|
job_collection = JobCollectionDefinition.serialize_object(job_collection)
|
325
479
|
end
|
326
|
-
request_content = JSON.generate(job_collection, quirks_mode: true)
|
480
|
+
request_content = job_collection != nil ? JSON.generate(job_collection, quirks_mode: true) : nil
|
327
481
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
|
328
482
|
options = {
|
329
483
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -332,7 +486,10 @@ module Azure::ARM::Scheduler
|
|
332
486
|
body: request_content,
|
333
487
|
headers: request_headers.merge(custom_headers || {})
|
334
488
|
}
|
335
|
-
|
489
|
+
|
490
|
+
request_url = @base_url || @client.base_url
|
491
|
+
|
492
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, options)
|
336
493
|
promise = request.run_promise do |req|
|
337
494
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
338
495
|
end
|
@@ -372,13 +529,64 @@ module Azure::ARM::Scheduler
|
|
372
529
|
#
|
373
530
|
# @param resource_group_name [String] The resource group name.
|
374
531
|
# @param job_collection_name [String] The job collection name.
|
375
|
-
# @
|
376
|
-
# applied to HTTP request.
|
377
|
-
#
|
378
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
532
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
379
533
|
# response.
|
380
534
|
#
|
381
535
|
def delete(resource_group_name, job_collection_name, custom_headers = nil)
|
536
|
+
# Send request
|
537
|
+
promise = begin_delete_async(resource_group_name, job_collection_name, custom_headers)
|
538
|
+
|
539
|
+
promise = promise.then do |response|
|
540
|
+
# Defining deserialization method.
|
541
|
+
deserialize_method = lambda do |parsed_response|
|
542
|
+
end
|
543
|
+
|
544
|
+
# Waiting for response.
|
545
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
546
|
+
end
|
547
|
+
|
548
|
+
promise
|
549
|
+
end
|
550
|
+
|
551
|
+
#
|
552
|
+
# Deletes a job collection.
|
553
|
+
#
|
554
|
+
# @param resource_group_name [String] The resource group name.
|
555
|
+
# @param job_collection_name [String] The job collection name.
|
556
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
557
|
+
# will be added to the HTTP request.
|
558
|
+
#
|
559
|
+
#
|
560
|
+
def begin_delete(resource_group_name, job_collection_name, custom_headers = nil)
|
561
|
+
response = begin_delete_async(resource_group_name, job_collection_name, custom_headers).value!
|
562
|
+
nil
|
563
|
+
end
|
564
|
+
|
565
|
+
#
|
566
|
+
# Deletes a job collection.
|
567
|
+
#
|
568
|
+
# @param resource_group_name [String] The resource group name.
|
569
|
+
# @param job_collection_name [String] The job collection name.
|
570
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
571
|
+
# will be added to the HTTP request.
|
572
|
+
#
|
573
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
574
|
+
#
|
575
|
+
def begin_delete_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
|
576
|
+
begin_delete_async(resource_group_name, job_collection_name, custom_headers).value!
|
577
|
+
end
|
578
|
+
|
579
|
+
#
|
580
|
+
# Deletes a job collection.
|
581
|
+
#
|
582
|
+
# @param resource_group_name [String] The resource group name.
|
583
|
+
# @param job_collection_name [String] The job collection name.
|
584
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
585
|
+
# to the HTTP request.
|
586
|
+
#
|
587
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
588
|
+
#
|
589
|
+
def begin_delete_async(resource_group_name, job_collection_name, custom_headers = nil)
|
382
590
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
383
591
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
384
592
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -395,7 +603,10 @@ module Azure::ARM::Scheduler
|
|
395
603
|
query_params: {'api-version' => @client.api_version},
|
396
604
|
headers: request_headers.merge(custom_headers || {})
|
397
605
|
}
|
398
|
-
|
606
|
+
|
607
|
+
request_url = @base_url || @client.base_url
|
608
|
+
|
609
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
399
610
|
promise = request.run_promise do |req|
|
400
611
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
401
612
|
end
|
@@ -403,7 +614,7 @@ module Azure::ARM::Scheduler
|
|
403
614
|
promise = promise.then do |http_response|
|
404
615
|
status_code = http_response.status
|
405
616
|
response_content = http_response.body
|
406
|
-
unless status_code == 200
|
617
|
+
unless status_code == 200 || status_code == 202
|
407
618
|
error_model = JSON.load(response_content)
|
408
619
|
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
409
620
|
end
|
@@ -423,13 +634,64 @@ module Azure::ARM::Scheduler
|
|
423
634
|
#
|
424
635
|
# @param resource_group_name [String] The resource group name.
|
425
636
|
# @param job_collection_name [String] The job collection name.
|
426
|
-
# @
|
427
|
-
# applied to HTTP request.
|
428
|
-
#
|
429
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
637
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
430
638
|
# response.
|
431
639
|
#
|
432
640
|
def enable(resource_group_name, job_collection_name, custom_headers = nil)
|
641
|
+
# Send request
|
642
|
+
promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers)
|
643
|
+
|
644
|
+
promise = promise.then do |response|
|
645
|
+
# Defining deserialization method.
|
646
|
+
deserialize_method = lambda do |parsed_response|
|
647
|
+
end
|
648
|
+
|
649
|
+
# Waiting for response.
|
650
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
651
|
+
end
|
652
|
+
|
653
|
+
promise
|
654
|
+
end
|
655
|
+
|
656
|
+
#
|
657
|
+
# Enables all of the jobs in the job collection.
|
658
|
+
#
|
659
|
+
# @param resource_group_name [String] The resource group name.
|
660
|
+
# @param job_collection_name [String] The job collection name.
|
661
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
662
|
+
# will be added to the HTTP request.
|
663
|
+
#
|
664
|
+
#
|
665
|
+
def begin_enable(resource_group_name, job_collection_name, custom_headers = nil)
|
666
|
+
response = begin_enable_async(resource_group_name, job_collection_name, custom_headers).value!
|
667
|
+
nil
|
668
|
+
end
|
669
|
+
|
670
|
+
#
|
671
|
+
# Enables all of the jobs in the job collection.
|
672
|
+
#
|
673
|
+
# @param resource_group_name [String] The resource group name.
|
674
|
+
# @param job_collection_name [String] The job collection name.
|
675
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
676
|
+
# will be added to the HTTP request.
|
677
|
+
#
|
678
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
679
|
+
#
|
680
|
+
def begin_enable_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
|
681
|
+
begin_enable_async(resource_group_name, job_collection_name, custom_headers).value!
|
682
|
+
end
|
683
|
+
|
684
|
+
#
|
685
|
+
# Enables all of the jobs in the job collection.
|
686
|
+
#
|
687
|
+
# @param resource_group_name [String] The resource group name.
|
688
|
+
# @param job_collection_name [String] The job collection name.
|
689
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
690
|
+
# to the HTTP request.
|
691
|
+
#
|
692
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
693
|
+
#
|
694
|
+
def begin_enable_async(resource_group_name, job_collection_name, custom_headers = nil)
|
433
695
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
434
696
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
435
697
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -446,7 +708,10 @@ module Azure::ARM::Scheduler
|
|
446
708
|
query_params: {'api-version' => @client.api_version},
|
447
709
|
headers: request_headers.merge(custom_headers || {})
|
448
710
|
}
|
449
|
-
|
711
|
+
|
712
|
+
request_url = @base_url || @client.base_url
|
713
|
+
|
714
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
450
715
|
promise = request.run_promise do |req|
|
451
716
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
452
717
|
end
|
@@ -454,7 +719,7 @@ module Azure::ARM::Scheduler
|
|
454
719
|
promise = promise.then do |http_response|
|
455
720
|
status_code = http_response.status
|
456
721
|
response_content = http_response.body
|
457
|
-
unless status_code == 200
|
722
|
+
unless status_code == 200 || status_code == 202
|
458
723
|
error_model = JSON.load(response_content)
|
459
724
|
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
460
725
|
end
|
@@ -474,13 +739,64 @@ module Azure::ARM::Scheduler
|
|
474
739
|
#
|
475
740
|
# @param resource_group_name [String] The resource group name.
|
476
741
|
# @param job_collection_name [String] The job collection name.
|
477
|
-
# @
|
478
|
-
# applied to HTTP request.
|
479
|
-
#
|
480
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
742
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
481
743
|
# response.
|
482
744
|
#
|
483
745
|
def disable(resource_group_name, job_collection_name, custom_headers = nil)
|
746
|
+
# Send request
|
747
|
+
promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers)
|
748
|
+
|
749
|
+
promise = promise.then do |response|
|
750
|
+
# Defining deserialization method.
|
751
|
+
deserialize_method = lambda do |parsed_response|
|
752
|
+
end
|
753
|
+
|
754
|
+
# Waiting for response.
|
755
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
756
|
+
end
|
757
|
+
|
758
|
+
promise
|
759
|
+
end
|
760
|
+
|
761
|
+
#
|
762
|
+
# Disables all of the jobs in the job collection.
|
763
|
+
#
|
764
|
+
# @param resource_group_name [String] The resource group name.
|
765
|
+
# @param job_collection_name [String] The job collection name.
|
766
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
767
|
+
# will be added to the HTTP request.
|
768
|
+
#
|
769
|
+
#
|
770
|
+
def begin_disable(resource_group_name, job_collection_name, custom_headers = nil)
|
771
|
+
response = begin_disable_async(resource_group_name, job_collection_name, custom_headers).value!
|
772
|
+
nil
|
773
|
+
end
|
774
|
+
|
775
|
+
#
|
776
|
+
# Disables all of the jobs in the job collection.
|
777
|
+
#
|
778
|
+
# @param resource_group_name [String] The resource group name.
|
779
|
+
# @param job_collection_name [String] The job collection name.
|
780
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
781
|
+
# will be added to the HTTP request.
|
782
|
+
#
|
783
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
784
|
+
#
|
785
|
+
def begin_disable_with_http_info(resource_group_name, job_collection_name, custom_headers = nil)
|
786
|
+
begin_disable_async(resource_group_name, job_collection_name, custom_headers).value!
|
787
|
+
end
|
788
|
+
|
789
|
+
#
|
790
|
+
# Disables all of the jobs in the job collection.
|
791
|
+
#
|
792
|
+
# @param resource_group_name [String] The resource group name.
|
793
|
+
# @param job_collection_name [String] The job collection name.
|
794
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
795
|
+
# to the HTTP request.
|
796
|
+
#
|
797
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
798
|
+
#
|
799
|
+
def begin_disable_async(resource_group_name, job_collection_name, custom_headers = nil)
|
484
800
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
485
801
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
486
802
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
@@ -497,7 +813,10 @@ module Azure::ARM::Scheduler
|
|
497
813
|
query_params: {'api-version' => @client.api_version},
|
498
814
|
headers: request_headers.merge(custom_headers || {})
|
499
815
|
}
|
500
|
-
|
816
|
+
|
817
|
+
request_url = @base_url || @client.base_url
|
818
|
+
|
819
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
501
820
|
promise = request.run_promise do |req|
|
502
821
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
503
822
|
end
|
@@ -505,7 +824,7 @@ module Azure::ARM::Scheduler
|
|
505
824
|
promise = promise.then do |http_response|
|
506
825
|
status_code = http_response.status
|
507
826
|
response_content = http_response.body
|
508
|
-
unless status_code == 200
|
827
|
+
unless status_code == 200 || status_code == 202
|
509
828
|
error_model = JSON.load(response_content)
|
510
829
|
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
511
830
|
end
|
@@ -525,13 +844,41 @@ module Azure::ARM::Scheduler
|
|
525
844
|
#
|
526
845
|
# @param next_page_link [String] The NextLink from the previous successful
|
527
846
|
# call to List operation.
|
528
|
-
# @param [Hash{String => String}]
|
529
|
-
#
|
847
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
848
|
+
# will be added to the HTTP request.
|
530
849
|
#
|
531
|
-
# @return [
|
532
|
-
# response.
|
850
|
+
# @return [JobCollectionListResult] operation results.
|
533
851
|
#
|
534
852
|
def list_by_subscription_next(next_page_link, custom_headers = nil)
|
853
|
+
response = list_by_subscription_next_async(next_page_link, custom_headers).value!
|
854
|
+
response.body unless response.nil?
|
855
|
+
end
|
856
|
+
|
857
|
+
#
|
858
|
+
# Gets all job collections under specified subscription.
|
859
|
+
#
|
860
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
861
|
+
# call to List operation.
|
862
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
863
|
+
# will be added to the HTTP request.
|
864
|
+
#
|
865
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
866
|
+
#
|
867
|
+
def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil)
|
868
|
+
list_by_subscription_next_async(next_page_link, custom_headers).value!
|
869
|
+
end
|
870
|
+
|
871
|
+
#
|
872
|
+
# Gets all job collections under specified subscription.
|
873
|
+
#
|
874
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
875
|
+
# call to List operation.
|
876
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
877
|
+
# to the HTTP request.
|
878
|
+
#
|
879
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
880
|
+
#
|
881
|
+
def list_by_subscription_next_async(next_page_link, custom_headers = nil)
|
535
882
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
536
883
|
request_headers = {}
|
537
884
|
|
@@ -544,7 +891,10 @@ module Azure::ARM::Scheduler
|
|
544
891
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
545
892
|
headers: request_headers.merge(custom_headers || {})
|
546
893
|
}
|
547
|
-
|
894
|
+
|
895
|
+
request_url = @base_url || @client.base_url
|
896
|
+
|
897
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
548
898
|
promise = request.run_promise do |req|
|
549
899
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
550
900
|
end
|
@@ -584,13 +934,41 @@ module Azure::ARM::Scheduler
|
|
584
934
|
#
|
585
935
|
# @param next_page_link [String] The NextLink from the previous successful
|
586
936
|
# call to List operation.
|
587
|
-
# @param [Hash{String => String}]
|
588
|
-
#
|
937
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
938
|
+
# will be added to the HTTP request.
|
589
939
|
#
|
590
|
-
# @return [
|
591
|
-
# response.
|
940
|
+
# @return [JobCollectionListResult] operation results.
|
592
941
|
#
|
593
942
|
def list_by_resource_group_next(next_page_link, custom_headers = nil)
|
943
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
944
|
+
response.body unless response.nil?
|
945
|
+
end
|
946
|
+
|
947
|
+
#
|
948
|
+
# Gets all job collections under specified resource group.
|
949
|
+
#
|
950
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
951
|
+
# call to List operation.
|
952
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
953
|
+
# will be added to the HTTP request.
|
954
|
+
#
|
955
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
956
|
+
#
|
957
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
|
958
|
+
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
959
|
+
end
|
960
|
+
|
961
|
+
#
|
962
|
+
# Gets all job collections under specified resource group.
|
963
|
+
#
|
964
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
965
|
+
# call to List operation.
|
966
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
967
|
+
# to the HTTP request.
|
968
|
+
#
|
969
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
970
|
+
#
|
971
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
|
594
972
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
595
973
|
request_headers = {}
|
596
974
|
|
@@ -603,7 +981,10 @@ module Azure::ARM::Scheduler
|
|
603
981
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
604
982
|
headers: request_headers.merge(custom_headers || {})
|
605
983
|
}
|
606
|
-
|
984
|
+
|
985
|
+
request_url = @base_url || @client.base_url
|
986
|
+
|
987
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
607
988
|
promise = request.run_promise do |req|
|
608
989
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
609
990
|
end
|