Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaCmekConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaCmekConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/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.
-
#single_region_keys ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSingleRegionKey>
Optional.
-
#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.
4585 4586 4587 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4585 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
4548 4549 4550 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4548 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 propertykmsKey`
4555 4556 4557 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4555 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 propertykmsKeyVersion`
4561 4562 4563 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4561 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
4566 4567 4568 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4566 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 propertyname`
4573 4574 4575 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4573 def name @name end |
#single_region_keys ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSingleRegionKey>
Optional. Single-regional CMEKs that are required for some VAIS features.
Corresponds to the JSON property singleRegionKeys
4578 4579 4580 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4578 def single_region_keys @single_region_keys end |
#state ⇒ String
Output only. State of the CmekConfig.
Corresponds to the JSON property state
4583 4584 4585 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4583 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4590 4591 4592 4593 4594 4595 4596 4597 4598 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4590 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) @single_region_keys = args[:single_region_keys] if args.key?(:single_region_keys) @state = args[:state] if args.key?(:state) end |