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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/azure_mgmt_web.gemspec +1 -1
  3. data/lib/generated/azure_mgmt_web/certificate_orders.rb +234 -7
  4. data/lib/generated/azure_mgmt_web/certificates.rb +115 -4
  5. data/lib/generated/azure_mgmt_web/classic_mobile_services.rb +115 -4
  6. data/lib/generated/azure_mgmt_web/domains.rb +115 -4
  7. data/lib/generated/azure_mgmt_web/global.rb +793 -20
  8. data/lib/generated/azure_mgmt_web/global_certificate_order.rb +114 -4
  9. data/lib/generated/azure_mgmt_web/global_domain_registration.rb +229 -7
  10. data/lib/generated/azure_mgmt_web/global_resource_groups.rb +1 -1
  11. data/lib/generated/azure_mgmt_web/hosting_environments.rb +2388 -54
  12. data/lib/generated/azure_mgmt_web/managed_hosting_environments.rb +459 -11
  13. data/lib/generated/azure_mgmt_web/models/backup_item_collection.rb +31 -0
  14. data/lib/generated/azure_mgmt_web/models/certificate_collection.rb +31 -0
  15. data/lib/generated/azure_mgmt_web/models/certificate_order_certificate_collection.rb +31 -0
  16. data/lib/generated/azure_mgmt_web/models/certificate_order_collection.rb +31 -0
  17. data/lib/generated/azure_mgmt_web/models/classic_mobile_service_collection.rb +31 -0
  18. data/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +31 -0
  19. data/lib/generated/azure_mgmt_web/models/deleted_site_collection.rb +31 -0
  20. data/lib/generated/azure_mgmt_web/models/deployment_collection.rb +31 -0
  21. data/lib/generated/azure_mgmt_web/models/domain_collection.rb +31 -0
  22. data/lib/generated/azure_mgmt_web/models/geo_region_collection.rb +31 -0
  23. data/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb +31 -0
  24. data/lib/generated/azure_mgmt_web/models/hosting_environment_collection.rb +31 -0
  25. data/lib/generated/azure_mgmt_web/models/managed_hosting_environment_collection.rb +31 -0
  26. data/lib/generated/azure_mgmt_web/models/metric_definition_collection.rb +31 -0
  27. data/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb +31 -0
  28. data/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb +31 -0
  29. data/lib/generated/azure_mgmt_web/models/server_farm_collection.rb +31 -0
  30. data/lib/generated/azure_mgmt_web/models/site_instance_collection.rb +31 -0
  31. data/lib/generated/azure_mgmt_web/models/sku_info_collection.rb +31 -0
  32. data/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb +31 -0
  33. data/lib/generated/azure_mgmt_web/models/source_control_collection.rb +31 -0
  34. data/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +31 -0
  35. data/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +31 -0
  36. data/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb +31 -0
  37. data/lib/generated/azure_mgmt_web/models/usage_collection.rb +31 -0
  38. data/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb +31 -0
  39. data/lib/generated/azure_mgmt_web/provider.rb +114 -4
  40. data/lib/generated/azure_mgmt_web/recommendations.rb +1 -1
  41. data/lib/generated/azure_mgmt_web/server_farms.rb +356 -10
  42. data/lib/generated/azure_mgmt_web/sites.rb +2471 -68
  43. data/lib/generated/azure_mgmt_web/top_level_domains.rb +230 -7
  44. data/lib/generated/azure_mgmt_web/usage_operations.rb +1 -1
  45. data/lib/generated/azure_mgmt_web/version.rb +1 -1
  46. data/lib/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  47. 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
  #
@@ -1588,11 +1588,35 @@ module Azure::ARM::Web
1588
1588
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1589
1589
  # will be added to the HTTP request.
1590
1590
  #
1591
- # @return [SlotDifferenceCollection] operation results.
1591
+ # @return [SlotDifferenceCollection] which provide lazy access to pages of the
1592
+ # response.
1592
1593
  #
1593
- def get_slots_differences_from_production(resource_group_name, name, slot_swap_entity, custom_headers = nil)
1594
+ def get_slots_differences_from_production_as_lazy(resource_group_name, name, slot_swap_entity, custom_headers = nil)
1594
1595
  response = get_slots_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers).value!
1595
- response.body unless response.nil?
1596
+ unless response.nil?
1597
+ page = response.body
1598
+ page.next_method = Proc.new do |next_link|
1599
+ get_slots_differences_from_production_next_async(next_link, custom_headers)
1600
+ end
1601
+ page
1602
+ end
1603
+ end
1604
+
1605
+ #
1606
+ # Get the difference in configuration settings between two web app slots
1607
+ #
1608
+ # @param resource_group_name [String] Name of resource group
1609
+ # @param name [String] Name of web app
1610
+ # @param slot_swap_entity [CsmSlotEntity] Request body that contains the
1611
+ # target slot name
1612
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1613
+ # will be added to the HTTP request.
1614
+ #
1615
+ # @return [Array<SlotDifference>] operation results.
1616
+ #
1617
+ def get_slots_differences_from_production(resource_group_name, name, slot_swap_entity, custom_headers = nil)
1618
+ first_page = get_slots_differences_from_production_as_lazy(resource_group_name, name, slot_swap_entity, custom_headers)
1619
+ first_page.get_all_items
1596
1620
  end
1597
1621
 
1598
1622
  #
@@ -1699,11 +1723,36 @@ module Azure::ARM::Web
1699
1723
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1700
1724
  # will be added to the HTTP request.
1701
1725
  #
1702
- # @return [SlotDifferenceCollection] operation results.
1726
+ # @return [SlotDifferenceCollection] which provide lazy access to pages of the
1727
+ # response.
1703
1728
  #
1704
- def get_slots_differences_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil)
1729
+ def get_slots_differences_slot_as_lazy(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil)
1705
1730
  response = get_slots_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers).value!
1706
- response.body unless response.nil?
1731
+ unless response.nil?
1732
+ page = response.body
1733
+ page.next_method = Proc.new do |next_link|
1734
+ get_slots_differences_slot_next_async(next_link, custom_headers)
1735
+ end
1736
+ page
1737
+ end
1738
+ end
1739
+
1740
+ #
1741
+ # Get the difference in configuration settings between two web app slots
1742
+ #
1743
+ # @param resource_group_name [String] Name of resource group
1744
+ # @param name [String] Name of web app
1745
+ # @param slot_swap_entity [CsmSlotEntity] Request body that contains the
1746
+ # target slot name
1747
+ # @param slot [String] Name of the source slot
1748
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1749
+ # will be added to the HTTP request.
1750
+ #
1751
+ # @return [Array<SlotDifference>] operation results.
1752
+ #
1753
+ def get_slots_differences_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil)
1754
+ first_page = get_slots_differences_slot_as_lazy(resource_group_name, name, slot_swap_entity, slot, custom_headers)
1755
+ first_page.get_all_items
1707
1756
  end
1708
1757
 
1709
1758
  #
@@ -2410,7 +2459,30 @@ module Azure::ARM::Web
2410
2459
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
2411
2460
  # will be added to the HTTP request.
2412
2461
  #
2413
- # @return [SiteCollection] operation results.
2462
+ # @return [SiteCollection] which provide lazy access to pages of the response.
2463
+ #
2464
+ def get_site_slots_as_lazy(resource_group_name, name, properties_to_include = nil, custom_headers = nil)
2465
+ response = get_site_slots_async(resource_group_name, name, properties_to_include, custom_headers).value!
2466
+ unless response.nil?
2467
+ page = response.body
2468
+ page.next_method = Proc.new do |next_link|
2469
+ get_site_slots_next_async(next_link, custom_headers)
2470
+ end
2471
+ page
2472
+ end
2473
+ end
2474
+
2475
+ #
2476
+ # Gets all the slots for a web apps
2477
+ #
2478
+ # @param resource_group_name [String] Name of resource group
2479
+ # @param name [String] Name of web app
2480
+ # @param properties_to_include [String] List of app properties to include in
2481
+ # the response
2482
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2483
+ # will be added to the HTTP request.
2484
+ #
2485
+ # @return [Array<Site>] operation results.
2414
2486
  #
2415
2487
  def get_site_slots(resource_group_name, name, properties_to_include = nil, custom_headers = nil)
2416
2488
  first_page = get_site_slots_as_lazy(resource_group_name, name, properties_to_include, custom_headers)
@@ -2512,7 +2584,32 @@ module Azure::ARM::Web
2512
2584
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
2513
2585
  # will be added to the HTTP request.
2514
2586
  #
2515
- # @return [SiteCollection] operation results.
2587
+ # @return [SiteCollection] which provide lazy access to pages of the response.
2588
+ #
2589
+ def get_sites_as_lazy(resource_group_name, properties_to_include = nil, include_site_types = nil, include_slots = nil, custom_headers = nil)
2590
+ response = get_sites_async(resource_group_name, properties_to_include, include_site_types, include_slots, custom_headers).value!
2591
+ unless response.nil?
2592
+ page = response.body
2593
+ page.next_method = Proc.new do |next_link|
2594
+ get_sites_next_async(next_link, custom_headers)
2595
+ end
2596
+ page
2597
+ end
2598
+ end
2599
+
2600
+ #
2601
+ # Gets the web apps for a subscription in the specified resource group
2602
+ #
2603
+ # @param resource_group_name [String] Name of resource group
2604
+ # @param properties_to_include [String] Additional web app properties included
2605
+ # in the response
2606
+ # @param include_site_types [String] Types of apps included in the response
2607
+ # @param include_slots [Boolean] Whether or not to include deployments slots
2608
+ # in results
2609
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2610
+ # will be added to the HTTP request.
2611
+ #
2612
+ # @return [Array<Site>] operation results.
2516
2613
  #
2517
2614
  def get_sites(resource_group_name, properties_to_include = nil, include_site_types = nil, include_slots = nil, custom_headers = nil)
2518
2615
  first_page = get_sites_as_lazy(resource_group_name, properties_to_include, include_site_types, include_slots, custom_headers)
@@ -4156,11 +4253,35 @@ module Azure::ARM::Web
4156
4253
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
4157
4254
  # will be added to the HTTP request.
4158
4255
  #
4159
- # @return [DeletedSiteCollection] operation results.
4256
+ # @return [DeletedSiteCollection] which provide lazy access to pages of the
4257
+ # response.
4160
4258
  #
4161
- def get_deleted_sites(resource_group_name, properties_to_include = nil, include_site_types = nil, custom_headers = nil)
4259
+ def get_deleted_sites_as_lazy(resource_group_name, properties_to_include = nil, include_site_types = nil, custom_headers = nil)
4162
4260
  response = get_deleted_sites_async(resource_group_name, properties_to_include, include_site_types, custom_headers).value!
4163
- response.body unless response.nil?
4261
+ unless response.nil?
4262
+ page = response.body
4263
+ page.next_method = Proc.new do |next_link|
4264
+ get_deleted_sites_next_async(next_link, custom_headers)
4265
+ end
4266
+ page
4267
+ end
4268
+ end
4269
+
4270
+ #
4271
+ # Gets deleted web apps in subscription
4272
+ #
4273
+ # @param resource_group_name [String] Name of resource group
4274
+ # @param properties_to_include [String] Additional web app properties included
4275
+ # in the response
4276
+ # @param include_site_types [String] Types of apps included in the response
4277
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
4278
+ # will be added to the HTTP request.
4279
+ #
4280
+ # @return [Array<DeletedSite>] operation results.
4281
+ #
4282
+ def get_deleted_sites(resource_group_name, properties_to_include = nil, include_site_types = nil, custom_headers = nil)
4283
+ first_page = get_deleted_sites_as_lazy(resource_group_name, properties_to_include, include_site_types, custom_headers)
4284
+ first_page.get_all_items
4164
4285
  end
4165
4286
 
4166
4287
  #
@@ -4253,11 +4374,33 @@ module Azure::ARM::Web
4253
4374
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
4254
4375
  # will be added to the HTTP request.
4255
4376
  #
4256
- # @return [DeploymentCollection] operation results.
4377
+ # @return [DeploymentCollection] which provide lazy access to pages of the
4378
+ # response.
4257
4379
  #
4258
- def get_deployments(resource_group_name, name, custom_headers = nil)
4380
+ def get_deployments_as_lazy(resource_group_name, name, custom_headers = nil)
4259
4381
  response = get_deployments_async(resource_group_name, name, custom_headers).value!
4260
- response.body unless response.nil?
4382
+ unless response.nil?
4383
+ page = response.body
4384
+ page.next_method = Proc.new do |next_link|
4385
+ get_deployments_next_async(next_link, custom_headers)
4386
+ end
4387
+ page
4388
+ end
4389
+ end
4390
+
4391
+ #
4392
+ # List deployments
4393
+ #
4394
+ # @param resource_group_name [String] Name of resource group
4395
+ # @param name [String] Name of web app
4396
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
4397
+ # will be added to the HTTP request.
4398
+ #
4399
+ # @return [Array<Deployment>] operation results.
4400
+ #
4401
+ def get_deployments(resource_group_name, name, custom_headers = nil)
4402
+ first_page = get_deployments_as_lazy(resource_group_name, name, custom_headers)
4403
+ first_page.get_all_items
4261
4404
  end
4262
4405
 
4263
4406
  #
@@ -4349,11 +4492,35 @@ module Azure::ARM::Web
4349
4492
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
4350
4493
  # will be added to the HTTP request.
4351
4494
  #
4352
- # @return [DeploymentCollection] operation results.
4495
+ # @return [DeploymentCollection] which provide lazy access to pages of the
4496
+ # response.
4353
4497
  #
4354
- def get_deployments_slot(resource_group_name, name, slot, custom_headers = nil)
4498
+ def get_deployments_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil)
4355
4499
  response = get_deployments_slot_async(resource_group_name, name, slot, custom_headers).value!
4356
- response.body unless response.nil?
4500
+ unless response.nil?
4501
+ page = response.body
4502
+ page.next_method = Proc.new do |next_link|
4503
+ get_deployments_slot_next_async(next_link, custom_headers)
4504
+ end
4505
+ page
4506
+ end
4507
+ end
4508
+
4509
+ #
4510
+ # List deployments
4511
+ #
4512
+ # @param resource_group_name [String] Name of resource group
4513
+ # @param name [String] Name of web app
4514
+ # @param slot [String] Name of web app slot. If not specified then will
4515
+ # default to production slot.
4516
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
4517
+ # will be added to the HTTP request.
4518
+ #
4519
+ # @return [Array<Deployment>] operation results.
4520
+ #
4521
+ def get_deployments_slot(resource_group_name, name, slot, custom_headers = nil)
4522
+ first_page = get_deployments_slot_as_lazy(resource_group_name, name, slot, custom_headers)
4523
+ first_page.get_all_items
4357
4524
  end
4358
4525
 
4359
4526
  #
@@ -4449,11 +4616,34 @@ module Azure::ARM::Web
4449
4616
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
4450
4617
  # will be added to the HTTP request.
4451
4618
  #
4452
- # @return [DeploymentCollection] operation results.
4619
+ # @return [DeploymentCollection] which provide lazy access to pages of the
4620
+ # response.
4453
4621
  #
4454
- def get_instance_deployments(resource_group_name, name, instance_id, custom_headers = nil)
4622
+ def get_instance_deployments_as_lazy(resource_group_name, name, instance_id, custom_headers = nil)
4455
4623
  response = get_instance_deployments_async(resource_group_name, name, instance_id, custom_headers).value!
4456
- response.body unless response.nil?
4624
+ unless response.nil?
4625
+ page = response.body
4626
+ page.next_method = Proc.new do |next_link|
4627
+ get_instance_deployments_next_async(next_link, custom_headers)
4628
+ end
4629
+ page
4630
+ end
4631
+ end
4632
+
4633
+ #
4634
+ # List deployments
4635
+ #
4636
+ # @param resource_group_name [String] Name of resource group
4637
+ # @param name [String] Name of web app
4638
+ # @param instance_id [String] Id of web app instance
4639
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
4640
+ # will be added to the HTTP request.
4641
+ #
4642
+ # @return [Array<Deployment>] operation results.
4643
+ #
4644
+ def get_instance_deployments(resource_group_name, name, instance_id, custom_headers = nil)
4645
+ first_page = get_instance_deployments_as_lazy(resource_group_name, name, instance_id, custom_headers)
4646
+ first_page.get_all_items
4457
4647
  end
4458
4648
 
4459
4649
  #
@@ -4549,11 +4739,36 @@ module Azure::ARM::Web
4549
4739
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
4550
4740
  # will be added to the HTTP request.
4551
4741
  #
4552
- # @return [DeploymentCollection] operation results.
4742
+ # @return [DeploymentCollection] which provide lazy access to pages of the
4743
+ # response.
4553
4744
  #
4554
- def get_instance_deployments_slot(resource_group_name, name, slot, instance_id, custom_headers = nil)
4745
+ def get_instance_deployments_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers = nil)
4555
4746
  response = get_instance_deployments_slot_async(resource_group_name, name, slot, instance_id, custom_headers).value!
4556
- response.body unless response.nil?
4747
+ unless response.nil?
4748
+ page = response.body
4749
+ page.next_method = Proc.new do |next_link|
4750
+ get_instance_deployments_slot_next_async(next_link, custom_headers)
4751
+ end
4752
+ page
4753
+ end
4754
+ end
4755
+
4756
+ #
4757
+ # List deployments
4758
+ #
4759
+ # @param resource_group_name [String] Name of resource group
4760
+ # @param name [String] Name of web app
4761
+ # @param slot [String] Name of web app slot. If not specified then will
4762
+ # default to production slot.
4763
+ # @param instance_id [String] Id of web app instance
4764
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
4765
+ # will be added to the HTTP request.
4766
+ #
4767
+ # @return [Array<Deployment>] operation results.
4768
+ #
4769
+ def get_instance_deployments_slot(resource_group_name, name, slot, instance_id, custom_headers = nil)
4770
+ first_page = get_instance_deployments_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers)
4771
+ first_page.get_all_items
4557
4772
  end
4558
4773
 
4559
4774
  #
@@ -5905,11 +6120,33 @@ module Azure::ARM::Web
5905
6120
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
5906
6121
  # will be added to the HTTP request.
5907
6122
  #
5908
- # @return [SiteInstanceCollection] operation results.
6123
+ # @return [SiteInstanceCollection] which provide lazy access to pages of the
6124
+ # response.
5909
6125
  #
5910
- def get_site_instance_identifiers(resource_group_name, name, custom_headers = nil)
6126
+ def get_site_instance_identifiers_as_lazy(resource_group_name, name, custom_headers = nil)
5911
6127
  response = get_site_instance_identifiers_async(resource_group_name, name, custom_headers).value!
5912
- response.body unless response.nil?
6128
+ unless response.nil?
6129
+ page = response.body
6130
+ page.next_method = Proc.new do |next_link|
6131
+ get_site_instance_identifiers_next_async(next_link, custom_headers)
6132
+ end
6133
+ page
6134
+ end
6135
+ end
6136
+
6137
+ #
6138
+ # Gets all instance of a web app
6139
+ #
6140
+ # @param resource_group_name [String] Name of resource group
6141
+ # @param name [String] Name of web app
6142
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
6143
+ # will be added to the HTTP request.
6144
+ #
6145
+ # @return [Array<SiteInstance>] operation results.
6146
+ #
6147
+ def get_site_instance_identifiers(resource_group_name, name, custom_headers = nil)
6148
+ first_page = get_site_instance_identifiers_as_lazy(resource_group_name, name, custom_headers)
6149
+ first_page.get_all_items
5913
6150
  end
5914
6151
 
5915
6152
  #
@@ -6001,11 +6238,35 @@ module Azure::ARM::Web
6001
6238
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
6002
6239
  # will be added to the HTTP request.
6003
6240
  #
6004
- # @return [SiteInstanceCollection] operation results.
6241
+ # @return [SiteInstanceCollection] which provide lazy access to pages of the
6242
+ # response.
6005
6243
  #
6006
- def get_site_instance_identifiers_slot(resource_group_name, name, slot, custom_headers = nil)
6244
+ def get_site_instance_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil)
6007
6245
  response = get_site_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers).value!
6008
- response.body unless response.nil?
6246
+ unless response.nil?
6247
+ page = response.body
6248
+ page.next_method = Proc.new do |next_link|
6249
+ get_site_instance_identifiers_slot_next_async(next_link, custom_headers)
6250
+ end
6251
+ page
6252
+ end
6253
+ end
6254
+
6255
+ #
6256
+ # Gets all instance of a web app
6257
+ #
6258
+ # @param resource_group_name [String] Name of resource group
6259
+ # @param name [String] Name of web app
6260
+ # @param slot [String] Name of web app slot. If not specified then will
6261
+ # default to production slot.
6262
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
6263
+ # will be added to the HTTP request.
6264
+ #
6265
+ # @return [Array<SiteInstance>] operation results.
6266
+ #
6267
+ def get_site_instance_identifiers_slot(resource_group_name, name, slot, custom_headers = nil)
6268
+ first_page = get_site_instance_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers)
6269
+ first_page.get_all_items
6009
6270
  end
6010
6271
 
6011
6272
  #
@@ -6100,11 +6361,33 @@ module Azure::ARM::Web
6100
6361
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
6101
6362
  # will be added to the HTTP request.
6102
6363
  #
6103
- # @return [HostNameBindingCollection] operation results.
6364
+ # @return [HostNameBindingCollection] which provide lazy access to pages of
6365
+ # the response.
6104
6366
  #
6105
- def get_site_host_name_bindings(resource_group_name, name, custom_headers = nil)
6367
+ def get_site_host_name_bindings_as_lazy(resource_group_name, name, custom_headers = nil)
6106
6368
  response = get_site_host_name_bindings_async(resource_group_name, name, custom_headers).value!
6107
- response.body unless response.nil?
6369
+ unless response.nil?
6370
+ page = response.body
6371
+ page.next_method = Proc.new do |next_link|
6372
+ get_site_host_name_bindings_next_async(next_link, custom_headers)
6373
+ end
6374
+ page
6375
+ end
6376
+ end
6377
+
6378
+ #
6379
+ # Get web app hostname bindings
6380
+ #
6381
+ # @param resource_group_name [String] Name of resource group
6382
+ # @param name [String] Name of web app
6383
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
6384
+ # will be added to the HTTP request.
6385
+ #
6386
+ # @return [Array<HostNameBinding>] operation results.
6387
+ #
6388
+ def get_site_host_name_bindings(resource_group_name, name, custom_headers = nil)
6389
+ first_page = get_site_host_name_bindings_as_lazy(resource_group_name, name, custom_headers)
6390
+ first_page.get_all_items
6108
6391
  end
6109
6392
 
6110
6393
  #
@@ -6196,11 +6479,18 @@ module Azure::ARM::Web
6196
6479
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
6197
6480
  # will be added to the HTTP request.
6198
6481
  #
6199
- # @return [HostNameBindingCollection] operation results.
6482
+ # @return [HostNameBindingCollection] which provide lazy access to pages of
6483
+ # the response.
6200
6484
  #
6201
- def get_site_host_name_bindings_slot(resource_group_name, name, slot, custom_headers = nil)
6485
+ def get_site_host_name_bindings_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil)
6202
6486
  response = get_site_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers).value!
6203
- response.body unless response.nil?
6487
+ unless response.nil?
6488
+ page = response.body
6489
+ page.next_method = Proc.new do |next_link|
6490
+ get_site_host_name_bindings_slot_next_async(next_link, custom_headers)
6491
+ end
6492
+ page
6493
+ end
6204
6494
  end
6205
6495
 
6206
6496
  #
@@ -6213,10 +6503,11 @@ module Azure::ARM::Web
6213
6503
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
6214
6504
  # will be added to the HTTP request.
6215
6505
  #
6216
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
6506
+ # @return [Array<HostNameBinding>] operation results.
6217
6507
  #
6218
- def get_site_host_name_bindings_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil)
6219
- get_site_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers).value!
6508
+ def get_site_host_name_bindings_slot(resource_group_name, name, slot, custom_headers = nil)
6509
+ first_page = get_site_host_name_bindings_slot_as_lazy(resource_group_name, name, slot, custom_headers)
6510
+ first_page.get_all_items
6220
6511
  end
6221
6512
 
6222
6513
  #
@@ -6226,13 +6517,29 @@ module Azure::ARM::Web
6226
6517
  # @param name [String] Name of web app
6227
6518
  # @param slot [String] Name of web app slot. If not specified then will
6228
6519
  # default to production slot.
6229
- # @param [Hash{String => String}] A hash of custom headers that will be added
6230
- # to the HTTP request.
6520
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
6521
+ # will be added to the HTTP request.
6231
6522
  #
6232
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
6523
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
6233
6524
  #
6234
- def get_site_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers = nil)
6235
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
6525
+ def get_site_host_name_bindings_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil)
6526
+ get_site_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers).value!
6527
+ end
6528
+
6529
+ #
6530
+ # Get web app hostname bindings
6531
+ #
6532
+ # @param resource_group_name [String] Name of resource group
6533
+ # @param name [String] Name of web app
6534
+ # @param slot [String] Name of web app slot. If not specified then will
6535
+ # default to production slot.
6536
+ # @param [Hash{String => String}] A hash of custom headers that will be added
6537
+ # to the HTTP request.
6538
+ #
6539
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
6540
+ #
6541
+ def get_site_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers = nil)
6542
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
6236
6543
  fail ArgumentError, 'name is nil' if name.nil?
6237
6544
  fail ArgumentError, 'slot is nil' if slot.nil?
6238
6545
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -12306,11 +12613,33 @@ module Azure::ARM::Web
12306
12613
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
12307
12614
  # will be added to the HTTP request.
12308
12615
  #
12309
- # @return [BackupItemCollection] operation results.
12616
+ # @return [BackupItemCollection] which provide lazy access to pages of the
12617
+ # response.
12310
12618
  #
12311
- def list_site_backups(resource_group_name, name, custom_headers = nil)
12619
+ def list_site_backups_as_lazy(resource_group_name, name, custom_headers = nil)
12312
12620
  response = list_site_backups_async(resource_group_name, name, custom_headers).value!
12313
- response.body unless response.nil?
12621
+ unless response.nil?
12622
+ page = response.body
12623
+ page.next_method = Proc.new do |next_link|
12624
+ list_site_backups_next_async(next_link, custom_headers)
12625
+ end
12626
+ page
12627
+ end
12628
+ end
12629
+
12630
+ #
12631
+ # Lists all available backups for web app
12632
+ #
12633
+ # @param resource_group_name [String] Name of resource group
12634
+ # @param name [String] Name of web app
12635
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
12636
+ # will be added to the HTTP request.
12637
+ #
12638
+ # @return [Array<BackupItem>] operation results.
12639
+ #
12640
+ def list_site_backups(resource_group_name, name, custom_headers = nil)
12641
+ first_page = list_site_backups_as_lazy(resource_group_name, name, custom_headers)
12642
+ first_page.get_all_items
12314
12643
  end
12315
12644
 
12316
12645
  #
@@ -12402,11 +12731,35 @@ module Azure::ARM::Web
12402
12731
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
12403
12732
  # will be added to the HTTP request.
12404
12733
  #
12405
- # @return [BackupItemCollection] operation results.
12734
+ # @return [BackupItemCollection] which provide lazy access to pages of the
12735
+ # response.
12406
12736
  #
12407
- def list_site_backups_slot(resource_group_name, name, slot, custom_headers = nil)
12737
+ def list_site_backups_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil)
12408
12738
  response = list_site_backups_slot_async(resource_group_name, name, slot, custom_headers).value!
12409
- response.body unless response.nil?
12739
+ unless response.nil?
12740
+ page = response.body
12741
+ page.next_method = Proc.new do |next_link|
12742
+ list_site_backups_slot_next_async(next_link, custom_headers)
12743
+ end
12744
+ page
12745
+ end
12746
+ end
12747
+
12748
+ #
12749
+ # Lists all available backups for web app
12750
+ #
12751
+ # @param resource_group_name [String] Name of resource group
12752
+ # @param name [String] Name of web app
12753
+ # @param slot [String] Name of web app slot. If not specified then will
12754
+ # default to production slot.
12755
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
12756
+ # will be added to the HTTP request.
12757
+ #
12758
+ # @return [Array<BackupItem>] operation results.
12759
+ #
12760
+ def list_site_backups_slot(resource_group_name, name, slot, custom_headers = nil)
12761
+ first_page = list_site_backups_slot_as_lazy(resource_group_name, name, slot, custom_headers)
12762
+ first_page.get_all_items
12410
12763
  end
12411
12764
 
12412
12765
  #
@@ -13484,11 +13837,38 @@ module Azure::ARM::Web
13484
13837
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
13485
13838
  # will be added to the HTTP request.
13486
13839
  #
13487
- # @return [CsmUsageQuotaCollection] operation results.
13840
+ # @return [CsmUsageQuotaCollection] which provide lazy access to pages of the
13841
+ # response.
13488
13842
  #
13489
- def get_site_usages(resource_group_name, name, filter = nil, custom_headers = nil)
13843
+ def get_site_usages_as_lazy(resource_group_name, name, filter = nil, custom_headers = nil)
13490
13844
  response = get_site_usages_async(resource_group_name, name, filter, custom_headers).value!
13491
- response.body unless response.nil?
13845
+ unless response.nil?
13846
+ page = response.body
13847
+ page.next_method = Proc.new do |next_link|
13848
+ get_site_usages_next_async(next_link, custom_headers)
13849
+ end
13850
+ page
13851
+ end
13852
+ end
13853
+
13854
+ #
13855
+ # Gets the quota usage numbers for web app
13856
+ #
13857
+ # @param resource_group_name [String] Name of resource group
13858
+ # @param name [String] Name of web app
13859
+ # @param filter [String] Return only usages specified in the filter. Filter is
13860
+ # specified by using OData syntax. Example: $filter=(name.value eq 'Metric1'
13861
+ # or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
13862
+ # endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
13863
+ # duration'[Hour|Minute|Day]'.
13864
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
13865
+ # will be added to the HTTP request.
13866
+ #
13867
+ # @return [Array<CsmUsageQuota>] operation results.
13868
+ #
13869
+ def get_site_usages(resource_group_name, name, filter = nil, custom_headers = nil)
13870
+ first_page = get_site_usages_as_lazy(resource_group_name, name, filter, custom_headers)
13871
+ first_page.get_all_items
13492
13872
  end
13493
13873
 
13494
13874
  #
@@ -13595,11 +13975,40 @@ module Azure::ARM::Web
13595
13975
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
13596
13976
  # will be added to the HTTP request.
13597
13977
  #
13598
- # @return [CsmUsageQuotaCollection] operation results.
13978
+ # @return [CsmUsageQuotaCollection] which provide lazy access to pages of the
13979
+ # response.
13599
13980
  #
13600
- def get_site_usages_slot(resource_group_name, name, slot, filter = nil, custom_headers = nil)
13981
+ def get_site_usages_slot_as_lazy(resource_group_name, name, slot, filter = nil, custom_headers = nil)
13601
13982
  response = get_site_usages_slot_async(resource_group_name, name, slot, filter, custom_headers).value!
13602
- response.body unless response.nil?
13983
+ unless response.nil?
13984
+ page = response.body
13985
+ page.next_method = Proc.new do |next_link|
13986
+ get_site_usages_slot_next_async(next_link, custom_headers)
13987
+ end
13988
+ page
13989
+ end
13990
+ end
13991
+
13992
+ #
13993
+ # Gets the quota usage numbers for web app
13994
+ #
13995
+ # @param resource_group_name [String] Name of resource group
13996
+ # @param name [String] Name of web app
13997
+ # @param slot [String] Name of web app slot. If not specified then will
13998
+ # default to production slot.
13999
+ # @param filter [String] Return only usages specified in the filter. Filter is
14000
+ # specified by using OData syntax. Example: $filter=(name.value eq 'Metric1'
14001
+ # or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
14002
+ # endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
14003
+ # duration'[Hour|Minute|Day]'.
14004
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
14005
+ # will be added to the HTTP request.
14006
+ #
14007
+ # @return [Array<CsmUsageQuota>] operation results.
14008
+ #
14009
+ def get_site_usages_slot(resource_group_name, name, slot, filter = nil, custom_headers = nil)
14010
+ first_page = get_site_usages_slot_as_lazy(resource_group_name, name, slot, filter, custom_headers)
14011
+ first_page.get_all_items
13603
14012
  end
13604
14013
 
13605
14014
  #
@@ -13710,11 +14119,39 @@ module Azure::ARM::Web
13710
14119
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
13711
14120
  # will be added to the HTTP request.
13712
14121
  #
13713
- # @return [ResourceMetricCollection] operation results.
14122
+ # @return [ResourceMetricCollection] which provide lazy access to pages of the
14123
+ # response.
13714
14124
  #
13715
- def get_site_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil)
14125
+ def get_site_metrics_as_lazy(resource_group_name, name, details = nil, filter = nil, custom_headers = nil)
13716
14126
  response = get_site_metrics_async(resource_group_name, name, details, filter, custom_headers).value!
13717
- response.body unless response.nil?
14127
+ unless response.nil?
14128
+ page = response.body
14129
+ page.next_method = Proc.new do |next_link|
14130
+ get_site_metrics_next_async(next_link, custom_headers)
14131
+ end
14132
+ page
14133
+ end
14134
+ end
14135
+
14136
+ #
14137
+ # Gets metrics for web app
14138
+ #
14139
+ # @param resource_group_name [String] Name of resource group
14140
+ # @param name [String] Name of web app
14141
+ # @param details [Boolean] If true, metric details are included in response
14142
+ # @param filter [String] Return only usages/metrics specified in the filter.
14143
+ # Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1'
14144
+ # or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
14145
+ # endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
14146
+ # duration'[Hour|Minute|Day]'.
14147
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
14148
+ # will be added to the HTTP request.
14149
+ #
14150
+ # @return [Array<ResourceMetric>] operation results.
14151
+ #
14152
+ def get_site_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil)
14153
+ first_page = get_site_metrics_as_lazy(resource_group_name, name, details, filter, custom_headers)
14154
+ first_page.get_all_items
13718
14155
  end
13719
14156
 
13720
14157
  #
@@ -13824,11 +14261,41 @@ module Azure::ARM::Web
13824
14261
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
13825
14262
  # will be added to the HTTP request.
13826
14263
  #
13827
- # @return [ResourceMetricCollection] operation results.
14264
+ # @return [ResourceMetricCollection] which provide lazy access to pages of the
14265
+ # response.
13828
14266
  #
13829
- def get_site_metrics_slot(resource_group_name, name, slot, details = nil, filter = nil, custom_headers = nil)
14267
+ def get_site_metrics_slot_as_lazy(resource_group_name, name, slot, details = nil, filter = nil, custom_headers = nil)
13830
14268
  response = get_site_metrics_slot_async(resource_group_name, name, slot, details, filter, custom_headers).value!
13831
- response.body unless response.nil?
14269
+ unless response.nil?
14270
+ page = response.body
14271
+ page.next_method = Proc.new do |next_link|
14272
+ get_site_metrics_slot_next_async(next_link, custom_headers)
14273
+ end
14274
+ page
14275
+ end
14276
+ end
14277
+
14278
+ #
14279
+ # Gets metrics for web app
14280
+ #
14281
+ # @param resource_group_name [String] Name of resource group
14282
+ # @param name [String] Name of web app
14283
+ # @param slot [String] Name of web app slot. If not specified then will
14284
+ # default to production slot.
14285
+ # @param details [Boolean] If true, metric details are included in response
14286
+ # @param filter [String] Return only usages/metrics specified in the filter.
14287
+ # Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1'
14288
+ # or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
14289
+ # endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
14290
+ # duration'[Hour|Minute|Day]'.
14291
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
14292
+ # will be added to the HTTP request.
14293
+ #
14294
+ # @return [Array<ResourceMetric>] operation results.
14295
+ #
14296
+ def get_site_metrics_slot(resource_group_name, name, slot, details = nil, filter = nil, custom_headers = nil)
14297
+ first_page = get_site_metrics_slot_as_lazy(resource_group_name, name, slot, details, filter, custom_headers)
14298
+ first_page.get_all_items
13832
14299
  end
13833
14300
 
13834
14301
  #
@@ -13937,11 +14404,35 @@ module Azure::ARM::Web
13937
14404
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
13938
14405
  # will be added to the HTTP request.
13939
14406
  #
13940
- # @return [MetricDefinitionCollection] operation results.
14407
+ # @return [MetricDefinitionCollection] which provide lazy access to pages of
14408
+ # the response.
13941
14409
  #
13942
- def get_site_metric_definitions_slot(resource_group_name, name, slot, custom_headers = nil)
14410
+ def get_site_metric_definitions_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil)
13943
14411
  response = get_site_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers).value!
13944
- response.body unless response.nil?
14412
+ unless response.nil?
14413
+ page = response.body
14414
+ page.next_method = Proc.new do |next_link|
14415
+ get_site_metric_definitions_slot_next_async(next_link, custom_headers)
14416
+ end
14417
+ page
14418
+ end
14419
+ end
14420
+
14421
+ #
14422
+ # Gets metric definitions for web app
14423
+ #
14424
+ # @param resource_group_name [String] Name of resource group
14425
+ # @param name [String] Name of web app
14426
+ # @param slot [String] Name of web app slot. If not specified then will
14427
+ # default to production slot.
14428
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
14429
+ # will be added to the HTTP request.
14430
+ #
14431
+ # @return [Array<MetricDefinition>] operation results.
14432
+ #
14433
+ def get_site_metric_definitions_slot(resource_group_name, name, slot, custom_headers = nil)
14434
+ first_page = get_site_metric_definitions_slot_as_lazy(resource_group_name, name, slot, custom_headers)
14435
+ first_page.get_all_items
13945
14436
  end
13946
14437
 
13947
14438
  #
@@ -14036,11 +14527,33 @@ module Azure::ARM::Web
14036
14527
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
14037
14528
  # will be added to the HTTP request.
14038
14529
  #
14039
- # @return [MetricDefinitionCollection] operation results.
14530
+ # @return [MetricDefinitionCollection] which provide lazy access to pages of
14531
+ # the response.
14040
14532
  #
14041
- def get_site_metric_definitions(resource_group_name, name, custom_headers = nil)
14533
+ def get_site_metric_definitions_as_lazy(resource_group_name, name, custom_headers = nil)
14042
14534
  response = get_site_metric_definitions_async(resource_group_name, name, custom_headers).value!
14043
- response.body unless response.nil?
14535
+ unless response.nil?
14536
+ page = response.body
14537
+ page.next_method = Proc.new do |next_link|
14538
+ get_site_metric_definitions_next_async(next_link, custom_headers)
14539
+ end
14540
+ page
14541
+ end
14542
+ end
14543
+
14544
+ #
14545
+ # Gets metric definitions for web app
14546
+ #
14547
+ # @param resource_group_name [String] Name of resource group
14548
+ # @param name [String] Name of web app
14549
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
14550
+ # will be added to the HTTP request.
14551
+ #
14552
+ # @return [Array<MetricDefinition>] operation results.
14553
+ #
14554
+ def get_site_metric_definitions(resource_group_name, name, custom_headers = nil)
14555
+ first_page = get_site_metric_definitions_as_lazy(resource_group_name, name, custom_headers)
14556
+ first_page.get_all_items
14044
14557
  end
14045
14558
 
14046
14559
  #
@@ -17253,5 +17766,1895 @@ module Azure::ARM::Web
17253
17766
  promise.execute
17254
17767
  end
17255
17768
 
17769
+ #
17770
+ # Get the difference in configuration settings between two web app slots
17771
+ #
17772
+ # @param next_page_link [String] The NextLink from the previous successful
17773
+ # call to List operation.
17774
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
17775
+ # will be added to the HTTP request.
17776
+ #
17777
+ # @return [SlotDifferenceCollection] operation results.
17778
+ #
17779
+ def get_slots_differences_from_production_next(next_page_link, custom_headers = nil)
17780
+ response = get_slots_differences_from_production_next_async(next_page_link, custom_headers).value!
17781
+ response.body unless response.nil?
17782
+ end
17783
+
17784
+ #
17785
+ # Get the difference in configuration settings between two web app slots
17786
+ #
17787
+ # @param next_page_link [String] The NextLink from the previous successful
17788
+ # call to List operation.
17789
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
17790
+ # will be added to the HTTP request.
17791
+ #
17792
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
17793
+ #
17794
+ def get_slots_differences_from_production_next_with_http_info(next_page_link, custom_headers = nil)
17795
+ get_slots_differences_from_production_next_async(next_page_link, custom_headers).value!
17796
+ end
17797
+
17798
+ #
17799
+ # Get the difference in configuration settings between two web app slots
17800
+ #
17801
+ # @param next_page_link [String] The NextLink from the previous successful
17802
+ # call to List operation.
17803
+ # @param [Hash{String => String}] A hash of custom headers that will be added
17804
+ # to the HTTP request.
17805
+ #
17806
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
17807
+ #
17808
+ def get_slots_differences_from_production_next_async(next_page_link, custom_headers = nil)
17809
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
17810
+
17811
+
17812
+ request_headers = {}
17813
+
17814
+ # Set Headers
17815
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
17816
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
17817
+ path_template = '{nextLink}'
17818
+ options = {
17819
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
17820
+ skip_encoding_path_params: {'nextLink' => next_page_link},
17821
+ headers: request_headers.merge(custom_headers || {})
17822
+ }
17823
+
17824
+ request_url = @base_url || @client.base_url
17825
+
17826
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
17827
+ promise = request.run_promise do |req|
17828
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
17829
+ end
17830
+
17831
+ promise = promise.then do |http_response|
17832
+ status_code = http_response.status
17833
+ response_content = http_response.body
17834
+ unless status_code == 200
17835
+ error_model = JSON.load(response_content)
17836
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
17837
+ end
17838
+
17839
+ # Create Result
17840
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
17841
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
17842
+ # Deserialize Response
17843
+ if status_code == 200
17844
+ begin
17845
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
17846
+ result_mapper = SlotDifferenceCollection.mapper()
17847
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
17848
+ rescue Exception => e
17849
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
17850
+ end
17851
+ end
17852
+
17853
+ result
17854
+ end
17855
+
17856
+ promise.execute
17857
+ end
17858
+
17859
+ #
17860
+ # Get the difference in configuration settings between two web app slots
17861
+ #
17862
+ # @param next_page_link [String] The NextLink from the previous successful
17863
+ # call to List operation.
17864
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
17865
+ # will be added to the HTTP request.
17866
+ #
17867
+ # @return [SlotDifferenceCollection] operation results.
17868
+ #
17869
+ def get_slots_differences_slot_next(next_page_link, custom_headers = nil)
17870
+ response = get_slots_differences_slot_next_async(next_page_link, custom_headers).value!
17871
+ response.body unless response.nil?
17872
+ end
17873
+
17874
+ #
17875
+ # Get the difference in configuration settings between two web app slots
17876
+ #
17877
+ # @param next_page_link [String] The NextLink from the previous successful
17878
+ # call to List operation.
17879
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
17880
+ # will be added to the HTTP request.
17881
+ #
17882
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
17883
+ #
17884
+ def get_slots_differences_slot_next_with_http_info(next_page_link, custom_headers = nil)
17885
+ get_slots_differences_slot_next_async(next_page_link, custom_headers).value!
17886
+ end
17887
+
17888
+ #
17889
+ # Get the difference in configuration settings between two web app slots
17890
+ #
17891
+ # @param next_page_link [String] The NextLink from the previous successful
17892
+ # call to List operation.
17893
+ # @param [Hash{String => String}] A hash of custom headers that will be added
17894
+ # to the HTTP request.
17895
+ #
17896
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
17897
+ #
17898
+ def get_slots_differences_slot_next_async(next_page_link, custom_headers = nil)
17899
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
17900
+
17901
+
17902
+ request_headers = {}
17903
+
17904
+ # Set Headers
17905
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
17906
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
17907
+ path_template = '{nextLink}'
17908
+ options = {
17909
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
17910
+ skip_encoding_path_params: {'nextLink' => next_page_link},
17911
+ headers: request_headers.merge(custom_headers || {})
17912
+ }
17913
+
17914
+ request_url = @base_url || @client.base_url
17915
+
17916
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
17917
+ promise = request.run_promise do |req|
17918
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
17919
+ end
17920
+
17921
+ promise = promise.then do |http_response|
17922
+ status_code = http_response.status
17923
+ response_content = http_response.body
17924
+ unless status_code == 200
17925
+ error_model = JSON.load(response_content)
17926
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
17927
+ end
17928
+
17929
+ # Create Result
17930
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
17931
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
17932
+ # Deserialize Response
17933
+ if status_code == 200
17934
+ begin
17935
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
17936
+ result_mapper = SlotDifferenceCollection.mapper()
17937
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
17938
+ rescue Exception => e
17939
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
17940
+ end
17941
+ end
17942
+
17943
+ result
17944
+ end
17945
+
17946
+ promise.execute
17947
+ end
17948
+
17949
+ #
17950
+ # Gets all the slots for a web apps
17951
+ #
17952
+ # @param next_page_link [String] The NextLink from the previous successful
17953
+ # call to List operation.
17954
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
17955
+ # will be added to the HTTP request.
17956
+ #
17957
+ # @return [SiteCollection] operation results.
17958
+ #
17959
+ def get_site_slots_next(next_page_link, custom_headers = nil)
17960
+ response = get_site_slots_next_async(next_page_link, custom_headers).value!
17961
+ response.body unless response.nil?
17962
+ end
17963
+
17964
+ #
17965
+ # Gets all the slots for a web apps
17966
+ #
17967
+ # @param next_page_link [String] The NextLink from the previous successful
17968
+ # call to List operation.
17969
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
17970
+ # will be added to the HTTP request.
17971
+ #
17972
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
17973
+ #
17974
+ def get_site_slots_next_with_http_info(next_page_link, custom_headers = nil)
17975
+ get_site_slots_next_async(next_page_link, custom_headers).value!
17976
+ end
17977
+
17978
+ #
17979
+ # Gets all the slots for a web apps
17980
+ #
17981
+ # @param next_page_link [String] The NextLink from the previous successful
17982
+ # call to List operation.
17983
+ # @param [Hash{String => String}] A hash of custom headers that will be added
17984
+ # to the HTTP request.
17985
+ #
17986
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
17987
+ #
17988
+ def get_site_slots_next_async(next_page_link, custom_headers = nil)
17989
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
17990
+
17991
+
17992
+ request_headers = {}
17993
+
17994
+ # Set Headers
17995
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
17996
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
17997
+ path_template = '{nextLink}'
17998
+ options = {
17999
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18000
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18001
+ headers: request_headers.merge(custom_headers || {})
18002
+ }
18003
+
18004
+ request_url = @base_url || @client.base_url
18005
+
18006
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18007
+ promise = request.run_promise do |req|
18008
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18009
+ end
18010
+
18011
+ promise = promise.then do |http_response|
18012
+ status_code = http_response.status
18013
+ response_content = http_response.body
18014
+ unless status_code == 200
18015
+ error_model = JSON.load(response_content)
18016
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18017
+ end
18018
+
18019
+ # Create Result
18020
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18021
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18022
+ # Deserialize Response
18023
+ if status_code == 200
18024
+ begin
18025
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18026
+ result_mapper = SiteCollection.mapper()
18027
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18028
+ rescue Exception => e
18029
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18030
+ end
18031
+ end
18032
+
18033
+ result
18034
+ end
18035
+
18036
+ promise.execute
18037
+ end
18038
+
18039
+ #
18040
+ # Gets the web apps for a subscription in the specified resource group
18041
+ #
18042
+ # @param next_page_link [String] The NextLink from the previous successful
18043
+ # call to List operation.
18044
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18045
+ # will be added to the HTTP request.
18046
+ #
18047
+ # @return [SiteCollection] operation results.
18048
+ #
18049
+ def get_sites_next(next_page_link, custom_headers = nil)
18050
+ response = get_sites_next_async(next_page_link, custom_headers).value!
18051
+ response.body unless response.nil?
18052
+ end
18053
+
18054
+ #
18055
+ # Gets the web apps for a subscription in the specified resource group
18056
+ #
18057
+ # @param next_page_link [String] The NextLink from the previous successful
18058
+ # call to List operation.
18059
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18060
+ # will be added to the HTTP request.
18061
+ #
18062
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18063
+ #
18064
+ def get_sites_next_with_http_info(next_page_link, custom_headers = nil)
18065
+ get_sites_next_async(next_page_link, custom_headers).value!
18066
+ end
18067
+
18068
+ #
18069
+ # Gets the web apps for a subscription in the specified resource group
18070
+ #
18071
+ # @param next_page_link [String] The NextLink from the previous successful
18072
+ # call to List operation.
18073
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18074
+ # to the HTTP request.
18075
+ #
18076
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18077
+ #
18078
+ def get_sites_next_async(next_page_link, custom_headers = nil)
18079
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18080
+
18081
+
18082
+ request_headers = {}
18083
+
18084
+ # Set Headers
18085
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18086
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18087
+ path_template = '{nextLink}'
18088
+ options = {
18089
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18090
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18091
+ headers: request_headers.merge(custom_headers || {})
18092
+ }
18093
+
18094
+ request_url = @base_url || @client.base_url
18095
+
18096
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18097
+ promise = request.run_promise do |req|
18098
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18099
+ end
18100
+
18101
+ promise = promise.then do |http_response|
18102
+ status_code = http_response.status
18103
+ response_content = http_response.body
18104
+ unless status_code == 200
18105
+ error_model = JSON.load(response_content)
18106
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18107
+ end
18108
+
18109
+ # Create Result
18110
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18111
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18112
+ # Deserialize Response
18113
+ if status_code == 200
18114
+ begin
18115
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18116
+ result_mapper = SiteCollection.mapper()
18117
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18118
+ rescue Exception => e
18119
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18120
+ end
18121
+ end
18122
+
18123
+ result
18124
+ end
18125
+
18126
+ promise.execute
18127
+ end
18128
+
18129
+ #
18130
+ # Gets deleted web apps in subscription
18131
+ #
18132
+ # @param next_page_link [String] The NextLink from the previous successful
18133
+ # call to List operation.
18134
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18135
+ # will be added to the HTTP request.
18136
+ #
18137
+ # @return [DeletedSiteCollection] operation results.
18138
+ #
18139
+ def get_deleted_sites_next(next_page_link, custom_headers = nil)
18140
+ response = get_deleted_sites_next_async(next_page_link, custom_headers).value!
18141
+ response.body unless response.nil?
18142
+ end
18143
+
18144
+ #
18145
+ # Gets deleted web apps in subscription
18146
+ #
18147
+ # @param next_page_link [String] The NextLink from the previous successful
18148
+ # call to List operation.
18149
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18150
+ # will be added to the HTTP request.
18151
+ #
18152
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18153
+ #
18154
+ def get_deleted_sites_next_with_http_info(next_page_link, custom_headers = nil)
18155
+ get_deleted_sites_next_async(next_page_link, custom_headers).value!
18156
+ end
18157
+
18158
+ #
18159
+ # Gets deleted web apps in subscription
18160
+ #
18161
+ # @param next_page_link [String] The NextLink from the previous successful
18162
+ # call to List operation.
18163
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18164
+ # to the HTTP request.
18165
+ #
18166
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18167
+ #
18168
+ def get_deleted_sites_next_async(next_page_link, custom_headers = nil)
18169
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18170
+
18171
+
18172
+ request_headers = {}
18173
+
18174
+ # Set Headers
18175
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18176
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18177
+ path_template = '{nextLink}'
18178
+ options = {
18179
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18180
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18181
+ headers: request_headers.merge(custom_headers || {})
18182
+ }
18183
+
18184
+ request_url = @base_url || @client.base_url
18185
+
18186
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18187
+ promise = request.run_promise do |req|
18188
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18189
+ end
18190
+
18191
+ promise = promise.then do |http_response|
18192
+ status_code = http_response.status
18193
+ response_content = http_response.body
18194
+ unless status_code == 200
18195
+ error_model = JSON.load(response_content)
18196
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18197
+ end
18198
+
18199
+ # Create Result
18200
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18201
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18202
+ # Deserialize Response
18203
+ if status_code == 200
18204
+ begin
18205
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18206
+ result_mapper = DeletedSiteCollection.mapper()
18207
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18208
+ rescue Exception => e
18209
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18210
+ end
18211
+ end
18212
+
18213
+ result
18214
+ end
18215
+
18216
+ promise.execute
18217
+ end
18218
+
18219
+ #
18220
+ # List deployments
18221
+ #
18222
+ # @param next_page_link [String] The NextLink from the previous successful
18223
+ # call to List operation.
18224
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18225
+ # will be added to the HTTP request.
18226
+ #
18227
+ # @return [DeploymentCollection] operation results.
18228
+ #
18229
+ def get_deployments_next(next_page_link, custom_headers = nil)
18230
+ response = get_deployments_next_async(next_page_link, custom_headers).value!
18231
+ response.body unless response.nil?
18232
+ end
18233
+
18234
+ #
18235
+ # List deployments
18236
+ #
18237
+ # @param next_page_link [String] The NextLink from the previous successful
18238
+ # call to List operation.
18239
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18240
+ # will be added to the HTTP request.
18241
+ #
18242
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18243
+ #
18244
+ def get_deployments_next_with_http_info(next_page_link, custom_headers = nil)
18245
+ get_deployments_next_async(next_page_link, custom_headers).value!
18246
+ end
18247
+
18248
+ #
18249
+ # List deployments
18250
+ #
18251
+ # @param next_page_link [String] The NextLink from the previous successful
18252
+ # call to List operation.
18253
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18254
+ # to the HTTP request.
18255
+ #
18256
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18257
+ #
18258
+ def get_deployments_next_async(next_page_link, custom_headers = nil)
18259
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18260
+
18261
+
18262
+ request_headers = {}
18263
+
18264
+ # Set Headers
18265
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18266
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18267
+ path_template = '{nextLink}'
18268
+ options = {
18269
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18270
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18271
+ headers: request_headers.merge(custom_headers || {})
18272
+ }
18273
+
18274
+ request_url = @base_url || @client.base_url
18275
+
18276
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18277
+ promise = request.run_promise do |req|
18278
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18279
+ end
18280
+
18281
+ promise = promise.then do |http_response|
18282
+ status_code = http_response.status
18283
+ response_content = http_response.body
18284
+ unless status_code == 200
18285
+ error_model = JSON.load(response_content)
18286
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18287
+ end
18288
+
18289
+ # Create Result
18290
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18291
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18292
+ # Deserialize Response
18293
+ if status_code == 200
18294
+ begin
18295
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18296
+ result_mapper = DeploymentCollection.mapper()
18297
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18298
+ rescue Exception => e
18299
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18300
+ end
18301
+ end
18302
+
18303
+ result
18304
+ end
18305
+
18306
+ promise.execute
18307
+ end
18308
+
18309
+ #
18310
+ # List deployments
18311
+ #
18312
+ # @param next_page_link [String] The NextLink from the previous successful
18313
+ # call to List operation.
18314
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18315
+ # will be added to the HTTP request.
18316
+ #
18317
+ # @return [DeploymentCollection] operation results.
18318
+ #
18319
+ def get_deployments_slot_next(next_page_link, custom_headers = nil)
18320
+ response = get_deployments_slot_next_async(next_page_link, custom_headers).value!
18321
+ response.body unless response.nil?
18322
+ end
18323
+
18324
+ #
18325
+ # List deployments
18326
+ #
18327
+ # @param next_page_link [String] The NextLink from the previous successful
18328
+ # call to List operation.
18329
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18330
+ # will be added to the HTTP request.
18331
+ #
18332
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18333
+ #
18334
+ def get_deployments_slot_next_with_http_info(next_page_link, custom_headers = nil)
18335
+ get_deployments_slot_next_async(next_page_link, custom_headers).value!
18336
+ end
18337
+
18338
+ #
18339
+ # List deployments
18340
+ #
18341
+ # @param next_page_link [String] The NextLink from the previous successful
18342
+ # call to List operation.
18343
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18344
+ # to the HTTP request.
18345
+ #
18346
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18347
+ #
18348
+ def get_deployments_slot_next_async(next_page_link, custom_headers = nil)
18349
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18350
+
18351
+
18352
+ request_headers = {}
18353
+
18354
+ # Set Headers
18355
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18356
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18357
+ path_template = '{nextLink}'
18358
+ options = {
18359
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18360
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18361
+ headers: request_headers.merge(custom_headers || {})
18362
+ }
18363
+
18364
+ request_url = @base_url || @client.base_url
18365
+
18366
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18367
+ promise = request.run_promise do |req|
18368
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18369
+ end
18370
+
18371
+ promise = promise.then do |http_response|
18372
+ status_code = http_response.status
18373
+ response_content = http_response.body
18374
+ unless status_code == 200
18375
+ error_model = JSON.load(response_content)
18376
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18377
+ end
18378
+
18379
+ # Create Result
18380
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18381
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18382
+ # Deserialize Response
18383
+ if status_code == 200
18384
+ begin
18385
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18386
+ result_mapper = DeploymentCollection.mapper()
18387
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18388
+ rescue Exception => e
18389
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18390
+ end
18391
+ end
18392
+
18393
+ result
18394
+ end
18395
+
18396
+ promise.execute
18397
+ end
18398
+
18399
+ #
18400
+ # List deployments
18401
+ #
18402
+ # @param next_page_link [String] The NextLink from the previous successful
18403
+ # call to List operation.
18404
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18405
+ # will be added to the HTTP request.
18406
+ #
18407
+ # @return [DeploymentCollection] operation results.
18408
+ #
18409
+ def get_instance_deployments_next(next_page_link, custom_headers = nil)
18410
+ response = get_instance_deployments_next_async(next_page_link, custom_headers).value!
18411
+ response.body unless response.nil?
18412
+ end
18413
+
18414
+ #
18415
+ # List deployments
18416
+ #
18417
+ # @param next_page_link [String] The NextLink from the previous successful
18418
+ # call to List operation.
18419
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18420
+ # will be added to the HTTP request.
18421
+ #
18422
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18423
+ #
18424
+ def get_instance_deployments_next_with_http_info(next_page_link, custom_headers = nil)
18425
+ get_instance_deployments_next_async(next_page_link, custom_headers).value!
18426
+ end
18427
+
18428
+ #
18429
+ # List deployments
18430
+ #
18431
+ # @param next_page_link [String] The NextLink from the previous successful
18432
+ # call to List operation.
18433
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18434
+ # to the HTTP request.
18435
+ #
18436
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18437
+ #
18438
+ def get_instance_deployments_next_async(next_page_link, custom_headers = nil)
18439
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18440
+
18441
+
18442
+ request_headers = {}
18443
+
18444
+ # Set Headers
18445
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18446
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18447
+ path_template = '{nextLink}'
18448
+ options = {
18449
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18450
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18451
+ headers: request_headers.merge(custom_headers || {})
18452
+ }
18453
+
18454
+ request_url = @base_url || @client.base_url
18455
+
18456
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18457
+ promise = request.run_promise do |req|
18458
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18459
+ end
18460
+
18461
+ promise = promise.then do |http_response|
18462
+ status_code = http_response.status
18463
+ response_content = http_response.body
18464
+ unless status_code == 200
18465
+ error_model = JSON.load(response_content)
18466
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18467
+ end
18468
+
18469
+ # Create Result
18470
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18471
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18472
+ # Deserialize Response
18473
+ if status_code == 200
18474
+ begin
18475
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18476
+ result_mapper = DeploymentCollection.mapper()
18477
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18478
+ rescue Exception => e
18479
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18480
+ end
18481
+ end
18482
+
18483
+ result
18484
+ end
18485
+
18486
+ promise.execute
18487
+ end
18488
+
18489
+ #
18490
+ # List deployments
18491
+ #
18492
+ # @param next_page_link [String] The NextLink from the previous successful
18493
+ # call to List operation.
18494
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18495
+ # will be added to the HTTP request.
18496
+ #
18497
+ # @return [DeploymentCollection] operation results.
18498
+ #
18499
+ def get_instance_deployments_slot_next(next_page_link, custom_headers = nil)
18500
+ response = get_instance_deployments_slot_next_async(next_page_link, custom_headers).value!
18501
+ response.body unless response.nil?
18502
+ end
18503
+
18504
+ #
18505
+ # List deployments
18506
+ #
18507
+ # @param next_page_link [String] The NextLink from the previous successful
18508
+ # call to List operation.
18509
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18510
+ # will be added to the HTTP request.
18511
+ #
18512
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18513
+ #
18514
+ def get_instance_deployments_slot_next_with_http_info(next_page_link, custom_headers = nil)
18515
+ get_instance_deployments_slot_next_async(next_page_link, custom_headers).value!
18516
+ end
18517
+
18518
+ #
18519
+ # List deployments
18520
+ #
18521
+ # @param next_page_link [String] The NextLink from the previous successful
18522
+ # call to List operation.
18523
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18524
+ # to the HTTP request.
18525
+ #
18526
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18527
+ #
18528
+ def get_instance_deployments_slot_next_async(next_page_link, custom_headers = nil)
18529
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18530
+
18531
+
18532
+ request_headers = {}
18533
+
18534
+ # Set Headers
18535
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18536
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18537
+ path_template = '{nextLink}'
18538
+ options = {
18539
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18540
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18541
+ headers: request_headers.merge(custom_headers || {})
18542
+ }
18543
+
18544
+ request_url = @base_url || @client.base_url
18545
+
18546
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18547
+ promise = request.run_promise do |req|
18548
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18549
+ end
18550
+
18551
+ promise = promise.then do |http_response|
18552
+ status_code = http_response.status
18553
+ response_content = http_response.body
18554
+ unless status_code == 200
18555
+ error_model = JSON.load(response_content)
18556
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18557
+ end
18558
+
18559
+ # Create Result
18560
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18561
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18562
+ # Deserialize Response
18563
+ if status_code == 200
18564
+ begin
18565
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18566
+ result_mapper = DeploymentCollection.mapper()
18567
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18568
+ rescue Exception => e
18569
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18570
+ end
18571
+ end
18572
+
18573
+ result
18574
+ end
18575
+
18576
+ promise.execute
18577
+ end
18578
+
18579
+ #
18580
+ # Gets all instance of a web app
18581
+ #
18582
+ # @param next_page_link [String] The NextLink from the previous successful
18583
+ # call to List operation.
18584
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18585
+ # will be added to the HTTP request.
18586
+ #
18587
+ # @return [SiteInstanceCollection] operation results.
18588
+ #
18589
+ def get_site_instance_identifiers_next(next_page_link, custom_headers = nil)
18590
+ response = get_site_instance_identifiers_next_async(next_page_link, custom_headers).value!
18591
+ response.body unless response.nil?
18592
+ end
18593
+
18594
+ #
18595
+ # Gets all instance of a web app
18596
+ #
18597
+ # @param next_page_link [String] The NextLink from the previous successful
18598
+ # call to List operation.
18599
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18600
+ # will be added to the HTTP request.
18601
+ #
18602
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18603
+ #
18604
+ def get_site_instance_identifiers_next_with_http_info(next_page_link, custom_headers = nil)
18605
+ get_site_instance_identifiers_next_async(next_page_link, custom_headers).value!
18606
+ end
18607
+
18608
+ #
18609
+ # Gets all instance of a web app
18610
+ #
18611
+ # @param next_page_link [String] The NextLink from the previous successful
18612
+ # call to List operation.
18613
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18614
+ # to the HTTP request.
18615
+ #
18616
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18617
+ #
18618
+ def get_site_instance_identifiers_next_async(next_page_link, custom_headers = nil)
18619
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18620
+
18621
+
18622
+ request_headers = {}
18623
+
18624
+ # Set Headers
18625
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18626
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18627
+ path_template = '{nextLink}'
18628
+ options = {
18629
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18630
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18631
+ headers: request_headers.merge(custom_headers || {})
18632
+ }
18633
+
18634
+ request_url = @base_url || @client.base_url
18635
+
18636
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18637
+ promise = request.run_promise do |req|
18638
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18639
+ end
18640
+
18641
+ promise = promise.then do |http_response|
18642
+ status_code = http_response.status
18643
+ response_content = http_response.body
18644
+ unless status_code == 200
18645
+ error_model = JSON.load(response_content)
18646
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18647
+ end
18648
+
18649
+ # Create Result
18650
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18651
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18652
+ # Deserialize Response
18653
+ if status_code == 200
18654
+ begin
18655
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18656
+ result_mapper = SiteInstanceCollection.mapper()
18657
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18658
+ rescue Exception => e
18659
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18660
+ end
18661
+ end
18662
+
18663
+ result
18664
+ end
18665
+
18666
+ promise.execute
18667
+ end
18668
+
18669
+ #
18670
+ # Gets all instance of a web app
18671
+ #
18672
+ # @param next_page_link [String] The NextLink from the previous successful
18673
+ # call to List operation.
18674
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18675
+ # will be added to the HTTP request.
18676
+ #
18677
+ # @return [SiteInstanceCollection] operation results.
18678
+ #
18679
+ def get_site_instance_identifiers_slot_next(next_page_link, custom_headers = nil)
18680
+ response = get_site_instance_identifiers_slot_next_async(next_page_link, custom_headers).value!
18681
+ response.body unless response.nil?
18682
+ end
18683
+
18684
+ #
18685
+ # Gets all instance of a web app
18686
+ #
18687
+ # @param next_page_link [String] The NextLink from the previous successful
18688
+ # call to List operation.
18689
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18690
+ # will be added to the HTTP request.
18691
+ #
18692
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18693
+ #
18694
+ def get_site_instance_identifiers_slot_next_with_http_info(next_page_link, custom_headers = nil)
18695
+ get_site_instance_identifiers_slot_next_async(next_page_link, custom_headers).value!
18696
+ end
18697
+
18698
+ #
18699
+ # Gets all instance of a web app
18700
+ #
18701
+ # @param next_page_link [String] The NextLink from the previous successful
18702
+ # call to List operation.
18703
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18704
+ # to the HTTP request.
18705
+ #
18706
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18707
+ #
18708
+ def get_site_instance_identifiers_slot_next_async(next_page_link, custom_headers = nil)
18709
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18710
+
18711
+
18712
+ request_headers = {}
18713
+
18714
+ # Set Headers
18715
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18716
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18717
+ path_template = '{nextLink}'
18718
+ options = {
18719
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18720
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18721
+ headers: request_headers.merge(custom_headers || {})
18722
+ }
18723
+
18724
+ request_url = @base_url || @client.base_url
18725
+
18726
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18727
+ promise = request.run_promise do |req|
18728
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18729
+ end
18730
+
18731
+ promise = promise.then do |http_response|
18732
+ status_code = http_response.status
18733
+ response_content = http_response.body
18734
+ unless status_code == 200
18735
+ error_model = JSON.load(response_content)
18736
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18737
+ end
18738
+
18739
+ # Create Result
18740
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18741
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18742
+ # Deserialize Response
18743
+ if status_code == 200
18744
+ begin
18745
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18746
+ result_mapper = SiteInstanceCollection.mapper()
18747
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18748
+ rescue Exception => e
18749
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18750
+ end
18751
+ end
18752
+
18753
+ result
18754
+ end
18755
+
18756
+ promise.execute
18757
+ end
18758
+
18759
+ #
18760
+ # Get web app hostname bindings
18761
+ #
18762
+ # @param next_page_link [String] The NextLink from the previous successful
18763
+ # call to List operation.
18764
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18765
+ # will be added to the HTTP request.
18766
+ #
18767
+ # @return [HostNameBindingCollection] operation results.
18768
+ #
18769
+ def get_site_host_name_bindings_next(next_page_link, custom_headers = nil)
18770
+ response = get_site_host_name_bindings_next_async(next_page_link, custom_headers).value!
18771
+ response.body unless response.nil?
18772
+ end
18773
+
18774
+ #
18775
+ # Get web app hostname bindings
18776
+ #
18777
+ # @param next_page_link [String] The NextLink from the previous successful
18778
+ # call to List operation.
18779
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18780
+ # will be added to the HTTP request.
18781
+ #
18782
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18783
+ #
18784
+ def get_site_host_name_bindings_next_with_http_info(next_page_link, custom_headers = nil)
18785
+ get_site_host_name_bindings_next_async(next_page_link, custom_headers).value!
18786
+ end
18787
+
18788
+ #
18789
+ # Get web app hostname bindings
18790
+ #
18791
+ # @param next_page_link [String] The NextLink from the previous successful
18792
+ # call to List operation.
18793
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18794
+ # to the HTTP request.
18795
+ #
18796
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18797
+ #
18798
+ def get_site_host_name_bindings_next_async(next_page_link, custom_headers = nil)
18799
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18800
+
18801
+
18802
+ request_headers = {}
18803
+
18804
+ # Set Headers
18805
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18806
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18807
+ path_template = '{nextLink}'
18808
+ options = {
18809
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18810
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18811
+ headers: request_headers.merge(custom_headers || {})
18812
+ }
18813
+
18814
+ request_url = @base_url || @client.base_url
18815
+
18816
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18817
+ promise = request.run_promise do |req|
18818
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18819
+ end
18820
+
18821
+ promise = promise.then do |http_response|
18822
+ status_code = http_response.status
18823
+ response_content = http_response.body
18824
+ unless status_code == 200
18825
+ error_model = JSON.load(response_content)
18826
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18827
+ end
18828
+
18829
+ # Create Result
18830
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18831
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18832
+ # Deserialize Response
18833
+ if status_code == 200
18834
+ begin
18835
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18836
+ result_mapper = HostNameBindingCollection.mapper()
18837
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18838
+ rescue Exception => e
18839
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18840
+ end
18841
+ end
18842
+
18843
+ result
18844
+ end
18845
+
18846
+ promise.execute
18847
+ end
18848
+
18849
+ #
18850
+ # Get web app hostname bindings
18851
+ #
18852
+ # @param next_page_link [String] The NextLink from the previous successful
18853
+ # call to List operation.
18854
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18855
+ # will be added to the HTTP request.
18856
+ #
18857
+ # @return [HostNameBindingCollection] operation results.
18858
+ #
18859
+ def get_site_host_name_bindings_slot_next(next_page_link, custom_headers = nil)
18860
+ response = get_site_host_name_bindings_slot_next_async(next_page_link, custom_headers).value!
18861
+ response.body unless response.nil?
18862
+ end
18863
+
18864
+ #
18865
+ # Get web app hostname bindings
18866
+ #
18867
+ # @param next_page_link [String] The NextLink from the previous successful
18868
+ # call to List operation.
18869
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18870
+ # will be added to the HTTP request.
18871
+ #
18872
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18873
+ #
18874
+ def get_site_host_name_bindings_slot_next_with_http_info(next_page_link, custom_headers = nil)
18875
+ get_site_host_name_bindings_slot_next_async(next_page_link, custom_headers).value!
18876
+ end
18877
+
18878
+ #
18879
+ # Get web app hostname bindings
18880
+ #
18881
+ # @param next_page_link [String] The NextLink from the previous successful
18882
+ # call to List operation.
18883
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18884
+ # to the HTTP request.
18885
+ #
18886
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18887
+ #
18888
+ def get_site_host_name_bindings_slot_next_async(next_page_link, custom_headers = nil)
18889
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18890
+
18891
+
18892
+ request_headers = {}
18893
+
18894
+ # Set Headers
18895
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18896
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18897
+ path_template = '{nextLink}'
18898
+ options = {
18899
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18900
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18901
+ headers: request_headers.merge(custom_headers || {})
18902
+ }
18903
+
18904
+ request_url = @base_url || @client.base_url
18905
+
18906
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18907
+ promise = request.run_promise do |req|
18908
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18909
+ end
18910
+
18911
+ promise = promise.then do |http_response|
18912
+ status_code = http_response.status
18913
+ response_content = http_response.body
18914
+ unless status_code == 200
18915
+ error_model = JSON.load(response_content)
18916
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
18917
+ end
18918
+
18919
+ # Create Result
18920
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
18921
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
18922
+ # Deserialize Response
18923
+ if status_code == 200
18924
+ begin
18925
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
18926
+ result_mapper = HostNameBindingCollection.mapper()
18927
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
18928
+ rescue Exception => e
18929
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
18930
+ end
18931
+ end
18932
+
18933
+ result
18934
+ end
18935
+
18936
+ promise.execute
18937
+ end
18938
+
18939
+ #
18940
+ # Lists all available backups for web app
18941
+ #
18942
+ # @param next_page_link [String] The NextLink from the previous successful
18943
+ # call to List operation.
18944
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18945
+ # will be added to the HTTP request.
18946
+ #
18947
+ # @return [BackupItemCollection] operation results.
18948
+ #
18949
+ def list_site_backups_next(next_page_link, custom_headers = nil)
18950
+ response = list_site_backups_next_async(next_page_link, custom_headers).value!
18951
+ response.body unless response.nil?
18952
+ end
18953
+
18954
+ #
18955
+ # Lists all available backups for web app
18956
+ #
18957
+ # @param next_page_link [String] The NextLink from the previous successful
18958
+ # call to List operation.
18959
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
18960
+ # will be added to the HTTP request.
18961
+ #
18962
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
18963
+ #
18964
+ def list_site_backups_next_with_http_info(next_page_link, custom_headers = nil)
18965
+ list_site_backups_next_async(next_page_link, custom_headers).value!
18966
+ end
18967
+
18968
+ #
18969
+ # Lists all available backups for web app
18970
+ #
18971
+ # @param next_page_link [String] The NextLink from the previous successful
18972
+ # call to List operation.
18973
+ # @param [Hash{String => String}] A hash of custom headers that will be added
18974
+ # to the HTTP request.
18975
+ #
18976
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
18977
+ #
18978
+ def list_site_backups_next_async(next_page_link, custom_headers = nil)
18979
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
18980
+
18981
+
18982
+ request_headers = {}
18983
+
18984
+ # Set Headers
18985
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
18986
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
18987
+ path_template = '{nextLink}'
18988
+ options = {
18989
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
18990
+ skip_encoding_path_params: {'nextLink' => next_page_link},
18991
+ headers: request_headers.merge(custom_headers || {})
18992
+ }
18993
+
18994
+ request_url = @base_url || @client.base_url
18995
+
18996
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
18997
+ promise = request.run_promise do |req|
18998
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
18999
+ end
19000
+
19001
+ promise = promise.then do |http_response|
19002
+ status_code = http_response.status
19003
+ response_content = http_response.body
19004
+ unless status_code == 200
19005
+ error_model = JSON.load(response_content)
19006
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
19007
+ end
19008
+
19009
+ # Create Result
19010
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
19011
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
19012
+ # Deserialize Response
19013
+ if status_code == 200
19014
+ begin
19015
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
19016
+ result_mapper = BackupItemCollection.mapper()
19017
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
19018
+ rescue Exception => e
19019
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
19020
+ end
19021
+ end
19022
+
19023
+ result
19024
+ end
19025
+
19026
+ promise.execute
19027
+ end
19028
+
19029
+ #
19030
+ # Lists all available backups for web app
19031
+ #
19032
+ # @param next_page_link [String] The NextLink from the previous successful
19033
+ # call to List operation.
19034
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19035
+ # will be added to the HTTP request.
19036
+ #
19037
+ # @return [BackupItemCollection] operation results.
19038
+ #
19039
+ def list_site_backups_slot_next(next_page_link, custom_headers = nil)
19040
+ response = list_site_backups_slot_next_async(next_page_link, custom_headers).value!
19041
+ response.body unless response.nil?
19042
+ end
19043
+
19044
+ #
19045
+ # Lists all available backups for web app
19046
+ #
19047
+ # @param next_page_link [String] The NextLink from the previous successful
19048
+ # call to List operation.
19049
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19050
+ # will be added to the HTTP request.
19051
+ #
19052
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
19053
+ #
19054
+ def list_site_backups_slot_next_with_http_info(next_page_link, custom_headers = nil)
19055
+ list_site_backups_slot_next_async(next_page_link, custom_headers).value!
19056
+ end
19057
+
19058
+ #
19059
+ # Lists all available backups for web app
19060
+ #
19061
+ # @param next_page_link [String] The NextLink from the previous successful
19062
+ # call to List operation.
19063
+ # @param [Hash{String => String}] A hash of custom headers that will be added
19064
+ # to the HTTP request.
19065
+ #
19066
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
19067
+ #
19068
+ def list_site_backups_slot_next_async(next_page_link, custom_headers = nil)
19069
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
19070
+
19071
+
19072
+ request_headers = {}
19073
+
19074
+ # Set Headers
19075
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
19076
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
19077
+ path_template = '{nextLink}'
19078
+ options = {
19079
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
19080
+ skip_encoding_path_params: {'nextLink' => next_page_link},
19081
+ headers: request_headers.merge(custom_headers || {})
19082
+ }
19083
+
19084
+ request_url = @base_url || @client.base_url
19085
+
19086
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
19087
+ promise = request.run_promise do |req|
19088
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
19089
+ end
19090
+
19091
+ promise = promise.then do |http_response|
19092
+ status_code = http_response.status
19093
+ response_content = http_response.body
19094
+ unless status_code == 200
19095
+ error_model = JSON.load(response_content)
19096
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
19097
+ end
19098
+
19099
+ # Create Result
19100
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
19101
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
19102
+ # Deserialize Response
19103
+ if status_code == 200
19104
+ begin
19105
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
19106
+ result_mapper = BackupItemCollection.mapper()
19107
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
19108
+ rescue Exception => e
19109
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
19110
+ end
19111
+ end
19112
+
19113
+ result
19114
+ end
19115
+
19116
+ promise.execute
19117
+ end
19118
+
19119
+ #
19120
+ # Gets the quota usage numbers for web app
19121
+ #
19122
+ # @param next_page_link [String] The NextLink from the previous successful
19123
+ # call to List operation.
19124
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19125
+ # will be added to the HTTP request.
19126
+ #
19127
+ # @return [CsmUsageQuotaCollection] operation results.
19128
+ #
19129
+ def get_site_usages_next(next_page_link, custom_headers = nil)
19130
+ response = get_site_usages_next_async(next_page_link, custom_headers).value!
19131
+ response.body unless response.nil?
19132
+ end
19133
+
19134
+ #
19135
+ # Gets the quota usage numbers for web app
19136
+ #
19137
+ # @param next_page_link [String] The NextLink from the previous successful
19138
+ # call to List operation.
19139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19140
+ # will be added to the HTTP request.
19141
+ #
19142
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
19143
+ #
19144
+ def get_site_usages_next_with_http_info(next_page_link, custom_headers = nil)
19145
+ get_site_usages_next_async(next_page_link, custom_headers).value!
19146
+ end
19147
+
19148
+ #
19149
+ # Gets the quota usage numbers for web app
19150
+ #
19151
+ # @param next_page_link [String] The NextLink from the previous successful
19152
+ # call to List operation.
19153
+ # @param [Hash{String => String}] A hash of custom headers that will be added
19154
+ # to the HTTP request.
19155
+ #
19156
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
19157
+ #
19158
+ def get_site_usages_next_async(next_page_link, custom_headers = nil)
19159
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
19160
+
19161
+
19162
+ request_headers = {}
19163
+
19164
+ # Set Headers
19165
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
19166
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
19167
+ path_template = '{nextLink}'
19168
+ options = {
19169
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
19170
+ skip_encoding_path_params: {'nextLink' => next_page_link},
19171
+ headers: request_headers.merge(custom_headers || {})
19172
+ }
19173
+
19174
+ request_url = @base_url || @client.base_url
19175
+
19176
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
19177
+ promise = request.run_promise do |req|
19178
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
19179
+ end
19180
+
19181
+ promise = promise.then do |http_response|
19182
+ status_code = http_response.status
19183
+ response_content = http_response.body
19184
+ unless status_code == 200
19185
+ error_model = JSON.load(response_content)
19186
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
19187
+ end
19188
+
19189
+ # Create Result
19190
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
19191
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
19192
+ # Deserialize Response
19193
+ if status_code == 200
19194
+ begin
19195
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
19196
+ result_mapper = CsmUsageQuotaCollection.mapper()
19197
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
19198
+ rescue Exception => e
19199
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
19200
+ end
19201
+ end
19202
+
19203
+ result
19204
+ end
19205
+
19206
+ promise.execute
19207
+ end
19208
+
19209
+ #
19210
+ # Gets the quota usage numbers for web app
19211
+ #
19212
+ # @param next_page_link [String] The NextLink from the previous successful
19213
+ # call to List operation.
19214
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19215
+ # will be added to the HTTP request.
19216
+ #
19217
+ # @return [CsmUsageQuotaCollection] operation results.
19218
+ #
19219
+ def get_site_usages_slot_next(next_page_link, custom_headers = nil)
19220
+ response = get_site_usages_slot_next_async(next_page_link, custom_headers).value!
19221
+ response.body unless response.nil?
19222
+ end
19223
+
19224
+ #
19225
+ # Gets the quota usage numbers for web app
19226
+ #
19227
+ # @param next_page_link [String] The NextLink from the previous successful
19228
+ # call to List operation.
19229
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19230
+ # will be added to the HTTP request.
19231
+ #
19232
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
19233
+ #
19234
+ def get_site_usages_slot_next_with_http_info(next_page_link, custom_headers = nil)
19235
+ get_site_usages_slot_next_async(next_page_link, custom_headers).value!
19236
+ end
19237
+
19238
+ #
19239
+ # Gets the quota usage numbers for web app
19240
+ #
19241
+ # @param next_page_link [String] The NextLink from the previous successful
19242
+ # call to List operation.
19243
+ # @param [Hash{String => String}] A hash of custom headers that will be added
19244
+ # to the HTTP request.
19245
+ #
19246
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
19247
+ #
19248
+ def get_site_usages_slot_next_async(next_page_link, custom_headers = nil)
19249
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
19250
+
19251
+
19252
+ request_headers = {}
19253
+
19254
+ # Set Headers
19255
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
19256
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
19257
+ path_template = '{nextLink}'
19258
+ options = {
19259
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
19260
+ skip_encoding_path_params: {'nextLink' => next_page_link},
19261
+ headers: request_headers.merge(custom_headers || {})
19262
+ }
19263
+
19264
+ request_url = @base_url || @client.base_url
19265
+
19266
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
19267
+ promise = request.run_promise do |req|
19268
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
19269
+ end
19270
+
19271
+ promise = promise.then do |http_response|
19272
+ status_code = http_response.status
19273
+ response_content = http_response.body
19274
+ unless status_code == 200
19275
+ error_model = JSON.load(response_content)
19276
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
19277
+ end
19278
+
19279
+ # Create Result
19280
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
19281
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
19282
+ # Deserialize Response
19283
+ if status_code == 200
19284
+ begin
19285
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
19286
+ result_mapper = CsmUsageQuotaCollection.mapper()
19287
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
19288
+ rescue Exception => e
19289
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
19290
+ end
19291
+ end
19292
+
19293
+ result
19294
+ end
19295
+
19296
+ promise.execute
19297
+ end
19298
+
19299
+ #
19300
+ # Gets metrics for web app
19301
+ #
19302
+ # @param next_page_link [String] The NextLink from the previous successful
19303
+ # call to List operation.
19304
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19305
+ # will be added to the HTTP request.
19306
+ #
19307
+ # @return [ResourceMetricCollection] operation results.
19308
+ #
19309
+ def get_site_metrics_next(next_page_link, custom_headers = nil)
19310
+ response = get_site_metrics_next_async(next_page_link, custom_headers).value!
19311
+ response.body unless response.nil?
19312
+ end
19313
+
19314
+ #
19315
+ # Gets metrics for web app
19316
+ #
19317
+ # @param next_page_link [String] The NextLink from the previous successful
19318
+ # call to List operation.
19319
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19320
+ # will be added to the HTTP request.
19321
+ #
19322
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
19323
+ #
19324
+ def get_site_metrics_next_with_http_info(next_page_link, custom_headers = nil)
19325
+ get_site_metrics_next_async(next_page_link, custom_headers).value!
19326
+ end
19327
+
19328
+ #
19329
+ # Gets metrics for web app
19330
+ #
19331
+ # @param next_page_link [String] The NextLink from the previous successful
19332
+ # call to List operation.
19333
+ # @param [Hash{String => String}] A hash of custom headers that will be added
19334
+ # to the HTTP request.
19335
+ #
19336
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
19337
+ #
19338
+ def get_site_metrics_next_async(next_page_link, custom_headers = nil)
19339
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
19340
+
19341
+
19342
+ request_headers = {}
19343
+
19344
+ # Set Headers
19345
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
19346
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
19347
+ path_template = '{nextLink}'
19348
+ options = {
19349
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
19350
+ skip_encoding_path_params: {'nextLink' => next_page_link},
19351
+ headers: request_headers.merge(custom_headers || {})
19352
+ }
19353
+
19354
+ request_url = @base_url || @client.base_url
19355
+
19356
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
19357
+ promise = request.run_promise do |req|
19358
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
19359
+ end
19360
+
19361
+ promise = promise.then do |http_response|
19362
+ status_code = http_response.status
19363
+ response_content = http_response.body
19364
+ unless status_code == 200
19365
+ error_model = JSON.load(response_content)
19366
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
19367
+ end
19368
+
19369
+ # Create Result
19370
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
19371
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
19372
+ # Deserialize Response
19373
+ if status_code == 200
19374
+ begin
19375
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
19376
+ result_mapper = ResourceMetricCollection.mapper()
19377
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
19378
+ rescue Exception => e
19379
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
19380
+ end
19381
+ end
19382
+
19383
+ result
19384
+ end
19385
+
19386
+ promise.execute
19387
+ end
19388
+
19389
+ #
19390
+ # Gets metrics for web app
19391
+ #
19392
+ # @param next_page_link [String] The NextLink from the previous successful
19393
+ # call to List operation.
19394
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19395
+ # will be added to the HTTP request.
19396
+ #
19397
+ # @return [ResourceMetricCollection] operation results.
19398
+ #
19399
+ def get_site_metrics_slot_next(next_page_link, custom_headers = nil)
19400
+ response = get_site_metrics_slot_next_async(next_page_link, custom_headers).value!
19401
+ response.body unless response.nil?
19402
+ end
19403
+
19404
+ #
19405
+ # Gets metrics for web app
19406
+ #
19407
+ # @param next_page_link [String] The NextLink from the previous successful
19408
+ # call to List operation.
19409
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19410
+ # will be added to the HTTP request.
19411
+ #
19412
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
19413
+ #
19414
+ def get_site_metrics_slot_next_with_http_info(next_page_link, custom_headers = nil)
19415
+ get_site_metrics_slot_next_async(next_page_link, custom_headers).value!
19416
+ end
19417
+
19418
+ #
19419
+ # Gets metrics for web app
19420
+ #
19421
+ # @param next_page_link [String] The NextLink from the previous successful
19422
+ # call to List operation.
19423
+ # @param [Hash{String => String}] A hash of custom headers that will be added
19424
+ # to the HTTP request.
19425
+ #
19426
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
19427
+ #
19428
+ def get_site_metrics_slot_next_async(next_page_link, custom_headers = nil)
19429
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
19430
+
19431
+
19432
+ request_headers = {}
19433
+
19434
+ # Set Headers
19435
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
19436
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
19437
+ path_template = '{nextLink}'
19438
+ options = {
19439
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
19440
+ skip_encoding_path_params: {'nextLink' => next_page_link},
19441
+ headers: request_headers.merge(custom_headers || {})
19442
+ }
19443
+
19444
+ request_url = @base_url || @client.base_url
19445
+
19446
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
19447
+ promise = request.run_promise do |req|
19448
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
19449
+ end
19450
+
19451
+ promise = promise.then do |http_response|
19452
+ status_code = http_response.status
19453
+ response_content = http_response.body
19454
+ unless status_code == 200
19455
+ error_model = JSON.load(response_content)
19456
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
19457
+ end
19458
+
19459
+ # Create Result
19460
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
19461
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
19462
+ # Deserialize Response
19463
+ if status_code == 200
19464
+ begin
19465
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
19466
+ result_mapper = ResourceMetricCollection.mapper()
19467
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
19468
+ rescue Exception => e
19469
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
19470
+ end
19471
+ end
19472
+
19473
+ result
19474
+ end
19475
+
19476
+ promise.execute
19477
+ end
19478
+
19479
+ #
19480
+ # Gets metric definitions for web app
19481
+ #
19482
+ # @param next_page_link [String] The NextLink from the previous successful
19483
+ # call to List operation.
19484
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19485
+ # will be added to the HTTP request.
19486
+ #
19487
+ # @return [MetricDefinitionCollection] operation results.
19488
+ #
19489
+ def get_site_metric_definitions_slot_next(next_page_link, custom_headers = nil)
19490
+ response = get_site_metric_definitions_slot_next_async(next_page_link, custom_headers).value!
19491
+ response.body unless response.nil?
19492
+ end
19493
+
19494
+ #
19495
+ # Gets metric definitions for web app
19496
+ #
19497
+ # @param next_page_link [String] The NextLink from the previous successful
19498
+ # call to List operation.
19499
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19500
+ # will be added to the HTTP request.
19501
+ #
19502
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
19503
+ #
19504
+ def get_site_metric_definitions_slot_next_with_http_info(next_page_link, custom_headers = nil)
19505
+ get_site_metric_definitions_slot_next_async(next_page_link, custom_headers).value!
19506
+ end
19507
+
19508
+ #
19509
+ # Gets metric definitions for web app
19510
+ #
19511
+ # @param next_page_link [String] The NextLink from the previous successful
19512
+ # call to List operation.
19513
+ # @param [Hash{String => String}] A hash of custom headers that will be added
19514
+ # to the HTTP request.
19515
+ #
19516
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
19517
+ #
19518
+ def get_site_metric_definitions_slot_next_async(next_page_link, custom_headers = nil)
19519
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
19520
+
19521
+
19522
+ request_headers = {}
19523
+
19524
+ # Set Headers
19525
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
19526
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
19527
+ path_template = '{nextLink}'
19528
+ options = {
19529
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
19530
+ skip_encoding_path_params: {'nextLink' => next_page_link},
19531
+ headers: request_headers.merge(custom_headers || {})
19532
+ }
19533
+
19534
+ request_url = @base_url || @client.base_url
19535
+
19536
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
19537
+ promise = request.run_promise do |req|
19538
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
19539
+ end
19540
+
19541
+ promise = promise.then do |http_response|
19542
+ status_code = http_response.status
19543
+ response_content = http_response.body
19544
+ unless status_code == 200
19545
+ error_model = JSON.load(response_content)
19546
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
19547
+ end
19548
+
19549
+ # Create Result
19550
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
19551
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
19552
+ # Deserialize Response
19553
+ if status_code == 200
19554
+ begin
19555
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
19556
+ result_mapper = MetricDefinitionCollection.mapper()
19557
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
19558
+ rescue Exception => e
19559
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
19560
+ end
19561
+ end
19562
+
19563
+ result
19564
+ end
19565
+
19566
+ promise.execute
19567
+ end
19568
+
19569
+ #
19570
+ # Gets metric definitions for web app
19571
+ #
19572
+ # @param next_page_link [String] The NextLink from the previous successful
19573
+ # call to List operation.
19574
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19575
+ # will be added to the HTTP request.
19576
+ #
19577
+ # @return [MetricDefinitionCollection] operation results.
19578
+ #
19579
+ def get_site_metric_definitions_next(next_page_link, custom_headers = nil)
19580
+ response = get_site_metric_definitions_next_async(next_page_link, custom_headers).value!
19581
+ response.body unless response.nil?
19582
+ end
19583
+
19584
+ #
19585
+ # Gets metric definitions for web app
19586
+ #
19587
+ # @param next_page_link [String] The NextLink from the previous successful
19588
+ # call to List operation.
19589
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
19590
+ # will be added to the HTTP request.
19591
+ #
19592
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
19593
+ #
19594
+ def get_site_metric_definitions_next_with_http_info(next_page_link, custom_headers = nil)
19595
+ get_site_metric_definitions_next_async(next_page_link, custom_headers).value!
19596
+ end
19597
+
19598
+ #
19599
+ # Gets metric definitions for web app
19600
+ #
19601
+ # @param next_page_link [String] The NextLink from the previous successful
19602
+ # call to List operation.
19603
+ # @param [Hash{String => String}] A hash of custom headers that will be added
19604
+ # to the HTTP request.
19605
+ #
19606
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
19607
+ #
19608
+ def get_site_metric_definitions_next_async(next_page_link, custom_headers = nil)
19609
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
19610
+
19611
+
19612
+ request_headers = {}
19613
+
19614
+ # Set Headers
19615
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
19616
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
19617
+ path_template = '{nextLink}'
19618
+ options = {
19619
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
19620
+ skip_encoding_path_params: {'nextLink' => next_page_link},
19621
+ headers: request_headers.merge(custom_headers || {})
19622
+ }
19623
+
19624
+ request_url = @base_url || @client.base_url
19625
+
19626
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
19627
+ promise = request.run_promise do |req|
19628
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
19629
+ end
19630
+
19631
+ promise = promise.then do |http_response|
19632
+ status_code = http_response.status
19633
+ response_content = http_response.body
19634
+ unless status_code == 200
19635
+ error_model = JSON.load(response_content)
19636
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
19637
+ end
19638
+
19639
+ # Create Result
19640
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
19641
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
19642
+ # Deserialize Response
19643
+ if status_code == 200
19644
+ begin
19645
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
19646
+ result_mapper = MetricDefinitionCollection.mapper()
19647
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
19648
+ rescue Exception => e
19649
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
19650
+ end
19651
+ end
19652
+
19653
+ result
19654
+ end
19655
+
19656
+ promise.execute
19657
+ end
19658
+
17256
19659
  end
17257
19660
  end