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.
3952 3953 3954 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3952 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
3937 3938 3939 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3937 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
3944 3945 3946 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3944 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`
3950 3951 3952 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3950 def worker_pool @worker_pool end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3957 3958 3959 3960 3961 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3957 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 |