Class: Google::Apis::ContainerV1beta1::DatabaseEncryption

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

Overview

Configuration of etcd encryption.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabaseEncryption

Returns a new instance of DatabaseEncryption.



2580
2581
2582
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2580

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

Instance Attribute Details

#current_stateString

Output only. The current state of etcd encryption. Corresponds to the JSON property currentState

Returns:

  • (String)


2556
2557
2558
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2556

def current_state
  @current_state
end

#decryption_keysArray<String>

Output only. Keys in use by the cluster for decrypting existing objects, in addition to the key in key_name. Each item is a CloudKMS key resource. Corresponds to the JSON property decryptionKeys

Returns:

  • (Array<String>)


2562
2563
2564
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2562

def decryption_keys
  @decryption_keys
end

#key_nameString

Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key Corresponds to the JSON property keyName

Returns:

  • (String)


2568
2569
2570
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2568

def key_name
  @key_name
end

#last_operation_errorsArray<Google::Apis::ContainerV1beta1::OperationError>

Output only. Records errors seen during DatabaseEncryption update operations. Corresponds to the JSON property lastOperationErrors



2573
2574
2575
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2573

def last_operation_errors
  @last_operation_errors
end

#stateString

The desired state of etcd encryption. Corresponds to the JSON property state

Returns:

  • (String)


2578
2579
2580
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2578

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2585
2586
2587
2588
2589
2590
2591
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2585

def update!(**args)
  @current_state = args[:current_state] if args.key?(:current_state)
  @decryption_keys = args[:decryption_keys] if args.key?(:decryption_keys)
  @key_name = args[:key_name] if args.key?(:key_name)
  @last_operation_errors = args[:last_operation_errors] if args.key?(:last_operation_errors)
  @state = args[:state] if args.key?(:state)
end