Class: Google::Apis::ApimV1alpha::GclbObservationSourcePscNetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::ApimV1alpha::GclbObservationSourcePscNetworkConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apim_v1alpha/classes.rb,
lib/google/apis/apim_v1alpha/representations.rb,
lib/google/apis/apim_v1alpha/representations.rb
Overview
Network information for setting up a PSC connection.
Instance Attribute Summary collapse
-
#network ⇒ String
Required.
-
#subnetwork ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GclbObservationSourcePscNetworkConfig
constructor
A new instance of GclbObservationSourcePscNetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GclbObservationSourcePscNetworkConfig
Returns a new instance of GclbObservationSourcePscNetworkConfig.
302 303 304 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 302 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ String
Required. The VPC network. Format: projects/
project_id/global/networks/
network`
Corresponds to the JSON property
network`
293 294 295 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 293 def network @network end |
#subnetwork ⇒ String
Required. The subnetwork in the source region that will be used to connect to
the Cloud Load Balancers via PSC NEGs. Must belong to network
. Format:
projects/project_id
/regions/region
/subnetworks/subnet
Corresponds to the JSON property subnetwork
300 301 302 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 300 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
307 308 309 310 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 307 def update!(**args) @network = args[:network] if args.key?(:network) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |