Sha256: 3fc23d842944793e6abd2e11b038b8ddde02f7bfdb45b6203789afa5e1d273c1
Contents?: true
Size: 1.06 KB
Versions: 6
Compression:
Stored size: 1.06 KB
Contents
module Fog module AWS class Compute class Real require 'fog/compute/parsers/aws/basic' # Modify snapshot attributes # # ==== Parameters # * snapshot_id<~String> - Id of snapshot to modify # * attribute<~String> - Attribute to modify, in ['createVolumePermission'] # * operation_type<~String> - Operation to perform on attribute, in ['add', 'remove'] # def modify_snapshot_attribute(snapshot_id, attribute, operation_type, options = {}) params = {} params.merge!(AWS.indexed_param('UserId', options['UserId'])) params.merge!(AWS.indexed_param('UserGroup', options['UserGroup'])) request({ 'Action' => 'ModifySnapshotAttribute', 'Attribute' => attribute, 'SnapshotId' => snapshot_id, 'OperationType' => operation_type, :idempotent => true, :parser => Fog::Parsers::AWS::Compute::Basic.new }.merge!(params)) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems