Class: Google::Apis::CloudbuildV2::PipelineRun
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::PipelineRun
- 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
Message describing PipelineRun object
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
User annotations.
-
#child_references ⇒ Array<Google::Apis::CloudbuildV2::ChildStatusReference>
Output only.
-
#completion_time ⇒ String
Output only.
-
#conditions ⇒ Array<Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2Condition>
Output only.
-
#create_time ⇒ String
Output only.
-
#etag ⇒ String
Needed for declarative-friendly resources.
-
#name ⇒ String
Output only.
-
#params ⇒ Array<Google::Apis::CloudbuildV2::Param>
Params is a list of parameter names and values.
-
#pipeline_ref ⇒ Google::Apis::CloudbuildV2::PipelineRef
PipelineRef can be used to refer to a specific instance of a Pipeline.
-
#pipeline_run_status ⇒ String
Status of the PipelineRun.
-
#pipeline_spec ⇒ Google::Apis::CloudbuildV2::PipelineSpec
PipelineSpec defines the desired state of Pipeline.
-
#resolved_pipeline_spec ⇒ Google::Apis::CloudbuildV2::PipelineSpec
PipelineSpec defines the desired state of Pipeline.
-
#service_account ⇒ String
Service account used in the Pipeline.
-
#skipped_tasks ⇒ Array<Google::Apis::CloudbuildV2::SkippedTask>
Output only.
-
#start_time ⇒ String
Output only.
-
#timeouts ⇒ Google::Apis::CloudbuildV2::TimeoutFields
TimeoutFields allows granular specification of pipeline, task, and finally timeouts Corresponds to the JSON property
timeouts. -
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#worker_pool ⇒ String
Output only.
-
#workflow ⇒ String
Output only.
-
#workspaces ⇒ Array<Google::Apis::CloudbuildV2::WorkspaceBinding>
Workspaces is a list of WorkspaceBindings from volumes to workspaces.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PipelineRun
constructor
A new instance of PipelineRun.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PipelineRun
Returns a new instance of PipelineRun.
1463 1464 1465 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1463 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
User annotations. See https://google.aip.dev/128#annotations
Corresponds to the JSON property annotations
1355 1356 1357 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1355 def annotations @annotations end |
#child_references ⇒ Array<Google::Apis::CloudbuildV2::ChildStatusReference>
Output only. List of TaskRun and Run names and PipelineTask names for children
of this PipelineRun.
Corresponds to the JSON property childReferences
1361 1362 1363 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1361 def child_references @child_references end |
#completion_time ⇒ String
Output only. Time the pipeline completed.
Corresponds to the JSON property completionTime
1366 1367 1368 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1366 def completion_time @completion_time end |
#conditions ⇒ Array<Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2Condition>
Output only. Kubernetes Conditions convention for PipelineRun status and error.
Corresponds to the JSON property conditions
1371 1372 1373 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1371 def conditions @conditions end |
#create_time ⇒ String
Output only. Time at which the request to create the PipelineRun was
received.
Corresponds to the JSON property createTime
1377 1378 1379 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1377 def create_time @create_time end |
#etag ⇒ String
Needed for declarative-friendly resources.
Corresponds to the JSON property etag
1382 1383 1384 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1382 def etag @etag end |
#name ⇒ String
Output only. The PipelineRun name with format projects/project/locations/
location/pipelineRuns/pipeline_run`
Corresponds to the JSON propertyname`
1388 1389 1390 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1388 def name @name end |
#params ⇒ Array<Google::Apis::CloudbuildV2::Param>
Params is a list of parameter names and values.
Corresponds to the JSON property params
1393 1394 1395 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1393 def params @params end |
#pipeline_ref ⇒ Google::Apis::CloudbuildV2::PipelineRef
PipelineRef can be used to refer to a specific instance of a Pipeline.
Corresponds to the JSON property pipelineRef
1398 1399 1400 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1398 def pipeline_ref @pipeline_ref end |
#pipeline_run_status ⇒ String
Status of the PipelineRun.
Corresponds to the JSON property pipelineRunStatus
1403 1404 1405 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1403 def pipeline_run_status @pipeline_run_status end |
#pipeline_spec ⇒ Google::Apis::CloudbuildV2::PipelineSpec
PipelineSpec defines the desired state of Pipeline.
Corresponds to the JSON property pipelineSpec
1408 1409 1410 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1408 def pipeline_spec @pipeline_spec end |
#resolved_pipeline_spec ⇒ Google::Apis::CloudbuildV2::PipelineSpec
PipelineSpec defines the desired state of Pipeline.
Corresponds to the JSON property resolvedPipelineSpec
1413 1414 1415 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1413 def resolved_pipeline_spec @resolved_pipeline_spec end |
#service_account ⇒ String
Service account used in the Pipeline.
Corresponds to the JSON property serviceAccount
1418 1419 1420 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1418 def service_account @service_account end |
#skipped_tasks ⇒ Array<Google::Apis::CloudbuildV2::SkippedTask>
Output only. List of tasks that were skipped due to when expressions
evaluating to false.
Corresponds to the JSON property skippedTasks
1424 1425 1426 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1424 def skipped_tasks @skipped_tasks end |
#start_time ⇒ String
Output only. Time the pipeline is actually started.
Corresponds to the JSON property startTime
1429 1430 1431 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1429 def start_time @start_time end |
#timeouts ⇒ Google::Apis::CloudbuildV2::TimeoutFields
TimeoutFields allows granular specification of pipeline, task, and finally
timeouts
Corresponds to the JSON property timeouts
1435 1436 1437 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1435 def timeouts @timeouts end |
#uid ⇒ String
Output only. A unique identifier for the PipelineRun.
Corresponds to the JSON property uid
1440 1441 1442 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1440 def uid @uid end |
#update_time ⇒ String
Output only. Time at which the request to update the PipelineRun was
received.
Corresponds to the JSON property updateTime
1446 1447 1448 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1446 def update_time @update_time end |
#worker_pool ⇒ String
Output only. The WorkerPool used to run this PipelineRun.
Corresponds to the JSON property workerPool
1451 1452 1453 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1451 def worker_pool @worker_pool end |
#workflow ⇒ String
Output only. The Workflow used to create this PipelineRun.
Corresponds to the JSON property workflow
1456 1457 1458 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1456 def workflow @workflow end |
#workspaces ⇒ Array<Google::Apis::CloudbuildV2::WorkspaceBinding>
Workspaces is a list of WorkspaceBindings from volumes to workspaces.
Corresponds to the JSON property workspaces
1461 1462 1463 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1461 def workspaces @workspaces end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1468 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @child_references = args[:child_references] if args.key?(:child_references) @completion_time = args[:completion_time] if args.key?(:completion_time) @conditions = args[:conditions] if args.key?(:conditions) @create_time = args[:create_time] if args.key?(:create_time) @etag = args[:etag] if args.key?(:etag) @name = args[:name] if args.key?(:name) @params = args[:params] if args.key?(:params) @pipeline_ref = args[:pipeline_ref] if args.key?(:pipeline_ref) @pipeline_run_status = args[:pipeline_run_status] if args.key?(:pipeline_run_status) @pipeline_spec = args[:pipeline_spec] if args.key?(:pipeline_spec) @resolved_pipeline_spec = args[:resolved_pipeline_spec] if args.key?(:resolved_pipeline_spec) @service_account = args[:service_account] if args.key?(:service_account) @skipped_tasks = args[:skipped_tasks] if args.key?(:skipped_tasks) @start_time = args[:start_time] if args.key?(:start_time) @timeouts = args[:timeouts] if args.key?(:timeouts) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) @worker_pool = args[:worker_pool] if args.key?(:worker_pool) @workflow = args[:workflow] if args.key?(:workflow) @workspaces = args[:workspaces] if args.key?(:workspaces) end |