Class: Azure::Consumption::Mgmt::V2018_06_30::Marketplaces
- Inherits:
-
Object
- Object
- Azure::Consumption::Mgmt::V2018_06_30::Marketplaces
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb
Overview
Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions.
Instance Attribute Summary collapse
-
#client ⇒ ConsumptionManagementClient
readonly
Reference to the ConsumptionManagementClient.
Instance Method Summary collapse
-
#initialize(client) ⇒ Marketplaces
constructor
Creates and initializes a new instance of the Marketplaces class.
-
#list(filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by subscriptionId and current billing period.
-
#list_as_lazy(filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by subscriptionId and current billing period.
-
#list_async(filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by subscriptionId and current billing period.
-
#list_by_billing_account(billing_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by billingAccountId and current billing period.
-
#list_by_billing_account_as_lazy(billing_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billingAccountId and current billing period.
-
#list_by_billing_account_async(billing_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billingAccountId and current billing period.
-
#list_by_billing_account_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billingAccountId and current billing period.
-
#list_by_billing_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billingAccountId and current billing period.
-
#list_by_billing_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billingAccountId and current billing period.
-
#list_by_billing_account_with_http_info(billing_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billingAccountId and current billing period.
-
#list_by_billing_period(billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by billing period and subscripotionId.
-
#list_by_billing_period_as_lazy(billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and subscripotionId.
-
#list_by_billing_period_async(billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and subscripotionId.
-
#list_by_billing_period_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and subscripotionId.
-
#list_by_billing_period_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and subscripotionId.
-
#list_by_billing_period_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and subscripotionId.
-
#list_by_billing_period_with_http_info(billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and subscripotionId.
-
#list_by_department(department_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by departmentId and current billing period.
-
#list_by_department_as_lazy(department_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by departmentId and current billing period.
-
#list_by_department_async(department_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by departmentId and current billing period.
-
#list_by_department_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by departmentId and current billing period.
-
#list_by_department_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by departmentId and current billing period.
-
#list_by_department_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by departmentId and current billing period.
-
#list_by_department_with_http_info(department_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by departmentId and current billing period.
-
#list_by_enrollment_account(enrollment_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by enrollmentAccountId and current billing period.
-
#list_by_enrollment_account_as_lazy(enrollment_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by enrollmentAccountId and current billing period.
-
#list_by_enrollment_account_async(enrollment_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by enrollmentAccountId and current billing period.
-
#list_by_enrollment_account_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by enrollmentAccountId and current billing period.
-
#list_by_enrollment_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by enrollmentAccountId and current billing period.
-
#list_by_enrollment_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by enrollmentAccountId and current billing period.
-
#list_by_enrollment_account_with_http_info(enrollment_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by enrollmentAccountId and current billing period.
-
#list_for_billing_period_by_billing_account(billing_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by billing period and billingAccountId.
-
#list_for_billing_period_by_billing_account_as_lazy(billing_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and billingAccountId.
-
#list_for_billing_period_by_billing_account_async(billing_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and billingAccountId.
-
#list_for_billing_period_by_billing_account_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and billingAccountId.
-
#list_for_billing_period_by_billing_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and billingAccountId.
-
#list_for_billing_period_by_billing_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and billingAccountId.
-
#list_for_billing_period_by_billing_account_with_http_info(billing_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and billingAccountId.
-
#list_for_billing_period_by_department(department_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by billing period and departmentId.
-
#list_for_billing_period_by_department_as_lazy(department_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and departmentId.
-
#list_for_billing_period_by_department_async(department_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and departmentId.
-
#list_for_billing_period_by_department_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and departmentId.
-
#list_for_billing_period_by_department_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and departmentId.
-
#list_for_billing_period_by_department_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and departmentId.
-
#list_for_billing_period_by_department_with_http_info(department_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and departmentId.
-
#list_for_billing_period_by_enrollment_account(enrollment_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by billing period and enrollmentAccountId.
-
#list_for_billing_period_by_enrollment_account_as_lazy(enrollment_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and enrollmentAccountId.
-
#list_for_billing_period_by_enrollment_account_async(enrollment_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and enrollmentAccountId.
-
#list_for_billing_period_by_enrollment_account_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and enrollmentAccountId.
-
#list_for_billing_period_by_enrollment_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and enrollmentAccountId.
-
#list_for_billing_period_by_enrollment_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and enrollmentAccountId.
-
#list_for_billing_period_by_enrollment_account_with_http_info(enrollment_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and enrollmentAccountId.
-
#list_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by subscriptionId and current billing period.
-
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by subscriptionId and current billing period.
-
#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by subscriptionId and current billing period.
-
#list_with_http_info(filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by subscriptionId and current billing period.
Constructor Details
#initialize(client) ⇒ Marketplaces
Creates and initializes a new instance of the Marketplaces class.
18 19 20 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 18 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ ConsumptionManagementClient (readonly)
Returns reference to the ConsumptionManagementClient.
23 24 25 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 23 def client @client end |
Instance Method Details
#list(filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by subscriptionId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
46 47 48 49 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 46 def list(filter:nil, top:nil, skiptoken:nil, custom_headers:nil) first_page = list_as_lazy(filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end |
#list_as_lazy(filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by subscriptionId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
response.
1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1841 def list_as_lazy(filter:nil, top:nil, skiptoken:nil, custom_headers:nil) response = list_async(filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_async(filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by subscriptionId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. to the HTTP request.
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 97 def list_async(filter:nil, top:nil, skiptoken:nil, custom_headers:nil) fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Consumption/marketplaces' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'$top' => top,'$skiptoken' => skiptoken,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_billing_account(billing_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by billingAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
302 303 304 305 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 302 def list_by_billing_account(billing_account_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) first_page = list_by_billing_account_as_lazy(billing_account_id, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end |
#list_by_billing_account_as_lazy(billing_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billingAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
response.
1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1908 def list_by_billing_account_as_lazy(billing_account_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) response = list_by_billing_account_async(billing_account_id, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_billing_account_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_billing_account_async(billing_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billingAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. to the HTTP request.
355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 355 def list_by_billing_account_async(billing_account_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'billing_account_id is nil' if billing_account_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/marketplaces' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'billingAccountId' => billing_account_id}, query_params: {'$filter' => filter,'$top' => top,'$skiptoken' => skiptoken,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_billing_account_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billingAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1264 1265 1266 1267 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1264 def list_by_billing_account_next(next_page_link, custom_headers:nil) response = list_by_billing_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_billing_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billingAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. to the HTTP request.
1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1297 def list_by_billing_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_billing_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billingAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1281 1282 1283 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1281 def list_by_billing_account_next_with_http_info(next_page_link, custom_headers:nil) list_by_billing_account_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_billing_account_with_http_info(billing_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billingAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
329 330 331 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 329 def list_by_billing_account_with_http_info(billing_account_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) list_by_billing_account_async(billing_account_id, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! end |
#list_by_billing_period(billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
173 174 175 176 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 173 def list_by_billing_period(billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) first_page = list_by_billing_period_as_lazy(billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end |
#list_by_billing_period_as_lazy(billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
response.
1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1874 def list_by_billing_period_as_lazy(billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) response = list_by_billing_period_async(billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_billing_period_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_billing_period_async(billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. to the HTTP request.
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 224 def list_by_billing_period_async(billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'billing_period_name is nil' if billing_period_name.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'billingPeriodName' => billing_period_name}, query_params: {'$filter' => filter,'$top' => top,'$skiptoken' => skiptoken,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_billing_period_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1170 1171 1172 1173 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1170 def list_by_billing_period_next(next_page_link, custom_headers:nil) response = list_by_billing_period_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_billing_period_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. to the HTTP request.
1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1201 def list_by_billing_period_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_billing_period_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1186 1187 1188 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1186 def list_by_billing_period_next_with_http_info(next_page_link, custom_headers:nil) list_by_billing_period_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_billing_period_with_http_info(billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
199 200 201 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 199 def list_by_billing_period_with_http_info(billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) list_by_billing_period_async(billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! end |
#list_by_department(department_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by departmentId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
563 564 565 566 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 563 def list_by_department(department_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) first_page = list_by_department_as_lazy(department_id, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end |
#list_by_department_as_lazy(department_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by departmentId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
response.
1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1976 def list_by_department_as_lazy(department_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) response = list_by_department_async(department_id, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_department_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_department_async(department_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by departmentId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. to the HTTP request.
616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 616 def list_by_department_async(department_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'department_id is nil' if department_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Consumption/marketplaces' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'departmentId' => department_id}, query_params: {'$filter' => filter,'$top' => top,'$skiptoken' => skiptoken,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_department_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by departmentId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1453 1454 1455 1456 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1453 def list_by_department_next(next_page_link, custom_headers:nil) response = list_by_department_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_department_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by departmentId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. to the HTTP request.
1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1486 def list_by_department_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_department_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by departmentId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1470 1471 1472 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1470 def list_by_department_next_with_http_info(next_page_link, custom_headers:nil) list_by_department_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_department_with_http_info(department_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by departmentId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
590 591 592 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 590 def list_by_department_with_http_info(department_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) list_by_department_async(department_id, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! end |
#list_by_enrollment_account(enrollment_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by enrollmentAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
824 825 826 827 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 824 def list_by_enrollment_account(enrollment_account_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) first_page = list_by_enrollment_account_as_lazy(enrollment_account_id, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end |
#list_by_enrollment_account_as_lazy(enrollment_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by enrollmentAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
response.
2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 2044 def list_by_enrollment_account_as_lazy(enrollment_account_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) response = list_by_enrollment_account_async(enrollment_account_id, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_enrollment_account_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_enrollment_account_async(enrollment_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by enrollmentAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. to the HTTP request.
877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 877 def list_by_enrollment_account_async(enrollment_account_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'enrollment_account_id is nil' if enrollment_account_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.Consumption/marketplaces' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'enrollmentAccountId' => enrollment_account_id}, query_params: {'$filter' => filter,'$top' => top,'$skiptoken' => skiptoken,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_enrollment_account_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by enrollmentAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1642 1643 1644 1645 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1642 def list_by_enrollment_account_next(next_page_link, custom_headers:nil) response = list_by_enrollment_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_enrollment_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by enrollmentAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. to the HTTP request.
1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1675 def list_by_enrollment_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_enrollment_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by enrollmentAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1659 1660 1661 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1659 def list_by_enrollment_account_next_with_http_info(next_page_link, custom_headers:nil) list_by_enrollment_account_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_enrollment_account_with_http_info(enrollment_account_id, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by enrollmentAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
851 852 853 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 851 def list_by_enrollment_account_with_http_info(enrollment_account_id, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) list_by_enrollment_account_async(enrollment_account_id, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! end |
#list_for_billing_period_by_billing_account(billing_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by billing period and billingAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
432 433 434 435 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 432 def list_for_billing_period_by_billing_account(billing_account_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) first_page = list_for_billing_period_by_billing_account_as_lazy(billing_account_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end |
#list_for_billing_period_by_billing_account_as_lazy(billing_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and billingAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
response.
1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1942 def list_for_billing_period_by_billing_account_as_lazy(billing_account_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) response = list_for_billing_period_by_billing_account_async(billing_account_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_for_billing_period_by_billing_account_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_for_billing_period_by_billing_account_async(billing_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and billingAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. to the HTTP request.
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 485 def list_for_billing_period_by_billing_account_async(billing_account_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'billing_account_id is nil' if billing_account_id.nil? fail ArgumentError, 'billing_period_name is nil' if billing_period_name.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'billingAccountId' => billing_account_id,'billingPeriodName' => billing_period_name}, query_params: {'$filter' => filter,'$top' => top,'$skiptoken' => skiptoken,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_for_billing_period_by_billing_account_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and billingAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1359 1360 1361 1362 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1359 def list_for_billing_period_by_billing_account_next(next_page_link, custom_headers:nil) response = list_for_billing_period_by_billing_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_for_billing_period_by_billing_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and billingAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. to the HTTP request.
1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1390 def list_for_billing_period_by_billing_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_for_billing_period_by_billing_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and billingAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1375 1376 1377 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1375 def list_for_billing_period_by_billing_account_next_with_http_info(next_page_link, custom_headers:nil) list_for_billing_period_by_billing_account_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_for_billing_period_by_billing_account_with_http_info(billing_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and billingAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
459 460 461 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 459 def list_for_billing_period_by_billing_account_with_http_info(billing_account_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) list_for_billing_period_by_billing_account_async(billing_account_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! end |
#list_for_billing_period_by_department(department_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by billing period and departmentId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
693 694 695 696 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 693 def list_for_billing_period_by_department(department_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) first_page = list_for_billing_period_by_department_as_lazy(department_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end |
#list_for_billing_period_by_department_as_lazy(department_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and departmentId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
response.
2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 2010 def list_for_billing_period_by_department_as_lazy(department_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) response = list_for_billing_period_by_department_async(department_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_for_billing_period_by_department_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_for_billing_period_by_department_async(department_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and departmentId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. to the HTTP request.
746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 746 def list_for_billing_period_by_department_async(department_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'department_id is nil' if department_id.nil? fail ArgumentError, 'billing_period_name is nil' if billing_period_name.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'departmentId' => department_id,'billingPeriodName' => billing_period_name}, query_params: {'$filter' => filter,'$top' => top,'$skiptoken' => skiptoken,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_for_billing_period_by_department_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and departmentId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1548 1549 1550 1551 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1548 def list_for_billing_period_by_department_next(next_page_link, custom_headers:nil) response = list_for_billing_period_by_department_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_for_billing_period_by_department_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and departmentId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. to the HTTP request.
1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1579 def list_for_billing_period_by_department_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_for_billing_period_by_department_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and departmentId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1564 1565 1566 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1564 def list_for_billing_period_by_department_next_with_http_info(next_page_link, custom_headers:nil) list_for_billing_period_by_department_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_for_billing_period_by_department_with_http_info(department_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and departmentId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
720 721 722 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 720 def list_for_billing_period_by_department_with_http_info(department_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) list_for_billing_period_by_department_async(department_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! end |
#list_for_billing_period_by_enrollment_account(enrollment_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Array<Marketplace>
Lists the marketplaces for a scope by billing period and enrollmentAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
954 955 956 957 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 954 def list_for_billing_period_by_enrollment_account(enrollment_account_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) first_page = list_for_billing_period_by_enrollment_account_as_lazy(enrollment_account_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end |
#list_for_billing_period_by_enrollment_account_as_lazy(enrollment_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and enrollmentAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
response.
2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 2078 def list_for_billing_period_by_enrollment_account_as_lazy(enrollment_account_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) response = list_for_billing_period_by_enrollment_account_async(enrollment_account_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_for_billing_period_by_enrollment_account_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_for_billing_period_by_enrollment_account_async(enrollment_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and enrollmentAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. to the HTTP request.
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1007 def list_for_billing_period_by_enrollment_account_async(enrollment_account_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'enrollment_account_id is nil' if enrollment_account_id.nil? fail ArgumentError, 'billing_period_name is nil' if billing_period_name.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'enrollmentAccountId' => enrollment_account_id,'billingPeriodName' => billing_period_name}, query_params: {'$filter' => filter,'$top' => top,'$skiptoken' => skiptoken,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_for_billing_period_by_enrollment_account_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by billing period and enrollmentAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1737 1738 1739 1740 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1737 def list_for_billing_period_by_enrollment_account_next(next_page_link, custom_headers:nil) response = list_for_billing_period_by_enrollment_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_for_billing_period_by_enrollment_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by billing period and enrollmentAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. to the HTTP request.
1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1768 def list_for_billing_period_by_enrollment_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_for_billing_period_by_enrollment_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and enrollmentAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1753 1754 1755 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1753 def list_for_billing_period_by_enrollment_account_next_with_http_info(next_page_link, custom_headers:nil) list_for_billing_period_by_enrollment_account_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_for_billing_period_by_enrollment_account_with_http_info(enrollment_account_id, billing_period_name, filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by billing period and enrollmentAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
981 982 983 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 981 def list_for_billing_period_by_enrollment_account_with_http_info(enrollment_account_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil) list_for_billing_period_by_enrollment_account_async(enrollment_account_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! end |
#list_next(next_page_link, custom_headers: nil) ⇒ MarketplacesListResult
Lists the marketplaces for a scope by subscriptionId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1075 1076 1077 1078 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1075 def list_next(next_page_link, custom_headers:nil) response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists the marketplaces for a scope by subscriptionId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. to the HTTP request.
1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1108 def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by subscriptionId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
to List operation. will be added to the HTTP request.
1092 1093 1094 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 1092 def list_next_with_http_info(next_page_link, custom_headers:nil) list_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_with_http_info(filter: nil, top: nil, skiptoken: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists the marketplaces for a scope by subscriptionId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. recent N marketplaces. returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. will be added to the HTTP request.
72 73 74 |
# File 'lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb', line 72 def list_with_http_info(filter:nil, top:nil, skiptoken:nil, custom_headers:nil) list_async(filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value! end |