Method: Azure::Security::Mgmt::V2015_06_01_preview::Operations#list_as_lazy

Defined in:
lib/2015-06-01-preview/generated/azure_mgmt_security/operations.rb

#list_as_lazy(custom_headers: nil) ⇒ OperationList

Exposes all available operations for discovery purposes.

will be added to the HTTP request.

Parameters:

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

    A hash of custom headers that

Returns:

  • (OperationList)

    which provide lazy access to pages of the response.



206
207
208
209
210
211
212
213
214
215
# File 'lib/2015-06-01-preview/generated/azure_mgmt_security/operations.rb', line 206

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