Class: Google::Apis::AlloydbV1alpha::PscInstanceConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/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.



2152
2153
2154
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2152

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

Instance Attribute Details

#allowed_consumer_networksArray<String>

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

Returns:

  • (Array<String>)


2109
2110
2111
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2109

def allowed_consumer_networks
  @allowed_consumer_networks
end

#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>)


2115
2116
2117
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2115

def allowed_consumer_projects
  @allowed_consumer_projects
end

Optional. List of service attachments that this instance has created endpoints to connect with. Currently, only a single outgoing service attachment is supported per instance. Corresponds to the JSON property outgoingServiceAttachmentLinks

Returns:

  • (Array<String>)


2122
2123
2124
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2122

def outgoing_service_attachment_links
  @outgoing_service_attachment_links
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)


2128
2129
2130
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2128

def psc_dns_name
  @psc_dns_name
end

#psc_enabledBoolean Also known as: psc_enabled?

Optional. Whether PSC connectivity is enabled for this instance. This is populated by referencing the value from the parent cluster. Corresponds to the JSON property pscEnabled

Returns:

  • (Boolean)


2134
2135
2136
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2134

def psc_enabled
  @psc_enabled
end

#psc_interface_configsArray<Google::Apis::AlloydbV1alpha::PscInterfaceConfig>

Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. All the VMs created for the primary instance will share the same configurations. Currently we only support 0 or 1 PSC interface. Corresponds to the JSON property pscInterfaceConfigs



2143
2144
2145
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2143

def psc_interface_configs
  @psc_interface_configs
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)


2150
2151
2152
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2150

def service_attachment_link
  @service_attachment_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2157
2158
2159
2160
2161
2162
2163
2164
2165
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2157

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