Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EncryptionSpec
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EncryptionSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Overview
A customer-managed encryption key specification that can be applied to all created resources (e.g. Conversation).
Instance Attribute Summary collapse
-
#kms_key ⇒ String
Required.
-
#name ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2EncryptionSpec
constructor
A new instance of GoogleCloudDialogflowV2EncryptionSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2EncryptionSpec
Returns a new instance of GoogleCloudDialogflowV2EncryptionSpec.
9942 9943 9944 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9942 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_key ⇒ String
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 property
kmsKey`
9934 9935 9936 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9934 def kms_key @kms_key end |
#name ⇒ String
Immutable. The resource name of the encryption key specification resource.
Format: projects/project
/locations/location
/encryptionSpec
Corresponds to the JSON property name
9940 9941 9942 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9940 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9947 9948 9949 9950 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9947 def update!(**args) @kms_key = args[:kms_key] if args.key?(:kms_key) @name = args[:name] if args.key?(:name) end |