Class: Google::Apis::ClouddeployV1::PrivatePool
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::PrivatePool
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb
Overview
Execution using a private Cloud Build pool.
Instance Attribute Summary collapse
-
#artifact_storage ⇒ String
Optional.
-
#service_account ⇒ String
Optional.
-
#worker_pool ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrivatePool
constructor
A new instance of PrivatePool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PrivatePool
Returns a new instance of PrivatePool.
3971 3972 3973 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3971 def initialize(**args) update!(**args) end |
Instance Attribute Details
#artifact_storage ⇒ String
Optional. Cloud Storage location where execution outputs should be stored.
This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs:/
/my-bucket/my-dir"). If unspecified, a default bucket located in the same
region will be used.
Corresponds to the JSON property artifactStorage
3956 3957 3958 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3956 def artifact_storage @artifact_storage end |
#service_account ⇒ String
Optional. Google service account to use for execution. If unspecified, the
project execution service account (-compute@developer.gserviceaccount.com)
will be used.
Corresponds to the JSON property serviceAccount
3963 3964 3965 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3963 def service_account @service_account end |
#worker_pool ⇒ String
Required. Resource name of the Cloud Build worker pool to use. The format is
projects/
project/locations/
location/workerPools/
pool`.
Corresponds to the JSON property
workerPool`
3969 3970 3971 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3969 def worker_pool @worker_pool end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3976 3977 3978 3979 3980 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3976 def update!(**args) @artifact_storage = args[:artifact_storage] if args.key?(:artifact_storage) @service_account = args[:service_account] if args.key?(:service_account) @worker_pool = args[:worker_pool] if args.key?(:worker_pool) end |