Class: Google::Apis::DriveV3::ClientEncryptionDetails

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

Overview

Details about the client-side encryption applied to the file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClientEncryptionDetails

Returns a new instance of ClientEncryptionDetails.



895
896
897
# File 'lib/google/apis/drive_v3/classes.rb', line 895

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

Instance Attribute Details

#decryption_metadataGoogle::Apis::DriveV3::DecryptionMetadata

Representation of the CSE DecryptionMetadata. Corresponds to the JSON property decryptionMetadata



887
888
889
# File 'lib/google/apis/drive_v3/classes.rb', line 887

def 
  @decryption_metadata
end

#encryption_stateString

The encryption state of the file. The values expected here are: - encrypted - unencrypted Corresponds to the JSON property encryptionState

Returns:

  • (String)


893
894
895
# File 'lib/google/apis/drive_v3/classes.rb', line 893

def encryption_state
  @encryption_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



900
901
902
903
# File 'lib/google/apis/drive_v3/classes.rb', line 900

def update!(**args)
  @decryption_metadata = args[:decryption_metadata] if args.key?(:decryption_metadata)
  @encryption_state = args[:encryption_state] if args.key?(:encryption_state)
end