azure_mgmt_web 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/azure_mgmt_web.gemspec +1 -1
- data/lib/generated/azure_mgmt_web/certificate_orders.rb +234 -7
- data/lib/generated/azure_mgmt_web/certificates.rb +115 -4
- data/lib/generated/azure_mgmt_web/classic_mobile_services.rb +115 -4
- data/lib/generated/azure_mgmt_web/domains.rb +115 -4
- data/lib/generated/azure_mgmt_web/global.rb +793 -20
- data/lib/generated/azure_mgmt_web/global_certificate_order.rb +114 -4
- data/lib/generated/azure_mgmt_web/global_domain_registration.rb +229 -7
- data/lib/generated/azure_mgmt_web/global_resource_groups.rb +1 -1
- data/lib/generated/azure_mgmt_web/hosting_environments.rb +2388 -54
- data/lib/generated/azure_mgmt_web/managed_hosting_environments.rb +459 -11
- data/lib/generated/azure_mgmt_web/models/backup_item_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/certificate_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/certificate_order_certificate_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/certificate_order_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/classic_mobile_service_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/deleted_site_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/deployment_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/domain_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/geo_region_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/hosting_environment_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/managed_hosting_environment_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/metric_definition_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/server_farm_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/site_instance_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/sku_info_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/source_control_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/usage_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb +31 -0
- data/lib/generated/azure_mgmt_web/provider.rb +114 -4
- data/lib/generated/azure_mgmt_web/recommendations.rb +1 -1
- data/lib/generated/azure_mgmt_web/server_farms.rb +356 -10
- data/lib/generated/azure_mgmt_web/sites.rb +2471 -68
- data/lib/generated/azure_mgmt_web/top_level_domains.rb +230 -7
- data/lib/generated/azure_mgmt_web/usage_operations.rb +1 -1
- data/lib/generated/azure_mgmt_web/version.rb +1 -1
- data/lib/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
- metadata +4 -4
@@ -26,7 +26,7 @@ module Azure::ARM::Web
|
|
26
26
|
@client = client
|
27
27
|
end
|
28
28
|
|
29
|
-
# @return reference to the WebSiteManagementClient
|
29
|
+
# @return [WebSiteManagementClient] reference to the WebSiteManagementClient
|
30
30
|
attr_reader :client
|
31
31
|
|
32
32
|
#
|
@@ -428,11 +428,32 @@ module Azure::ARM::Web
|
|
428
428
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
429
429
|
# will be added to the HTTP request.
|
430
430
|
#
|
431
|
-
# @return [HostingEnvironmentCollection]
|
431
|
+
# @return [HostingEnvironmentCollection] which provide lazy access to pages of
|
432
|
+
# the response.
|
432
433
|
#
|
433
|
-
def
|
434
|
+
def get_managed_hosting_environments_as_lazy(resource_group_name, custom_headers = nil)
|
434
435
|
response = get_managed_hosting_environments_async(resource_group_name, custom_headers).value!
|
435
|
-
|
436
|
+
unless response.nil?
|
437
|
+
page = response.body
|
438
|
+
page.next_method = Proc.new do |next_link|
|
439
|
+
get_managed_hosting_environments_next_async(next_link, custom_headers)
|
440
|
+
end
|
441
|
+
page
|
442
|
+
end
|
443
|
+
end
|
444
|
+
|
445
|
+
#
|
446
|
+
# Get all managed hosting environments in a resource group.
|
447
|
+
#
|
448
|
+
# @param resource_group_name [String] Name of resource group
|
449
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
450
|
+
# will be added to the HTTP request.
|
451
|
+
#
|
452
|
+
# @return [Array<HostingEnvironment>] operation results.
|
453
|
+
#
|
454
|
+
def get_managed_hosting_environments(resource_group_name, custom_headers = nil)
|
455
|
+
first_page = get_managed_hosting_environments_as_lazy(resource_group_name, custom_headers)
|
456
|
+
first_page.get_all_items
|
436
457
|
end
|
437
458
|
|
438
459
|
#
|
@@ -703,7 +724,30 @@ module Azure::ARM::Web
|
|
703
724
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
704
725
|
# will be added to the HTTP request.
|
705
726
|
#
|
706
|
-
# @return [SiteCollection]
|
727
|
+
# @return [SiteCollection] which provide lazy access to pages of the response.
|
728
|
+
#
|
729
|
+
def get_managed_hosting_environment_sites_as_lazy(resource_group_name, name, properties_to_include = nil, custom_headers = nil)
|
730
|
+
response = get_managed_hosting_environment_sites_async(resource_group_name, name, properties_to_include, custom_headers).value!
|
731
|
+
unless response.nil?
|
732
|
+
page = response.body
|
733
|
+
page.next_method = Proc.new do |next_link|
|
734
|
+
get_managed_hosting_environment_sites_next_async(next_link, custom_headers)
|
735
|
+
end
|
736
|
+
page
|
737
|
+
end
|
738
|
+
end
|
739
|
+
|
740
|
+
#
|
741
|
+
# Get all sites on the managed hosting environment.
|
742
|
+
#
|
743
|
+
# @param resource_group_name [String] Name of resource group
|
744
|
+
# @param name [String] Name of managed hosting environment
|
745
|
+
# @param properties_to_include [String] Comma separated list of site
|
746
|
+
# properties to include
|
747
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
748
|
+
# will be added to the HTTP request.
|
749
|
+
#
|
750
|
+
# @return [Array<Site>] operation results.
|
707
751
|
#
|
708
752
|
def get_managed_hosting_environment_sites(resource_group_name, name, properties_to_include = nil, custom_headers = nil)
|
709
753
|
first_page = get_managed_hosting_environment_sites_as_lazy(resource_group_name, name, properties_to_include, custom_headers)
|
@@ -801,11 +845,33 @@ module Azure::ARM::Web
|
|
801
845
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
802
846
|
# will be added to the HTTP request.
|
803
847
|
#
|
804
|
-
# @return [ServerFarmCollection]
|
848
|
+
# @return [ServerFarmCollection] which provide lazy access to pages of the
|
849
|
+
# response.
|
805
850
|
#
|
806
|
-
def
|
851
|
+
def get_managed_hosting_environment_web_hosting_plans_as_lazy(resource_group_name, name, custom_headers = nil)
|
807
852
|
response = get_managed_hosting_environment_web_hosting_plans_async(resource_group_name, name, custom_headers).value!
|
808
|
-
|
853
|
+
unless response.nil?
|
854
|
+
page = response.body
|
855
|
+
page.next_method = Proc.new do |next_link|
|
856
|
+
get_managed_hosting_environment_web_hosting_plans_next_async(next_link, custom_headers)
|
857
|
+
end
|
858
|
+
page
|
859
|
+
end
|
860
|
+
end
|
861
|
+
|
862
|
+
#
|
863
|
+
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
864
|
+
#
|
865
|
+
# @param resource_group_name [String] Name of resource group
|
866
|
+
# @param name [String] Name of managed hosting environment
|
867
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
868
|
+
# will be added to the HTTP request.
|
869
|
+
#
|
870
|
+
# @return [Array<ServerFarmWithRichSku>] operation results.
|
871
|
+
#
|
872
|
+
def get_managed_hosting_environment_web_hosting_plans(resource_group_name, name, custom_headers = nil)
|
873
|
+
first_page = get_managed_hosting_environment_web_hosting_plans_as_lazy(resource_group_name, name, custom_headers)
|
874
|
+
first_page.get_all_items
|
809
875
|
end
|
810
876
|
|
811
877
|
#
|
@@ -895,11 +961,33 @@ module Azure::ARM::Web
|
|
895
961
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
896
962
|
# will be added to the HTTP request.
|
897
963
|
#
|
898
|
-
# @return [ServerFarmCollection]
|
964
|
+
# @return [ServerFarmCollection] which provide lazy access to pages of the
|
965
|
+
# response.
|
899
966
|
#
|
900
|
-
def
|
967
|
+
def get_managed_hosting_environment_server_farms_as_lazy(resource_group_name, name, custom_headers = nil)
|
901
968
|
response = get_managed_hosting_environment_server_farms_async(resource_group_name, name, custom_headers).value!
|
902
|
-
|
969
|
+
unless response.nil?
|
970
|
+
page = response.body
|
971
|
+
page.next_method = Proc.new do |next_link|
|
972
|
+
get_managed_hosting_environment_server_farms_next_async(next_link, custom_headers)
|
973
|
+
end
|
974
|
+
page
|
975
|
+
end
|
976
|
+
end
|
977
|
+
|
978
|
+
#
|
979
|
+
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
980
|
+
#
|
981
|
+
# @param resource_group_name [String] Name of resource group
|
982
|
+
# @param name [String] Name of managed hosting environment
|
983
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
984
|
+
# will be added to the HTTP request.
|
985
|
+
#
|
986
|
+
# @return [Array<ServerFarmWithRichSku>] operation results.
|
987
|
+
#
|
988
|
+
def get_managed_hosting_environment_server_farms(resource_group_name, name, custom_headers = nil)
|
989
|
+
first_page = get_managed_hosting_environment_server_farms_as_lazy(resource_group_name, name, custom_headers)
|
990
|
+
first_page.get_all_items
|
903
991
|
end
|
904
992
|
|
905
993
|
#
|
@@ -981,5 +1069,365 @@ module Azure::ARM::Web
|
|
981
1069
|
promise.execute
|
982
1070
|
end
|
983
1071
|
|
1072
|
+
#
|
1073
|
+
# Get all managed hosting environments in a resource group.
|
1074
|
+
#
|
1075
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1076
|
+
# call to List operation.
|
1077
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1078
|
+
# will be added to the HTTP request.
|
1079
|
+
#
|
1080
|
+
# @return [HostingEnvironmentCollection] operation results.
|
1081
|
+
#
|
1082
|
+
def get_managed_hosting_environments_next(next_page_link, custom_headers = nil)
|
1083
|
+
response = get_managed_hosting_environments_next_async(next_page_link, custom_headers).value!
|
1084
|
+
response.body unless response.nil?
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
#
|
1088
|
+
# Get all managed hosting environments in a resource group.
|
1089
|
+
#
|
1090
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1091
|
+
# call to List operation.
|
1092
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1093
|
+
# will be added to the HTTP request.
|
1094
|
+
#
|
1095
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1096
|
+
#
|
1097
|
+
def get_managed_hosting_environments_next_with_http_info(next_page_link, custom_headers = nil)
|
1098
|
+
get_managed_hosting_environments_next_async(next_page_link, custom_headers).value!
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
#
|
1102
|
+
# Get all managed hosting environments in a resource group.
|
1103
|
+
#
|
1104
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1105
|
+
# call to List operation.
|
1106
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1107
|
+
# to the HTTP request.
|
1108
|
+
#
|
1109
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1110
|
+
#
|
1111
|
+
def get_managed_hosting_environments_next_async(next_page_link, custom_headers = nil)
|
1112
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1113
|
+
|
1114
|
+
|
1115
|
+
request_headers = {}
|
1116
|
+
|
1117
|
+
# Set Headers
|
1118
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1119
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1120
|
+
path_template = '{nextLink}'
|
1121
|
+
options = {
|
1122
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1123
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1124
|
+
headers: request_headers.merge(custom_headers || {})
|
1125
|
+
}
|
1126
|
+
|
1127
|
+
request_url = @base_url || @client.base_url
|
1128
|
+
|
1129
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1130
|
+
promise = request.run_promise do |req|
|
1131
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
promise = promise.then do |http_response|
|
1135
|
+
status_code = http_response.status
|
1136
|
+
response_content = http_response.body
|
1137
|
+
unless status_code == 200
|
1138
|
+
error_model = JSON.load(response_content)
|
1139
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
# Create Result
|
1143
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1144
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1145
|
+
# Deserialize Response
|
1146
|
+
if status_code == 200
|
1147
|
+
begin
|
1148
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1149
|
+
result_mapper = HostingEnvironmentCollection.mapper()
|
1150
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1151
|
+
rescue Exception => e
|
1152
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1153
|
+
end
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
result
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
promise.execute
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
#
|
1163
|
+
# Get all sites on the managed hosting environment.
|
1164
|
+
#
|
1165
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1166
|
+
# call to List operation.
|
1167
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1168
|
+
# will be added to the HTTP request.
|
1169
|
+
#
|
1170
|
+
# @return [SiteCollection] operation results.
|
1171
|
+
#
|
1172
|
+
def get_managed_hosting_environment_sites_next(next_page_link, custom_headers = nil)
|
1173
|
+
response = get_managed_hosting_environment_sites_next_async(next_page_link, custom_headers).value!
|
1174
|
+
response.body unless response.nil?
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
#
|
1178
|
+
# Get all sites on the managed hosting environment.
|
1179
|
+
#
|
1180
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1181
|
+
# call to List operation.
|
1182
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1183
|
+
# will be added to the HTTP request.
|
1184
|
+
#
|
1185
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1186
|
+
#
|
1187
|
+
def get_managed_hosting_environment_sites_next_with_http_info(next_page_link, custom_headers = nil)
|
1188
|
+
get_managed_hosting_environment_sites_next_async(next_page_link, custom_headers).value!
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
#
|
1192
|
+
# Get all sites on the managed hosting environment.
|
1193
|
+
#
|
1194
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1195
|
+
# call to List operation.
|
1196
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1197
|
+
# to the HTTP request.
|
1198
|
+
#
|
1199
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1200
|
+
#
|
1201
|
+
def get_managed_hosting_environment_sites_next_async(next_page_link, custom_headers = nil)
|
1202
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1203
|
+
|
1204
|
+
|
1205
|
+
request_headers = {}
|
1206
|
+
|
1207
|
+
# Set Headers
|
1208
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1209
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1210
|
+
path_template = '{nextLink}'
|
1211
|
+
options = {
|
1212
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1213
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1214
|
+
headers: request_headers.merge(custom_headers || {})
|
1215
|
+
}
|
1216
|
+
|
1217
|
+
request_url = @base_url || @client.base_url
|
1218
|
+
|
1219
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1220
|
+
promise = request.run_promise do |req|
|
1221
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
promise = promise.then do |http_response|
|
1225
|
+
status_code = http_response.status
|
1226
|
+
response_content = http_response.body
|
1227
|
+
unless status_code == 200
|
1228
|
+
error_model = JSON.load(response_content)
|
1229
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1230
|
+
end
|
1231
|
+
|
1232
|
+
# Create Result
|
1233
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1234
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1235
|
+
# Deserialize Response
|
1236
|
+
if status_code == 200
|
1237
|
+
begin
|
1238
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1239
|
+
result_mapper = SiteCollection.mapper()
|
1240
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1241
|
+
rescue Exception => e
|
1242
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1243
|
+
end
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
result
|
1247
|
+
end
|
1248
|
+
|
1249
|
+
promise.execute
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
#
|
1253
|
+
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1254
|
+
#
|
1255
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1256
|
+
# call to List operation.
|
1257
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1258
|
+
# will be added to the HTTP request.
|
1259
|
+
#
|
1260
|
+
# @return [ServerFarmCollection] operation results.
|
1261
|
+
#
|
1262
|
+
def get_managed_hosting_environment_web_hosting_plans_next(next_page_link, custom_headers = nil)
|
1263
|
+
response = get_managed_hosting_environment_web_hosting_plans_next_async(next_page_link, custom_headers).value!
|
1264
|
+
response.body unless response.nil?
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
#
|
1268
|
+
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1269
|
+
#
|
1270
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1271
|
+
# call to List operation.
|
1272
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1273
|
+
# will be added to the HTTP request.
|
1274
|
+
#
|
1275
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1276
|
+
#
|
1277
|
+
def get_managed_hosting_environment_web_hosting_plans_next_with_http_info(next_page_link, custom_headers = nil)
|
1278
|
+
get_managed_hosting_environment_web_hosting_plans_next_async(next_page_link, custom_headers).value!
|
1279
|
+
end
|
1280
|
+
|
1281
|
+
#
|
1282
|
+
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1283
|
+
#
|
1284
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1285
|
+
# call to List operation.
|
1286
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1287
|
+
# to the HTTP request.
|
1288
|
+
#
|
1289
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1290
|
+
#
|
1291
|
+
def get_managed_hosting_environment_web_hosting_plans_next_async(next_page_link, custom_headers = nil)
|
1292
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1293
|
+
|
1294
|
+
|
1295
|
+
request_headers = {}
|
1296
|
+
|
1297
|
+
# Set Headers
|
1298
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1299
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1300
|
+
path_template = '{nextLink}'
|
1301
|
+
options = {
|
1302
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1303
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1304
|
+
headers: request_headers.merge(custom_headers || {})
|
1305
|
+
}
|
1306
|
+
|
1307
|
+
request_url = @base_url || @client.base_url
|
1308
|
+
|
1309
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1310
|
+
promise = request.run_promise do |req|
|
1311
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
promise = promise.then do |http_response|
|
1315
|
+
status_code = http_response.status
|
1316
|
+
response_content = http_response.body
|
1317
|
+
unless status_code == 200
|
1318
|
+
error_model = JSON.load(response_content)
|
1319
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1320
|
+
end
|
1321
|
+
|
1322
|
+
# Create Result
|
1323
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1324
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1325
|
+
# Deserialize Response
|
1326
|
+
if status_code == 200
|
1327
|
+
begin
|
1328
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1329
|
+
result_mapper = ServerFarmCollection.mapper()
|
1330
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1331
|
+
rescue Exception => e
|
1332
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1333
|
+
end
|
1334
|
+
end
|
1335
|
+
|
1336
|
+
result
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
promise.execute
|
1340
|
+
end
|
1341
|
+
|
1342
|
+
#
|
1343
|
+
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1344
|
+
#
|
1345
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1346
|
+
# call to List operation.
|
1347
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1348
|
+
# will be added to the HTTP request.
|
1349
|
+
#
|
1350
|
+
# @return [ServerFarmCollection] operation results.
|
1351
|
+
#
|
1352
|
+
def get_managed_hosting_environment_server_farms_next(next_page_link, custom_headers = nil)
|
1353
|
+
response = get_managed_hosting_environment_server_farms_next_async(next_page_link, custom_headers).value!
|
1354
|
+
response.body unless response.nil?
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
#
|
1358
|
+
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1359
|
+
#
|
1360
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1361
|
+
# call to List operation.
|
1362
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1363
|
+
# will be added to the HTTP request.
|
1364
|
+
#
|
1365
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1366
|
+
#
|
1367
|
+
def get_managed_hosting_environment_server_farms_next_with_http_info(next_page_link, custom_headers = nil)
|
1368
|
+
get_managed_hosting_environment_server_farms_next_async(next_page_link, custom_headers).value!
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
#
|
1372
|
+
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1373
|
+
#
|
1374
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1375
|
+
# call to List operation.
|
1376
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1377
|
+
# to the HTTP request.
|
1378
|
+
#
|
1379
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1380
|
+
#
|
1381
|
+
def get_managed_hosting_environment_server_farms_next_async(next_page_link, custom_headers = nil)
|
1382
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1383
|
+
|
1384
|
+
|
1385
|
+
request_headers = {}
|
1386
|
+
|
1387
|
+
# Set Headers
|
1388
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1389
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1390
|
+
path_template = '{nextLink}'
|
1391
|
+
options = {
|
1392
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1393
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1394
|
+
headers: request_headers.merge(custom_headers || {})
|
1395
|
+
}
|
1396
|
+
|
1397
|
+
request_url = @base_url || @client.base_url
|
1398
|
+
|
1399
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1400
|
+
promise = request.run_promise do |req|
|
1401
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
promise = promise.then do |http_response|
|
1405
|
+
status_code = http_response.status
|
1406
|
+
response_content = http_response.body
|
1407
|
+
unless status_code == 200
|
1408
|
+
error_model = JSON.load(response_content)
|
1409
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1410
|
+
end
|
1411
|
+
|
1412
|
+
# Create Result
|
1413
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1414
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1415
|
+
# Deserialize Response
|
1416
|
+
if status_code == 200
|
1417
|
+
begin
|
1418
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1419
|
+
result_mapper = ServerFarmCollection.mapper()
|
1420
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1421
|
+
rescue Exception => e
|
1422
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1423
|
+
end
|
1424
|
+
end
|
1425
|
+
|
1426
|
+
result
|
1427
|
+
end
|
1428
|
+
|
1429
|
+
promise.execute
|
1430
|
+
end
|
1431
|
+
|
984
1432
|
end
|
985
1433
|
end
|
@@ -18,6 +18,37 @@ module Azure::ARM::Web
|
|
18
18
|
# @return [String] Link to next page of resources
|
19
19
|
attr_accessor :next_link
|
20
20
|
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<BackupItem>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [BackupItemCollection] with next page content.
|
43
|
+
#
|
44
|
+
def get_next_page
|
45
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
46
|
+
unless response.nil?
|
47
|
+
@next_link = response.body.next_link
|
48
|
+
@value = response.body.value
|
49
|
+
self
|
50
|
+
end
|
51
|
+
end
|
21
52
|
|
22
53
|
#
|
23
54
|
# Mapper for BackupItemCollection class as Ruby Hash.
|
@@ -18,6 +18,37 @@ module Azure::ARM::Web
|
|
18
18
|
# @return [String] Link to next page of resources
|
19
19
|
attr_accessor :next_link
|
20
20
|
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<Certificate>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [CertificateCollection] with next page content.
|
43
|
+
#
|
44
|
+
def get_next_page
|
45
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
46
|
+
unless response.nil?
|
47
|
+
@next_link = response.body.next_link
|
48
|
+
@value = response.body.value
|
49
|
+
self
|
50
|
+
end
|
51
|
+
end
|
21
52
|
|
22
53
|
#
|
23
54
|
# Mapper for CertificateCollection class as Ruby Hash.
|
@@ -18,6 +18,37 @@ module Azure::ARM::Web
|
|
18
18
|
# @return [String] Link to next page of resources
|
19
19
|
attr_accessor :next_link
|
20
20
|
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<CertificateOrderCertificate>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [CertificateOrderCertificateCollection] with next page content.
|
43
|
+
#
|
44
|
+
def get_next_page
|
45
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
46
|
+
unless response.nil?
|
47
|
+
@next_link = response.body.next_link
|
48
|
+
@value = response.body.value
|
49
|
+
self
|
50
|
+
end
|
51
|
+
end
|
21
52
|
|
22
53
|
#
|
23
54
|
# Mapper for CertificateOrderCertificateCollection class as Ruby Hash.
|
@@ -18,6 +18,37 @@ module Azure::ARM::Web
|
|
18
18
|
# @return [String] Link to next page of resources
|
19
19
|
attr_accessor :next_link
|
20
20
|
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<CertificateOrder>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [CertificateOrderCollection] with next page content.
|
43
|
+
#
|
44
|
+
def get_next_page
|
45
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
46
|
+
unless response.nil?
|
47
|
+
@next_link = response.body.next_link
|
48
|
+
@value = response.body.value
|
49
|
+
self
|
50
|
+
end
|
51
|
+
end
|
21
52
|
|
22
53
|
#
|
23
54
|
# Mapper for CertificateOrderCollection class as Ruby Hash.
|