Class: Google::Apis::AlloydbV1::PscInstanceConfig

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

Overview

PscInstanceConfig contains PSC related configuration at an instance level.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PscInstanceConfig

Returns a new instance of PscInstanceConfig.



1970
1971
1972
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1970

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

Instance Attribute Details

#allowed_consumer_projectsArray<String>

Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. Corresponds to the JSON property allowedConsumerProjects

Returns:

  • (Array<String>)


1955
1956
1957
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1955

def allowed_consumer_projects
  @allowed_consumer_projects
end

#psc_dns_nameString

Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog Corresponds to the JSON property pscDnsName

Returns:

  • (String)


1961
1962
1963
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1961

def psc_dns_name
  @psc_dns_name
end

Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of projects//regions//serviceAttachments/ Corresponds to the JSON property serviceAttachmentLink

Returns:

  • (String)


1968
1969
1970
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1968

def service_attachment_link
  @service_attachment_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1975
1976
1977
1978
1979
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1975

def update!(**args)
  @allowed_consumer_projects = args[:allowed_consumer_projects] if args.key?(:allowed_consumer_projects)
  @psc_dns_name = args[:psc_dns_name] if args.key?(:psc_dns_name)
  @service_attachment_link = args[:service_attachment_link] if args.key?(:service_attachment_link)
end