Class: Google::Apis::StoragebatchoperationsV1::Bucket

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/storagebatchoperations_v1/classes.rb,
lib/google/apis/storagebatchoperations_v1/representations.rb,
lib/google/apis/storagebatchoperations_v1/representations.rb

Overview

Describes configuration of a single bucket and its objects to be transformed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Bucket

Returns a new instance of Bucket.



44
45
46
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 44

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucketString

Required. Bucket name for the objects to be transformed. Corresponds to the JSON property bucket

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 32

def bucket
  @bucket
end

#manifestGoogle::Apis::StoragebatchoperationsV1::Manifest

Describes list of objects to be transformed. Corresponds to the JSON property manifest



37
38
39
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 37

def manifest
  @manifest
end

#prefix_listGoogle::Apis::StoragebatchoperationsV1::PrefixList

Describes prefixes of objects to be transformed. Corresponds to the JSON property prefixList



42
43
44
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 42

def prefix_list
  @prefix_list
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49
50
51
52
53
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 49

def update!(**args)
  @bucket = args[:bucket] if args.key?(:bucket)
  @manifest = args[:manifest] if args.key?(:manifest)
  @prefix_list = args[:prefix_list] if args.key?(:prefix_list)
end