Sha256: 5eb08597e535847116ae118653022ca8b29ae74c60dcaa22921a8624899d5239

Contents?: true

Size: 766 Bytes

Versions: 47

Compression:

Stored size: 766 Bytes

Contents

module ApiStub
  module Models
    module Resources
      # Mock class for Resource Group Model
      class ResourceGroup
        def self.create_resource_group_response(client)
          resource_group = '{
            "id": "/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg",
            "name": "fog-test-rg",
            "location": "westus",
            "tags": {
              "tagname1": "tagvalue1"
            },
            "properties": {
              "provisioning_state": "Succeeded"
            }
          }'
          result_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper
          client.deserialize(result_mapper, Fog::JSON.decode(resource_group), 'result.body')
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.5.3 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.5.2 test/api_stub/models/resources/resource_group.rb
far-gem-0.5.6 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.5.1 test/api_stub/models/resources/resource_group.rb
far-gem-0.5.5 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.5.0 test/api_stub/models/resources/resource_group.rb
far-gem-0.5.4 test/api_stub/models/resources/resource_group.rb
far-gem-0.5.3 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.4.9 test/api_stub/models/resources/resource_group.rb
far-gem-0.5.2 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.4.8 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.4.7 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.4.6 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.4.5 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-temp-0.0.5 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.4.4 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.4.3 test/api_stub/models/resources/resource_group.rb
far-gem-0.5.1 test/api_stub/models/resources/resource_group.rb
fog-azure-rm-0.4.2 test/api_stub/models/resources/resource_group.rb