Class: Google::Apis::ConnectorsV1::EncryptionConfig

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

Regional encryption config for CMEK details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionConfig

Returns a new instance of EncryptionConfig.



2281
2282
2283
# File 'lib/google/apis/connectors_v1/classes.rb', line 2281

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

Instance Attribute Details

#encryption_typeString

Optional. Encryption type for the region. Corresponds to the JSON property encryptionType

Returns:

  • (String)


2273
2274
2275
# File 'lib/google/apis/connectors_v1/classes.rb', line 2273

def encryption_type
  @encryption_type
end

#kms_key_nameString

Optional. KMS crypto key. This field accepts identifiers of the form projects/ project/locations/location/keyRings/key_ring/cryptoKeys/crypto_key` Corresponds to the JSON propertykmsKeyName`

Returns:

  • (String)


2279
2280
2281
# File 'lib/google/apis/connectors_v1/classes.rb', line 2279

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2286
2287
2288
2289
# File 'lib/google/apis/connectors_v1/classes.rb', line 2286

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