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.
2989 2990 2991 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2989 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
2965 2966 2967 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2965 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`
2976 2977 2978 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2976 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
2987 2988 2989 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2987 def peered_network_ip_range @peered_network_ip_range end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2994 2995 2996 2997 2998 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2994 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 |