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
|
#
|
@@ -646,11 +646,34 @@ module Azure::ARM::Web
|
|
646
646
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
647
647
|
# will be added to the HTTP request.
|
648
648
|
#
|
649
|
-
# @return [StampCapacityCollection]
|
649
|
+
# @return [StampCapacityCollection] which provide lazy access to pages of the
|
650
|
+
# response.
|
650
651
|
#
|
651
|
-
def
|
652
|
+
def get_hosting_environment_capacities_as_lazy(resource_group_name, name, custom_headers = nil)
|
652
653
|
response = get_hosting_environment_capacities_async(resource_group_name, name, custom_headers).value!
|
653
|
-
|
654
|
+
unless response.nil?
|
655
|
+
page = response.body
|
656
|
+
page.next_method = Proc.new do |next_link|
|
657
|
+
get_hosting_environment_capacities_next_async(next_link, custom_headers)
|
658
|
+
end
|
659
|
+
page
|
660
|
+
end
|
661
|
+
end
|
662
|
+
|
663
|
+
#
|
664
|
+
# Get used, available, and total worker capacity for hostingEnvironment (App
|
665
|
+
# Service Environment).
|
666
|
+
#
|
667
|
+
# @param resource_group_name [String] Name of resource group
|
668
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
669
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
670
|
+
# will be added to the HTTP request.
|
671
|
+
#
|
672
|
+
# @return [Array<StampCapacity>] operation results.
|
673
|
+
#
|
674
|
+
def get_hosting_environment_capacities(resource_group_name, name, custom_headers = nil)
|
675
|
+
first_page = get_hosting_environment_capacities_as_lazy(resource_group_name, name, custom_headers)
|
676
|
+
first_page.get_all_items
|
654
677
|
end
|
655
678
|
|
656
679
|
#
|
@@ -838,11 +861,32 @@ module Azure::ARM::Web
|
|
838
861
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
839
862
|
# will be added to the HTTP request.
|
840
863
|
#
|
841
|
-
# @return [HostingEnvironmentCollection]
|
864
|
+
# @return [HostingEnvironmentCollection] which provide lazy access to pages of
|
865
|
+
# the response.
|
842
866
|
#
|
843
|
-
def
|
867
|
+
def get_hosting_environments_as_lazy(resource_group_name, custom_headers = nil)
|
844
868
|
response = get_hosting_environments_async(resource_group_name, custom_headers).value!
|
845
|
-
|
869
|
+
unless response.nil?
|
870
|
+
page = response.body
|
871
|
+
page.next_method = Proc.new do |next_link|
|
872
|
+
get_hosting_environments_next_async(next_link, custom_headers)
|
873
|
+
end
|
874
|
+
page
|
875
|
+
end
|
876
|
+
end
|
877
|
+
|
878
|
+
#
|
879
|
+
# Get all hostingEnvironments (App Service Environments) in a resource group.
|
880
|
+
#
|
881
|
+
# @param resource_group_name [String] Name of resource group
|
882
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
883
|
+
# will be added to the HTTP request.
|
884
|
+
#
|
885
|
+
# @return [Array<HostingEnvironment>] operation results.
|
886
|
+
#
|
887
|
+
def get_hosting_environments(resource_group_name, custom_headers = nil)
|
888
|
+
first_page = get_hosting_environments_as_lazy(resource_group_name, custom_headers)
|
889
|
+
first_page.get_all_items
|
846
890
|
end
|
847
891
|
|
848
892
|
#
|
@@ -1194,11 +1238,39 @@ module Azure::ARM::Web
|
|
1194
1238
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1195
1239
|
# will be added to the HTTP request.
|
1196
1240
|
#
|
1197
|
-
# @return [ResourceMetricCollection]
|
1241
|
+
# @return [ResourceMetricCollection] which provide lazy access to pages of the
|
1242
|
+
# response.
|
1198
1243
|
#
|
1199
|
-
def
|
1244
|
+
def get_hosting_environment_metrics_as_lazy(resource_group_name, name, details = nil, filter = nil, custom_headers = nil)
|
1200
1245
|
response = get_hosting_environment_metrics_async(resource_group_name, name, details, filter, custom_headers).value!
|
1201
|
-
|
1246
|
+
unless response.nil?
|
1247
|
+
page = response.body
|
1248
|
+
page.next_method = Proc.new do |next_link|
|
1249
|
+
get_hosting_environment_metrics_next_async(next_link, custom_headers)
|
1250
|
+
end
|
1251
|
+
page
|
1252
|
+
end
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
#
|
1256
|
+
# Get global metrics of hostingEnvironment (App Service Environment).
|
1257
|
+
#
|
1258
|
+
# @param resource_group_name [String] Name of resource group
|
1259
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
1260
|
+
# @param details [Boolean] Include instance details
|
1261
|
+
# @param filter [String] Return only usages/metrics specified in the filter.
|
1262
|
+
# Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1'
|
1263
|
+
# or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
|
1264
|
+
# endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
|
1265
|
+
# duration'[Hour|Minute|Day]'.
|
1266
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1267
|
+
# will be added to the HTTP request.
|
1268
|
+
#
|
1269
|
+
# @return [Array<ResourceMetric>] operation results.
|
1270
|
+
#
|
1271
|
+
def get_hosting_environment_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil)
|
1272
|
+
first_page = get_hosting_environment_metrics_as_lazy(resource_group_name, name, details, filter, custom_headers)
|
1273
|
+
first_page.get_all_items
|
1202
1274
|
end
|
1203
1275
|
|
1204
1276
|
#
|
@@ -1402,11 +1474,38 @@ module Azure::ARM::Web
|
|
1402
1474
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1403
1475
|
# will be added to the HTTP request.
|
1404
1476
|
#
|
1405
|
-
# @return [CsmUsageQuotaCollection]
|
1477
|
+
# @return [CsmUsageQuotaCollection] which provide lazy access to pages of the
|
1478
|
+
# response.
|
1406
1479
|
#
|
1407
|
-
def
|
1480
|
+
def get_hosting_environment_usages_as_lazy(resource_group_name, name, filter = nil, custom_headers = nil)
|
1408
1481
|
response = get_hosting_environment_usages_async(resource_group_name, name, filter, custom_headers).value!
|
1409
|
-
|
1482
|
+
unless response.nil?
|
1483
|
+
page = response.body
|
1484
|
+
page.next_method = Proc.new do |next_link|
|
1485
|
+
get_hosting_environment_usages_next_async(next_link, custom_headers)
|
1486
|
+
end
|
1487
|
+
page
|
1488
|
+
end
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
#
|
1492
|
+
# Get global usages of hostingEnvironment (App Service Environment).
|
1493
|
+
#
|
1494
|
+
# @param resource_group_name [String] Name of resource group
|
1495
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
1496
|
+
# @param filter [String] Return only usages/metrics specified in the filter.
|
1497
|
+
# Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1'
|
1498
|
+
# or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
|
1499
|
+
# endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
|
1500
|
+
# duration'[Hour|Minute|Day]'.
|
1501
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1502
|
+
# will be added to the HTTP request.
|
1503
|
+
#
|
1504
|
+
# @return [Array<CsmUsageQuota>] operation results.
|
1505
|
+
#
|
1506
|
+
def get_hosting_environment_usages(resource_group_name, name, filter = nil, custom_headers = nil)
|
1507
|
+
first_page = get_hosting_environment_usages_as_lazy(resource_group_name, name, filter, custom_headers)
|
1508
|
+
first_page.get_all_items
|
1410
1509
|
end
|
1411
1510
|
|
1412
1511
|
#
|
@@ -1516,11 +1615,43 @@ module Azure::ARM::Web
|
|
1516
1615
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1517
1616
|
# will be added to the HTTP request.
|
1518
1617
|
#
|
1519
|
-
# @return [ResourceMetricCollection]
|
1618
|
+
# @return [ResourceMetricCollection] which provide lazy access to pages of the
|
1619
|
+
# response.
|
1520
1620
|
#
|
1521
|
-
def
|
1621
|
+
def get_hosting_environment_multi_role_metrics_as_lazy(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil)
|
1522
1622
|
response = get_hosting_environment_multi_role_metrics_async(resource_group_name, name, start_time, end_time, time_grain, details, filter, custom_headers).value!
|
1523
|
-
|
1623
|
+
unless response.nil?
|
1624
|
+
page = response.body
|
1625
|
+
page.next_method = Proc.new do |next_link|
|
1626
|
+
get_hosting_environment_multi_role_metrics_next_async(next_link, custom_headers)
|
1627
|
+
end
|
1628
|
+
page
|
1629
|
+
end
|
1630
|
+
end
|
1631
|
+
|
1632
|
+
#
|
1633
|
+
# Get metrics for a multiRole pool of a hostingEnvironment (App Service
|
1634
|
+
# Environment).
|
1635
|
+
#
|
1636
|
+
# @param resource_group_name [String] Name of resource group
|
1637
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
1638
|
+
# @param start_time [String] Beginning time of metrics query
|
1639
|
+
# @param end_time [String] End time of metrics query
|
1640
|
+
# @param time_grain [String] Time granularity of metrics query
|
1641
|
+
# @param details [Boolean] Include instance details
|
1642
|
+
# @param filter [String] Return only usages/metrics specified in the filter.
|
1643
|
+
# Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1'
|
1644
|
+
# or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
|
1645
|
+
# endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
|
1646
|
+
# duration'[Hour|Minute|Day]'.
|
1647
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1648
|
+
# will be added to the HTTP request.
|
1649
|
+
#
|
1650
|
+
# @return [Array<ResourceMetric>] operation results.
|
1651
|
+
#
|
1652
|
+
def get_hosting_environment_multi_role_metrics(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil)
|
1653
|
+
first_page = get_hosting_environment_multi_role_metrics_as_lazy(resource_group_name, name, start_time, end_time, time_grain, details, filter, custom_headers)
|
1654
|
+
first_page.get_all_items
|
1524
1655
|
end
|
1525
1656
|
|
1526
1657
|
#
|
@@ -1638,11 +1769,41 @@ module Azure::ARM::Web
|
|
1638
1769
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1639
1770
|
# will be added to the HTTP request.
|
1640
1771
|
#
|
1641
|
-
# @return [ResourceMetricCollection]
|
1772
|
+
# @return [ResourceMetricCollection] which provide lazy access to pages of the
|
1773
|
+
# response.
|
1642
1774
|
#
|
1643
|
-
def
|
1775
|
+
def get_hosting_environment_web_worker_metrics_as_lazy(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil)
|
1644
1776
|
response = get_hosting_environment_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details, filter, custom_headers).value!
|
1645
|
-
|
1777
|
+
unless response.nil?
|
1778
|
+
page = response.body
|
1779
|
+
page.next_method = Proc.new do |next_link|
|
1780
|
+
get_hosting_environment_web_worker_metrics_next_async(next_link, custom_headers)
|
1781
|
+
end
|
1782
|
+
page
|
1783
|
+
end
|
1784
|
+
end
|
1785
|
+
|
1786
|
+
#
|
1787
|
+
# Get metrics for a worker pool of a hostingEnvironment (App Service
|
1788
|
+
# Environment).
|
1789
|
+
#
|
1790
|
+
# @param resource_group_name [String] Name of resource group
|
1791
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
1792
|
+
# @param worker_pool_name [String] Name of worker pool
|
1793
|
+
# @param details [Boolean] Include instance details
|
1794
|
+
# @param filter [String] Return only usages/metrics specified in the filter.
|
1795
|
+
# Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1'
|
1796
|
+
# or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
|
1797
|
+
# endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
|
1798
|
+
# duration'[Hour|Minute|Day]'.
|
1799
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1800
|
+
# will be added to the HTTP request.
|
1801
|
+
#
|
1802
|
+
# @return [Array<ResourceMetric>] operation results.
|
1803
|
+
#
|
1804
|
+
def get_hosting_environment_web_worker_metrics(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil)
|
1805
|
+
first_page = get_hosting_environment_web_worker_metrics_as_lazy(resource_group_name, name, worker_pool_name, details, filter, custom_headers)
|
1806
|
+
first_page.get_all_items
|
1646
1807
|
end
|
1647
1808
|
|
1648
1809
|
#
|
@@ -1750,11 +1911,34 @@ module Azure::ARM::Web
|
|
1750
1911
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1751
1912
|
# will be added to the HTTP request.
|
1752
1913
|
#
|
1753
|
-
# @return [MetricDefinitionCollection]
|
1914
|
+
# @return [MetricDefinitionCollection] which provide lazy access to pages of
|
1915
|
+
# the response.
|
1754
1916
|
#
|
1755
|
-
def
|
1917
|
+
def get_hosting_environment_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers = nil)
|
1756
1918
|
response = get_hosting_environment_multi_role_metric_definitions_async(resource_group_name, name, custom_headers).value!
|
1757
|
-
|
1919
|
+
unless response.nil?
|
1920
|
+
page = response.body
|
1921
|
+
page.next_method = Proc.new do |next_link|
|
1922
|
+
get_hosting_environment_multi_role_metric_definitions_next_async(next_link, custom_headers)
|
1923
|
+
end
|
1924
|
+
page
|
1925
|
+
end
|
1926
|
+
end
|
1927
|
+
|
1928
|
+
#
|
1929
|
+
# Get metric definitions for a multiRole pool of a hostingEnvironment (App
|
1930
|
+
# Service Environment).
|
1931
|
+
#
|
1932
|
+
# @param resource_group_name [String] Name of resource group
|
1933
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
1934
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1935
|
+
# will be added to the HTTP request.
|
1936
|
+
#
|
1937
|
+
# @return [Array<MetricDefinition>] operation results.
|
1938
|
+
#
|
1939
|
+
def get_hosting_environment_multi_role_metric_definitions(resource_group_name, name, custom_headers = nil)
|
1940
|
+
first_page = get_hosting_environment_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers)
|
1941
|
+
first_page.get_all_items
|
1758
1942
|
end
|
1759
1943
|
|
1760
1944
|
#
|
@@ -1848,11 +2032,35 @@ module Azure::ARM::Web
|
|
1848
2032
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1849
2033
|
# will be added to the HTTP request.
|
1850
2034
|
#
|
1851
|
-
# @return [MetricDefinitionCollection]
|
2035
|
+
# @return [MetricDefinitionCollection] which provide lazy access to pages of
|
2036
|
+
# the response.
|
1852
2037
|
#
|
1853
|
-
def
|
2038
|
+
def get_hosting_environment_web_worker_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, custom_headers = nil)
|
1854
2039
|
response = get_hosting_environment_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers).value!
|
1855
|
-
|
2040
|
+
unless response.nil?
|
2041
|
+
page = response.body
|
2042
|
+
page.next_method = Proc.new do |next_link|
|
2043
|
+
get_hosting_environment_web_worker_metric_definitions_next_async(next_link, custom_headers)
|
2044
|
+
end
|
2045
|
+
page
|
2046
|
+
end
|
2047
|
+
end
|
2048
|
+
|
2049
|
+
#
|
2050
|
+
# Get metric definitions for a worker pool of a hostingEnvironment (App
|
2051
|
+
# Service Environment).
|
2052
|
+
#
|
2053
|
+
# @param resource_group_name [String] Name of resource group
|
2054
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
2055
|
+
# @param worker_pool_name [String] Name of worker pool
|
2056
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2057
|
+
# will be added to the HTTP request.
|
2058
|
+
#
|
2059
|
+
# @return [Array<MetricDefinition>] operation results.
|
2060
|
+
#
|
2061
|
+
def get_hosting_environment_web_worker_metric_definitions(resource_group_name, name, worker_pool_name, custom_headers = nil)
|
2062
|
+
first_page = get_hosting_environment_web_worker_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, custom_headers)
|
2063
|
+
first_page.get_all_items
|
1856
2064
|
end
|
1857
2065
|
|
1858
2066
|
#
|
@@ -1948,11 +2156,33 @@ module Azure::ARM::Web
|
|
1948
2156
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1949
2157
|
# will be added to the HTTP request.
|
1950
2158
|
#
|
1951
|
-
# @return [UsageCollection]
|
2159
|
+
# @return [UsageCollection] which provide lazy access to pages of the response.
|
1952
2160
|
#
|
1953
|
-
def
|
2161
|
+
def get_hosting_environment_multi_role_usages_as_lazy(resource_group_name, name, custom_headers = nil)
|
1954
2162
|
response = get_hosting_environment_multi_role_usages_async(resource_group_name, name, custom_headers).value!
|
1955
|
-
|
2163
|
+
unless response.nil?
|
2164
|
+
page = response.body
|
2165
|
+
page.next_method = Proc.new do |next_link|
|
2166
|
+
get_hosting_environment_multi_role_usages_next_async(next_link, custom_headers)
|
2167
|
+
end
|
2168
|
+
page
|
2169
|
+
end
|
2170
|
+
end
|
2171
|
+
|
2172
|
+
#
|
2173
|
+
# Get usages for a multiRole pool of a hostingEnvironment (App Service
|
2174
|
+
# Environment).
|
2175
|
+
#
|
2176
|
+
# @param resource_group_name [String] Name of resource group
|
2177
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
2178
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2179
|
+
# will be added to the HTTP request.
|
2180
|
+
#
|
2181
|
+
# @return [Array<Usage>] operation results.
|
2182
|
+
#
|
2183
|
+
def get_hosting_environment_multi_role_usages(resource_group_name, name, custom_headers = nil)
|
2184
|
+
first_page = get_hosting_environment_multi_role_usages_as_lazy(resource_group_name, name, custom_headers)
|
2185
|
+
first_page.get_all_items
|
1956
2186
|
end
|
1957
2187
|
|
1958
2188
|
#
|
@@ -2046,11 +2276,34 @@ module Azure::ARM::Web
|
|
2046
2276
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2047
2277
|
# will be added to the HTTP request.
|
2048
2278
|
#
|
2049
|
-
# @return [UsageCollection]
|
2279
|
+
# @return [UsageCollection] which provide lazy access to pages of the response.
|
2050
2280
|
#
|
2051
|
-
def
|
2281
|
+
def get_hosting_environment_web_worker_usages_as_lazy(resource_group_name, name, worker_pool_name, custom_headers = nil)
|
2052
2282
|
response = get_hosting_environment_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers).value!
|
2053
|
-
|
2283
|
+
unless response.nil?
|
2284
|
+
page = response.body
|
2285
|
+
page.next_method = Proc.new do |next_link|
|
2286
|
+
get_hosting_environment_web_worker_usages_next_async(next_link, custom_headers)
|
2287
|
+
end
|
2288
|
+
page
|
2289
|
+
end
|
2290
|
+
end
|
2291
|
+
|
2292
|
+
#
|
2293
|
+
# Get usages for a worker pool of a hostingEnvironment (App Service
|
2294
|
+
# Environment).
|
2295
|
+
#
|
2296
|
+
# @param resource_group_name [String] Name of resource group
|
2297
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
2298
|
+
# @param worker_pool_name [String] Name of worker pool
|
2299
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2300
|
+
# will be added to the HTTP request.
|
2301
|
+
#
|
2302
|
+
# @return [Array<Usage>] operation results.
|
2303
|
+
#
|
2304
|
+
def get_hosting_environment_web_worker_usages(resource_group_name, name, worker_pool_name, custom_headers = nil)
|
2305
|
+
first_page = get_hosting_environment_web_worker_usages_as_lazy(resource_group_name, name, worker_pool_name, custom_headers)
|
2306
|
+
first_page.get_all_items
|
2054
2307
|
end
|
2055
2308
|
|
2056
2309
|
#
|
@@ -2147,7 +2400,30 @@ module Azure::ARM::Web
|
|
2147
2400
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2148
2401
|
# will be added to the HTTP request.
|
2149
2402
|
#
|
2150
|
-
# @return [SiteCollection]
|
2403
|
+
# @return [SiteCollection] which provide lazy access to pages of the response.
|
2404
|
+
#
|
2405
|
+
def get_hosting_environment_sites_as_lazy(resource_group_name, name, properties_to_include = nil, custom_headers = nil)
|
2406
|
+
response = get_hosting_environment_sites_async(resource_group_name, name, properties_to_include, custom_headers).value!
|
2407
|
+
unless response.nil?
|
2408
|
+
page = response.body
|
2409
|
+
page.next_method = Proc.new do |next_link|
|
2410
|
+
get_hosting_environment_sites_next_async(next_link, custom_headers)
|
2411
|
+
end
|
2412
|
+
page
|
2413
|
+
end
|
2414
|
+
end
|
2415
|
+
|
2416
|
+
#
|
2417
|
+
# Get all sites on the hostingEnvironment (App Service Environment).
|
2418
|
+
#
|
2419
|
+
# @param resource_group_name [String] Name of resource group
|
2420
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
2421
|
+
# @param properties_to_include [String] Comma separated list of site
|
2422
|
+
# properties to include
|
2423
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2424
|
+
# will be added to the HTTP request.
|
2425
|
+
#
|
2426
|
+
# @return [Array<Site>] operation results.
|
2151
2427
|
#
|
2152
2428
|
def get_hosting_environment_sites(resource_group_name, name, properties_to_include = nil, custom_headers = nil)
|
2153
2429
|
first_page = get_hosting_environment_sites_as_lazy(resource_group_name, name, properties_to_include, custom_headers)
|
@@ -2246,11 +2522,34 @@ module Azure::ARM::Web
|
|
2246
2522
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2247
2523
|
# will be added to the HTTP request.
|
2248
2524
|
#
|
2249
|
-
# @return [ServerFarmCollection]
|
2525
|
+
# @return [ServerFarmCollection] which provide lazy access to pages of the
|
2526
|
+
# response.
|
2250
2527
|
#
|
2251
|
-
def
|
2528
|
+
def get_hosting_environment_web_hosting_plans_as_lazy(resource_group_name, name, custom_headers = nil)
|
2252
2529
|
response = get_hosting_environment_web_hosting_plans_async(resource_group_name, name, custom_headers).value!
|
2253
|
-
|
2530
|
+
unless response.nil?
|
2531
|
+
page = response.body
|
2532
|
+
page.next_method = Proc.new do |next_link|
|
2533
|
+
get_hosting_environment_web_hosting_plans_next_async(next_link, custom_headers)
|
2534
|
+
end
|
2535
|
+
page
|
2536
|
+
end
|
2537
|
+
end
|
2538
|
+
|
2539
|
+
#
|
2540
|
+
# Get all serverfarms (App Service Plans) on the hostingEnvironment (App
|
2541
|
+
# Service Environment).
|
2542
|
+
#
|
2543
|
+
# @param resource_group_name [String] Name of resource group
|
2544
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
2545
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2546
|
+
# will be added to the HTTP request.
|
2547
|
+
#
|
2548
|
+
# @return [Array<ServerFarmWithRichSku>] operation results.
|
2549
|
+
#
|
2550
|
+
def get_hosting_environment_web_hosting_plans(resource_group_name, name, custom_headers = nil)
|
2551
|
+
first_page = get_hosting_environment_web_hosting_plans_as_lazy(resource_group_name, name, custom_headers)
|
2552
|
+
first_page.get_all_items
|
2254
2553
|
end
|
2255
2554
|
|
2256
2555
|
#
|
@@ -2343,11 +2642,34 @@ module Azure::ARM::Web
|
|
2343
2642
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2344
2643
|
# will be added to the HTTP request.
|
2345
2644
|
#
|
2346
|
-
# @return [ServerFarmCollection]
|
2645
|
+
# @return [ServerFarmCollection] which provide lazy access to pages of the
|
2646
|
+
# response.
|
2347
2647
|
#
|
2348
|
-
def
|
2648
|
+
def get_hosting_environment_server_farms_as_lazy(resource_group_name, name, custom_headers = nil)
|
2349
2649
|
response = get_hosting_environment_server_farms_async(resource_group_name, name, custom_headers).value!
|
2350
|
-
|
2650
|
+
unless response.nil?
|
2651
|
+
page = response.body
|
2652
|
+
page.next_method = Proc.new do |next_link|
|
2653
|
+
get_hosting_environment_server_farms_next_async(next_link, custom_headers)
|
2654
|
+
end
|
2655
|
+
page
|
2656
|
+
end
|
2657
|
+
end
|
2658
|
+
|
2659
|
+
#
|
2660
|
+
# Get all serverfarms (App Service Plans) on the hostingEnvironment (App
|
2661
|
+
# Service Environment).
|
2662
|
+
#
|
2663
|
+
# @param resource_group_name [String] Name of resource group
|
2664
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
2665
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2666
|
+
# will be added to the HTTP request.
|
2667
|
+
#
|
2668
|
+
# @return [Array<ServerFarmWithRichSku>] operation results.
|
2669
|
+
#
|
2670
|
+
def get_hosting_environment_server_farms(resource_group_name, name, custom_headers = nil)
|
2671
|
+
first_page = get_hosting_environment_server_farms_as_lazy(resource_group_name, name, custom_headers)
|
2672
|
+
first_page.get_all_items
|
2351
2673
|
end
|
2352
2674
|
|
2353
2675
|
#
|
@@ -2439,11 +2761,33 @@ module Azure::ARM::Web
|
|
2439
2761
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2440
2762
|
# will be added to the HTTP request.
|
2441
2763
|
#
|
2442
|
-
# @return [WorkerPoolCollection]
|
2764
|
+
# @return [WorkerPoolCollection] which provide lazy access to pages of the
|
2765
|
+
# response.
|
2443
2766
|
#
|
2444
|
-
def
|
2767
|
+
def get_multi_role_pools_as_lazy(resource_group_name, name, custom_headers = nil)
|
2445
2768
|
response = get_multi_role_pools_async(resource_group_name, name, custom_headers).value!
|
2446
|
-
|
2769
|
+
unless response.nil?
|
2770
|
+
page = response.body
|
2771
|
+
page.next_method = Proc.new do |next_link|
|
2772
|
+
get_multi_role_pools_next_async(next_link, custom_headers)
|
2773
|
+
end
|
2774
|
+
page
|
2775
|
+
end
|
2776
|
+
end
|
2777
|
+
|
2778
|
+
#
|
2779
|
+
# Get all multi role pools
|
2780
|
+
#
|
2781
|
+
# @param resource_group_name [String] Name of resource group
|
2782
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
2783
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2784
|
+
# will be added to the HTTP request.
|
2785
|
+
#
|
2786
|
+
# @return [Array<WorkerPool>] operation results.
|
2787
|
+
#
|
2788
|
+
def get_multi_role_pools(resource_group_name, name, custom_headers = nil)
|
2789
|
+
first_page = get_multi_role_pools_as_lazy(resource_group_name, name, custom_headers)
|
2790
|
+
first_page.get_all_items
|
2447
2791
|
end
|
2448
2792
|
|
2449
2793
|
#
|
@@ -2788,11 +3132,33 @@ module Azure::ARM::Web
|
|
2788
3132
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2789
3133
|
# will be added to the HTTP request.
|
2790
3134
|
#
|
2791
|
-
# @return [SkuInfoCollection]
|
3135
|
+
# @return [SkuInfoCollection] which provide lazy access to pages of the
|
3136
|
+
# response.
|
2792
3137
|
#
|
2793
|
-
def
|
3138
|
+
def get_multi_role_pool_skus_as_lazy(resource_group_name, name, custom_headers = nil)
|
2794
3139
|
response = get_multi_role_pool_skus_async(resource_group_name, name, custom_headers).value!
|
2795
|
-
|
3140
|
+
unless response.nil?
|
3141
|
+
page = response.body
|
3142
|
+
page.next_method = Proc.new do |next_link|
|
3143
|
+
get_multi_role_pool_skus_next_async(next_link, custom_headers)
|
3144
|
+
end
|
3145
|
+
page
|
3146
|
+
end
|
3147
|
+
end
|
3148
|
+
|
3149
|
+
#
|
3150
|
+
# Get available skus for scaling a multiRole pool.
|
3151
|
+
#
|
3152
|
+
# @param resource_group_name [String] Name of resource group
|
3153
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
3154
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3155
|
+
# will be added to the HTTP request.
|
3156
|
+
#
|
3157
|
+
# @return [Array<SkuInfo>] operation results.
|
3158
|
+
#
|
3159
|
+
def get_multi_role_pool_skus(resource_group_name, name, custom_headers = nil)
|
3160
|
+
first_page = get_multi_role_pool_skus_as_lazy(resource_group_name, name, custom_headers)
|
3161
|
+
first_page.get_all_items
|
2796
3162
|
end
|
2797
3163
|
|
2798
3164
|
#
|
@@ -2882,11 +3248,33 @@ module Azure::ARM::Web
|
|
2882
3248
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2883
3249
|
# will be added to the HTTP request.
|
2884
3250
|
#
|
2885
|
-
# @return [WorkerPoolCollection]
|
3251
|
+
# @return [WorkerPoolCollection] which provide lazy access to pages of the
|
3252
|
+
# response.
|
2886
3253
|
#
|
2887
|
-
def
|
3254
|
+
def get_worker_pools_as_lazy(resource_group_name, name, custom_headers = nil)
|
2888
3255
|
response = get_worker_pools_async(resource_group_name, name, custom_headers).value!
|
2889
|
-
|
3256
|
+
unless response.nil?
|
3257
|
+
page = response.body
|
3258
|
+
page.next_method = Proc.new do |next_link|
|
3259
|
+
get_worker_pools_next_async(next_link, custom_headers)
|
3260
|
+
end
|
3261
|
+
page
|
3262
|
+
end
|
3263
|
+
end
|
3264
|
+
|
3265
|
+
#
|
3266
|
+
# Get all worker pools
|
3267
|
+
#
|
3268
|
+
# @param resource_group_name [String] Name of resource group
|
3269
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
3270
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3271
|
+
# will be added to the HTTP request.
|
3272
|
+
#
|
3273
|
+
# @return [Array<WorkerPool>] operation results.
|
3274
|
+
#
|
3275
|
+
def get_worker_pools(resource_group_name, name, custom_headers = nil)
|
3276
|
+
first_page = get_worker_pools_as_lazy(resource_group_name, name, custom_headers)
|
3277
|
+
first_page.get_all_items
|
2890
3278
|
end
|
2891
3279
|
|
2892
3280
|
#
|
@@ -3242,11 +3630,34 @@ module Azure::ARM::Web
|
|
3242
3630
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3243
3631
|
# will be added to the HTTP request.
|
3244
3632
|
#
|
3245
|
-
# @return [SkuInfoCollection]
|
3633
|
+
# @return [SkuInfoCollection] which provide lazy access to pages of the
|
3634
|
+
# response.
|
3246
3635
|
#
|
3247
|
-
def
|
3636
|
+
def get_worker_pool_skus_as_lazy(resource_group_name, name, worker_pool_name, custom_headers = nil)
|
3248
3637
|
response = get_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers).value!
|
3249
|
-
|
3638
|
+
unless response.nil?
|
3639
|
+
page = response.body
|
3640
|
+
page.next_method = Proc.new do |next_link|
|
3641
|
+
get_worker_pool_skus_next_async(next_link, custom_headers)
|
3642
|
+
end
|
3643
|
+
page
|
3644
|
+
end
|
3645
|
+
end
|
3646
|
+
|
3647
|
+
#
|
3648
|
+
# Get available skus for scaling a worker pool.
|
3649
|
+
#
|
3650
|
+
# @param resource_group_name [String] Name of resource group
|
3651
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
3652
|
+
# @param worker_pool_name [String] Name of worker pool
|
3653
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3654
|
+
# will be added to the HTTP request.
|
3655
|
+
#
|
3656
|
+
# @return [Array<SkuInfo>] operation results.
|
3657
|
+
#
|
3658
|
+
def get_worker_pool_skus(resource_group_name, name, worker_pool_name, custom_headers = nil)
|
3659
|
+
first_page = get_worker_pool_skus_as_lazy(resource_group_name, name, worker_pool_name, custom_headers)
|
3660
|
+
first_page.get_all_items
|
3250
3661
|
end
|
3251
3662
|
|
3252
3663
|
#
|
@@ -3732,7 +4143,27 @@ module Azure::ARM::Web
|
|
3732
4143
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3733
4144
|
# will be added to the HTTP request.
|
3734
4145
|
#
|
3735
|
-
# @return [SiteCollection]
|
4146
|
+
# @return [SiteCollection] which provide lazy access to pages of the response.
|
4147
|
+
#
|
4148
|
+
def suspend_hosting_environment_as_lazy(resource_group_name, name, custom_headers = nil)
|
4149
|
+
response = suspend_hosting_environment_async(resource_group_name, name, custom_headers).value!
|
4150
|
+
unless response.nil?
|
4151
|
+
page = response.body
|
4152
|
+
page.next_method = Proc.new do |next_link|
|
4153
|
+
suspend_hosting_environment_next_async(next_link, custom_headers)
|
4154
|
+
end
|
4155
|
+
page
|
4156
|
+
end
|
4157
|
+
end
|
4158
|
+
#
|
4159
|
+
# Suspends the hostingEnvironment.
|
4160
|
+
#
|
4161
|
+
# @param resource_group_name [String] Name of resource group
|
4162
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
4163
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4164
|
+
# will be added to the HTTP request.
|
4165
|
+
#
|
4166
|
+
# @return [Array<Site>] operation results.
|
3736
4167
|
#
|
3737
4168
|
def suspend_hosting_environment(resource_group_name, name, custom_headers = nil)
|
3738
4169
|
first_page = suspend_hosting_environment_as_lazy(resource_group_name, name, custom_headers)
|
@@ -3774,7 +4205,28 @@ module Azure::ARM::Web
|
|
3774
4205
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3775
4206
|
# will be added to the HTTP request.
|
3776
4207
|
#
|
3777
|
-
# @return [SiteCollection]
|
4208
|
+
# @return [SiteCollection] which provide lazy access to pages of the response.
|
4209
|
+
#
|
4210
|
+
def begin_suspend_hosting_environment_as_lazy(resource_group_name, name, custom_headers = nil)
|
4211
|
+
response = begin_suspend_hosting_environment_async(resource_group_name, name, custom_headers).value!
|
4212
|
+
unless response.nil?
|
4213
|
+
page = response.body
|
4214
|
+
page.next_method = Proc.new do |next_link|
|
4215
|
+
begin_suspend_hosting_environment_next_async(next_link, custom_headers)
|
4216
|
+
end
|
4217
|
+
page
|
4218
|
+
end
|
4219
|
+
end
|
4220
|
+
|
4221
|
+
#
|
4222
|
+
# Suspends the hostingEnvironment.
|
4223
|
+
#
|
4224
|
+
# @param resource_group_name [String] Name of resource group
|
4225
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
4226
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4227
|
+
# will be added to the HTTP request.
|
4228
|
+
#
|
4229
|
+
# @return [Array<Site>] operation results.
|
3778
4230
|
#
|
3779
4231
|
def begin_suspend_hosting_environment(resource_group_name, name, custom_headers = nil)
|
3780
4232
|
first_page = begin_suspend_hosting_environment_as_lazy(resource_group_name, name, custom_headers)
|
@@ -3878,7 +4330,27 @@ module Azure::ARM::Web
|
|
3878
4330
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3879
4331
|
# will be added to the HTTP request.
|
3880
4332
|
#
|
3881
|
-
# @return [SiteCollection]
|
4333
|
+
# @return [SiteCollection] which provide lazy access to pages of the response.
|
4334
|
+
#
|
4335
|
+
def resume_hosting_environment_as_lazy(resource_group_name, name, custom_headers = nil)
|
4336
|
+
response = resume_hosting_environment_async(resource_group_name, name, custom_headers).value!
|
4337
|
+
unless response.nil?
|
4338
|
+
page = response.body
|
4339
|
+
page.next_method = Proc.new do |next_link|
|
4340
|
+
resume_hosting_environment_next_async(next_link, custom_headers)
|
4341
|
+
end
|
4342
|
+
page
|
4343
|
+
end
|
4344
|
+
end
|
4345
|
+
#
|
4346
|
+
# Resumes the hostingEnvironment.
|
4347
|
+
#
|
4348
|
+
# @param resource_group_name [String] Name of resource group
|
4349
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
4350
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4351
|
+
# will be added to the HTTP request.
|
4352
|
+
#
|
4353
|
+
# @return [Array<Site>] operation results.
|
3882
4354
|
#
|
3883
4355
|
def resume_hosting_environment(resource_group_name, name, custom_headers = nil)
|
3884
4356
|
first_page = resume_hosting_environment_as_lazy(resource_group_name, name, custom_headers)
|
@@ -3920,7 +4392,28 @@ module Azure::ARM::Web
|
|
3920
4392
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3921
4393
|
# will be added to the HTTP request.
|
3922
4394
|
#
|
3923
|
-
# @return [SiteCollection]
|
4395
|
+
# @return [SiteCollection] which provide lazy access to pages of the response.
|
4396
|
+
#
|
4397
|
+
def begin_resume_hosting_environment_as_lazy(resource_group_name, name, custom_headers = nil)
|
4398
|
+
response = begin_resume_hosting_environment_async(resource_group_name, name, custom_headers).value!
|
4399
|
+
unless response.nil?
|
4400
|
+
page = response.body
|
4401
|
+
page.next_method = Proc.new do |next_link|
|
4402
|
+
begin_resume_hosting_environment_next_async(next_link, custom_headers)
|
4403
|
+
end
|
4404
|
+
page
|
4405
|
+
end
|
4406
|
+
end
|
4407
|
+
|
4408
|
+
#
|
4409
|
+
# Resumes the hostingEnvironment.
|
4410
|
+
#
|
4411
|
+
# @param resource_group_name [String] Name of resource group
|
4412
|
+
# @param name [String] Name of hostingEnvironment (App Service Environment)
|
4413
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4414
|
+
# will be added to the HTTP request.
|
4415
|
+
#
|
4416
|
+
# @return [Array<Site>] operation results.
|
3924
4417
|
#
|
3925
4418
|
def begin_resume_hosting_environment(resource_group_name, name, custom_headers = nil)
|
3926
4419
|
first_page = begin_resume_hosting_environment_as_lazy(resource_group_name, name, custom_headers)
|
@@ -4016,5 +4509,1846 @@ module Azure::ARM::Web
|
|
4016
4509
|
promise.execute
|
4017
4510
|
end
|
4018
4511
|
|
4512
|
+
#
|
4513
|
+
# Get used, available, and total worker capacity for hostingEnvironment (App
|
4514
|
+
# Service Environment).
|
4515
|
+
#
|
4516
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4517
|
+
# call to List operation.
|
4518
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4519
|
+
# will be added to the HTTP request.
|
4520
|
+
#
|
4521
|
+
# @return [StampCapacityCollection] operation results.
|
4522
|
+
#
|
4523
|
+
def get_hosting_environment_capacities_next(next_page_link, custom_headers = nil)
|
4524
|
+
response = get_hosting_environment_capacities_next_async(next_page_link, custom_headers).value!
|
4525
|
+
response.body unless response.nil?
|
4526
|
+
end
|
4527
|
+
|
4528
|
+
#
|
4529
|
+
# Get used, available, and total worker capacity for hostingEnvironment (App
|
4530
|
+
# Service Environment).
|
4531
|
+
#
|
4532
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4533
|
+
# call to List operation.
|
4534
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4535
|
+
# will be added to the HTTP request.
|
4536
|
+
#
|
4537
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
4538
|
+
#
|
4539
|
+
def get_hosting_environment_capacities_next_with_http_info(next_page_link, custom_headers = nil)
|
4540
|
+
get_hosting_environment_capacities_next_async(next_page_link, custom_headers).value!
|
4541
|
+
end
|
4542
|
+
|
4543
|
+
#
|
4544
|
+
# Get used, available, and total worker capacity for hostingEnvironment (App
|
4545
|
+
# Service Environment).
|
4546
|
+
#
|
4547
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4548
|
+
# call to List operation.
|
4549
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
4550
|
+
# to the HTTP request.
|
4551
|
+
#
|
4552
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
4553
|
+
#
|
4554
|
+
def get_hosting_environment_capacities_next_async(next_page_link, custom_headers = nil)
|
4555
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
4556
|
+
|
4557
|
+
|
4558
|
+
request_headers = {}
|
4559
|
+
|
4560
|
+
# Set Headers
|
4561
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
4562
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
4563
|
+
path_template = '{nextLink}'
|
4564
|
+
options = {
|
4565
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
4566
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
4567
|
+
headers: request_headers.merge(custom_headers || {})
|
4568
|
+
}
|
4569
|
+
|
4570
|
+
request_url = @base_url || @client.base_url
|
4571
|
+
|
4572
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
4573
|
+
promise = request.run_promise do |req|
|
4574
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
4575
|
+
end
|
4576
|
+
|
4577
|
+
promise = promise.then do |http_response|
|
4578
|
+
status_code = http_response.status
|
4579
|
+
response_content = http_response.body
|
4580
|
+
unless status_code == 200
|
4581
|
+
error_model = JSON.load(response_content)
|
4582
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
4583
|
+
end
|
4584
|
+
|
4585
|
+
# Create Result
|
4586
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
4587
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
4588
|
+
# Deserialize Response
|
4589
|
+
if status_code == 200
|
4590
|
+
begin
|
4591
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
4592
|
+
result_mapper = StampCapacityCollection.mapper()
|
4593
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
4594
|
+
rescue Exception => e
|
4595
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
4596
|
+
end
|
4597
|
+
end
|
4598
|
+
|
4599
|
+
result
|
4600
|
+
end
|
4601
|
+
|
4602
|
+
promise.execute
|
4603
|
+
end
|
4604
|
+
|
4605
|
+
#
|
4606
|
+
# Get all hostingEnvironments (App Service Environments) in a resource group.
|
4607
|
+
#
|
4608
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4609
|
+
# call to List operation.
|
4610
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4611
|
+
# will be added to the HTTP request.
|
4612
|
+
#
|
4613
|
+
# @return [HostingEnvironmentCollection] operation results.
|
4614
|
+
#
|
4615
|
+
def get_hosting_environments_next(next_page_link, custom_headers = nil)
|
4616
|
+
response = get_hosting_environments_next_async(next_page_link, custom_headers).value!
|
4617
|
+
response.body unless response.nil?
|
4618
|
+
end
|
4619
|
+
|
4620
|
+
#
|
4621
|
+
# Get all hostingEnvironments (App Service Environments) in a resource group.
|
4622
|
+
#
|
4623
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4624
|
+
# call to List operation.
|
4625
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4626
|
+
# will be added to the HTTP request.
|
4627
|
+
#
|
4628
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
4629
|
+
#
|
4630
|
+
def get_hosting_environments_next_with_http_info(next_page_link, custom_headers = nil)
|
4631
|
+
get_hosting_environments_next_async(next_page_link, custom_headers).value!
|
4632
|
+
end
|
4633
|
+
|
4634
|
+
#
|
4635
|
+
# Get all hostingEnvironments (App Service Environments) in a resource group.
|
4636
|
+
#
|
4637
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4638
|
+
# call to List operation.
|
4639
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
4640
|
+
# to the HTTP request.
|
4641
|
+
#
|
4642
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
4643
|
+
#
|
4644
|
+
def get_hosting_environments_next_async(next_page_link, custom_headers = nil)
|
4645
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
4646
|
+
|
4647
|
+
|
4648
|
+
request_headers = {}
|
4649
|
+
|
4650
|
+
# Set Headers
|
4651
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
4652
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
4653
|
+
path_template = '{nextLink}'
|
4654
|
+
options = {
|
4655
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
4656
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
4657
|
+
headers: request_headers.merge(custom_headers || {})
|
4658
|
+
}
|
4659
|
+
|
4660
|
+
request_url = @base_url || @client.base_url
|
4661
|
+
|
4662
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
4663
|
+
promise = request.run_promise do |req|
|
4664
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
4665
|
+
end
|
4666
|
+
|
4667
|
+
promise = promise.then do |http_response|
|
4668
|
+
status_code = http_response.status
|
4669
|
+
response_content = http_response.body
|
4670
|
+
unless status_code == 200
|
4671
|
+
error_model = JSON.load(response_content)
|
4672
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
4673
|
+
end
|
4674
|
+
|
4675
|
+
# Create Result
|
4676
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
4677
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
4678
|
+
# Deserialize Response
|
4679
|
+
if status_code == 200
|
4680
|
+
begin
|
4681
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
4682
|
+
result_mapper = HostingEnvironmentCollection.mapper()
|
4683
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
4684
|
+
rescue Exception => e
|
4685
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
4686
|
+
end
|
4687
|
+
end
|
4688
|
+
|
4689
|
+
result
|
4690
|
+
end
|
4691
|
+
|
4692
|
+
promise.execute
|
4693
|
+
end
|
4694
|
+
|
4695
|
+
#
|
4696
|
+
# Get global metrics of hostingEnvironment (App Service Environment).
|
4697
|
+
#
|
4698
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4699
|
+
# call to List operation.
|
4700
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4701
|
+
# will be added to the HTTP request.
|
4702
|
+
#
|
4703
|
+
# @return [ResourceMetricCollection] operation results.
|
4704
|
+
#
|
4705
|
+
def get_hosting_environment_metrics_next(next_page_link, custom_headers = nil)
|
4706
|
+
response = get_hosting_environment_metrics_next_async(next_page_link, custom_headers).value!
|
4707
|
+
response.body unless response.nil?
|
4708
|
+
end
|
4709
|
+
|
4710
|
+
#
|
4711
|
+
# Get global metrics of hostingEnvironment (App Service Environment).
|
4712
|
+
#
|
4713
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4714
|
+
# call to List operation.
|
4715
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4716
|
+
# will be added to the HTTP request.
|
4717
|
+
#
|
4718
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
4719
|
+
#
|
4720
|
+
def get_hosting_environment_metrics_next_with_http_info(next_page_link, custom_headers = nil)
|
4721
|
+
get_hosting_environment_metrics_next_async(next_page_link, custom_headers).value!
|
4722
|
+
end
|
4723
|
+
|
4724
|
+
#
|
4725
|
+
# Get global metrics of hostingEnvironment (App Service Environment).
|
4726
|
+
#
|
4727
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4728
|
+
# call to List operation.
|
4729
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
4730
|
+
# to the HTTP request.
|
4731
|
+
#
|
4732
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
4733
|
+
#
|
4734
|
+
def get_hosting_environment_metrics_next_async(next_page_link, custom_headers = nil)
|
4735
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
4736
|
+
|
4737
|
+
|
4738
|
+
request_headers = {}
|
4739
|
+
|
4740
|
+
# Set Headers
|
4741
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
4742
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
4743
|
+
path_template = '{nextLink}'
|
4744
|
+
options = {
|
4745
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
4746
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
4747
|
+
headers: request_headers.merge(custom_headers || {})
|
4748
|
+
}
|
4749
|
+
|
4750
|
+
request_url = @base_url || @client.base_url
|
4751
|
+
|
4752
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
4753
|
+
promise = request.run_promise do |req|
|
4754
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
4755
|
+
end
|
4756
|
+
|
4757
|
+
promise = promise.then do |http_response|
|
4758
|
+
status_code = http_response.status
|
4759
|
+
response_content = http_response.body
|
4760
|
+
unless status_code == 200
|
4761
|
+
error_model = JSON.load(response_content)
|
4762
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
4763
|
+
end
|
4764
|
+
|
4765
|
+
# Create Result
|
4766
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
4767
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
4768
|
+
# Deserialize Response
|
4769
|
+
if status_code == 200
|
4770
|
+
begin
|
4771
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
4772
|
+
result_mapper = ResourceMetricCollection.mapper()
|
4773
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
4774
|
+
rescue Exception => e
|
4775
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
4776
|
+
end
|
4777
|
+
end
|
4778
|
+
|
4779
|
+
result
|
4780
|
+
end
|
4781
|
+
|
4782
|
+
promise.execute
|
4783
|
+
end
|
4784
|
+
|
4785
|
+
#
|
4786
|
+
# Get global usages of hostingEnvironment (App Service Environment).
|
4787
|
+
#
|
4788
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4789
|
+
# call to List operation.
|
4790
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4791
|
+
# will be added to the HTTP request.
|
4792
|
+
#
|
4793
|
+
# @return [CsmUsageQuotaCollection] operation results.
|
4794
|
+
#
|
4795
|
+
def get_hosting_environment_usages_next(next_page_link, custom_headers = nil)
|
4796
|
+
response = get_hosting_environment_usages_next_async(next_page_link, custom_headers).value!
|
4797
|
+
response.body unless response.nil?
|
4798
|
+
end
|
4799
|
+
|
4800
|
+
#
|
4801
|
+
# Get global usages of hostingEnvironment (App Service Environment).
|
4802
|
+
#
|
4803
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4804
|
+
# call to List operation.
|
4805
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4806
|
+
# will be added to the HTTP request.
|
4807
|
+
#
|
4808
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
4809
|
+
#
|
4810
|
+
def get_hosting_environment_usages_next_with_http_info(next_page_link, custom_headers = nil)
|
4811
|
+
get_hosting_environment_usages_next_async(next_page_link, custom_headers).value!
|
4812
|
+
end
|
4813
|
+
|
4814
|
+
#
|
4815
|
+
# Get global usages of hostingEnvironment (App Service Environment).
|
4816
|
+
#
|
4817
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4818
|
+
# call to List operation.
|
4819
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
4820
|
+
# to the HTTP request.
|
4821
|
+
#
|
4822
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
4823
|
+
#
|
4824
|
+
def get_hosting_environment_usages_next_async(next_page_link, custom_headers = nil)
|
4825
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
4826
|
+
|
4827
|
+
|
4828
|
+
request_headers = {}
|
4829
|
+
|
4830
|
+
# Set Headers
|
4831
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
4832
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
4833
|
+
path_template = '{nextLink}'
|
4834
|
+
options = {
|
4835
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
4836
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
4837
|
+
headers: request_headers.merge(custom_headers || {})
|
4838
|
+
}
|
4839
|
+
|
4840
|
+
request_url = @base_url || @client.base_url
|
4841
|
+
|
4842
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
4843
|
+
promise = request.run_promise do |req|
|
4844
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
4845
|
+
end
|
4846
|
+
|
4847
|
+
promise = promise.then do |http_response|
|
4848
|
+
status_code = http_response.status
|
4849
|
+
response_content = http_response.body
|
4850
|
+
unless status_code == 200
|
4851
|
+
error_model = JSON.load(response_content)
|
4852
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
4853
|
+
end
|
4854
|
+
|
4855
|
+
# Create Result
|
4856
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
4857
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
4858
|
+
# Deserialize Response
|
4859
|
+
if status_code == 200
|
4860
|
+
begin
|
4861
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
4862
|
+
result_mapper = CsmUsageQuotaCollection.mapper()
|
4863
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
4864
|
+
rescue Exception => e
|
4865
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
4866
|
+
end
|
4867
|
+
end
|
4868
|
+
|
4869
|
+
result
|
4870
|
+
end
|
4871
|
+
|
4872
|
+
promise.execute
|
4873
|
+
end
|
4874
|
+
|
4875
|
+
#
|
4876
|
+
# Get metrics for a multiRole pool of a hostingEnvironment (App Service
|
4877
|
+
# Environment).
|
4878
|
+
#
|
4879
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4880
|
+
# call to List operation.
|
4881
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4882
|
+
# will be added to the HTTP request.
|
4883
|
+
#
|
4884
|
+
# @return [ResourceMetricCollection] operation results.
|
4885
|
+
#
|
4886
|
+
def get_hosting_environment_multi_role_metrics_next(next_page_link, custom_headers = nil)
|
4887
|
+
response = get_hosting_environment_multi_role_metrics_next_async(next_page_link, custom_headers).value!
|
4888
|
+
response.body unless response.nil?
|
4889
|
+
end
|
4890
|
+
|
4891
|
+
#
|
4892
|
+
# Get metrics for a multiRole pool of a hostingEnvironment (App Service
|
4893
|
+
# Environment).
|
4894
|
+
#
|
4895
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4896
|
+
# call to List operation.
|
4897
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4898
|
+
# will be added to the HTTP request.
|
4899
|
+
#
|
4900
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
4901
|
+
#
|
4902
|
+
def get_hosting_environment_multi_role_metrics_next_with_http_info(next_page_link, custom_headers = nil)
|
4903
|
+
get_hosting_environment_multi_role_metrics_next_async(next_page_link, custom_headers).value!
|
4904
|
+
end
|
4905
|
+
|
4906
|
+
#
|
4907
|
+
# Get metrics for a multiRole pool of a hostingEnvironment (App Service
|
4908
|
+
# Environment).
|
4909
|
+
#
|
4910
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4911
|
+
# call to List operation.
|
4912
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
4913
|
+
# to the HTTP request.
|
4914
|
+
#
|
4915
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
4916
|
+
#
|
4917
|
+
def get_hosting_environment_multi_role_metrics_next_async(next_page_link, custom_headers = nil)
|
4918
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
4919
|
+
|
4920
|
+
|
4921
|
+
request_headers = {}
|
4922
|
+
|
4923
|
+
# Set Headers
|
4924
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
4925
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
4926
|
+
path_template = '{nextLink}'
|
4927
|
+
options = {
|
4928
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
4929
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
4930
|
+
headers: request_headers.merge(custom_headers || {})
|
4931
|
+
}
|
4932
|
+
|
4933
|
+
request_url = @base_url || @client.base_url
|
4934
|
+
|
4935
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
4936
|
+
promise = request.run_promise do |req|
|
4937
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
4938
|
+
end
|
4939
|
+
|
4940
|
+
promise = promise.then do |http_response|
|
4941
|
+
status_code = http_response.status
|
4942
|
+
response_content = http_response.body
|
4943
|
+
unless status_code == 200
|
4944
|
+
error_model = JSON.load(response_content)
|
4945
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
4946
|
+
end
|
4947
|
+
|
4948
|
+
# Create Result
|
4949
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
4950
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
4951
|
+
# Deserialize Response
|
4952
|
+
if status_code == 200
|
4953
|
+
begin
|
4954
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
4955
|
+
result_mapper = ResourceMetricCollection.mapper()
|
4956
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
4957
|
+
rescue Exception => e
|
4958
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
4959
|
+
end
|
4960
|
+
end
|
4961
|
+
|
4962
|
+
result
|
4963
|
+
end
|
4964
|
+
|
4965
|
+
promise.execute
|
4966
|
+
end
|
4967
|
+
|
4968
|
+
#
|
4969
|
+
# Get metrics for a worker pool of a hostingEnvironment (App Service
|
4970
|
+
# Environment).
|
4971
|
+
#
|
4972
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4973
|
+
# call to List operation.
|
4974
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4975
|
+
# will be added to the HTTP request.
|
4976
|
+
#
|
4977
|
+
# @return [ResourceMetricCollection] operation results.
|
4978
|
+
#
|
4979
|
+
def get_hosting_environment_web_worker_metrics_next(next_page_link, custom_headers = nil)
|
4980
|
+
response = get_hosting_environment_web_worker_metrics_next_async(next_page_link, custom_headers).value!
|
4981
|
+
response.body unless response.nil?
|
4982
|
+
end
|
4983
|
+
|
4984
|
+
#
|
4985
|
+
# Get metrics for a worker pool of a hostingEnvironment (App Service
|
4986
|
+
# Environment).
|
4987
|
+
#
|
4988
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
4989
|
+
# call to List operation.
|
4990
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
4991
|
+
# will be added to the HTTP request.
|
4992
|
+
#
|
4993
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
4994
|
+
#
|
4995
|
+
def get_hosting_environment_web_worker_metrics_next_with_http_info(next_page_link, custom_headers = nil)
|
4996
|
+
get_hosting_environment_web_worker_metrics_next_async(next_page_link, custom_headers).value!
|
4997
|
+
end
|
4998
|
+
|
4999
|
+
#
|
5000
|
+
# Get metrics for a worker pool of a hostingEnvironment (App Service
|
5001
|
+
# Environment).
|
5002
|
+
#
|
5003
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5004
|
+
# call to List operation.
|
5005
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5006
|
+
# to the HTTP request.
|
5007
|
+
#
|
5008
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5009
|
+
#
|
5010
|
+
def get_hosting_environment_web_worker_metrics_next_async(next_page_link, custom_headers = nil)
|
5011
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5012
|
+
|
5013
|
+
|
5014
|
+
request_headers = {}
|
5015
|
+
|
5016
|
+
# Set Headers
|
5017
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5018
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5019
|
+
path_template = '{nextLink}'
|
5020
|
+
options = {
|
5021
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5022
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5023
|
+
headers: request_headers.merge(custom_headers || {})
|
5024
|
+
}
|
5025
|
+
|
5026
|
+
request_url = @base_url || @client.base_url
|
5027
|
+
|
5028
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5029
|
+
promise = request.run_promise do |req|
|
5030
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5031
|
+
end
|
5032
|
+
|
5033
|
+
promise = promise.then do |http_response|
|
5034
|
+
status_code = http_response.status
|
5035
|
+
response_content = http_response.body
|
5036
|
+
unless status_code == 200
|
5037
|
+
error_model = JSON.load(response_content)
|
5038
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5039
|
+
end
|
5040
|
+
|
5041
|
+
# Create Result
|
5042
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5043
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5044
|
+
# Deserialize Response
|
5045
|
+
if status_code == 200
|
5046
|
+
begin
|
5047
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5048
|
+
result_mapper = ResourceMetricCollection.mapper()
|
5049
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5050
|
+
rescue Exception => e
|
5051
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5052
|
+
end
|
5053
|
+
end
|
5054
|
+
|
5055
|
+
result
|
5056
|
+
end
|
5057
|
+
|
5058
|
+
promise.execute
|
5059
|
+
end
|
5060
|
+
|
5061
|
+
#
|
5062
|
+
# Get metric definitions for a multiRole pool of a hostingEnvironment (App
|
5063
|
+
# Service Environment).
|
5064
|
+
#
|
5065
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5066
|
+
# call to List operation.
|
5067
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5068
|
+
# will be added to the HTTP request.
|
5069
|
+
#
|
5070
|
+
# @return [MetricDefinitionCollection] operation results.
|
5071
|
+
#
|
5072
|
+
def get_hosting_environment_multi_role_metric_definitions_next(next_page_link, custom_headers = nil)
|
5073
|
+
response = get_hosting_environment_multi_role_metric_definitions_next_async(next_page_link, custom_headers).value!
|
5074
|
+
response.body unless response.nil?
|
5075
|
+
end
|
5076
|
+
|
5077
|
+
#
|
5078
|
+
# Get metric definitions for a multiRole pool of a hostingEnvironment (App
|
5079
|
+
# Service Environment).
|
5080
|
+
#
|
5081
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5082
|
+
# call to List operation.
|
5083
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5084
|
+
# will be added to the HTTP request.
|
5085
|
+
#
|
5086
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
5087
|
+
#
|
5088
|
+
def get_hosting_environment_multi_role_metric_definitions_next_with_http_info(next_page_link, custom_headers = nil)
|
5089
|
+
get_hosting_environment_multi_role_metric_definitions_next_async(next_page_link, custom_headers).value!
|
5090
|
+
end
|
5091
|
+
|
5092
|
+
#
|
5093
|
+
# Get metric definitions for a multiRole pool of a hostingEnvironment (App
|
5094
|
+
# Service Environment).
|
5095
|
+
#
|
5096
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5097
|
+
# call to List operation.
|
5098
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5099
|
+
# to the HTTP request.
|
5100
|
+
#
|
5101
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5102
|
+
#
|
5103
|
+
def get_hosting_environment_multi_role_metric_definitions_next_async(next_page_link, custom_headers = nil)
|
5104
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5105
|
+
|
5106
|
+
|
5107
|
+
request_headers = {}
|
5108
|
+
|
5109
|
+
# Set Headers
|
5110
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5111
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5112
|
+
path_template = '{nextLink}'
|
5113
|
+
options = {
|
5114
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5115
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5116
|
+
headers: request_headers.merge(custom_headers || {})
|
5117
|
+
}
|
5118
|
+
|
5119
|
+
request_url = @base_url || @client.base_url
|
5120
|
+
|
5121
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5122
|
+
promise = request.run_promise do |req|
|
5123
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5124
|
+
end
|
5125
|
+
|
5126
|
+
promise = promise.then do |http_response|
|
5127
|
+
status_code = http_response.status
|
5128
|
+
response_content = http_response.body
|
5129
|
+
unless status_code == 200
|
5130
|
+
error_model = JSON.load(response_content)
|
5131
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5132
|
+
end
|
5133
|
+
|
5134
|
+
# Create Result
|
5135
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5136
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5137
|
+
# Deserialize Response
|
5138
|
+
if status_code == 200
|
5139
|
+
begin
|
5140
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5141
|
+
result_mapper = MetricDefinitionCollection.mapper()
|
5142
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5143
|
+
rescue Exception => e
|
5144
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5145
|
+
end
|
5146
|
+
end
|
5147
|
+
|
5148
|
+
result
|
5149
|
+
end
|
5150
|
+
|
5151
|
+
promise.execute
|
5152
|
+
end
|
5153
|
+
|
5154
|
+
#
|
5155
|
+
# Get metric definitions for a worker pool of a hostingEnvironment (App
|
5156
|
+
# Service Environment).
|
5157
|
+
#
|
5158
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5159
|
+
# call to List operation.
|
5160
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5161
|
+
# will be added to the HTTP request.
|
5162
|
+
#
|
5163
|
+
# @return [MetricDefinitionCollection] operation results.
|
5164
|
+
#
|
5165
|
+
def get_hosting_environment_web_worker_metric_definitions_next(next_page_link, custom_headers = nil)
|
5166
|
+
response = get_hosting_environment_web_worker_metric_definitions_next_async(next_page_link, custom_headers).value!
|
5167
|
+
response.body unless response.nil?
|
5168
|
+
end
|
5169
|
+
|
5170
|
+
#
|
5171
|
+
# Get metric definitions for a worker pool of a hostingEnvironment (App
|
5172
|
+
# Service Environment).
|
5173
|
+
#
|
5174
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5175
|
+
# call to List operation.
|
5176
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5177
|
+
# will be added to the HTTP request.
|
5178
|
+
#
|
5179
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
5180
|
+
#
|
5181
|
+
def get_hosting_environment_web_worker_metric_definitions_next_with_http_info(next_page_link, custom_headers = nil)
|
5182
|
+
get_hosting_environment_web_worker_metric_definitions_next_async(next_page_link, custom_headers).value!
|
5183
|
+
end
|
5184
|
+
|
5185
|
+
#
|
5186
|
+
# Get metric definitions for a worker pool of a hostingEnvironment (App
|
5187
|
+
# Service Environment).
|
5188
|
+
#
|
5189
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5190
|
+
# call to List operation.
|
5191
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5192
|
+
# to the HTTP request.
|
5193
|
+
#
|
5194
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5195
|
+
#
|
5196
|
+
def get_hosting_environment_web_worker_metric_definitions_next_async(next_page_link, custom_headers = nil)
|
5197
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5198
|
+
|
5199
|
+
|
5200
|
+
request_headers = {}
|
5201
|
+
|
5202
|
+
# Set Headers
|
5203
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5204
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5205
|
+
path_template = '{nextLink}'
|
5206
|
+
options = {
|
5207
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5208
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5209
|
+
headers: request_headers.merge(custom_headers || {})
|
5210
|
+
}
|
5211
|
+
|
5212
|
+
request_url = @base_url || @client.base_url
|
5213
|
+
|
5214
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5215
|
+
promise = request.run_promise do |req|
|
5216
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5217
|
+
end
|
5218
|
+
|
5219
|
+
promise = promise.then do |http_response|
|
5220
|
+
status_code = http_response.status
|
5221
|
+
response_content = http_response.body
|
5222
|
+
unless status_code == 200
|
5223
|
+
error_model = JSON.load(response_content)
|
5224
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5225
|
+
end
|
5226
|
+
|
5227
|
+
# Create Result
|
5228
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5229
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5230
|
+
# Deserialize Response
|
5231
|
+
if status_code == 200
|
5232
|
+
begin
|
5233
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5234
|
+
result_mapper = MetricDefinitionCollection.mapper()
|
5235
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5236
|
+
rescue Exception => e
|
5237
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5238
|
+
end
|
5239
|
+
end
|
5240
|
+
|
5241
|
+
result
|
5242
|
+
end
|
5243
|
+
|
5244
|
+
promise.execute
|
5245
|
+
end
|
5246
|
+
|
5247
|
+
#
|
5248
|
+
# Get usages for a multiRole pool of a hostingEnvironment (App Service
|
5249
|
+
# Environment).
|
5250
|
+
#
|
5251
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5252
|
+
# call to List operation.
|
5253
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5254
|
+
# will be added to the HTTP request.
|
5255
|
+
#
|
5256
|
+
# @return [UsageCollection] operation results.
|
5257
|
+
#
|
5258
|
+
def get_hosting_environment_multi_role_usages_next(next_page_link, custom_headers = nil)
|
5259
|
+
response = get_hosting_environment_multi_role_usages_next_async(next_page_link, custom_headers).value!
|
5260
|
+
response.body unless response.nil?
|
5261
|
+
end
|
5262
|
+
|
5263
|
+
#
|
5264
|
+
# Get usages for a multiRole pool of a hostingEnvironment (App Service
|
5265
|
+
# Environment).
|
5266
|
+
#
|
5267
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5268
|
+
# call to List operation.
|
5269
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5270
|
+
# will be added to the HTTP request.
|
5271
|
+
#
|
5272
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
5273
|
+
#
|
5274
|
+
def get_hosting_environment_multi_role_usages_next_with_http_info(next_page_link, custom_headers = nil)
|
5275
|
+
get_hosting_environment_multi_role_usages_next_async(next_page_link, custom_headers).value!
|
5276
|
+
end
|
5277
|
+
|
5278
|
+
#
|
5279
|
+
# Get usages for a multiRole pool of a hostingEnvironment (App Service
|
5280
|
+
# Environment).
|
5281
|
+
#
|
5282
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5283
|
+
# call to List operation.
|
5284
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5285
|
+
# to the HTTP request.
|
5286
|
+
#
|
5287
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5288
|
+
#
|
5289
|
+
def get_hosting_environment_multi_role_usages_next_async(next_page_link, custom_headers = nil)
|
5290
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5291
|
+
|
5292
|
+
|
5293
|
+
request_headers = {}
|
5294
|
+
|
5295
|
+
# Set Headers
|
5296
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5297
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5298
|
+
path_template = '{nextLink}'
|
5299
|
+
options = {
|
5300
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5301
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5302
|
+
headers: request_headers.merge(custom_headers || {})
|
5303
|
+
}
|
5304
|
+
|
5305
|
+
request_url = @base_url || @client.base_url
|
5306
|
+
|
5307
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5308
|
+
promise = request.run_promise do |req|
|
5309
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5310
|
+
end
|
5311
|
+
|
5312
|
+
promise = promise.then do |http_response|
|
5313
|
+
status_code = http_response.status
|
5314
|
+
response_content = http_response.body
|
5315
|
+
unless status_code == 200
|
5316
|
+
error_model = JSON.load(response_content)
|
5317
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5318
|
+
end
|
5319
|
+
|
5320
|
+
# Create Result
|
5321
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5322
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5323
|
+
# Deserialize Response
|
5324
|
+
if status_code == 200
|
5325
|
+
begin
|
5326
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5327
|
+
result_mapper = UsageCollection.mapper()
|
5328
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5329
|
+
rescue Exception => e
|
5330
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5331
|
+
end
|
5332
|
+
end
|
5333
|
+
|
5334
|
+
result
|
5335
|
+
end
|
5336
|
+
|
5337
|
+
promise.execute
|
5338
|
+
end
|
5339
|
+
|
5340
|
+
#
|
5341
|
+
# Get usages for a worker pool of a hostingEnvironment (App Service
|
5342
|
+
# Environment).
|
5343
|
+
#
|
5344
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5345
|
+
# call to List operation.
|
5346
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5347
|
+
# will be added to the HTTP request.
|
5348
|
+
#
|
5349
|
+
# @return [UsageCollection] operation results.
|
5350
|
+
#
|
5351
|
+
def get_hosting_environment_web_worker_usages_next(next_page_link, custom_headers = nil)
|
5352
|
+
response = get_hosting_environment_web_worker_usages_next_async(next_page_link, custom_headers).value!
|
5353
|
+
response.body unless response.nil?
|
5354
|
+
end
|
5355
|
+
|
5356
|
+
#
|
5357
|
+
# Get usages for a worker pool of a hostingEnvironment (App Service
|
5358
|
+
# Environment).
|
5359
|
+
#
|
5360
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5361
|
+
# call to List operation.
|
5362
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5363
|
+
# will be added to the HTTP request.
|
5364
|
+
#
|
5365
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
5366
|
+
#
|
5367
|
+
def get_hosting_environment_web_worker_usages_next_with_http_info(next_page_link, custom_headers = nil)
|
5368
|
+
get_hosting_environment_web_worker_usages_next_async(next_page_link, custom_headers).value!
|
5369
|
+
end
|
5370
|
+
|
5371
|
+
#
|
5372
|
+
# Get usages for a worker pool of a hostingEnvironment (App Service
|
5373
|
+
# Environment).
|
5374
|
+
#
|
5375
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5376
|
+
# call to List operation.
|
5377
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5378
|
+
# to the HTTP request.
|
5379
|
+
#
|
5380
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5381
|
+
#
|
5382
|
+
def get_hosting_environment_web_worker_usages_next_async(next_page_link, custom_headers = nil)
|
5383
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5384
|
+
|
5385
|
+
|
5386
|
+
request_headers = {}
|
5387
|
+
|
5388
|
+
# Set Headers
|
5389
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5390
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5391
|
+
path_template = '{nextLink}'
|
5392
|
+
options = {
|
5393
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5394
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5395
|
+
headers: request_headers.merge(custom_headers || {})
|
5396
|
+
}
|
5397
|
+
|
5398
|
+
request_url = @base_url || @client.base_url
|
5399
|
+
|
5400
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5401
|
+
promise = request.run_promise do |req|
|
5402
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5403
|
+
end
|
5404
|
+
|
5405
|
+
promise = promise.then do |http_response|
|
5406
|
+
status_code = http_response.status
|
5407
|
+
response_content = http_response.body
|
5408
|
+
unless status_code == 200
|
5409
|
+
error_model = JSON.load(response_content)
|
5410
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5411
|
+
end
|
5412
|
+
|
5413
|
+
# Create Result
|
5414
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5415
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5416
|
+
# Deserialize Response
|
5417
|
+
if status_code == 200
|
5418
|
+
begin
|
5419
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5420
|
+
result_mapper = UsageCollection.mapper()
|
5421
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5422
|
+
rescue Exception => e
|
5423
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5424
|
+
end
|
5425
|
+
end
|
5426
|
+
|
5427
|
+
result
|
5428
|
+
end
|
5429
|
+
|
5430
|
+
promise.execute
|
5431
|
+
end
|
5432
|
+
|
5433
|
+
#
|
5434
|
+
# Get all sites on the hostingEnvironment (App Service Environment).
|
5435
|
+
#
|
5436
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5437
|
+
# call to List operation.
|
5438
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5439
|
+
# will be added to the HTTP request.
|
5440
|
+
#
|
5441
|
+
# @return [SiteCollection] operation results.
|
5442
|
+
#
|
5443
|
+
def get_hosting_environment_sites_next(next_page_link, custom_headers = nil)
|
5444
|
+
response = get_hosting_environment_sites_next_async(next_page_link, custom_headers).value!
|
5445
|
+
response.body unless response.nil?
|
5446
|
+
end
|
5447
|
+
|
5448
|
+
#
|
5449
|
+
# Get all sites on the hostingEnvironment (App Service Environment).
|
5450
|
+
#
|
5451
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5452
|
+
# call to List operation.
|
5453
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5454
|
+
# will be added to the HTTP request.
|
5455
|
+
#
|
5456
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
5457
|
+
#
|
5458
|
+
def get_hosting_environment_sites_next_with_http_info(next_page_link, custom_headers = nil)
|
5459
|
+
get_hosting_environment_sites_next_async(next_page_link, custom_headers).value!
|
5460
|
+
end
|
5461
|
+
|
5462
|
+
#
|
5463
|
+
# Get all sites on the hostingEnvironment (App Service Environment).
|
5464
|
+
#
|
5465
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5466
|
+
# call to List operation.
|
5467
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5468
|
+
# to the HTTP request.
|
5469
|
+
#
|
5470
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5471
|
+
#
|
5472
|
+
def get_hosting_environment_sites_next_async(next_page_link, custom_headers = nil)
|
5473
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5474
|
+
|
5475
|
+
|
5476
|
+
request_headers = {}
|
5477
|
+
|
5478
|
+
# Set Headers
|
5479
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5480
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5481
|
+
path_template = '{nextLink}'
|
5482
|
+
options = {
|
5483
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5484
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5485
|
+
headers: request_headers.merge(custom_headers || {})
|
5486
|
+
}
|
5487
|
+
|
5488
|
+
request_url = @base_url || @client.base_url
|
5489
|
+
|
5490
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5491
|
+
promise = request.run_promise do |req|
|
5492
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5493
|
+
end
|
5494
|
+
|
5495
|
+
promise = promise.then do |http_response|
|
5496
|
+
status_code = http_response.status
|
5497
|
+
response_content = http_response.body
|
5498
|
+
unless status_code == 200
|
5499
|
+
error_model = JSON.load(response_content)
|
5500
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5501
|
+
end
|
5502
|
+
|
5503
|
+
# Create Result
|
5504
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5505
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5506
|
+
# Deserialize Response
|
5507
|
+
if status_code == 200
|
5508
|
+
begin
|
5509
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5510
|
+
result_mapper = SiteCollection.mapper()
|
5511
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5512
|
+
rescue Exception => e
|
5513
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5514
|
+
end
|
5515
|
+
end
|
5516
|
+
|
5517
|
+
result
|
5518
|
+
end
|
5519
|
+
|
5520
|
+
promise.execute
|
5521
|
+
end
|
5522
|
+
|
5523
|
+
#
|
5524
|
+
# Get all serverfarms (App Service Plans) on the hostingEnvironment (App
|
5525
|
+
# Service Environment).
|
5526
|
+
#
|
5527
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5528
|
+
# call to List operation.
|
5529
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5530
|
+
# will be added to the HTTP request.
|
5531
|
+
#
|
5532
|
+
# @return [ServerFarmCollection] operation results.
|
5533
|
+
#
|
5534
|
+
def get_hosting_environment_web_hosting_plans_next(next_page_link, custom_headers = nil)
|
5535
|
+
response = get_hosting_environment_web_hosting_plans_next_async(next_page_link, custom_headers).value!
|
5536
|
+
response.body unless response.nil?
|
5537
|
+
end
|
5538
|
+
|
5539
|
+
#
|
5540
|
+
# Get all serverfarms (App Service Plans) on the hostingEnvironment (App
|
5541
|
+
# Service Environment).
|
5542
|
+
#
|
5543
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5544
|
+
# call to List operation.
|
5545
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5546
|
+
# will be added to the HTTP request.
|
5547
|
+
#
|
5548
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
5549
|
+
#
|
5550
|
+
def get_hosting_environment_web_hosting_plans_next_with_http_info(next_page_link, custom_headers = nil)
|
5551
|
+
get_hosting_environment_web_hosting_plans_next_async(next_page_link, custom_headers).value!
|
5552
|
+
end
|
5553
|
+
|
5554
|
+
#
|
5555
|
+
# Get all serverfarms (App Service Plans) on the hostingEnvironment (App
|
5556
|
+
# Service Environment).
|
5557
|
+
#
|
5558
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5559
|
+
# call to List operation.
|
5560
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5561
|
+
# to the HTTP request.
|
5562
|
+
#
|
5563
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5564
|
+
#
|
5565
|
+
def get_hosting_environment_web_hosting_plans_next_async(next_page_link, custom_headers = nil)
|
5566
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5567
|
+
|
5568
|
+
|
5569
|
+
request_headers = {}
|
5570
|
+
|
5571
|
+
# Set Headers
|
5572
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5573
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5574
|
+
path_template = '{nextLink}'
|
5575
|
+
options = {
|
5576
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5577
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5578
|
+
headers: request_headers.merge(custom_headers || {})
|
5579
|
+
}
|
5580
|
+
|
5581
|
+
request_url = @base_url || @client.base_url
|
5582
|
+
|
5583
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5584
|
+
promise = request.run_promise do |req|
|
5585
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5586
|
+
end
|
5587
|
+
|
5588
|
+
promise = promise.then do |http_response|
|
5589
|
+
status_code = http_response.status
|
5590
|
+
response_content = http_response.body
|
5591
|
+
unless status_code == 200
|
5592
|
+
error_model = JSON.load(response_content)
|
5593
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5594
|
+
end
|
5595
|
+
|
5596
|
+
# Create Result
|
5597
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5598
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5599
|
+
# Deserialize Response
|
5600
|
+
if status_code == 200
|
5601
|
+
begin
|
5602
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5603
|
+
result_mapper = ServerFarmCollection.mapper()
|
5604
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5605
|
+
rescue Exception => e
|
5606
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5607
|
+
end
|
5608
|
+
end
|
5609
|
+
|
5610
|
+
result
|
5611
|
+
end
|
5612
|
+
|
5613
|
+
promise.execute
|
5614
|
+
end
|
5615
|
+
|
5616
|
+
#
|
5617
|
+
# Get all serverfarms (App Service Plans) on the hostingEnvironment (App
|
5618
|
+
# Service Environment).
|
5619
|
+
#
|
5620
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5621
|
+
# call to List operation.
|
5622
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5623
|
+
# will be added to the HTTP request.
|
5624
|
+
#
|
5625
|
+
# @return [ServerFarmCollection] operation results.
|
5626
|
+
#
|
5627
|
+
def get_hosting_environment_server_farms_next(next_page_link, custom_headers = nil)
|
5628
|
+
response = get_hosting_environment_server_farms_next_async(next_page_link, custom_headers).value!
|
5629
|
+
response.body unless response.nil?
|
5630
|
+
end
|
5631
|
+
|
5632
|
+
#
|
5633
|
+
# Get all serverfarms (App Service Plans) on the hostingEnvironment (App
|
5634
|
+
# Service Environment).
|
5635
|
+
#
|
5636
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5637
|
+
# call to List operation.
|
5638
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5639
|
+
# will be added to the HTTP request.
|
5640
|
+
#
|
5641
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
5642
|
+
#
|
5643
|
+
def get_hosting_environment_server_farms_next_with_http_info(next_page_link, custom_headers = nil)
|
5644
|
+
get_hosting_environment_server_farms_next_async(next_page_link, custom_headers).value!
|
5645
|
+
end
|
5646
|
+
|
5647
|
+
#
|
5648
|
+
# Get all serverfarms (App Service Plans) on the hostingEnvironment (App
|
5649
|
+
# Service Environment).
|
5650
|
+
#
|
5651
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5652
|
+
# call to List operation.
|
5653
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5654
|
+
# to the HTTP request.
|
5655
|
+
#
|
5656
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5657
|
+
#
|
5658
|
+
def get_hosting_environment_server_farms_next_async(next_page_link, custom_headers = nil)
|
5659
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5660
|
+
|
5661
|
+
|
5662
|
+
request_headers = {}
|
5663
|
+
|
5664
|
+
# Set Headers
|
5665
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5666
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5667
|
+
path_template = '{nextLink}'
|
5668
|
+
options = {
|
5669
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5670
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5671
|
+
headers: request_headers.merge(custom_headers || {})
|
5672
|
+
}
|
5673
|
+
|
5674
|
+
request_url = @base_url || @client.base_url
|
5675
|
+
|
5676
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5677
|
+
promise = request.run_promise do |req|
|
5678
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5679
|
+
end
|
5680
|
+
|
5681
|
+
promise = promise.then do |http_response|
|
5682
|
+
status_code = http_response.status
|
5683
|
+
response_content = http_response.body
|
5684
|
+
unless status_code == 200
|
5685
|
+
error_model = JSON.load(response_content)
|
5686
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5687
|
+
end
|
5688
|
+
|
5689
|
+
# Create Result
|
5690
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5691
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5692
|
+
# Deserialize Response
|
5693
|
+
if status_code == 200
|
5694
|
+
begin
|
5695
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5696
|
+
result_mapper = ServerFarmCollection.mapper()
|
5697
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5698
|
+
rescue Exception => e
|
5699
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5700
|
+
end
|
5701
|
+
end
|
5702
|
+
|
5703
|
+
result
|
5704
|
+
end
|
5705
|
+
|
5706
|
+
promise.execute
|
5707
|
+
end
|
5708
|
+
|
5709
|
+
#
|
5710
|
+
# Get all multi role pools
|
5711
|
+
#
|
5712
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5713
|
+
# call to List operation.
|
5714
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5715
|
+
# will be added to the HTTP request.
|
5716
|
+
#
|
5717
|
+
# @return [WorkerPoolCollection] operation results.
|
5718
|
+
#
|
5719
|
+
def get_multi_role_pools_next(next_page_link, custom_headers = nil)
|
5720
|
+
response = get_multi_role_pools_next_async(next_page_link, custom_headers).value!
|
5721
|
+
response.body unless response.nil?
|
5722
|
+
end
|
5723
|
+
|
5724
|
+
#
|
5725
|
+
# Get all multi role pools
|
5726
|
+
#
|
5727
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5728
|
+
# call to List operation.
|
5729
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5730
|
+
# will be added to the HTTP request.
|
5731
|
+
#
|
5732
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
5733
|
+
#
|
5734
|
+
def get_multi_role_pools_next_with_http_info(next_page_link, custom_headers = nil)
|
5735
|
+
get_multi_role_pools_next_async(next_page_link, custom_headers).value!
|
5736
|
+
end
|
5737
|
+
|
5738
|
+
#
|
5739
|
+
# Get all multi role pools
|
5740
|
+
#
|
5741
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5742
|
+
# call to List operation.
|
5743
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5744
|
+
# to the HTTP request.
|
5745
|
+
#
|
5746
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5747
|
+
#
|
5748
|
+
def get_multi_role_pools_next_async(next_page_link, custom_headers = nil)
|
5749
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5750
|
+
|
5751
|
+
|
5752
|
+
request_headers = {}
|
5753
|
+
|
5754
|
+
# Set Headers
|
5755
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5756
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5757
|
+
path_template = '{nextLink}'
|
5758
|
+
options = {
|
5759
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5760
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5761
|
+
headers: request_headers.merge(custom_headers || {})
|
5762
|
+
}
|
5763
|
+
|
5764
|
+
request_url = @base_url || @client.base_url
|
5765
|
+
|
5766
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5767
|
+
promise = request.run_promise do |req|
|
5768
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5769
|
+
end
|
5770
|
+
|
5771
|
+
promise = promise.then do |http_response|
|
5772
|
+
status_code = http_response.status
|
5773
|
+
response_content = http_response.body
|
5774
|
+
unless status_code == 200
|
5775
|
+
error_model = JSON.load(response_content)
|
5776
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5777
|
+
end
|
5778
|
+
|
5779
|
+
# Create Result
|
5780
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5781
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5782
|
+
# Deserialize Response
|
5783
|
+
if status_code == 200
|
5784
|
+
begin
|
5785
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5786
|
+
result_mapper = WorkerPoolCollection.mapper()
|
5787
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5788
|
+
rescue Exception => e
|
5789
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5790
|
+
end
|
5791
|
+
end
|
5792
|
+
|
5793
|
+
result
|
5794
|
+
end
|
5795
|
+
|
5796
|
+
promise.execute
|
5797
|
+
end
|
5798
|
+
|
5799
|
+
#
|
5800
|
+
# Get available skus for scaling a multiRole pool.
|
5801
|
+
#
|
5802
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5803
|
+
# call to List operation.
|
5804
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5805
|
+
# will be added to the HTTP request.
|
5806
|
+
#
|
5807
|
+
# @return [SkuInfoCollection] operation results.
|
5808
|
+
#
|
5809
|
+
def get_multi_role_pool_skus_next(next_page_link, custom_headers = nil)
|
5810
|
+
response = get_multi_role_pool_skus_next_async(next_page_link, custom_headers).value!
|
5811
|
+
response.body unless response.nil?
|
5812
|
+
end
|
5813
|
+
|
5814
|
+
#
|
5815
|
+
# Get available skus for scaling a multiRole pool.
|
5816
|
+
#
|
5817
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5818
|
+
# call to List operation.
|
5819
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5820
|
+
# will be added to the HTTP request.
|
5821
|
+
#
|
5822
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
5823
|
+
#
|
5824
|
+
def get_multi_role_pool_skus_next_with_http_info(next_page_link, custom_headers = nil)
|
5825
|
+
get_multi_role_pool_skus_next_async(next_page_link, custom_headers).value!
|
5826
|
+
end
|
5827
|
+
|
5828
|
+
#
|
5829
|
+
# Get available skus for scaling a multiRole pool.
|
5830
|
+
#
|
5831
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5832
|
+
# call to List operation.
|
5833
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5834
|
+
# to the HTTP request.
|
5835
|
+
#
|
5836
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5837
|
+
#
|
5838
|
+
def get_multi_role_pool_skus_next_async(next_page_link, custom_headers = nil)
|
5839
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5840
|
+
|
5841
|
+
|
5842
|
+
request_headers = {}
|
5843
|
+
|
5844
|
+
# Set Headers
|
5845
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5846
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5847
|
+
path_template = '{nextLink}'
|
5848
|
+
options = {
|
5849
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5850
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5851
|
+
headers: request_headers.merge(custom_headers || {})
|
5852
|
+
}
|
5853
|
+
|
5854
|
+
request_url = @base_url || @client.base_url
|
5855
|
+
|
5856
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5857
|
+
promise = request.run_promise do |req|
|
5858
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5859
|
+
end
|
5860
|
+
|
5861
|
+
promise = promise.then do |http_response|
|
5862
|
+
status_code = http_response.status
|
5863
|
+
response_content = http_response.body
|
5864
|
+
unless status_code == 200
|
5865
|
+
error_model = JSON.load(response_content)
|
5866
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5867
|
+
end
|
5868
|
+
|
5869
|
+
# Create Result
|
5870
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5871
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5872
|
+
# Deserialize Response
|
5873
|
+
if status_code == 200
|
5874
|
+
begin
|
5875
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5876
|
+
result_mapper = SkuInfoCollection.mapper()
|
5877
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5878
|
+
rescue Exception => e
|
5879
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5880
|
+
end
|
5881
|
+
end
|
5882
|
+
|
5883
|
+
result
|
5884
|
+
end
|
5885
|
+
|
5886
|
+
promise.execute
|
5887
|
+
end
|
5888
|
+
|
5889
|
+
#
|
5890
|
+
# Get all worker pools
|
5891
|
+
#
|
5892
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5893
|
+
# call to List operation.
|
5894
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5895
|
+
# will be added to the HTTP request.
|
5896
|
+
#
|
5897
|
+
# @return [WorkerPoolCollection] operation results.
|
5898
|
+
#
|
5899
|
+
def get_worker_pools_next(next_page_link, custom_headers = nil)
|
5900
|
+
response = get_worker_pools_next_async(next_page_link, custom_headers).value!
|
5901
|
+
response.body unless response.nil?
|
5902
|
+
end
|
5903
|
+
|
5904
|
+
#
|
5905
|
+
# Get all worker pools
|
5906
|
+
#
|
5907
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5908
|
+
# call to List operation.
|
5909
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5910
|
+
# will be added to the HTTP request.
|
5911
|
+
#
|
5912
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
5913
|
+
#
|
5914
|
+
def get_worker_pools_next_with_http_info(next_page_link, custom_headers = nil)
|
5915
|
+
get_worker_pools_next_async(next_page_link, custom_headers).value!
|
5916
|
+
end
|
5917
|
+
|
5918
|
+
#
|
5919
|
+
# Get all worker pools
|
5920
|
+
#
|
5921
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5922
|
+
# call to List operation.
|
5923
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
5924
|
+
# to the HTTP request.
|
5925
|
+
#
|
5926
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
5927
|
+
#
|
5928
|
+
def get_worker_pools_next_async(next_page_link, custom_headers = nil)
|
5929
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
5930
|
+
|
5931
|
+
|
5932
|
+
request_headers = {}
|
5933
|
+
|
5934
|
+
# Set Headers
|
5935
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
5936
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
5937
|
+
path_template = '{nextLink}'
|
5938
|
+
options = {
|
5939
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
5940
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
5941
|
+
headers: request_headers.merge(custom_headers || {})
|
5942
|
+
}
|
5943
|
+
|
5944
|
+
request_url = @base_url || @client.base_url
|
5945
|
+
|
5946
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
5947
|
+
promise = request.run_promise do |req|
|
5948
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
5949
|
+
end
|
5950
|
+
|
5951
|
+
promise = promise.then do |http_response|
|
5952
|
+
status_code = http_response.status
|
5953
|
+
response_content = http_response.body
|
5954
|
+
unless status_code == 200
|
5955
|
+
error_model = JSON.load(response_content)
|
5956
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
5957
|
+
end
|
5958
|
+
|
5959
|
+
# Create Result
|
5960
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
5961
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
5962
|
+
# Deserialize Response
|
5963
|
+
if status_code == 200
|
5964
|
+
begin
|
5965
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
5966
|
+
result_mapper = WorkerPoolCollection.mapper()
|
5967
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
5968
|
+
rescue Exception => e
|
5969
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
5970
|
+
end
|
5971
|
+
end
|
5972
|
+
|
5973
|
+
result
|
5974
|
+
end
|
5975
|
+
|
5976
|
+
promise.execute
|
5977
|
+
end
|
5978
|
+
|
5979
|
+
#
|
5980
|
+
# Get available skus for scaling a worker pool.
|
5981
|
+
#
|
5982
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5983
|
+
# call to List operation.
|
5984
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
5985
|
+
# will be added to the HTTP request.
|
5986
|
+
#
|
5987
|
+
# @return [SkuInfoCollection] operation results.
|
5988
|
+
#
|
5989
|
+
def get_worker_pool_skus_next(next_page_link, custom_headers = nil)
|
5990
|
+
response = get_worker_pool_skus_next_async(next_page_link, custom_headers).value!
|
5991
|
+
response.body unless response.nil?
|
5992
|
+
end
|
5993
|
+
|
5994
|
+
#
|
5995
|
+
# Get available skus for scaling a worker pool.
|
5996
|
+
#
|
5997
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
5998
|
+
# call to List operation.
|
5999
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
6000
|
+
# will be added to the HTTP request.
|
6001
|
+
#
|
6002
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
6003
|
+
#
|
6004
|
+
def get_worker_pool_skus_next_with_http_info(next_page_link, custom_headers = nil)
|
6005
|
+
get_worker_pool_skus_next_async(next_page_link, custom_headers).value!
|
6006
|
+
end
|
6007
|
+
|
6008
|
+
#
|
6009
|
+
# Get available skus for scaling a worker pool.
|
6010
|
+
#
|
6011
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6012
|
+
# call to List operation.
|
6013
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
6014
|
+
# to the HTTP request.
|
6015
|
+
#
|
6016
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
6017
|
+
#
|
6018
|
+
def get_worker_pool_skus_next_async(next_page_link, custom_headers = nil)
|
6019
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
6020
|
+
|
6021
|
+
|
6022
|
+
request_headers = {}
|
6023
|
+
|
6024
|
+
# Set Headers
|
6025
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
6026
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
6027
|
+
path_template = '{nextLink}'
|
6028
|
+
options = {
|
6029
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
6030
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
6031
|
+
headers: request_headers.merge(custom_headers || {})
|
6032
|
+
}
|
6033
|
+
|
6034
|
+
request_url = @base_url || @client.base_url
|
6035
|
+
|
6036
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
6037
|
+
promise = request.run_promise do |req|
|
6038
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
6039
|
+
end
|
6040
|
+
|
6041
|
+
promise = promise.then do |http_response|
|
6042
|
+
status_code = http_response.status
|
6043
|
+
response_content = http_response.body
|
6044
|
+
unless status_code == 200
|
6045
|
+
error_model = JSON.load(response_content)
|
6046
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
6047
|
+
end
|
6048
|
+
|
6049
|
+
# Create Result
|
6050
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
6051
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
6052
|
+
# Deserialize Response
|
6053
|
+
if status_code == 200
|
6054
|
+
begin
|
6055
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
6056
|
+
result_mapper = SkuInfoCollection.mapper()
|
6057
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
6058
|
+
rescue Exception => e
|
6059
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
6060
|
+
end
|
6061
|
+
end
|
6062
|
+
|
6063
|
+
result
|
6064
|
+
end
|
6065
|
+
|
6066
|
+
promise.execute
|
6067
|
+
end
|
6068
|
+
|
6069
|
+
#
|
6070
|
+
# Suspends the hostingEnvironment.
|
6071
|
+
#
|
6072
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6073
|
+
# call to List operation.
|
6074
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
6075
|
+
# will be added to the HTTP request.
|
6076
|
+
#
|
6077
|
+
# @return [SiteCollection] operation results.
|
6078
|
+
#
|
6079
|
+
def suspend_hosting_environment_next(next_page_link, custom_headers = nil)
|
6080
|
+
response = suspend_hosting_environment_next_async(next_page_link, custom_headers).value!
|
6081
|
+
response.body unless response.nil?
|
6082
|
+
end
|
6083
|
+
|
6084
|
+
#
|
6085
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6086
|
+
# call to List operation.
|
6087
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
6088
|
+
# will be added to the HTTP request.
|
6089
|
+
#
|
6090
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
6091
|
+
# response.
|
6092
|
+
#
|
6093
|
+
def suspend_hosting_environment_next_async(next_page_link, custom_headers = nil)
|
6094
|
+
# Send request
|
6095
|
+
promise = begin_suspend_hosting_environment_next_async(next_page_link, custom_headers)
|
6096
|
+
|
6097
|
+
promise = promise.then do |response|
|
6098
|
+
# Defining deserialization method.
|
6099
|
+
deserialize_method = lambda do |parsed_response|
|
6100
|
+
result_mapper = SiteCollection.mapper()
|
6101
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
6102
|
+
end
|
6103
|
+
|
6104
|
+
# Waiting for response.
|
6105
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
6106
|
+
end
|
6107
|
+
|
6108
|
+
promise
|
6109
|
+
end
|
6110
|
+
|
6111
|
+
#
|
6112
|
+
# Suspends the hostingEnvironment.
|
6113
|
+
#
|
6114
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6115
|
+
# call to List operation.
|
6116
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
6117
|
+
# will be added to the HTTP request.
|
6118
|
+
#
|
6119
|
+
# @return [SiteCollection] operation results.
|
6120
|
+
#
|
6121
|
+
def begin_suspend_hosting_environment_next(next_page_link, custom_headers = nil)
|
6122
|
+
response = begin_suspend_hosting_environment_next_async(next_page_link, custom_headers).value!
|
6123
|
+
response.body unless response.nil?
|
6124
|
+
end
|
6125
|
+
|
6126
|
+
#
|
6127
|
+
# Suspends the hostingEnvironment.
|
6128
|
+
#
|
6129
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6130
|
+
# call to List operation.
|
6131
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
6132
|
+
# will be added to the HTTP request.
|
6133
|
+
#
|
6134
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
6135
|
+
#
|
6136
|
+
def begin_suspend_hosting_environment_next_with_http_info(next_page_link, custom_headers = nil)
|
6137
|
+
begin_suspend_hosting_environment_next_async(next_page_link, custom_headers).value!
|
6138
|
+
end
|
6139
|
+
|
6140
|
+
#
|
6141
|
+
# Suspends the hostingEnvironment.
|
6142
|
+
#
|
6143
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6144
|
+
# call to List operation.
|
6145
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
6146
|
+
# to the HTTP request.
|
6147
|
+
#
|
6148
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
6149
|
+
#
|
6150
|
+
def begin_suspend_hosting_environment_next_async(next_page_link, custom_headers = nil)
|
6151
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
6152
|
+
|
6153
|
+
|
6154
|
+
request_headers = {}
|
6155
|
+
|
6156
|
+
# Set Headers
|
6157
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
6158
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
6159
|
+
path_template = '{nextLink}'
|
6160
|
+
options = {
|
6161
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
6162
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
6163
|
+
headers: request_headers.merge(custom_headers || {})
|
6164
|
+
}
|
6165
|
+
|
6166
|
+
request_url = @base_url || @client.base_url
|
6167
|
+
|
6168
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
6169
|
+
promise = request.run_promise do |req|
|
6170
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
6171
|
+
end
|
6172
|
+
|
6173
|
+
promise = promise.then do |http_response|
|
6174
|
+
status_code = http_response.status
|
6175
|
+
response_content = http_response.body
|
6176
|
+
unless status_code == 200 || status_code == 202
|
6177
|
+
error_model = JSON.load(response_content)
|
6178
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
6179
|
+
end
|
6180
|
+
|
6181
|
+
# Create Result
|
6182
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
6183
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
6184
|
+
# Deserialize Response
|
6185
|
+
if status_code == 200
|
6186
|
+
begin
|
6187
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
6188
|
+
result_mapper = SiteCollection.mapper()
|
6189
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
6190
|
+
rescue Exception => e
|
6191
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
6192
|
+
end
|
6193
|
+
end
|
6194
|
+
# Deserialize Response
|
6195
|
+
if status_code == 202
|
6196
|
+
begin
|
6197
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
6198
|
+
result_mapper = SiteCollection.mapper()
|
6199
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
6200
|
+
rescue Exception => e
|
6201
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
6202
|
+
end
|
6203
|
+
end
|
6204
|
+
|
6205
|
+
result
|
6206
|
+
end
|
6207
|
+
|
6208
|
+
promise.execute
|
6209
|
+
end
|
6210
|
+
|
6211
|
+
#
|
6212
|
+
# Resumes the hostingEnvironment.
|
6213
|
+
#
|
6214
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6215
|
+
# call to List operation.
|
6216
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
6217
|
+
# will be added to the HTTP request.
|
6218
|
+
#
|
6219
|
+
# @return [SiteCollection] operation results.
|
6220
|
+
#
|
6221
|
+
def resume_hosting_environment_next(next_page_link, custom_headers = nil)
|
6222
|
+
response = resume_hosting_environment_next_async(next_page_link, custom_headers).value!
|
6223
|
+
response.body unless response.nil?
|
6224
|
+
end
|
6225
|
+
|
6226
|
+
#
|
6227
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6228
|
+
# call to List operation.
|
6229
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
6230
|
+
# will be added to the HTTP request.
|
6231
|
+
#
|
6232
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
6233
|
+
# response.
|
6234
|
+
#
|
6235
|
+
def resume_hosting_environment_next_async(next_page_link, custom_headers = nil)
|
6236
|
+
# Send request
|
6237
|
+
promise = begin_resume_hosting_environment_next_async(next_page_link, custom_headers)
|
6238
|
+
|
6239
|
+
promise = promise.then do |response|
|
6240
|
+
# Defining deserialization method.
|
6241
|
+
deserialize_method = lambda do |parsed_response|
|
6242
|
+
result_mapper = SiteCollection.mapper()
|
6243
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
6244
|
+
end
|
6245
|
+
|
6246
|
+
# Waiting for response.
|
6247
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
6248
|
+
end
|
6249
|
+
|
6250
|
+
promise
|
6251
|
+
end
|
6252
|
+
|
6253
|
+
#
|
6254
|
+
# Resumes the hostingEnvironment.
|
6255
|
+
#
|
6256
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6257
|
+
# call to List operation.
|
6258
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
6259
|
+
# will be added to the HTTP request.
|
6260
|
+
#
|
6261
|
+
# @return [SiteCollection] operation results.
|
6262
|
+
#
|
6263
|
+
def begin_resume_hosting_environment_next(next_page_link, custom_headers = nil)
|
6264
|
+
response = begin_resume_hosting_environment_next_async(next_page_link, custom_headers).value!
|
6265
|
+
response.body unless response.nil?
|
6266
|
+
end
|
6267
|
+
|
6268
|
+
#
|
6269
|
+
# Resumes the hostingEnvironment.
|
6270
|
+
#
|
6271
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6272
|
+
# call to List operation.
|
6273
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
6274
|
+
# will be added to the HTTP request.
|
6275
|
+
#
|
6276
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
6277
|
+
#
|
6278
|
+
def begin_resume_hosting_environment_next_with_http_info(next_page_link, custom_headers = nil)
|
6279
|
+
begin_resume_hosting_environment_next_async(next_page_link, custom_headers).value!
|
6280
|
+
end
|
6281
|
+
|
6282
|
+
#
|
6283
|
+
# Resumes the hostingEnvironment.
|
6284
|
+
#
|
6285
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
6286
|
+
# call to List operation.
|
6287
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
6288
|
+
# to the HTTP request.
|
6289
|
+
#
|
6290
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
6291
|
+
#
|
6292
|
+
def begin_resume_hosting_environment_next_async(next_page_link, custom_headers = nil)
|
6293
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
6294
|
+
|
6295
|
+
|
6296
|
+
request_headers = {}
|
6297
|
+
|
6298
|
+
# Set Headers
|
6299
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
6300
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
6301
|
+
path_template = '{nextLink}'
|
6302
|
+
options = {
|
6303
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
6304
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
6305
|
+
headers: request_headers.merge(custom_headers || {})
|
6306
|
+
}
|
6307
|
+
|
6308
|
+
request_url = @base_url || @client.base_url
|
6309
|
+
|
6310
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
6311
|
+
promise = request.run_promise do |req|
|
6312
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
6313
|
+
end
|
6314
|
+
|
6315
|
+
promise = promise.then do |http_response|
|
6316
|
+
status_code = http_response.status
|
6317
|
+
response_content = http_response.body
|
6318
|
+
unless status_code == 200 || status_code == 202
|
6319
|
+
error_model = JSON.load(response_content)
|
6320
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
6321
|
+
end
|
6322
|
+
|
6323
|
+
# Create Result
|
6324
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
6325
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
6326
|
+
# Deserialize Response
|
6327
|
+
if status_code == 200
|
6328
|
+
begin
|
6329
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
6330
|
+
result_mapper = SiteCollection.mapper()
|
6331
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
6332
|
+
rescue Exception => e
|
6333
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
6334
|
+
end
|
6335
|
+
end
|
6336
|
+
# Deserialize Response
|
6337
|
+
if status_code == 202
|
6338
|
+
begin
|
6339
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
6340
|
+
result_mapper = SiteCollection.mapper()
|
6341
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
6342
|
+
rescue Exception => e
|
6343
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
6344
|
+
end
|
6345
|
+
end
|
6346
|
+
|
6347
|
+
result
|
6348
|
+
end
|
6349
|
+
|
6350
|
+
promise.execute
|
6351
|
+
end
|
6352
|
+
|
4019
6353
|
end
|
4020
6354
|
end
|