Class: Google::Apis::CloudbuildV1alpha1::Network
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1alpha1::Network
- Defined in:
- generated/google/apis/cloudbuild_v1alpha1/classes.rb,
generated/google/apis/cloudbuild_v1alpha1/representations.rb,
generated/google/apis/cloudbuild_v1alpha1/representations.rb
Overview
Network describes the GCP network used to create workers in.
Instance Attribute Summary collapse
-
#network ⇒ String
Network on which the workers are created.
-
#project_id ⇒ String
Project id containing the defined network and subnetwork.
-
#subnetwork ⇒ String
Subnetwork on which the workers are created.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Network
constructor
A new instance of Network.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Network
Returns a new instance of Network
714 715 716 |
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 714 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ String
Network on which the workers are created.
“default” network is used if empty.
Corresponds to the JSON property network
697 698 699 |
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 697 def network @network end |
#project_id ⇒ String
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
706 707 708 |
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 706 def project_id @project_id end |
#subnetwork ⇒ String
Subnetwork on which the workers are created.
“default” subnetwork is used if empty.
Corresponds to the JSON property subnetwork
712 713 714 |
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 712 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
719 720 721 722 723 |
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 719 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 |