class Google::Apis::CloudbuildV1alpha1::Network

Network describes the GCP network used to create workers in.

Attributes

network[RW]

Network on which the workers are created. “default” network is used if empty. Corresponds to the JSON property `network` @return [String]

project_id[RW]

Project id containing the defined network and subnetwork. For a peered VPC, this will be the same as the project_id in which the workers are created. For a shared VPC, this will be the project sharing the network with the project_id project in which workers will be created. For custom workers with no VPC, this will be the same as project_id. Corresponds to the JSON property `projectId` @return [String]

subnetwork[RW]

Subnetwork on which the workers are created. “default” subnetwork is used if empty. Corresponds to the JSON property `subnetwork` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1alpha1/classes.rb, line 1136
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbuild_v1alpha1/classes.rb, line 1141
def update!(**args)
  @network = args[:network] if args.key?(:network)
  @project_id = args[:project_id] if args.key?(:project_id)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
end