Class: Google::Apis::ApigeeregistryV1::Config

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

Overview

Available configurations to provision an Instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Config

Returns a new instance of Config.



677
678
679
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 677

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

Instance Attribute Details

#cmek_key_nameString

Required. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of projects/([^/]+)/locations/([^/]+)/ keyRings/([^/]+)/cryptoKeys/([^/]+), where the location must match InstanceConfig.location. Corresponds to the JSON property cmekKeyName

Returns:

  • (String)


670
671
672
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 670

def cmek_key_name
  @cmek_key_name
end

#locationString

Output only. The GCP location where the Instance resides. Corresponds to the JSON property location

Returns:

  • (String)


675
676
677
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 675

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



682
683
684
685
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 682

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