Class: Google::Apis::CloudbuildV1beta1::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1beta1::NetworkConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1beta1/classes.rb,
lib/google/apis/cloudbuild_v1beta1/representations.rb,
lib/google/apis/cloudbuild_v1beta1/representations.rb
Overview
Network describes the network configuration for a WorkerPool
.
Instance Attribute Summary collapse
-
#peered_network ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkConfig
constructor
A new instance of NetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkConfig
Returns a new instance of NetworkConfig.
1610 1611 1612 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1610 def initialize(**args) update!(**args) end |
Instance Attribute Details
#peered_network ⇒ String
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
projectis a project number,
such as `12345`, and
network`is the name of a VPC network in the project.
See [Understanding network configuration options](https://cloud.google.com/
cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#
understanding_the_network_configuration_options)
Corresponds to the JSON property
peeredNetwork`
1608 1609 1610 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1608 def peered_network @peered_network end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1615 1616 1617 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1615 def update!(**args) @peered_network = args[:peered_network] if args.key?(:peered_network) end |