Class TektonPipelinePatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.continuous_delivery.cd_tekton_pipeline.v2.model.TektonPipelinePatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class TektonPipelinePatch extends com.ibm.cloud.sdk.core.service.model.GenericModelRequest body used to update this pipeline.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTektonPipelinePatch.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>asPatch()Construct a JSON merge-patch from the TektonPipelinePatch.java.lang.BooleanenableNotifications()Gets the enableNotifications.java.lang.BooleanenablePartialCloning()Gets the enablePartialCloning.TektonPipelinePatch.BuildernewBuilder()New builder.java.lang.LongnextBuildNumber()Gets the nextBuildNumber.WorkerIdentityworker()Gets the worker.
-
-
-
Method Detail
-
newBuilder
public TektonPipelinePatch.Builder newBuilder()
New builder.- Returns:
- a TektonPipelinePatch builder
-
nextBuildNumber
public java.lang.Long nextBuildNumber()
Gets the nextBuildNumber. Specify the build number that will be used for the next pipeline run. Build numbers can be any positive whole number between 0 and 100000000000000.- Returns:
- the nextBuildNumber
-
enableNotifications
public java.lang.Boolean enableNotifications()
Gets the enableNotifications. Flag whether to enable notifications for this pipeline. When enabled, pipeline run events are published on all slack integration specified channels in the parent toolchain.- Returns:
- the enableNotifications
-
enablePartialCloning
public java.lang.Boolean enablePartialCloning()
Gets the enablePartialCloning. Flag whether to enable partial cloning for this pipeline. When partial clone is enabled, only the files contained within the paths specified in definition repositories are read and cloned, this means that symbolic links might not work.- Returns:
- the enablePartialCloning
-
worker
public WorkerIdentity worker()
Gets the worker. Specify the worker used to run the trigger, as a worker object containing the worker ID only. If omitted, or specified as `worker: { id: 'public' }`, the IBM Managed shared workers are used.- Returns:
- the worker
-
asPatch
public java.util.Map<java.lang.String,java.lang.Object> asPatch()
Construct a JSON merge-patch from the TektonPipelinePatch. Note that properties of the TektonPipelinePatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.- Returns:
- a JSON merge-patch for the TektonPipelinePatch
-
-