Class: Google::Apis::CloudbuildV1::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::NetworkConfig
- 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
-
#egress_option ⇒ String
Option to configure network egress for the workers.
-
#peered_network ⇒ String
Required.
-
#peered_network_ip_range ⇒ String
Immutable.
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.
3150 3151 3152 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3150 def initialize(**args) update!(**args) end |
Instance Attribute Details
#egress_option ⇒ String
Option to configure network egress for the workers.
Corresponds to the JSON property egressOption
3126 3127 3128 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3126 def egress_option @egress_option end |
#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, 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`
3137 3138 3139 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3137 def peered_network @peered_network end |
#peered_network_ip_range ⇒ String
Immutable. Subnet IP range within the peered network. This is specified in
CIDR notation with a slash and the subnet prefix size. You can optionally
specify an IP address before the subnet prefix value. e.g. 192.168.0.0/29
would specify an IP range starting at 192.168.0.0 with a prefix size of 29
bits. /16 would specify a prefix size of 16 bits, with an automatically
determined IP within the peered VPC. If unspecified, a value of /24 will be
used.
Corresponds to the JSON property peeredNetworkIpRange
3148 3149 3150 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3148 def peered_network_ip_range @peered_network_ip_range end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3155 3156 3157 3158 3159 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3155 def update!(**args) @egress_option = args[:egress_option] if args.key?(:egress_option) @peered_network = args[:peered_network] if args.key?(:peered_network) @peered_network_ip_range = args[:peered_network_ip_range] if args.key?(:peered_network_ip_range) end |