Class: Google::Apis::CloudbuildV1::NetworkConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb

Overview

Defines the network configuration for the pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.



1200
1201
1202
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1200

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

Instance Attribute Details

#egress_optionString

Option to configure network egress for the workers. Corresponds to the JSON property egressOption

Returns:

  • (String)


1187
1188
1189
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1187

def egress_option
  @egress_option
end

#peered_networkString

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, whereprojectis a project number, such as `12345`, andnetwork`is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/ build/docs/private-pools/set-up-private-pool-environment) Corresponds to the JSON propertypeeredNetwork`

Returns:

  • (String)


1198
1199
1200
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1198

def peered_network
  @peered_network
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1205
1206
1207
1208
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1205

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