Method: Azure::DataMigration::Mgmt::V2018_03_15_preview::Usages#list_as_lazy

Defined in:
lib/2018-03-15-preview/generated/azure_mgmt_data_migration/usages.rb

#list_as_lazy(location, custom_headers: nil) ⇒ QuotaList

Get resource quotas and usage information

This method returns region-specific quotas and resource usage information for the Data Migration Service.

will be added to the HTTP request.

Parameters:

  • location (String)

    The Azure region of the operation

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (QuotaList)

    which provide lazy access to pages of the response.



234
235
236
237
238
239
240
241
242
243
# File 'lib/2018-03-15-preview/generated/azure_mgmt_data_migration/usages.rb', line 234

def list_as_lazy(location, custom_headers:nil)
  response = list_async(location, 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