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.



3111
3112
3113
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3111

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)


3087
3088
3089
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3087

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)


3098
3099
3100
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3098

def peered_network
  @peered_network
end

#peered_network_ip_rangeString

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

Returns:

  • (String)


3109
3110
3111
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3109

def peered_network_ip_range
  @peered_network_ip_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3116
3117
3118
3119
3120
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3116

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