Class: Google::Apis::VaultV1::CloudStorageFile
- Inherits:
-
Object
- Object
- Google::Apis::VaultV1::CloudStorageFile
- 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
-
#bucket_name ⇒ String
The name of the Cloud Storage bucket for the export file.
-
#md5_hash ⇒ String
The md5 hash of the file.
-
#object_name ⇒ String
The name of the Cloud Storage object for the export file.
-
#size ⇒ Fixnum
The export file size.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudStorageFile
constructor
A new instance of CloudStorageFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
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
347 348 349 |
# File 'lib/google/apis/vault_v1/classes.rb', line 347 def bucket_name @bucket_name end |
#md5_hash ⇒ String
The md5 hash of the file.
Corresponds to the JSON property md5Hash
352 353 354 |
# File 'lib/google/apis/vault_v1/classes.rb', line 352 def md5_hash @md5_hash end |
#object_name ⇒ String
359 360 361 |
# File 'lib/google/apis/vault_v1/classes.rb', line 359 def object_name @object_name end |
#size ⇒ Fixnum
The export file size.
Corresponds to the JSON property size
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 |