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
|
#
|
@@ -37,11 +37,33 @@ module Azure::ARM::Web
|
|
37
37
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
38
38
|
# will be added to the HTTP request.
|
39
39
|
#
|
40
|
-
# @return [ServerFarmCollection]
|
40
|
+
# @return [ServerFarmCollection] which provide lazy access to pages of the
|
41
|
+
# response.
|
41
42
|
#
|
42
|
-
def
|
43
|
+
def get_server_farms_as_lazy(resource_group_name, custom_headers = nil)
|
43
44
|
response = get_server_farms_async(resource_group_name, custom_headers).value!
|
44
|
-
|
45
|
+
unless response.nil?
|
46
|
+
page = response.body
|
47
|
+
page.next_method = Proc.new do |next_link|
|
48
|
+
get_server_farms_next_async(next_link, custom_headers)
|
49
|
+
end
|
50
|
+
page
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Gets collection of App Service Plans in a resource group for a given
|
56
|
+
# subscription.
|
57
|
+
#
|
58
|
+
# @param resource_group_name [String] Name of resource group
|
59
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
60
|
+
# will be added to the HTTP request.
|
61
|
+
#
|
62
|
+
# @return [Array<ServerFarmWithRichSku>] operation results.
|
63
|
+
#
|
64
|
+
def get_server_farms(resource_group_name, custom_headers = nil)
|
65
|
+
first_page = get_server_farms_as_lazy(resource_group_name, custom_headers)
|
66
|
+
first_page.get_all_items
|
45
67
|
end
|
46
68
|
|
47
69
|
#
|
@@ -491,11 +513,40 @@ module Azure::ARM::Web
|
|
491
513
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
492
514
|
# will be added to the HTTP request.
|
493
515
|
#
|
494
|
-
# @return [ResourceMetricCollection]
|
516
|
+
# @return [ResourceMetricCollection] which provide lazy access to pages of the
|
517
|
+
# response.
|
495
518
|
#
|
496
|
-
def
|
519
|
+
def get_server_farm_metrics_as_lazy(resource_group_name, name, details = nil, filter = nil, custom_headers = nil)
|
497
520
|
response = get_server_farm_metrics_async(resource_group_name, name, details, filter, custom_headers).value!
|
498
|
-
|
521
|
+
unless response.nil?
|
522
|
+
page = response.body
|
523
|
+
page.next_method = Proc.new do |next_link|
|
524
|
+
get_server_farm_metrics_next_async(next_link, custom_headers)
|
525
|
+
end
|
526
|
+
page
|
527
|
+
end
|
528
|
+
end
|
529
|
+
|
530
|
+
#
|
531
|
+
# Queries for App Serice Plan metrics
|
532
|
+
#
|
533
|
+
# @param resource_group_name [String] Name of resource group
|
534
|
+
# @param name [String] Name of App Service Plan
|
535
|
+
# @param details [Boolean] If true, metrics are broken down per App Service
|
536
|
+
# Plan instance
|
537
|
+
# @param filter [String] Return only usages/metrics specified in the filter.
|
538
|
+
# Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1'
|
539
|
+
# or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
|
540
|
+
# endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
|
541
|
+
# duration'[Hour|Minute|Day]'.
|
542
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
543
|
+
# will be added to the HTTP request.
|
544
|
+
#
|
545
|
+
# @return [Array<ResourceMetric>] operation results.
|
546
|
+
#
|
547
|
+
def get_server_farm_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil)
|
548
|
+
first_page = get_server_farm_metrics_as_lazy(resource_group_name, name, details, filter, custom_headers)
|
549
|
+
first_page.get_all_items
|
499
550
|
end
|
500
551
|
|
501
552
|
#
|
@@ -599,11 +650,33 @@ module Azure::ARM::Web
|
|
599
650
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
600
651
|
# will be added to the HTTP request.
|
601
652
|
#
|
602
|
-
# @return [MetricDefinitionCollection]
|
653
|
+
# @return [MetricDefinitionCollection] which provide lazy access to pages of
|
654
|
+
# the response.
|
603
655
|
#
|
604
|
-
def
|
656
|
+
def get_server_farm_metric_defintions_as_lazy(resource_group_name, name, custom_headers = nil)
|
605
657
|
response = get_server_farm_metric_defintions_async(resource_group_name, name, custom_headers).value!
|
606
|
-
|
658
|
+
unless response.nil?
|
659
|
+
page = response.body
|
660
|
+
page.next_method = Proc.new do |next_link|
|
661
|
+
get_server_farm_metric_defintions_next_async(next_link, custom_headers)
|
662
|
+
end
|
663
|
+
page
|
664
|
+
end
|
665
|
+
end
|
666
|
+
|
667
|
+
#
|
668
|
+
# List of metrics that can be queried for an App Service Plan
|
669
|
+
#
|
670
|
+
# @param resource_group_name [String] Name of resource group
|
671
|
+
# @param name [String] Name of App Service Plan
|
672
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
673
|
+
# will be added to the HTTP request.
|
674
|
+
#
|
675
|
+
# @return [Array<MetricDefinition>] operation results.
|
676
|
+
#
|
677
|
+
def get_server_farm_metric_defintions(resource_group_name, name, custom_headers = nil)
|
678
|
+
first_page = get_server_farm_metric_defintions_as_lazy(resource_group_name, name, custom_headers)
|
679
|
+
first_page.get_all_items
|
607
680
|
end
|
608
681
|
|
609
682
|
#
|
@@ -2092,6 +2165,279 @@ module Azure::ARM::Web
|
|
2092
2165
|
promise.execute
|
2093
2166
|
end
|
2094
2167
|
|
2168
|
+
#
|
2169
|
+
# Gets collection of App Service Plans in a resource group for a given
|
2170
|
+
# subscription.
|
2171
|
+
#
|
2172
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2173
|
+
# call to List operation.
|
2174
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2175
|
+
# will be added to the HTTP request.
|
2176
|
+
#
|
2177
|
+
# @return [ServerFarmCollection] operation results.
|
2178
|
+
#
|
2179
|
+
def get_server_farms_next(next_page_link, custom_headers = nil)
|
2180
|
+
response = get_server_farms_next_async(next_page_link, custom_headers).value!
|
2181
|
+
response.body unless response.nil?
|
2182
|
+
end
|
2183
|
+
|
2184
|
+
#
|
2185
|
+
# Gets collection of App Service Plans in a resource group for a given
|
2186
|
+
# subscription.
|
2187
|
+
#
|
2188
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2189
|
+
# call to List operation.
|
2190
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2191
|
+
# will be added to the HTTP request.
|
2192
|
+
#
|
2193
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2194
|
+
#
|
2195
|
+
def get_server_farms_next_with_http_info(next_page_link, custom_headers = nil)
|
2196
|
+
get_server_farms_next_async(next_page_link, custom_headers).value!
|
2197
|
+
end
|
2198
|
+
|
2199
|
+
#
|
2200
|
+
# Gets collection of App Service Plans in a resource group for a given
|
2201
|
+
# subscription.
|
2202
|
+
#
|
2203
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2204
|
+
# call to List operation.
|
2205
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2206
|
+
# to the HTTP request.
|
2207
|
+
#
|
2208
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2209
|
+
#
|
2210
|
+
def get_server_farms_next_async(next_page_link, custom_headers = nil)
|
2211
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2212
|
+
|
2213
|
+
|
2214
|
+
request_headers = {}
|
2215
|
+
|
2216
|
+
# Set Headers
|
2217
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2218
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2219
|
+
path_template = '{nextLink}'
|
2220
|
+
options = {
|
2221
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2222
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
2223
|
+
headers: request_headers.merge(custom_headers || {})
|
2224
|
+
}
|
2225
|
+
|
2226
|
+
request_url = @base_url || @client.base_url
|
2227
|
+
|
2228
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
2229
|
+
promise = request.run_promise do |req|
|
2230
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
2231
|
+
end
|
2232
|
+
|
2233
|
+
promise = promise.then do |http_response|
|
2234
|
+
status_code = http_response.status
|
2235
|
+
response_content = http_response.body
|
2236
|
+
unless status_code == 200
|
2237
|
+
error_model = JSON.load(response_content)
|
2238
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
2239
|
+
end
|
2240
|
+
|
2241
|
+
# Create Result
|
2242
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
2243
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2244
|
+
# Deserialize Response
|
2245
|
+
if status_code == 200
|
2246
|
+
begin
|
2247
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2248
|
+
result_mapper = ServerFarmCollection.mapper()
|
2249
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2250
|
+
rescue Exception => e
|
2251
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2252
|
+
end
|
2253
|
+
end
|
2254
|
+
|
2255
|
+
result
|
2256
|
+
end
|
2257
|
+
|
2258
|
+
promise.execute
|
2259
|
+
end
|
2260
|
+
|
2261
|
+
#
|
2262
|
+
# Queries for App Serice Plan metrics
|
2263
|
+
#
|
2264
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2265
|
+
# call to List operation.
|
2266
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2267
|
+
# will be added to the HTTP request.
|
2268
|
+
#
|
2269
|
+
# @return [ResourceMetricCollection] operation results.
|
2270
|
+
#
|
2271
|
+
def get_server_farm_metrics_next(next_page_link, custom_headers = nil)
|
2272
|
+
response = get_server_farm_metrics_next_async(next_page_link, custom_headers).value!
|
2273
|
+
response.body unless response.nil?
|
2274
|
+
end
|
2275
|
+
|
2276
|
+
#
|
2277
|
+
# Queries for App Serice Plan metrics
|
2278
|
+
#
|
2279
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2280
|
+
# call to List operation.
|
2281
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2282
|
+
# will be added to the HTTP request.
|
2283
|
+
#
|
2284
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2285
|
+
#
|
2286
|
+
def get_server_farm_metrics_next_with_http_info(next_page_link, custom_headers = nil)
|
2287
|
+
get_server_farm_metrics_next_async(next_page_link, custom_headers).value!
|
2288
|
+
end
|
2289
|
+
|
2290
|
+
#
|
2291
|
+
# Queries for App Serice Plan metrics
|
2292
|
+
#
|
2293
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2294
|
+
# call to List operation.
|
2295
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2296
|
+
# to the HTTP request.
|
2297
|
+
#
|
2298
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2299
|
+
#
|
2300
|
+
def get_server_farm_metrics_next_async(next_page_link, custom_headers = nil)
|
2301
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2302
|
+
|
2303
|
+
|
2304
|
+
request_headers = {}
|
2305
|
+
|
2306
|
+
# Set Headers
|
2307
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2308
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2309
|
+
path_template = '{nextLink}'
|
2310
|
+
options = {
|
2311
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2312
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
2313
|
+
headers: request_headers.merge(custom_headers || {})
|
2314
|
+
}
|
2315
|
+
|
2316
|
+
request_url = @base_url || @client.base_url
|
2317
|
+
|
2318
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
2319
|
+
promise = request.run_promise do |req|
|
2320
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
2321
|
+
end
|
2322
|
+
|
2323
|
+
promise = promise.then do |http_response|
|
2324
|
+
status_code = http_response.status
|
2325
|
+
response_content = http_response.body
|
2326
|
+
unless status_code == 200
|
2327
|
+
error_model = JSON.load(response_content)
|
2328
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
2329
|
+
end
|
2330
|
+
|
2331
|
+
# Create Result
|
2332
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
2333
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2334
|
+
# Deserialize Response
|
2335
|
+
if status_code == 200
|
2336
|
+
begin
|
2337
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2338
|
+
result_mapper = ResourceMetricCollection.mapper()
|
2339
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2340
|
+
rescue Exception => e
|
2341
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2342
|
+
end
|
2343
|
+
end
|
2344
|
+
|
2345
|
+
result
|
2346
|
+
end
|
2347
|
+
|
2348
|
+
promise.execute
|
2349
|
+
end
|
2350
|
+
|
2351
|
+
#
|
2352
|
+
# List of metrics that can be queried for an App Service Plan
|
2353
|
+
#
|
2354
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2355
|
+
# call to List operation.
|
2356
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2357
|
+
# will be added to the HTTP request.
|
2358
|
+
#
|
2359
|
+
# @return [MetricDefinitionCollection] operation results.
|
2360
|
+
#
|
2361
|
+
def get_server_farm_metric_defintions_next(next_page_link, custom_headers = nil)
|
2362
|
+
response = get_server_farm_metric_defintions_next_async(next_page_link, custom_headers).value!
|
2363
|
+
response.body unless response.nil?
|
2364
|
+
end
|
2365
|
+
|
2366
|
+
#
|
2367
|
+
# List of metrics that can be queried for an App Service Plan
|
2368
|
+
#
|
2369
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2370
|
+
# call to List operation.
|
2371
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2372
|
+
# will be added to the HTTP request.
|
2373
|
+
#
|
2374
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2375
|
+
#
|
2376
|
+
def get_server_farm_metric_defintions_next_with_http_info(next_page_link, custom_headers = nil)
|
2377
|
+
get_server_farm_metric_defintions_next_async(next_page_link, custom_headers).value!
|
2378
|
+
end
|
2379
|
+
|
2380
|
+
#
|
2381
|
+
# List of metrics that can be queried for an App Service Plan
|
2382
|
+
#
|
2383
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2384
|
+
# call to List operation.
|
2385
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2386
|
+
# to the HTTP request.
|
2387
|
+
#
|
2388
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2389
|
+
#
|
2390
|
+
def get_server_farm_metric_defintions_next_async(next_page_link, custom_headers = nil)
|
2391
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2392
|
+
|
2393
|
+
|
2394
|
+
request_headers = {}
|
2395
|
+
|
2396
|
+
# Set Headers
|
2397
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2398
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2399
|
+
path_template = '{nextLink}'
|
2400
|
+
options = {
|
2401
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2402
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
2403
|
+
headers: request_headers.merge(custom_headers || {})
|
2404
|
+
}
|
2405
|
+
|
2406
|
+
request_url = @base_url || @client.base_url
|
2407
|
+
|
2408
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
2409
|
+
promise = request.run_promise do |req|
|
2410
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
2411
|
+
end
|
2412
|
+
|
2413
|
+
promise = promise.then do |http_response|
|
2414
|
+
status_code = http_response.status
|
2415
|
+
response_content = http_response.body
|
2416
|
+
unless status_code == 200
|
2417
|
+
error_model = JSON.load(response_content)
|
2418
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
2419
|
+
end
|
2420
|
+
|
2421
|
+
# Create Result
|
2422
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
2423
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2424
|
+
# Deserialize Response
|
2425
|
+
if status_code == 200
|
2426
|
+
begin
|
2427
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2428
|
+
result_mapper = MetricDefinitionCollection.mapper()
|
2429
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2430
|
+
rescue Exception => e
|
2431
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2432
|
+
end
|
2433
|
+
end
|
2434
|
+
|
2435
|
+
result
|
2436
|
+
end
|
2437
|
+
|
2438
|
+
promise.execute
|
2439
|
+
end
|
2440
|
+
|
2095
2441
|
#
|
2096
2442
|
# Gets list of Apps associated with an App Service Plan
|
2097
2443
|
#
|