Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaCmekConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaCmekConfig
- 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) ⇒ GoogleCloudDiscoveryengineV1alphaCmekConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaCmekConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCmekConfig
Returns a new instance of GoogleCloudDiscoveryengineV1alphaCmekConfig.
10280 10281 10282 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 10280 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
10248 10249 10250 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 10248 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`
10255 10256 10257 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 10255 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`
10261 10262 10263 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 10261 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
10266 10267 10268 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 10266 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`
10273 10274 10275 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 10273 def name @name end |
#state ⇒ String
Output only. State of the CmekConfig.
Corresponds to the JSON property state
10278 10279 10280 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 10278 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10285 10286 10287 10288 10289 10290 10291 10292 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 10285 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 |