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.
-
#single_region_keys ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSingleRegionKey>
Optional.
-
#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.
17360 17361 17362 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17360 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
17323 17324 17325 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17323 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`
17330 17331 17332 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17330 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`
17336 17337 17338 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17336 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
17341 17342 17343 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17341 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`
17348 17349 17350 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17348 def name @name end |
#single_region_keys ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSingleRegionKey>
Optional. Single-regional CMEKs that are required for some VAIS features.
Corresponds to the JSON property singleRegionKeys
17353 17354 17355 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17353 def single_region_keys @single_region_keys end |
#state ⇒ String
Output only. State of the CmekConfig.
Corresponds to the JSON property state
17358 17359 17360 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17358 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17365 17366 17367 17368 17369 17370 17371 17372 17373 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17365 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 |