Class: Google::Apis::AlloydbV1alpha::PscInterfaceConfig

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

Configuration for setting up a PSC interface to enable outbound connectivity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PscInterfaceConfig

Returns a new instance of PscInterfaceConfig.



2380
2381
2382
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2380

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

Instance Attribute Details

#network_attachment_resourceString

The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/$ CONSUMER_PROJECT/regions/$REGION/networkAttachments/$ NETWORK_ATTACHMENT_NAME". The network attachment must be in the same region as the instance. Corresponds to the JSON property networkAttachmentResource

Returns:

  • (String)


2378
2379
2380
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2378

def network_attachment_resource
  @network_attachment_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2385
2386
2387
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2385

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