Class: Google::Apis::AlloydbV1beta::PscInterfaceConfig

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

Overview

Configuration for setting up a PSC interface. This information needs to be provided by the customer. PSC interfaces will be created and added to VMs via SLM (adding a network interface will require recreating the VM). For HA instances this will be done via LDTM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PscInterfaceConfig

Returns a new instance of PscInterfaceConfig.



1946
1947
1948
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1946

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

Instance Attribute Details

#consumer_endpoint_ipsArray<String>

A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created. Corresponds to the JSON property consumerEndpointIps

Returns:

  • (Array<String>)


1936
1937
1938
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1936

def consumer_endpoint_ips
  @consumer_endpoint_ips
end

#network_attachmentString

The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: projects/$CONSUMER_PROJECT/ regions/$REGION/networkAttachments/$NETWORK_ATTACHMENT_NAME`. NetworkAttachment has to be provided when the PSC interface is created. Corresponds to the JSON propertynetworkAttachment`

Returns:

  • (String)


1944
1945
1946
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1944

def network_attachment
  @network_attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1951
1952
1953
1954
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1951

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