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

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

Overview

The export file in Cloud Storage

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudStorageFile

Returns a new instance of CloudStorageFile.



292
293
294
# File 'lib/google/apis/vault_v1/classes.rb', line 292

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

Instance Attribute Details

#bucket_nameString

The name of the Cloud Storage bucket for the export file. You can use this value in the Cloud Storage JSON or XML APIs, 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)


273
274
275
# File 'lib/google/apis/vault_v1/classes.rb', line 273

def bucket_name
  @bucket_name
end

#md5_hashString

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

Returns:

  • (String)


278
279
280
# File 'lib/google/apis/vault_v1/classes.rb', line 278

def md5_hash
  @md5_hash
end

#object_nameString

The name of the Cloud Storage object for the export file. You can use this value in the Cloud Storage JSON or XML APIs. Corresponds to the JSON property objectName

Returns:

  • (String)


285
286
287
# File 'lib/google/apis/vault_v1/classes.rb', line 285

def object_name
  @object_name
end

#sizeFixnum

The export file size. Corresponds to the JSON property size

Returns:

  • (Fixnum)


290
291
292
# File 'lib/google/apis/vault_v1/classes.rb', line 290

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



297
298
299
300
301
302
# File 'lib/google/apis/vault_v1/classes.rb', line 297

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