Sha256: 01bf86282e44741ddd57cf022090978d02960d8165860381ea88e2757c291444
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
module Fog module AWS class DataPipeline class Real # Create a pipeline # http://docs.aws.amazon.com/datapipeline/latest/APIReference/API_CreatePipeline.html # ==== Parameters # * UniqueId <~String> - A unique ID for of the pipeline # * Name <~String> - The name of the pipeline # * Description <~String> - Description of the pipeline # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: def create_pipeline(unique_id, name, description=nil) params = { 'uniqueId' => unique_id, 'name' => name, } params['Description'] = description if description response = request({ :body => Fog::JSON.encode(params), :headers => { 'X-Amz-Target' => 'DataPipeline.CreatePipeline' }, }) Fog::JSON.decode(response.body) end end class Mock def create_pipeline(unique_id, name, description=nil) Fog::Mock.not_implemented end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
vagrant-cloudstack-1.1.0 | vendor/bundle/gems/fog-1.22.1/lib/fog/aws/requests/data_pipeline/create_pipeline.rb |
fog-1.22.1 | lib/fog/aws/requests/data_pipeline/create_pipeline.rb |