azure_mgmt_web 0.4.0 → 0.5.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 +4 -4
- data/azure_mgmt_web.gemspec +1 -1
- data/lib/generated/azure_mgmt_web/certificate_orders.rb +234 -7
- data/lib/generated/azure_mgmt_web/certificates.rb +115 -4
- data/lib/generated/azure_mgmt_web/classic_mobile_services.rb +115 -4
- data/lib/generated/azure_mgmt_web/domains.rb +115 -4
- data/lib/generated/azure_mgmt_web/global.rb +793 -20
- data/lib/generated/azure_mgmt_web/global_certificate_order.rb +114 -4
- data/lib/generated/azure_mgmt_web/global_domain_registration.rb +229 -7
- data/lib/generated/azure_mgmt_web/global_resource_groups.rb +1 -1
- data/lib/generated/azure_mgmt_web/hosting_environments.rb +2388 -54
- data/lib/generated/azure_mgmt_web/managed_hosting_environments.rb +459 -11
- data/lib/generated/azure_mgmt_web/models/backup_item_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/certificate_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/certificate_order_certificate_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/certificate_order_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/classic_mobile_service_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/deleted_site_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/deployment_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/domain_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/geo_region_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/hosting_environment_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/managed_hosting_environment_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/metric_definition_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/server_farm_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/site_instance_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/sku_info_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/source_control_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/usage_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/provider.rb +114 -4
- data/lib/generated/azure_mgmt_web/recommendations.rb +1 -1
- data/lib/generated/azure_mgmt_web/server_farms.rb +356 -10
- data/lib/generated/azure_mgmt_web/sites.rb +2471 -68
- data/lib/generated/azure_mgmt_web/top_level_domains.rb +230 -7
- data/lib/generated/azure_mgmt_web/usage_operations.rb +1 -1
- data/lib/generated/azure_mgmt_web/version.rb +1 -1
- data/lib/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
- metadata +4 -4
@@ -26,7 +26,7 @@ module Azure::ARM::Web
|
|
26
26
|
@client = client
|
27
27
|
end
|
28
28
|
|
29
|
-
# @return reference to the WebSiteManagementClient
|
29
|
+
# @return [WebSiteManagementClient] reference to the WebSiteManagementClient
|
30
30
|
attr_reader :client
|
31
31
|
|
32
32
|
#
|
@@ -35,11 +35,31 @@ module Azure::ARM::Web
|
|
35
35
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
36
|
# will be added to the HTTP request.
|
37
37
|
#
|
38
|
-
# @return [TopLevelDomainCollection]
|
38
|
+
# @return [TopLevelDomainCollection] which provide lazy access to pages of the
|
39
|
+
# response.
|
39
40
|
#
|
40
|
-
def
|
41
|
+
def get_get_top_level_domains_as_lazy(custom_headers = nil)
|
41
42
|
response = get_get_top_level_domains_async(custom_headers).value!
|
42
|
-
|
43
|
+
unless response.nil?
|
44
|
+
page = response.body
|
45
|
+
page.next_method = Proc.new do |next_link|
|
46
|
+
get_get_top_level_domains_next_async(next_link, custom_headers)
|
47
|
+
end
|
48
|
+
page
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Lists all top level domains supported for registration
|
54
|
+
#
|
55
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
56
|
+
# will be added to the HTTP request.
|
57
|
+
#
|
58
|
+
# @return [Array<TopLevelDomain>] operation results.
|
59
|
+
#
|
60
|
+
def get_get_top_level_domains(custom_headers = nil)
|
61
|
+
first_page = get_get_top_level_domains_as_lazy(custom_headers)
|
62
|
+
first_page.get_all_items
|
43
63
|
end
|
44
64
|
|
45
65
|
#
|
@@ -214,11 +234,34 @@ module Azure::ARM::Web
|
|
214
234
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
215
235
|
# will be added to the HTTP request.
|
216
236
|
#
|
217
|
-
# @return [TldLegalAgreementCollection]
|
237
|
+
# @return [TldLegalAgreementCollection] which provide lazy access to pages of
|
238
|
+
# the response.
|
218
239
|
#
|
219
|
-
def
|
240
|
+
def list_top_level_domain_agreements_as_lazy(name, agreement_option, custom_headers = nil)
|
220
241
|
response = list_top_level_domain_agreements_async(name, agreement_option, custom_headers).value!
|
221
|
-
|
242
|
+
unless response.nil?
|
243
|
+
page = response.body
|
244
|
+
page.next_method = Proc.new do |next_link|
|
245
|
+
list_top_level_domain_agreements_next_async(next_link, custom_headers)
|
246
|
+
end
|
247
|
+
page
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
#
|
252
|
+
# Lists legal agreements that user needs to accept before purchasing domain
|
253
|
+
#
|
254
|
+
# @param name [String] Name of the top level domain
|
255
|
+
# @param agreement_option [TopLevelDomainAgreementOption] Domain agreement
|
256
|
+
# options
|
257
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
258
|
+
# will be added to the HTTP request.
|
259
|
+
#
|
260
|
+
# @return [Array<TldLegalAgreement>] operation results.
|
261
|
+
#
|
262
|
+
def list_top_level_domain_agreements(name, agreement_option, custom_headers = nil)
|
263
|
+
first_page = list_top_level_domain_agreements_as_lazy(name, agreement_option, custom_headers)
|
264
|
+
first_page.get_all_items
|
222
265
|
end
|
223
266
|
|
224
267
|
#
|
@@ -311,5 +354,185 @@ module Azure::ARM::Web
|
|
311
354
|
promise.execute
|
312
355
|
end
|
313
356
|
|
357
|
+
#
|
358
|
+
# Lists all top level domains supported for registration
|
359
|
+
#
|
360
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
361
|
+
# call to List operation.
|
362
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
363
|
+
# will be added to the HTTP request.
|
364
|
+
#
|
365
|
+
# @return [TopLevelDomainCollection] operation results.
|
366
|
+
#
|
367
|
+
def get_get_top_level_domains_next(next_page_link, custom_headers = nil)
|
368
|
+
response = get_get_top_level_domains_next_async(next_page_link, custom_headers).value!
|
369
|
+
response.body unless response.nil?
|
370
|
+
end
|
371
|
+
|
372
|
+
#
|
373
|
+
# Lists all top level domains supported for registration
|
374
|
+
#
|
375
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
376
|
+
# call to List operation.
|
377
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
378
|
+
# will be added to the HTTP request.
|
379
|
+
#
|
380
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
381
|
+
#
|
382
|
+
def get_get_top_level_domains_next_with_http_info(next_page_link, custom_headers = nil)
|
383
|
+
get_get_top_level_domains_next_async(next_page_link, custom_headers).value!
|
384
|
+
end
|
385
|
+
|
386
|
+
#
|
387
|
+
# Lists all top level domains supported for registration
|
388
|
+
#
|
389
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
390
|
+
# call to List operation.
|
391
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
392
|
+
# to the HTTP request.
|
393
|
+
#
|
394
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
395
|
+
#
|
396
|
+
def get_get_top_level_domains_next_async(next_page_link, custom_headers = nil)
|
397
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
398
|
+
|
399
|
+
|
400
|
+
request_headers = {}
|
401
|
+
|
402
|
+
# Set Headers
|
403
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
404
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
405
|
+
path_template = '{nextLink}'
|
406
|
+
options = {
|
407
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
408
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
409
|
+
headers: request_headers.merge(custom_headers || {})
|
410
|
+
}
|
411
|
+
|
412
|
+
request_url = @base_url || @client.base_url
|
413
|
+
|
414
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
415
|
+
promise = request.run_promise do |req|
|
416
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
417
|
+
end
|
418
|
+
|
419
|
+
promise = promise.then do |http_response|
|
420
|
+
status_code = http_response.status
|
421
|
+
response_content = http_response.body
|
422
|
+
unless status_code == 200
|
423
|
+
error_model = JSON.load(response_content)
|
424
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
425
|
+
end
|
426
|
+
|
427
|
+
# Create Result
|
428
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
429
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
430
|
+
# Deserialize Response
|
431
|
+
if status_code == 200
|
432
|
+
begin
|
433
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
434
|
+
result_mapper = TopLevelDomainCollection.mapper()
|
435
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
436
|
+
rescue Exception => e
|
437
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
441
|
+
result
|
442
|
+
end
|
443
|
+
|
444
|
+
promise.execute
|
445
|
+
end
|
446
|
+
|
447
|
+
#
|
448
|
+
# Lists legal agreements that user needs to accept before purchasing domain
|
449
|
+
#
|
450
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
451
|
+
# call to List operation.
|
452
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
453
|
+
# will be added to the HTTP request.
|
454
|
+
#
|
455
|
+
# @return [TldLegalAgreementCollection] operation results.
|
456
|
+
#
|
457
|
+
def list_top_level_domain_agreements_next(next_page_link, custom_headers = nil)
|
458
|
+
response = list_top_level_domain_agreements_next_async(next_page_link, custom_headers).value!
|
459
|
+
response.body unless response.nil?
|
460
|
+
end
|
461
|
+
|
462
|
+
#
|
463
|
+
# Lists legal agreements that user needs to accept before purchasing domain
|
464
|
+
#
|
465
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
466
|
+
# call to List operation.
|
467
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
468
|
+
# will be added to the HTTP request.
|
469
|
+
#
|
470
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
471
|
+
#
|
472
|
+
def list_top_level_domain_agreements_next_with_http_info(next_page_link, custom_headers = nil)
|
473
|
+
list_top_level_domain_agreements_next_async(next_page_link, custom_headers).value!
|
474
|
+
end
|
475
|
+
|
476
|
+
#
|
477
|
+
# Lists legal agreements that user needs to accept before purchasing domain
|
478
|
+
#
|
479
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
480
|
+
# call to List operation.
|
481
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
482
|
+
# to the HTTP request.
|
483
|
+
#
|
484
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
485
|
+
#
|
486
|
+
def list_top_level_domain_agreements_next_async(next_page_link, custom_headers = nil)
|
487
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
488
|
+
|
489
|
+
|
490
|
+
request_headers = {}
|
491
|
+
|
492
|
+
# Set Headers
|
493
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
494
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
495
|
+
path_template = '{nextLink}'
|
496
|
+
options = {
|
497
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
498
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
499
|
+
headers: request_headers.merge(custom_headers || {})
|
500
|
+
}
|
501
|
+
|
502
|
+
request_url = @base_url || @client.base_url
|
503
|
+
|
504
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
505
|
+
promise = request.run_promise do |req|
|
506
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
507
|
+
end
|
508
|
+
|
509
|
+
promise = promise.then do |http_response|
|
510
|
+
status_code = http_response.status
|
511
|
+
response_content = http_response.body
|
512
|
+
unless status_code == 200
|
513
|
+
error_model = JSON.load(response_content)
|
514
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
515
|
+
end
|
516
|
+
|
517
|
+
# Create Result
|
518
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
519
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
520
|
+
# Deserialize Response
|
521
|
+
if status_code == 200
|
522
|
+
begin
|
523
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
524
|
+
result_mapper = TldLegalAgreementCollection.mapper()
|
525
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
526
|
+
rescue Exception => e
|
527
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
528
|
+
end
|
529
|
+
end
|
530
|
+
|
531
|
+
result
|
532
|
+
end
|
533
|
+
|
534
|
+
promise.execute
|
535
|
+
end
|
536
|
+
|
314
537
|
end
|
315
538
|
end
|
@@ -8,8 +8,8 @@ module Azure::ARM::Web
|
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
10
10
|
class WebSiteManagementClient < MsRestAzure::AzureServiceClient
|
11
|
-
include MsRest::Serialization
|
12
11
|
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
13
|
|
14
14
|
# @return [String] the base URI of the service.
|
15
15
|
attr_accessor :base_url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.4.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.4.0
|
83
83
|
description: Microsoft Azure Web Apps Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|