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.



366
367
368
# File 'lib/google/apis/vault_v1/classes.rb', line 366

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 API or 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)


347
348
349
# File 'lib/google/apis/vault_v1/classes.rb', line 347

def bucket_name
  @bucket_name
end

#md5_hashString

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

Returns:

  • (String)


352
353
354
# File 'lib/google/apis/vault_v1/classes.rb', line 352

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 API or XML API. Corresponds to the JSON property objectName

Returns:

  • (String)


359
360
361
# File 'lib/google/apis/vault_v1/classes.rb', line 359

def object_name
  @object_name
end

#sizeFixnum

The export file size. Corresponds to the JSON property size

Returns:

  • (Fixnum)


364
365
366
# File 'lib/google/apis/vault_v1/classes.rb', line 364

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



371
372
373
374
375
376
# File 'lib/google/apis/vault_v1/classes.rb', line 371

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