Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaCmekConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCmekConfig

Returns a new instance of GoogleCloudDiscoveryengineV1alphaCmekConfig.



9707
9708
9709
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9707

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)


9675
9676
9677
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9675

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)


9682
9683
9684
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9682

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)


9688
9689
9690
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9688

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)


9693
9694
9695
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9693

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)


9700
9701
9702
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9700

def name
  @name
end

#stateString

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

Returns:

  • (String)


9705
9706
9707
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9705

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9712
9713
9714
9715
9716
9717
9718
9719
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9712

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