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 [CertificateOrderCollection]
|
38
|
+
# @return [CertificateOrderCollection] which provide lazy access to pages of
|
39
|
+
# the response.
|
39
40
|
#
|
40
|
-
def
|
41
|
+
def get_all_certificate_orders_as_lazy(custom_headers = nil)
|
41
42
|
response = get_all_certificate_orders_async(custom_headers).value!
|
42
|
-
|
43
|
+
unless response.nil?
|
44
|
+
page = response.body
|
45
|
+
page.next_method = Proc.new do |next_link|
|
46
|
+
get_all_certificate_orders_next_async(next_link, custom_headers)
|
47
|
+
end
|
48
|
+
page
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Lists all domains in a subscription
|
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<CertificateOrder>] operation results.
|
59
|
+
#
|
60
|
+
def get_all_certificate_orders(custom_headers = nil)
|
61
|
+
first_page = get_all_certificate_orders_as_lazy(custom_headers)
|
62
|
+
first_page.get_all_items
|
43
63
|
end
|
44
64
|
|
45
65
|
#
|
@@ -204,5 +224,95 @@ module Azure::ARM::Web
|
|
204
224
|
promise.execute
|
205
225
|
end
|
206
226
|
|
227
|
+
#
|
228
|
+
# Lists all domains in a subscription
|
229
|
+
#
|
230
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
231
|
+
# call to List operation.
|
232
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
233
|
+
# will be added to the HTTP request.
|
234
|
+
#
|
235
|
+
# @return [CertificateOrderCollection] operation results.
|
236
|
+
#
|
237
|
+
def get_all_certificate_orders_next(next_page_link, custom_headers = nil)
|
238
|
+
response = get_all_certificate_orders_next_async(next_page_link, custom_headers).value!
|
239
|
+
response.body unless response.nil?
|
240
|
+
end
|
241
|
+
|
242
|
+
#
|
243
|
+
# Lists all domains in a subscription
|
244
|
+
#
|
245
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
246
|
+
# call to List operation.
|
247
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
248
|
+
# will be added to the HTTP request.
|
249
|
+
#
|
250
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
251
|
+
#
|
252
|
+
def get_all_certificate_orders_next_with_http_info(next_page_link, custom_headers = nil)
|
253
|
+
get_all_certificate_orders_next_async(next_page_link, custom_headers).value!
|
254
|
+
end
|
255
|
+
|
256
|
+
#
|
257
|
+
# Lists all domains in a subscription
|
258
|
+
#
|
259
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
260
|
+
# call to List operation.
|
261
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
262
|
+
# to the HTTP request.
|
263
|
+
#
|
264
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
265
|
+
#
|
266
|
+
def get_all_certificate_orders_next_async(next_page_link, custom_headers = nil)
|
267
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
268
|
+
|
269
|
+
|
270
|
+
request_headers = {}
|
271
|
+
|
272
|
+
# Set Headers
|
273
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
274
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
275
|
+
path_template = '{nextLink}'
|
276
|
+
options = {
|
277
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
278
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
279
|
+
headers: request_headers.merge(custom_headers || {})
|
280
|
+
}
|
281
|
+
|
282
|
+
request_url = @base_url || @client.base_url
|
283
|
+
|
284
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
285
|
+
promise = request.run_promise do |req|
|
286
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
287
|
+
end
|
288
|
+
|
289
|
+
promise = promise.then do |http_response|
|
290
|
+
status_code = http_response.status
|
291
|
+
response_content = http_response.body
|
292
|
+
unless status_code == 200
|
293
|
+
error_model = JSON.load(response_content)
|
294
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
295
|
+
end
|
296
|
+
|
297
|
+
# Create Result
|
298
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
299
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
300
|
+
# Deserialize Response
|
301
|
+
if status_code == 200
|
302
|
+
begin
|
303
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
304
|
+
result_mapper = CertificateOrderCollection.mapper()
|
305
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
306
|
+
rescue Exception => e
|
307
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
311
|
+
result
|
312
|
+
end
|
313
|
+
|
314
|
+
promise.execute
|
315
|
+
end
|
316
|
+
|
207
317
|
end
|
208
318
|
end
|
@@ -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 [DomainCollection]
|
38
|
+
# @return [DomainCollection] which provide lazy access to pages of the
|
39
|
+
# response.
|
39
40
|
#
|
40
|
-
def
|
41
|
+
def get_all_domains_as_lazy(custom_headers = nil)
|
41
42
|
response = get_all_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_all_domains_next_async(next_link, custom_headers)
|
47
|
+
end
|
48
|
+
page
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Lists all domains in a subscription
|
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<Domain>] operation results.
|
59
|
+
#
|
60
|
+
def get_all_domains(custom_headers = nil)
|
61
|
+
first_page = get_all_domains_as_lazy(custom_headers)
|
62
|
+
first_page.get_all_items
|
43
63
|
end
|
44
64
|
|
45
65
|
#
|
@@ -400,11 +420,33 @@ module Azure::ARM::Web
|
|
400
420
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
401
421
|
# will be added to the HTTP request.
|
402
422
|
#
|
403
|
-
# @return [NameIdentifierCollection]
|
423
|
+
# @return [NameIdentifierCollection] which provide lazy access to pages of the
|
424
|
+
# response.
|
404
425
|
#
|
405
|
-
def
|
426
|
+
def list_domain_recommendations_as_lazy(parameters, custom_headers = nil)
|
406
427
|
response = list_domain_recommendations_async(parameters, custom_headers).value!
|
407
|
-
|
428
|
+
unless response.nil?
|
429
|
+
page = response.body
|
430
|
+
page.next_method = Proc.new do |next_link|
|
431
|
+
list_domain_recommendations_next_async(next_link, custom_headers)
|
432
|
+
end
|
433
|
+
page
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
#
|
438
|
+
# Lists domain recommendations based on keywords
|
439
|
+
#
|
440
|
+
# @param parameters [DomainRecommendationSearchParameters] Domain
|
441
|
+
# recommendation search parameters
|
442
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
443
|
+
# will be added to the HTTP request.
|
444
|
+
#
|
445
|
+
# @return [Array<NameIdentifier>] operation results.
|
446
|
+
#
|
447
|
+
def list_domain_recommendations(parameters, custom_headers = nil)
|
448
|
+
first_page = list_domain_recommendations_as_lazy(parameters, custom_headers)
|
449
|
+
first_page.get_all_items
|
408
450
|
end
|
409
451
|
|
410
452
|
#
|
@@ -494,5 +536,185 @@ module Azure::ARM::Web
|
|
494
536
|
promise.execute
|
495
537
|
end
|
496
538
|
|
539
|
+
#
|
540
|
+
# Lists all domains in a subscription
|
541
|
+
#
|
542
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
543
|
+
# call to List operation.
|
544
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
545
|
+
# will be added to the HTTP request.
|
546
|
+
#
|
547
|
+
# @return [DomainCollection] operation results.
|
548
|
+
#
|
549
|
+
def get_all_domains_next(next_page_link, custom_headers = nil)
|
550
|
+
response = get_all_domains_next_async(next_page_link, custom_headers).value!
|
551
|
+
response.body unless response.nil?
|
552
|
+
end
|
553
|
+
|
554
|
+
#
|
555
|
+
# Lists all domains in a subscription
|
556
|
+
#
|
557
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
558
|
+
# call to List operation.
|
559
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
560
|
+
# will be added to the HTTP request.
|
561
|
+
#
|
562
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
563
|
+
#
|
564
|
+
def get_all_domains_next_with_http_info(next_page_link, custom_headers = nil)
|
565
|
+
get_all_domains_next_async(next_page_link, custom_headers).value!
|
566
|
+
end
|
567
|
+
|
568
|
+
#
|
569
|
+
# Lists all domains in a subscription
|
570
|
+
#
|
571
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
572
|
+
# call to List operation.
|
573
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
574
|
+
# to the HTTP request.
|
575
|
+
#
|
576
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
577
|
+
#
|
578
|
+
def get_all_domains_next_async(next_page_link, custom_headers = nil)
|
579
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
580
|
+
|
581
|
+
|
582
|
+
request_headers = {}
|
583
|
+
|
584
|
+
# Set Headers
|
585
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
586
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
587
|
+
path_template = '{nextLink}'
|
588
|
+
options = {
|
589
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
590
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
591
|
+
headers: request_headers.merge(custom_headers || {})
|
592
|
+
}
|
593
|
+
|
594
|
+
request_url = @base_url || @client.base_url
|
595
|
+
|
596
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
597
|
+
promise = request.run_promise do |req|
|
598
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
599
|
+
end
|
600
|
+
|
601
|
+
promise = promise.then do |http_response|
|
602
|
+
status_code = http_response.status
|
603
|
+
response_content = http_response.body
|
604
|
+
unless status_code == 200
|
605
|
+
error_model = JSON.load(response_content)
|
606
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
607
|
+
end
|
608
|
+
|
609
|
+
# Create Result
|
610
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
611
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
612
|
+
# Deserialize Response
|
613
|
+
if status_code == 200
|
614
|
+
begin
|
615
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
616
|
+
result_mapper = DomainCollection.mapper()
|
617
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
618
|
+
rescue Exception => e
|
619
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
620
|
+
end
|
621
|
+
end
|
622
|
+
|
623
|
+
result
|
624
|
+
end
|
625
|
+
|
626
|
+
promise.execute
|
627
|
+
end
|
628
|
+
|
629
|
+
#
|
630
|
+
# Lists domain recommendations based on keywords
|
631
|
+
#
|
632
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
633
|
+
# call to List operation.
|
634
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
635
|
+
# will be added to the HTTP request.
|
636
|
+
#
|
637
|
+
# @return [NameIdentifierCollection] operation results.
|
638
|
+
#
|
639
|
+
def list_domain_recommendations_next(next_page_link, custom_headers = nil)
|
640
|
+
response = list_domain_recommendations_next_async(next_page_link, custom_headers).value!
|
641
|
+
response.body unless response.nil?
|
642
|
+
end
|
643
|
+
|
644
|
+
#
|
645
|
+
# Lists domain recommendations based on keywords
|
646
|
+
#
|
647
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
648
|
+
# call to List operation.
|
649
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
650
|
+
# will be added to the HTTP request.
|
651
|
+
#
|
652
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
653
|
+
#
|
654
|
+
def list_domain_recommendations_next_with_http_info(next_page_link, custom_headers = nil)
|
655
|
+
list_domain_recommendations_next_async(next_page_link, custom_headers).value!
|
656
|
+
end
|
657
|
+
|
658
|
+
#
|
659
|
+
# Lists domain recommendations based on keywords
|
660
|
+
#
|
661
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
662
|
+
# call to List operation.
|
663
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
664
|
+
# to the HTTP request.
|
665
|
+
#
|
666
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
667
|
+
#
|
668
|
+
def list_domain_recommendations_next_async(next_page_link, custom_headers = nil)
|
669
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
670
|
+
|
671
|
+
|
672
|
+
request_headers = {}
|
673
|
+
|
674
|
+
# Set Headers
|
675
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
676
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
677
|
+
path_template = '{nextLink}'
|
678
|
+
options = {
|
679
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
680
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
681
|
+
headers: request_headers.merge(custom_headers || {})
|
682
|
+
}
|
683
|
+
|
684
|
+
request_url = @base_url || @client.base_url
|
685
|
+
|
686
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
687
|
+
promise = request.run_promise do |req|
|
688
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
689
|
+
end
|
690
|
+
|
691
|
+
promise = promise.then do |http_response|
|
692
|
+
status_code = http_response.status
|
693
|
+
response_content = http_response.body
|
694
|
+
unless status_code == 200
|
695
|
+
error_model = JSON.load(response_content)
|
696
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
697
|
+
end
|
698
|
+
|
699
|
+
# Create Result
|
700
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
701
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
702
|
+
# Deserialize Response
|
703
|
+
if status_code == 200
|
704
|
+
begin
|
705
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
706
|
+
result_mapper = NameIdentifierCollection.mapper()
|
707
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
708
|
+
rescue Exception => e
|
709
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
710
|
+
end
|
711
|
+
end
|
712
|
+
|
713
|
+
result
|
714
|
+
end
|
715
|
+
|
716
|
+
promise.execute
|
717
|
+
end
|
718
|
+
|
497
719
|
end
|
498
720
|
end
|