public final class PipelineSpec
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Build API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
PipelineSpec() |
Modifier and Type | Method and Description |
---|---|
PipelineSpec |
clone() |
List<PipelineTask> |
getFinallyTasks()
List of Tasks that execute just before leaving the Pipeline i.e.
|
String |
getGeneratedYaml()
Output only.
|
List<ParamSpec> |
getParams()
List of parameters.
|
List<PipelineResult> |
getResults()
Optional.
|
List<PipelineTask> |
getTasks()
List of Tasks that execute when this Pipeline is run.
|
List<PipelineWorkspaceDeclaration> |
getWorkspaces()
Workspaces declares a set of named workspaces that are expected to be provided by a
PipelineRun.
|
PipelineSpec |
set(String fieldName,
Object value) |
PipelineSpec |
setFinallyTasks(List<PipelineTask> finallyTasks)
List of Tasks that execute just before leaving the Pipeline i.e.
|
PipelineSpec |
setGeneratedYaml(String generatedYaml)
Output only.
|
PipelineSpec |
setParams(List<ParamSpec> params)
List of parameters.
|
PipelineSpec |
setResults(List<PipelineResult> results)
Optional.
|
PipelineSpec |
setTasks(List<PipelineTask> tasks)
List of Tasks that execute when this Pipeline is run.
|
PipelineSpec |
setWorkspaces(List<PipelineWorkspaceDeclaration> workspaces)
Workspaces declares a set of named workspaces that are expected to be provided by a
PipelineRun.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<PipelineTask> getFinallyTasks()
null
for nonepublic PipelineSpec setFinallyTasks(List<PipelineTask> finallyTasks)
finallyTasks
- finallyTasks or null
for nonepublic String getGeneratedYaml()
null
for nonepublic PipelineSpec setGeneratedYaml(String generatedYaml)
generatedYaml
- generatedYaml or null
for nonepublic PipelineSpec setParams(List<ParamSpec> params)
params
- params or null
for nonepublic List<PipelineResult> getResults()
null
for nonepublic PipelineSpec setResults(List<PipelineResult> results)
results
- results or null
for nonepublic List<PipelineTask> getTasks()
null
for nonepublic PipelineSpec setTasks(List<PipelineTask> tasks)
tasks
- tasks or null
for nonepublic List<PipelineWorkspaceDeclaration> getWorkspaces()
null
for nonepublic PipelineSpec setWorkspaces(List<PipelineWorkspaceDeclaration> workspaces)
workspaces
- workspaces or null
for nonepublic PipelineSpec set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public PipelineSpec clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.