Class: Google::Apis::ClouddeployV1::ExecutionConfig
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::ExecutionConfig
- 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 more...
Overview
Configuration of the environment to use when calling Skaffold.
Instance Attribute Summary collapse
-
#artifact_storage ⇒ String
Optional.
-
#default_pool ⇒ Google::Apis::ClouddeployV1::DefaultPool
Execution using the default Cloud Build pool.
-
#execution_timeout ⇒ String
Optional.
-
#private_pool ⇒ Google::Apis::ClouddeployV1::PrivatePool
Execution using a private Cloud Build pool.
-
#service_account ⇒ String
Optional.
-
#usages ⇒ Array<String>
Required.
-
#verbose ⇒ Boolean
(also: #verbose?)
Optional.
-
#worker_pool ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecutionConfig
constructor
A new instance of ExecutionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExecutionConfig
Returns a new instance of ExecutionConfig.
1917 1918 1919 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1917 def initialize(**args) update!(**args) end |
Instance Attribute Details
#artifact_storage ⇒ String
Optional. Cloud Storage location in which to store execution outputs. 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
1873 1874 1875 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1873 def artifact_storage @artifact_storage end |
#default_pool ⇒ Google::Apis::ClouddeployV1::DefaultPool
Execution using the default Cloud Build pool.
Corresponds to the JSON property defaultPool
1878 1879 1880 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1878 def default_pool @default_pool end |
#execution_timeout ⇒ String
Optional. Execution timeout for a Cloud Build Execution. This must be between
10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
Corresponds to the JSON property executionTimeout
1884 1885 1886 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1884 def execution_timeout @execution_timeout end |
#private_pool ⇒ Google::Apis::ClouddeployV1::PrivatePool
Execution using a private Cloud Build pool.
Corresponds to the JSON property privatePool
1889 1890 1891 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1889 def private_pool @private_pool end |
#service_account ⇒ String
Optional. Google service account to use for execution. If unspecified, the
project execution service account (-compute@developer.gserviceaccount.com) is
used.
Corresponds to the JSON property serviceAccount
1896 1897 1898 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1896 def service_account @service_account end |
#usages ⇒ Array<String>
Required. Usages when this configuration should be applied.
Corresponds to the JSON property usages
1901 1902 1903 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1901 def usages @usages end |
#verbose ⇒ Boolean Also known as: verbose?
Optional. If true, additional logging will be enabled when running builds in
this execution environment.
Corresponds to the JSON property verbose
1907 1908 1909 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1907 def verbose @verbose end |
#worker_pool ⇒ String
Optional. The resource name of the WorkerPool
, with the format projects/
project/locations/
location/workerPools/
worker_pool`. If this optional
field is unspecified, the default Cloud Build pool will be used.
Corresponds to the JSON property
workerPool`
1915 1916 1917 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1915 def worker_pool @worker_pool end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1922 def update!(**args) @artifact_storage = args[:artifact_storage] if args.key?(:artifact_storage) @default_pool = args[:default_pool] if args.key?(:default_pool) @execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout) @private_pool = args[:private_pool] if args.key?(:private_pool) @service_account = args[:service_account] if args.key?(:service_account) @usages = args[:usages] if args.key?(:usages) @verbose = args[:verbose] if args.key?(:verbose) @worker_pool = args[:worker_pool] if args.key?(:worker_pool) end |