Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaCmekConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaCmekConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Configurations used to enable CMEK data encryption with Cloud KMS keys.
Instance Attribute Summary collapse
-
#is_default ⇒ Boolean
(also: #is_default?)
Output only.
-
#kms_key ⇒ String
Kms key resource name which will be used to encrypt resources
projects/
project/locations/
location/keyRings/
keyRing/cryptoKeys/
keyId``. -
#kms_key_version ⇒ String
Kms key version resource name which will be used to encrypt resources
/ cryptoKeyVersions/
keyVersion``. -
#last_rotation_timestamp_micros ⇒ Fixnum
Output only.
-
#name ⇒ String
Required.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCmekConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1betaCmekConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCmekConfig
Returns a new instance of GoogleCloudDiscoveryengineV1betaCmekConfig.
14547 14548 14549 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 14547 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_default ⇒ Boolean Also known as: is_default?
Output only. The default CmekConfig for the Customer.
Corresponds to the JSON property isDefault
14515 14516 14517 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 14515 def is_default @is_default end |
#kms_key ⇒ String
Kms key resource name which will be used to encrypt resources projects/
project/locations/
location/keyRings/
keyRing/cryptoKeys/
keyId`.
Corresponds to the JSON property
kmsKey`
14522 14523 14524 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 14522 def kms_key @kms_key end |
#kms_key_version ⇒ String
Kms key version resource name which will be used to encrypt resources /
cryptoKeyVersions/
keyVersion`.
Corresponds to the JSON property
kmsKeyVersion`
14528 14529 14530 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 14528 def kms_key_version @kms_key_version end |
#last_rotation_timestamp_micros ⇒ Fixnum
Output only. The timestamp of the last key rotation.
Corresponds to the JSON property lastRotationTimestampMicros
14533 14534 14535 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 14533 def @last_rotation_timestamp_micros end |
#name ⇒ String
Required. Name of the CmekConfig, of the form projects/
project/locations/
location/cmekConfig
or projects/
project/locations/
location/cmekConfigs/
cmekConfig`.
Corresponds to the JSON property
name`
14540 14541 14542 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 14540 def name @name end |
#state ⇒ String
Output only. State of the CmekConfig.
Corresponds to the JSON property state
14545 14546 14547 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 14545 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14552 14553 14554 14555 14556 14557 14558 14559 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 14552 def update!(**args) @is_default = args[:is_default] if args.key?(:is_default) @kms_key = args[:kms_key] if args.key?(:kms_key) @kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version) @last_rotation_timestamp_micros = args[:last_rotation_timestamp_micros] if args.key?(:last_rotation_timestamp_micros) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end |