Class: Google::Apis::AlloydbV1alpha::PscInterfaceConfig
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::PscInterfaceConfig
- 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. 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
-
#consumer_endpoint_ips ⇒ Array<String>
A list of endpoints in the consumer VPC the interface might initiate outbound connections to.
-
#network_attachment ⇒ String
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``.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PscInterfaceConfig
constructor
A new instance of PscInterfaceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PscInterfaceConfig
Returns a new instance of PscInterfaceConfig.
2189 2190 2191 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2189 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumer_endpoint_ips ⇒ Array<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
2179 2180 2181 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2179 def consumer_endpoint_ips @consumer_endpoint_ips end |
#network_attachment ⇒ String
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`
2187 2188 2189 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2187 def @network_attachment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2194 2195 2196 2197 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2194 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 |