Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaCmekConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

Configurations used to enable CMEK data encryption with Cloud KMS keys.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCmekConfig

Returns a new instance of GoogleCloudDiscoveryengineV1betaCmekConfig.



18551
18552
18553
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 18551

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#is_defaultBoolean Also known as: is_default?

Output only. The default CmekConfig for the Customer. Corresponds to the JSON property isDefault

Returns:

  • (Boolean)


18514
18515
18516
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 18514

def is_default
  @is_default
end

#kms_keyString

Kms key resource name which will be used to encrypt resources projects/ project/locations/location/keyRings/keyRing/cryptoKeys/keyId`. Corresponds to the JSON propertykmsKey`

Returns:

  • (String)


18521
18522
18523
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 18521

def kms_key
  @kms_key
end

#kms_key_versionString

Kms key version resource name which will be used to encrypt resources / cryptoKeyVersions/keyVersion`. Corresponds to the JSON propertykmsKeyVersion`

Returns:

  • (String)


18527
18528
18529
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 18527

def kms_key_version
  @kms_key_version
end

#last_rotation_timestamp_microsFixnum

Output only. The timestamp of the last key rotation. Corresponds to the JSON property lastRotationTimestampMicros

Returns:

  • (Fixnum)


18532
18533
18534
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 18532

def last_rotation_timestamp_micros
  @last_rotation_timestamp_micros
end

#nameString

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`

Returns:

  • (String)


18539
18540
18541
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 18539

def name
  @name
end

#single_region_keysArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaSingleRegionKey>

Optional. Single-regional CMEKs that are required for some VAIS features. Corresponds to the JSON property singleRegionKeys



18544
18545
18546
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 18544

def single_region_keys
  @single_region_keys
end

#stateString

Output only. State of the CmekConfig. Corresponds to the JSON property state

Returns:

  • (String)


18549
18550
18551
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 18549

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18556
18557
18558
18559
18560
18561
18562
18563
18564
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 18556

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