Class: Google::Apis::CloudbuildV1alpha2::WorkerPool
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1alpha2::WorkerPool
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1alpha2/classes.rb,
lib/google/apis/cloudbuild_v1alpha2/representations.rb,
lib/google/apis/cloudbuild_v1alpha2/representations.rb
Overview
Configuration for a WorkerPool to run the builds. Workers are machines that Cloud Build uses to run your builds. By default, all workers run in a project owned by Cloud Build. To have full control over the workers that execute your builds -- such as enabling them to access private resources on your private network -- you can request Cloud Build to run the workers in your own project by creating a custom workers pool.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#network_config ⇒ Google::Apis::CloudbuildV1alpha2::NetworkConfig
Network describes the network configuration for a
WorkerPool
. -
#region ⇒ String
Required.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#worker_config ⇒ Google::Apis::CloudbuildV1alpha2::WorkerConfig
WorkerConfig defines the configuration to be used for a creating workers in the pool.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkerPool
constructor
A new instance of WorkerPool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkerPool
Returns a new instance of WorkerPool.
1807 1808 1809 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1807 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Time at which the request to create the WorkerPool
was received.
Corresponds to the JSON property createTime
1765 1766 1767 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1765 def create_time @create_time end |
#delete_time ⇒ String
Output only. Time at which the request to delete the WorkerPool
was received.
Corresponds to the JSON property deleteTime
1770 1771 1772 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1770 def delete_time @delete_time end |
#name ⇒ String
Output only. The resource name of the WorkerPool
. Format of the name is
projects/
project_id/workerPools/
worker_pool_id`, where the value of
worker_pool_idis provided in the CreateWorkerPool request.
Corresponds to the JSON property
name`
1777 1778 1779 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1777 def name @name end |
#network_config ⇒ Google::Apis::CloudbuildV1alpha2::NetworkConfig
Network describes the network configuration for a WorkerPool
.
Corresponds to the JSON property networkConfig
1782 1783 1784 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1782 def network_config @network_config end |
#region ⇒ String
Required. Immutable. The region where the WorkerPool
runs. Only "us-central1"
is currently supported. Note that region
cannot be changed once the
WorkerPool
is created.
Corresponds to the JSON property region
1789 1790 1791 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1789 def region @region end |
#state ⇒ String
Output only. WorkerPool state.
Corresponds to the JSON property state
1794 1795 1796 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1794 def state @state end |
#update_time ⇒ String
Output only. Time at which the request to update the WorkerPool
was received.
Corresponds to the JSON property updateTime
1799 1800 1801 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1799 def update_time @update_time end |
#worker_config ⇒ Google::Apis::CloudbuildV1alpha2::WorkerConfig
WorkerConfig defines the configuration to be used for a creating workers in
the pool.
Corresponds to the JSON property workerConfig
1805 1806 1807 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1805 def worker_config @worker_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1812 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @delete_time = args[:delete_time] if args.key?(:delete_time) @name = args[:name] if args.key?(:name) @network_config = args[:network_config] if args.key?(:network_config) @region = args[:region] if args.key?(:region) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) @worker_config = args[:worker_config] if args.key?(:worker_config) end |