Class: Google::Apis::CloudbuildV2::PipelineRun

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PipelineRun

Returns a new instance of PipelineRun.



1584
1585
1586
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1584

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

Instance Attribute Details

#annotationsHash<String,String>

User annotations. See https://google.aip.dev/128#annotations Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


1476
1477
1478
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1476

def annotations
  @annotations
end

#child_referencesArray<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



1482
1483
1484
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1482

def child_references
  @child_references
end

#completion_timeString

Output only. Time the pipeline completed. Corresponds to the JSON property completionTime

Returns:

  • (String)


1487
1488
1489
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1487

def completion_time
  @completion_time
end

#conditionsArray<Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2Condition>

Output only. Kubernetes Conditions convention for PipelineRun status and error. Corresponds to the JSON property conditions



1492
1493
1494
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1492

def conditions
  @conditions
end

#create_timeString

Output only. Time at which the request to create the PipelineRun was received. Corresponds to the JSON property createTime

Returns:

  • (String)


1498
1499
1500
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1498

def create_time
  @create_time
end

#etagString

Needed for declarative-friendly resources. Corresponds to the JSON property etag

Returns:

  • (String)


1503
1504
1505
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1503

def etag
  @etag
end

#nameString

Output only. The PipelineRun name with format projects/project/locations/ location/pipelineRuns/pipeline_run` Corresponds to the JSON propertyname`

Returns:

  • (String)


1509
1510
1511
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1509

def name
  @name
end

#paramsArray<Google::Apis::CloudbuildV2::Param>

Params is a list of parameter names and values. Corresponds to the JSON property params



1514
1515
1516
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1514

def params
  @params
end

#pipeline_refGoogle::Apis::CloudbuildV2::PipelineRef

PipelineRef can be used to refer to a specific instance of a Pipeline. Corresponds to the JSON property pipelineRef



1519
1520
1521
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1519

def pipeline_ref
  @pipeline_ref
end

#pipeline_run_statusString

Pipelinerun status the user can provide. Used for cancellation. Corresponds to the JSON property pipelineRunStatus

Returns:

  • (String)


1524
1525
1526
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1524

def pipeline_run_status
  @pipeline_run_status
end

#pipeline_specGoogle::Apis::CloudbuildV2::PipelineSpec

PipelineSpec defines the desired state of Pipeline. Corresponds to the JSON property pipelineSpec



1529
1530
1531
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1529

def pipeline_spec
  @pipeline_spec
end

#resolved_pipeline_specGoogle::Apis::CloudbuildV2::PipelineSpec

PipelineSpec defines the desired state of Pipeline. Corresponds to the JSON property resolvedPipelineSpec



1534
1535
1536
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1534

def resolved_pipeline_spec
  @resolved_pipeline_spec
end

#service_accountString

Service account used in the Pipeline. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1539
1540
1541
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1539

def 
  @service_account
end

#skipped_tasksArray<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



1545
1546
1547
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1545

def skipped_tasks
  @skipped_tasks
end

#start_timeString

Output only. Time the pipeline is actually started. Corresponds to the JSON property startTime

Returns:

  • (String)


1550
1551
1552
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1550

def start_time
  @start_time
end

#timeoutsGoogle::Apis::CloudbuildV2::TimeoutFields

TimeoutFields allows granular specification of pipeline, task, and finally timeouts Corresponds to the JSON property timeouts



1556
1557
1558
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1556

def timeouts
  @timeouts
end

#uidString

Output only. A unique identifier for the PipelineRun. Corresponds to the JSON property uid

Returns:

  • (String)


1561
1562
1563
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1561

def uid
  @uid
end

#update_timeString

Output only. Time at which the request to update the PipelineRun was received. Corresponds to the JSON property updateTime

Returns:

  • (String)


1567
1568
1569
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1567

def update_time
  @update_time
end

#worker_poolString

Output only. The WorkerPool used to run this PipelineRun. Corresponds to the JSON property workerPool

Returns:

  • (String)


1572
1573
1574
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1572

def worker_pool
  @worker_pool
end

#workflowString

Output only. The Workflow used to create this PipelineRun. Corresponds to the JSON property workflow

Returns:

  • (String)


1577
1578
1579
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1577

def workflow
  @workflow
end

#workspacesArray<Google::Apis::CloudbuildV2::WorkspaceBinding>

Workspaces is a list of WorkspaceBindings from volumes to workspaces. Corresponds to the JSON property workspaces



1582
1583
1584
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1582

def workspaces
  @workspaces
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1589

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