Class: Google::Apis::LookerV1::EncryptionConfig

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

Overview

Encryption configuration (i.e. CMEK).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionConfig

Returns a new instance of EncryptionConfig.



380
381
382
# File 'lib/google/apis/looker_v1/classes.rb', line 380

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

Instance Attribute Details

#kms_key_nameString

Name of the CMEK key in KMS (input parameter). Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


365
366
367
# File 'lib/google/apis/looker_v1/classes.rb', line 365

def kms_key_name
  @kms_key_name
end

#kms_key_name_versionString

Output only. Full name and version of the CMEK key currently in use to encrypt Looker data. Format: projects/project/locations/location/keyRings/ring/ cryptoKeys/key/cryptoKeyVersions/version`. Empty if CMEK is not configured in this instance. Corresponds to the JSON propertykmsKeyNameVersion`

Returns:

  • (String)


373
374
375
# File 'lib/google/apis/looker_v1/classes.rb', line 373

def kms_key_name_version
  @kms_key_name_version
end

#kms_key_stateString

Output only. Status of the CMEK key. Corresponds to the JSON property kmsKeyState

Returns:

  • (String)


378
379
380
# File 'lib/google/apis/looker_v1/classes.rb', line 378

def kms_key_state
  @kms_key_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



385
386
387
388
389
# File 'lib/google/apis/looker_v1/classes.rb', line 385

def update!(**args)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
  @kms_key_name_version = args[:kms_key_name_version] if args.key?(:kms_key_name_version)
  @kms_key_state = args[:kms_key_state] if args.key?(:kms_key_state)
end