Class: Google::Apis::ApimV1alpha::GclbObservationSourcePscNetworkConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#networkString

Required. The VPC network. Format: projects/project_id/global/networks/ network` Corresponds to the JSON propertynetwork`

Returns:

  • (String)


293
294
295
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 293

def network
  @network
end

#subnetworkString

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

Returns:

  • (String)


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