Sha256: 21076f4465ae8b033b7e78fc059d985ecd1b79d8fd521c43362a573812598ecb
Contents?: true
Size: 974 Bytes
Versions: 1
Compression:
Stored size: 974 Bytes
Contents
module ApiStub module Requests module Resources # Mock class for Deployment Requests class Deployment def self.create_deployment_response body = ApiStub::Models::Resources::Deployment.create_deployment_response result = MsRestAzure::AzureOperationResponse.new(MsRest::HttpOperationRequest.new('', '', ''), Faraday::Response.new) result.body = Azure::ARM::Resources::Models::DeploymentExtended.deserialize_object(body) result end def self.list_deployment_response body = ApiStub::Models::Resources::Deployment.list_deployments_response body = { 'value' => body } result = MsRestAzure::AzureOperationResponse.new(MsRest::HttpOperationRequest.new('', '', ''), Faraday::Response.new) result.body = Azure::ARM::Resources::Models::DeploymentListResult.deserialize_object(body) result end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.4 | test/api_stub/requests/resources/deployment.rb |