class Google::Apis::CloudbuildV1::NetworkConfig

Defines the network configuration for the pool.

Attributes

egress_option[RW]

Option to configure network egress for the workers. Corresponds to the JSON property `egressOption` @return [String]

peered_network[RW]

Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool. project_id` on the service producer network. Must be in the format `projects/` project`/global/networks/`network“, where “project“ is a project number, such as `12345`, and “network“ is the name of a VPC network in the project. See [Understanding network configuration options](cloud.google.com/ build/docs/private-pools/set-up-private-pool-environment) Corresponds to the JSON property `peeredNetwork` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1/classes.rb, line 1762
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbuild_v1/classes.rb, line 1767
def update!(**args)
  @egress_option = args[:egress_option] if args.key?(:egress_option)
  @peered_network = args[:peered_network] if args.key?(:peered_network)
end