Class: Google::Apis::ContainerV1::DatabaseEncryption
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::DatabaseEncryption
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb
Overview
Configuration of etcd encryption.
Instance Attribute Summary collapse
-
#current_state ⇒ String
Output only.
-
#decryption_keys ⇒ Array<String>
Output only.
-
#key_name ⇒ String
Name of CloudKMS key to use for the encryption of secrets in etcd.
-
#last_operation_errors ⇒ Array<Google::Apis::ContainerV1::OperationError>
Output only.
-
#state ⇒ String
The desired state of etcd encryption.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabaseEncryption
constructor
A new instance of DatabaseEncryption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatabaseEncryption
Returns a new instance of DatabaseEncryption.
2474 2475 2476 |
# File 'lib/google/apis/container_v1/classes.rb', line 2474 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_state ⇒ String
Output only. The current state of etcd encryption.
Corresponds to the JSON property currentState
2450 2451 2452 |
# File 'lib/google/apis/container_v1/classes.rb', line 2450 def current_state @current_state end |
#decryption_keys ⇒ Array<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
2456 2457 2458 |
# File 'lib/google/apis/container_v1/classes.rb', line 2456 def decryption_keys @decryption_keys end |
#key_name ⇒ String
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
2462 2463 2464 |
# File 'lib/google/apis/container_v1/classes.rb', line 2462 def key_name @key_name end |
#last_operation_errors ⇒ Array<Google::Apis::ContainerV1::OperationError>
Output only. Records errors seen during DatabaseEncryption update operations.
Corresponds to the JSON property lastOperationErrors
2467 2468 2469 |
# File 'lib/google/apis/container_v1/classes.rb', line 2467 def last_operation_errors @last_operation_errors end |
#state ⇒ String
The desired state of etcd encryption.
Corresponds to the JSON property state
2472 2473 2474 |
# File 'lib/google/apis/container_v1/classes.rb', line 2472 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2479 2480 2481 2482 2483 2484 2485 |
# File 'lib/google/apis/container_v1/classes.rb', line 2479 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 |