lib/azure/armrest/resource_group_based_subservice.rb
# Do not instantiate directly. This is an abstract base class from which
# all other service classes should subclass, and call super within their
# own constructors.
#
Do not instantiate directly. This is an abstract base class from which
all other service classes should subclass, and call super within their
own constructors.
Do not instantiate directly . This is an abstract base class from which all other service classes should subclass and call super within their own constructors .
def list(resource, rgroup = configuration.resource_group)
        validate_resource_group(rgroup)
        validate_resource(resource)
        url = build_url(rgroup, resource, @subservice_name)
        url = yield(url) || url if block_given?
        response = rest_get(url)
        JSON.parse(response)['value'].map { |hash| model_class.new(hash) }
      end
def list ( resource , rgroup = configuration . resource_group ) validate_resource_group ( rgroup ) validate_resource ( resource ) url = build_url ( rgroup , resource , @subservice_name ) url = yield ( url ) || url if block_given? response = rest_get ( url ) JSON . parse ( response ) [ 'value' ] . map { | hash | model_class . new ( hash ) } end
Do not instantiate directly.
Do not instantiate directly .
resource
<not_specific>
rgroup
<not_specific>
configuration
<not_specific>
resource_group
<not_specific>