azure_mgmt_web 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,6 +51,9 @@ module Azure::ARM::Web
51
51
  # @return [String] Resource group of the serverfarm
52
52
  attr_accessor :resource_group
53
53
 
54
+ # @return [Boolean] Enables creation of a Linux App Service Plan
55
+ attr_accessor :reserved
56
+
54
57
  # @return [SkuDescription]
55
58
  attr_accessor :sku
56
59
 
@@ -200,6 +203,13 @@ module Azure::ARM::Web
200
203
  name: 'String'
201
204
  }
202
205
  },
206
+ reserved: {
207
+ required: false,
208
+ serialized_name: 'properties.reserved',
209
+ type: {
210
+ name: 'Boolean'
211
+ }
212
+ },
203
213
  sku: {
204
214
  required: false,
205
215
  serialized_name: 'sku',
@@ -90,6 +90,9 @@ module Azure::ARM::Web
90
90
  # @return [String] Java container version
91
91
  attr_accessor :java_container_version
92
92
 
93
+ # @return [String] App Command Line to launch
94
+ attr_accessor :app_command_line
95
+
93
96
  # @return [ManagedPipelineMode] Managed pipeline mode. Possible values
94
97
  # include: 'Integrated', 'Classic'
95
98
  attr_accessor :managed_pipeline_mode
@@ -419,6 +422,13 @@ module Azure::ARM::Web
419
422
  name: 'String'
420
423
  }
421
424
  },
425
+ app_command_line: {
426
+ required: false,
427
+ serialized_name: 'properties.appCommandLine',
428
+ type: {
429
+ name: 'String'
430
+ }
431
+ },
422
432
  managed_pipeline_mode: {
423
433
  required: false,
424
434
  serialized_name: 'properties.managedPipelineMode',
@@ -42,8 +42,8 @@ module Azure::ARM::Web
42
42
  response = get_source_controls_async(custom_headers).value!
43
43
  unless response.nil?
44
44
  page = response.body
45
- page.next_method = Proc.new do |next_link|
46
- get_source_controls_next_async(next_link, custom_headers)
45
+ page.next_method = Proc.new do |next_page_link|
46
+ get_source_controls_next_async(next_page_link, custom_headers)
47
47
  end
48
48
  page
49
49
  end
@@ -92,29 +92,26 @@ module Azure::ARM::Web
92
92
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
93
93
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
94
94
  path_template = '/providers/Microsoft.Web/sourcecontrols'
95
+
96
+ request_url = @base_url || @client.base_url
97
+
95
98
  options = {
96
99
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
97
100
  query_params: {'api-version' => @client.api_version},
98
- headers: request_headers.merge(custom_headers || {})
101
+ headers: request_headers.merge(custom_headers || {}),
102
+ base_url: request_url
99
103
  }
104
+ promise = @client.make_request_async(:get, path_template, options)
100
105
 
101
- request_url = @base_url || @client.base_url
102
-
103
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
104
- promise = request.run_promise do |req|
105
- @client.credentials.sign_request(req) unless @client.credentials.nil?
106
- end
107
-
108
- promise = promise.then do |http_response|
106
+ promise = promise.then do |result|
107
+ http_response = result.response
109
108
  status_code = http_response.status
110
109
  response_content = http_response.body
111
110
  unless status_code == 200
112
111
  error_model = JSON.load(response_content)
113
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
112
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
114
113
  end
115
114
 
116
- # Create Result
117
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
118
115
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
119
116
  # Deserialize Response
120
117
  if status_code == 200
@@ -180,30 +177,27 @@ module Azure::ARM::Web
180
177
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
181
178
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
182
179
  path_template = '/providers/Microsoft.Web/sourcecontrols/{sourceControlType}'
180
+
181
+ request_url = @base_url || @client.base_url
182
+
183
183
  options = {
184
184
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
185
185
  path_params: {'sourceControlType' => source_control_type},
186
186
  query_params: {'api-version' => @client.api_version},
187
- headers: request_headers.merge(custom_headers || {})
187
+ headers: request_headers.merge(custom_headers || {}),
188
+ base_url: request_url
188
189
  }
190
+ promise = @client.make_request_async(:get, path_template, options)
189
191
 
190
- request_url = @base_url || @client.base_url
191
-
192
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
193
- promise = request.run_promise do |req|
194
- @client.credentials.sign_request(req) unless @client.credentials.nil?
195
- end
196
-
197
- promise = promise.then do |http_response|
192
+ promise = promise.then do |result|
193
+ http_response = result.response
198
194
  status_code = http_response.status
199
195
  response_content = http_response.body
200
196
  unless status_code == 200
201
197
  error_model = JSON.load(response_content)
202
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
198
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
203
199
  end
204
200
 
205
- # Create Result
206
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
207
201
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
208
202
  # Deserialize Response
209
203
  if status_code == 200
@@ -281,31 +275,28 @@ module Azure::ARM::Web
281
275
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
282
276
 
283
277
  path_template = '/providers/Microsoft.Web/sourcecontrols/{sourceControlType}'
278
+
279
+ request_url = @base_url || @client.base_url
280
+
284
281
  options = {
285
282
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
286
283
  path_params: {'sourceControlType' => source_control_type},
287
284
  query_params: {'api-version' => @client.api_version},
288
285
  body: request_content,
289
- headers: request_headers.merge(custom_headers || {})
286
+ headers: request_headers.merge(custom_headers || {}),
287
+ base_url: request_url
290
288
  }
289
+ promise = @client.make_request_async(:put, path_template, options)
291
290
 
292
- request_url = @base_url || @client.base_url
293
-
294
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
295
- promise = request.run_promise do |req|
296
- @client.credentials.sign_request(req) unless @client.credentials.nil?
297
- end
298
-
299
- promise = promise.then do |http_response|
291
+ promise = promise.then do |result|
292
+ http_response = result.response
300
293
  status_code = http_response.status
301
294
  response_content = http_response.body
302
295
  unless status_code == 200
303
296
  error_model = JSON.load(response_content)
304
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
297
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
305
298
  end
306
299
 
307
- # Create Result
308
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
309
300
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
310
301
  # Deserialize Response
311
302
  if status_code == 200
@@ -367,29 +358,26 @@ module Azure::ARM::Web
367
358
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
368
359
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
369
360
  path_template = '/providers/Microsoft.Web/publishingUsers/web'
361
+
362
+ request_url = @base_url || @client.base_url
363
+
370
364
  options = {
371
365
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
372
366
  query_params: {'api-version' => @client.api_version},
373
- headers: request_headers.merge(custom_headers || {})
367
+ headers: request_headers.merge(custom_headers || {}),
368
+ base_url: request_url
374
369
  }
370
+ promise = @client.make_request_async(:get, path_template, options)
375
371
 
376
- request_url = @base_url || @client.base_url
377
-
378
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
379
- promise = request.run_promise do |req|
380
- @client.credentials.sign_request(req) unless @client.credentials.nil?
381
- end
382
-
383
- promise = promise.then do |http_response|
372
+ promise = promise.then do |result|
373
+ http_response = result.response
384
374
  status_code = http_response.status
385
375
  response_content = http_response.body
386
376
  unless status_code == 200
387
377
  error_model = JSON.load(response_content)
388
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
378
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
389
379
  end
390
380
 
391
- # Create Result
392
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
393
381
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
394
382
  # Deserialize Response
395
383
  if status_code == 200
@@ -463,30 +451,27 @@ module Azure::ARM::Web
463
451
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
464
452
 
465
453
  path_template = '/providers/Microsoft.Web/publishingUsers/web'
454
+
455
+ request_url = @base_url || @client.base_url
456
+
466
457
  options = {
467
458
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
468
459
  query_params: {'api-version' => @client.api_version},
469
460
  body: request_content,
470
- headers: request_headers.merge(custom_headers || {})
461
+ headers: request_headers.merge(custom_headers || {}),
462
+ base_url: request_url
471
463
  }
464
+ promise = @client.make_request_async(:put, path_template, options)
472
465
 
473
- request_url = @base_url || @client.base_url
474
-
475
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
476
- promise = request.run_promise do |req|
477
- @client.credentials.sign_request(req) unless @client.credentials.nil?
478
- end
479
-
480
- promise = promise.then do |http_response|
466
+ promise = promise.then do |result|
467
+ http_response = result.response
481
468
  status_code = http_response.status
482
469
  response_content = http_response.body
483
470
  unless status_code == 200
484
471
  error_model = JSON.load(response_content)
485
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
472
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
486
473
  end
487
474
 
488
- # Create Result
489
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
490
475
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
491
476
  # Deserialize Response
492
477
  if status_code == 200
@@ -554,29 +539,26 @@ module Azure::ARM::Web
554
539
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
555
540
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
556
541
  path_template = '{nextLink}'
542
+
543
+ request_url = @base_url || @client.base_url
544
+
557
545
  options = {
558
546
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
559
547
  skip_encoding_path_params: {'nextLink' => next_page_link},
560
- headers: request_headers.merge(custom_headers || {})
548
+ headers: request_headers.merge(custom_headers || {}),
549
+ base_url: request_url
561
550
  }
551
+ promise = @client.make_request_async(:get, path_template, options)
562
552
 
563
- request_url = @base_url || @client.base_url
564
-
565
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
566
- promise = request.run_promise do |req|
567
- @client.credentials.sign_request(req) unless @client.credentials.nil?
568
- end
569
-
570
- promise = promise.then do |http_response|
553
+ promise = promise.then do |result|
554
+ http_response = result.response
571
555
  status_code = http_response.status
572
556
  response_content = http_response.body
573
557
  unless status_code == 200
574
558
  error_model = JSON.load(response_content)
575
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
559
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
576
560
  end
577
561
 
578
- # Create Result
579
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
580
562
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
581
563
  # Deserialize Response
582
564
  if status_code == 200
@@ -91,30 +91,27 @@ module Azure::ARM::Web
91
91
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
92
92
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
93
93
  path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations'
94
+
95
+ request_url = @base_url || @client.base_url
96
+
94
97
  options = {
95
98
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
96
99
  path_params: {'subscriptionId' => @client.subscription_id},
97
100
  query_params: {'featured' => featured,'$filter' => filter,'api-version' => @client.api_version},
98
- headers: request_headers.merge(custom_headers || {})
101
+ headers: request_headers.merge(custom_headers || {}),
102
+ base_url: request_url
99
103
  }
104
+ promise = @client.make_request_async(:get, path_template, options)
100
105
 
101
- request_url = @base_url || @client.base_url
102
-
103
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
104
- promise = request.run_promise do |req|
105
- @client.credentials.sign_request(req) unless @client.credentials.nil?
106
- end
107
-
108
- promise = promise.then do |http_response|
106
+ promise = promise.then do |result|
107
+ http_response = result.response
109
108
  status_code = http_response.status
110
109
  response_content = http_response.body
111
110
  unless status_code == 200
112
111
  error_model = JSON.load(response_content)
113
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
112
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
114
113
  end
115
114
 
116
- # Create Result
117
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
118
115
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
119
116
  # Deserialize Response
120
117
  if status_code == 200
@@ -206,30 +203,27 @@ module Azure::ARM::Web
206
203
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
207
204
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
208
205
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}'
206
+
207
+ request_url = @base_url || @client.base_url
208
+
209
209
  options = {
210
210
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
211
211
  path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'name' => name,'subscriptionId' => @client.subscription_id},
212
212
  query_params: {'api-version' => @client.api_version},
213
- headers: request_headers.merge(custom_headers || {})
213
+ headers: request_headers.merge(custom_headers || {}),
214
+ base_url: request_url
214
215
  }
216
+ promise = @client.make_request_async(:get, path_template, options)
215
217
 
216
- request_url = @base_url || @client.base_url
217
-
218
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
219
- promise = request.run_promise do |req|
220
- @client.credentials.sign_request(req) unless @client.credentials.nil?
221
- end
222
-
223
- promise = promise.then do |http_response|
218
+ promise = promise.then do |result|
219
+ http_response = result.response
224
220
  status_code = http_response.status
225
221
  response_content = http_response.body
226
222
  unless status_code == 200
227
223
  error_model = JSON.load(response_content)
228
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
224
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
229
225
  end
230
226
 
231
- # Create Result
232
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
233
227
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
234
228
  # Deserialize Response
235
229
  if status_code == 200
@@ -315,30 +309,27 @@ module Azure::ARM::Web
315
309
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
316
310
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
317
311
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations'
312
+
313
+ request_url = @base_url || @client.base_url
314
+
318
315
  options = {
319
316
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
320
317
  path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
321
318
  query_params: {'featured' => featured,'siteSku' => site_sku,'numSlots' => num_slots,'api-version' => @client.api_version},
322
- headers: request_headers.merge(custom_headers || {})
319
+ headers: request_headers.merge(custom_headers || {}),
320
+ base_url: request_url
323
321
  }
322
+ promise = @client.make_request_async(:get, path_template, options)
324
323
 
325
- request_url = @base_url || @client.base_url
326
-
327
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
328
- promise = request.run_promise do |req|
329
- @client.credentials.sign_request(req) unless @client.credentials.nil?
330
- end
331
-
332
- promise = promise.then do |http_response|
324
+ promise = promise.then do |result|
325
+ http_response = result.response
333
326
  status_code = http_response.status
334
327
  response_content = http_response.body
335
328
  unless status_code == 200
336
329
  error_model = JSON.load(response_content)
337
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
330
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
338
331
  end
339
332
 
340
- # Create Result
341
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
342
333
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
343
334
  # Deserialize Response
344
335
  if status_code == 200
@@ -441,30 +432,27 @@ module Azure::ARM::Web
441
432
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
442
433
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
443
434
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory'
435
+
436
+ request_url = @base_url || @client.base_url
437
+
444
438
  options = {
445
439
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
446
440
  path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
447
441
  query_params: {'startTime' => start_time,'endTime' => end_time,'api-version' => @client.api_version},
448
- headers: request_headers.merge(custom_headers || {})
442
+ headers: request_headers.merge(custom_headers || {}),
443
+ base_url: request_url
449
444
  }
445
+ promise = @client.make_request_async(:get, path_template, options)
450
446
 
451
- request_url = @base_url || @client.base_url
452
-
453
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
454
- promise = request.run_promise do |req|
455
- @client.credentials.sign_request(req) unless @client.credentials.nil?
456
- end
457
-
458
- promise = promise.then do |http_response|
447
+ promise = promise.then do |result|
448
+ http_response = result.response
459
449
  status_code = http_response.status
460
450
  response_content = http_response.body
461
451
  unless status_code == 200
462
452
  error_model = JSON.load(response_content)
463
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
453
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
464
454
  end
465
455
 
466
- # Create Result
467
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
468
456
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
469
457
  # Deserialize Response
470
458
  if status_code == 200