Class: Google::Apis::VaultV1::CloudStorageFile

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

Overview

An export file on cloud storage

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudStorageFile

Returns a new instance of CloudStorageFile.



282
283
284
# File 'generated/google/apis/vault_v1/classes.rb', line 282

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

Instance Attribute Details

#bucket_nameString

The cloud storage bucket name of this export file. Can be used in cloud storage JSON/XML API, but not to list the bucket contents. Instead, you can get individual export files by object name. Corresponds to the JSON property bucketName

Returns:

  • (String)


264
265
266
# File 'generated/google/apis/vault_v1/classes.rb', line 264

def bucket_name
  @bucket_name
end

#md5_hashString

The md5 hash of the file. Corresponds to the JSON property md5Hash

Returns:

  • (String)


269
270
271
# File 'generated/google/apis/vault_v1/classes.rb', line 269

def md5_hash
  @md5_hash
end

#object_nameString

The cloud storage object name of this export file. Can be used in cloud storage JSON/XML API. Corresponds to the JSON property objectName

Returns:

  • (String)


275
276
277
# File 'generated/google/apis/vault_v1/classes.rb', line 275

def object_name
  @object_name
end

#sizeFixnum

The size of the export file. Corresponds to the JSON property size

Returns:

  • (Fixnum)


280
281
282
# File 'generated/google/apis/vault_v1/classes.rb', line 280

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



287
288
289
290
291
292
# File 'generated/google/apis/vault_v1/classes.rb', line 287

def update!(**args)
  @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
  @md5_hash = args[:md5_hash] if args.key?(:md5_hash)
  @object_name = args[:object_name] if args.key?(:object_name)
  @size = args[:size] if args.key?(:size)
end