Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCloudKmsConfig

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

Overview

Configuration information for Client's Cloud KMS information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaCloudKmsConfig

Returns a new instance of GoogleCloudIntegrationsV1alphaCloudKmsConfig.



6032
6033
6034
# File 'lib/google/apis/integrations_v1/classes.rb', line 6032

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

Instance Attribute Details

#keyString

Required. A Cloud KMS key is a named object containing one or more key versions, along with metadata for the key. A key exists on exactly one key ring tied to a specific location. Corresponds to the JSON property key

Returns:

  • (String)


6009
6010
6011
# File 'lib/google/apis/integrations_v1/classes.rb', line 6009

def key
  @key
end

#key_versionString

Optional. Each version of a key contains key material used for encryption or signing. A key's version is represented by an integer, starting at 1. To decrypt data or verify a signature, you must use the same key version that was used to encrypt or sign the data. Corresponds to the JSON property keyVersion

Returns:

  • (String)


6017
6018
6019
# File 'lib/google/apis/integrations_v1/classes.rb', line 6017

def key_version
  @key_version
end

#kms_locationString

Required. Location name of the key ring, e.g. "us-west1". Corresponds to the JSON property kmsLocation

Returns:

  • (String)


6022
6023
6024
# File 'lib/google/apis/integrations_v1/classes.rb', line 6022

def kms_location
  @kms_location
end

#kms_ringString

Required. A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys. A key ring's name does not need to be unique across a Google Cloud project, but must be unique within a given location. Corresponds to the JSON property kmsRing

Returns:

  • (String)


6030
6031
6032
# File 'lib/google/apis/integrations_v1/classes.rb', line 6030

def kms_ring
  @kms_ring
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6037
6038
6039
6040
6041
6042
# File 'lib/google/apis/integrations_v1/classes.rb', line 6037

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @key_version = args[:key_version] if args.key?(:key_version)
  @kms_location = args[:kms_location] if args.key?(:kms_location)
  @kms_ring = args[:kms_ring] if args.key?(:kms_ring)
end