Class: Google::Apis::CloudbuildV2::TaskSpec
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::TaskSpec
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb
Overview
TaskSpec contains the Spec to instantiate a TaskRun.
Instance Attribute Summary collapse
-
#description ⇒ String
Description of the task.
-
#managed_sidecars ⇒ Array<String>
Sidecars that run alongside the Task’s step containers that should be added to this Task.
-
#params ⇒ Array<Google::Apis::CloudbuildV2::ParamSpec>
List of parameters.
-
#results ⇒ Array<Google::Apis::CloudbuildV2::TaskResult>
Values that this Task can output.
-
#sidecars ⇒ Array<Google::Apis::CloudbuildV2::Sidecar>
Sidecars that run alongside the Task's step containers.
-
#step_template ⇒ Google::Apis::CloudbuildV2::StepTemplate
StepTemplate can be used as the basis for all step containers within the Task, so that the steps inherit settings on the base container.
-
#steps ⇒ Array<Google::Apis::CloudbuildV2::Step>
Steps of the task.
-
#volumes ⇒ Array<Google::Apis::CloudbuildV2::VolumeSource>
A collection of volumes that are available to mount into steps.
-
#workspaces ⇒ Array<Google::Apis::CloudbuildV2::WorkspaceDeclaration>
The volumes that this Task requires.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TaskSpec
constructor
A new instance of TaskSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TaskSpec
Returns a new instance of TaskSpec.
2959 2960 2961 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2959 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Description of the task.
Corresponds to the JSON property description
2915 2916 2917 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2915 def description @description end |
#managed_sidecars ⇒ Array<String>
Sidecars that run alongside the Task’s step containers that should be added to
this Task.
Corresponds to the JSON property managedSidecars
2921 2922 2923 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2921 def managed_sidecars @managed_sidecars end |
#params ⇒ Array<Google::Apis::CloudbuildV2::ParamSpec>
List of parameters.
Corresponds to the JSON property params
2926 2927 2928 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2926 def params @params end |
#results ⇒ Array<Google::Apis::CloudbuildV2::TaskResult>
Values that this Task can output.
Corresponds to the JSON property results
2931 2932 2933 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2931 def results @results end |
#sidecars ⇒ Array<Google::Apis::CloudbuildV2::Sidecar>
Sidecars that run alongside the Task's step containers.
Corresponds to the JSON property sidecars
2936 2937 2938 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2936 def sidecars @sidecars end |
#step_template ⇒ Google::Apis::CloudbuildV2::StepTemplate
StepTemplate can be used as the basis for all step containers within the Task,
so that the steps inherit settings on the base container.
Corresponds to the JSON property stepTemplate
2942 2943 2944 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2942 def step_template @step_template end |
#steps ⇒ Array<Google::Apis::CloudbuildV2::Step>
Steps of the task.
Corresponds to the JSON property steps
2947 2948 2949 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2947 def steps @steps end |
#volumes ⇒ Array<Google::Apis::CloudbuildV2::VolumeSource>
A collection of volumes that are available to mount into steps.
Corresponds to the JSON property volumes
2952 2953 2954 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2952 def volumes @volumes end |
#workspaces ⇒ Array<Google::Apis::CloudbuildV2::WorkspaceDeclaration>
The volumes that this Task requires.
Corresponds to the JSON property workspaces
2957 2958 2959 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2957 def workspaces @workspaces end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2964 def update!(**args) @description = args[:description] if args.key?(:description) @managed_sidecars = args[:managed_sidecars] if args.key?(:managed_sidecars) @params = args[:params] if args.key?(:params) @results = args[:results] if args.key?(:results) @sidecars = args[:sidecars] if args.key?(:sidecars) @step_template = args[:step_template] if args.key?(:step_template) @steps = args[:steps] if args.key?(:steps) @volumes = args[:volumes] if args.key?(:volumes) @workspaces = args[:workspaces] if args.key?(:workspaces) end |