lib/azure/armrest/resource_provider_service.rb
# List all the providers for the current subscription. The results of
# this method are cached.
#
List all the providers for the current subscription. The results of
this method are cached.
List all the providers for the current subscription . The results of this method are cached .
def list(options = {})
        url = build_url
        url << "&$top=#{options[:top]}" if options[:top]
        url << "&$expand=#{options[:expand]}" if options[:expand]
        response = rest_get(url)
        resources = JSON.parse(response)['value']
        resources.map{ |hash| Azure::Armrest::ResourceProvider.new(hash) }
      end
def list ( options = { } ) url = build_url url << "&$top=#{options[:top]}" if options [ :top ] url << "&$expand=#{options[:expand]}" if options [ :expand ] response = rest_get ( url ) resources = JSON . parse ( response ) [ 'value' ] resources . map { | hash | Azure :: Armrest :: ResourceProvider . new ( hash ) } end
List all the providers for the current subscription.
List all the providers for the current subscription .
options
<not_specific>