Class: Google::Apis::ConnectorsV1::EncryptionKey

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

Overview

Encryption Key value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionKey

Returns a new instance of EncryptionKey.



1295
1296
1297
# File 'lib/google/apis/connectors_v1/classes.rb', line 1295

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

Instance Attribute Details

#kms_key_nameString

The [KMS key name] with which the content of the Operation is encrypted. The expected format: projects/*/locations/*/keyRings/*/cryptoKeys/*. Will be empty string if google managed. Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


1288
1289
1290
# File 'lib/google/apis/connectors_v1/classes.rb', line 1288

def kms_key_name
  @kms_key_name
end

#typeString

Type. Corresponds to the JSON property type

Returns:

  • (String)


1293
1294
1295
# File 'lib/google/apis/connectors_v1/classes.rb', line 1293

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1300
1301
1302
1303
# File 'lib/google/apis/connectors_v1/classes.rb', line 1300

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