Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2EncryptionSpec

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

Overview

A customer-managed encryption key specification that can be applied to all created resources (e.g. Conversation).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2EncryptionSpec

Returns a new instance of GoogleCloudDialogflowV2EncryptionSpec.



15317
15318
15319
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15317

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

Instance Attribute Details

#kms_keyString

Required. The name of customer-managed encryption key that is used to secure a resource and its sub-resources. If empty, the resource is secured by the default Google encryption key. Only the key in the same location as this resource is allowed to be used for encryption. Format: projects/project/ locations/location/keyRings/keyRing/cryptoKeys/key` Corresponds to the JSON propertykmsKey`

Returns:

  • (String)


15309
15310
15311
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15309

def kms_key
  @kms_key
end

#nameString

Immutable. The resource name of the encryption key specification resource. Format: projects/project/locations/location/encryptionSpec Corresponds to the JSON property name

Returns:

  • (String)


15315
15316
15317
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15315

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15322
15323
15324
15325
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15322

def update!(**args)
  @kms_key = args[:kms_key] if args.key?(:kms_key)
  @name = args[:name] if args.key?(:name)
end