Class: Google::Apis::ClouddeployV1::ExecutionConfig

Inherits:
Object
  • Object
show all
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

Configuration of the environment to use when calling Skaffold.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecutionConfig

Returns a new instance of ExecutionConfig.



1659
1660
1661
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1659

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#artifact_storageString

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

Returns:

  • (String)


1622
1623
1624
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1622

def artifact_storage
  @artifact_storage
end

#default_poolGoogle::Apis::ClouddeployV1::DefaultPool

Execution using the default Cloud Build pool. Corresponds to the JSON property defaultPool



1627
1628
1629
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1627

def default_pool
  @default_pool
end

#execution_timeoutString

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

Returns:

  • (String)


1633
1634
1635
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1633

def execution_timeout
  @execution_timeout
end

#private_poolGoogle::Apis::ClouddeployV1::PrivatePool

Execution using a private Cloud Build pool. Corresponds to the JSON property privatePool



1638
1639
1640
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1638

def private_pool
  @private_pool
end

#service_accountString

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

Returns:

  • (String)


1645
1646
1647
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1645

def 
  @service_account
end

#usagesArray<String>

Required. Usages when this configuration should be applied. Corresponds to the JSON property usages

Returns:

  • (Array<String>)


1650
1651
1652
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1650

def usages
  @usages
end

#worker_poolString

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 propertyworkerPool`

Returns:

  • (String)


1657
1658
1659
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1657

def worker_pool
  @worker_pool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1664
1665
1666
1667
1668
1669
1670
1671
1672
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1664

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)
  @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
end