Class: Google::Apis::CloudbuildV1alpha2::NetworkConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1alpha2/classes.rb,
generated/google/apis/cloudbuild_v1alpha2/representations.rb,
generated/google/apis/cloudbuild_v1alpha2/representations.rb

Overview

Network describes the network configuration for a WorkerPool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.



703
704
705
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 703

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#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 default network. Must be in the format projects/project/global/networks/network`, whereproject is a project number, such as12345, andnetworkis the name of a VPC network in the project. Corresponds to the JSON propertypeeredNetwork`

Returns:

  • (String)


701
702
703
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 701

def peered_network
  @peered_network
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



708
709
710
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 708

def update!(**args)
  @peered_network = args[:peered_network] if args.key?(:peered_network)
end