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.



2886
2887
2888
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2886

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)


2861
2862
2863
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2861

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)


2872
2873
2874
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2872

def peered_network
  @peered_network
end

#peered_network_ip_rangeString

Immutable. Subnet IP range within the peered network. This is specified in CIDR notation. The IP and prefix size are both optional. If unspecified, the default value for IP is blank (will use an automatic value from the peered network), and the prefix size will default to 24 bits. e.g. 192.168.0.0/30 would specify a subnet mask of 192.168.0.0 with a prefix size of 30 bits. 192. 168.0.0 would specify a subnet mask of 192.168.0.0 with a prefix size of 24 bits (the default prefix size). /16 would specify a prefix size of 16 bits, with an unspecified IP. Corresponds to the JSON property peeredNetworkIpRange

Returns:

  • (String)


2884
2885
2886
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2884

def peered_network_ip_range
  @peered_network_ip_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2891
2892
2893
2894
2895
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2891

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