diff --git a/sdk/hack/boilerplate.python.txt b/sdk/hack/boilerplate.python.txt index 57ae038a5..783f3b099 100644 --- a/sdk/hack/boilerplate.python.txt +++ b/sdk/hack/boilerplate.python.txt @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/hack/sdk-gen.sh b/sdk/hack/sdk-gen.sh index e4bbaa886..72e3a89b5 100755 --- a/sdk/hack/sdk-gen.sh +++ b/sdk/hack/sdk-gen.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/README.md b/sdk/python/README.md index cd7d3148b..ec3e526f1 100644 --- a/sdk/python/README.md +++ b/sdk/python/README.md @@ -71,6 +71,7 @@ Class | Method | Description - [V1beta1PipelineRunConditionCheckStatus](docs/V1beta1PipelineRunConditionCheckStatus.md) - [V1beta1PipelineRunList](docs/V1beta1PipelineRunList.md) - [V1beta1PipelineRunResult](docs/V1beta1PipelineRunResult.md) + - [V1beta1PipelineRunRunStatus](docs/V1beta1PipelineRunRunStatus.md) - [V1beta1PipelineRunSpec](docs/V1beta1PipelineRunSpec.md) - [V1beta1PipelineRunSpecServiceAccountName](docs/V1beta1PipelineRunSpecServiceAccountName.md) - [V1beta1PipelineRunStatus](docs/V1beta1PipelineRunStatus.md) @@ -85,6 +86,7 @@ Class | Method | Description - [V1beta1PipelineTaskParam](docs/V1beta1PipelineTaskParam.md) - [V1beta1PipelineTaskResources](docs/V1beta1PipelineTaskResources.md) - [V1beta1PipelineTaskRun](docs/V1beta1PipelineTaskRun.md) + - [V1beta1TaskRunDebug](docs/V1beta1TaskRunDebug.md) - [V1beta1PipelineTaskRunSpec](docs/V1beta1PipelineTaskRunSpec.md) - [V1beta1PipelineWorkspaceDeclaration](docs/V1beta1PipelineWorkspaceDeclaration.md) - [V1beta1ResultRef](docs/V1beta1ResultRef.md) @@ -110,9 +112,9 @@ Class | Method | Description - [V1beta1TaskRunStatus](docs/V1beta1TaskRunStatus.md) - [V1beta1TaskRunStatusFields](docs/V1beta1TaskRunStatusFields.md) - [V1beta1TaskSpec](docs/V1beta1TaskSpec.md) + - [V1beta1TimeoutFields](docs/V1beta1TimeoutFields.md) - [V1beta1WhenExpression](docs/V1beta1WhenExpression.md) - [V1beta1WorkspaceBinding](docs/V1beta1WorkspaceBinding.md) - [V1beta1WorkspaceDeclaration](docs/V1beta1WorkspaceDeclaration.md) - [V1beta1WorkspacePipelineTaskBinding](docs/V1beta1WorkspacePipelineTaskBinding.md) - diff --git a/sdk/python/docs/PodTemplate.md b/sdk/python/docs/PodTemplate.md index f8e8afa3d..d938b0edc 100644 --- a/sdk/python/docs/PodTemplate.md +++ b/sdk/python/docs/PodTemplate.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **dns_config** | [**V1PodDNSConfig**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1PodDNSConfig.md) | | [optional] **dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. | [optional] **enable_service_links** | **bool** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] +**host_aliases** | [**list[V1HostAlias]**](V1HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. | [optional] **host_network** | **bool** | HostNetwork specifies whether the pod may use the node network namespace | [optional] **image_pull_secrets** | [**list[V1LocalObjectReference]**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1LocalObjectReference.md) | ImagePullSecrets gives the name of the secret used by the pod to pull the image if specified | [optional] **node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | [optional] diff --git a/sdk/python/docs/V1alpha1PipelineResourceSpec.md b/sdk/python/docs/V1alpha1PipelineResourceSpec.md index bb4293d72..e6889070c 100644 --- a/sdk/python/docs/V1alpha1PipelineResourceSpec.md +++ b/sdk/python/docs/V1alpha1PipelineResourceSpec.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **description** | **str** | Description is a user-facing description of the resource that may be used to populate a UI. | [optional] **params** | [**list[V1alpha1ResourceParam]**](V1alpha1ResourceParam.md) | | **secrets** | [**list[V1alpha1SecretParam]**](V1alpha1SecretParam.md) | Secrets to fetch to populate some of resource fields | [optional] -**type** | **str** | | +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1alpha1ResourceDeclaration.md b/sdk/python/docs/V1alpha1ResourceDeclaration.md index e1c4af7b3..5c3dd71db 100644 --- a/sdk/python/docs/V1alpha1ResourceDeclaration.md +++ b/sdk/python/docs/V1alpha1ResourceDeclaration.md @@ -5,10 +5,10 @@ ResourceDeclaration defines an input or output PipelineResource declared as a re Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **str** | Description is a user-facing description of the declared resource that may be used to populate a UI. | [optional] -**name** | **str** | Name declares the name by which a resource is referenced in the definition. Resources may be referenced by name in the definition of a Task's steps. | +**name** | **str** | Name declares the name by which a resource is referenced in the definition. Resources may be referenced by name in the definition of a Task's steps. | [default to ''] **optional** | **bool** | Optional declares the resource as optional. By default optional is set to false which makes a resource required. optional: true - the resource is considered optional optional: false - the resource is considered required (equivalent of not specifying it) | [optional] **target_path** | **str** | TargetPath is the path in workspace directory where the resource will be copied. | [optional] -**type** | **str** | Type is the type of this resource; | +**type** | **str** | Type is the type of this resource; | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1alpha1ResourceParam.md b/sdk/python/docs/V1alpha1ResourceParam.md index 7f9b9718c..c889a2b73 100644 --- a/sdk/python/docs/V1alpha1ResourceParam.md +++ b/sdk/python/docs/V1alpha1ResourceParam.md @@ -4,8 +4,8 @@ ResourceParam declares a string value to use for the parameter called Name, and ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | -**value** | **str** | | +**name** | **str** | | [default to ''] +**value** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1alpha1SecretParam.md b/sdk/python/docs/V1alpha1SecretParam.md index cca1c0d23..10abddde1 100644 --- a/sdk/python/docs/V1alpha1SecretParam.md +++ b/sdk/python/docs/V1alpha1SecretParam.md @@ -4,9 +4,9 @@ SecretParam indicates which secret can be used to populate a field of the resour ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**field_name** | **str** | | -**secret_key** | **str** | | -**secret_name** | **str** | | +**field_name** | **str** | | [default to ''] +**secret_key** | **str** | | [default to ''] +**secret_name** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1ArrayOrString.md b/sdk/python/docs/V1beta1ArrayOrString.md index 5da4e34c9..70ce9f040 100644 --- a/sdk/python/docs/V1beta1ArrayOrString.md +++ b/sdk/python/docs/V1beta1ArrayOrString.md @@ -5,8 +5,8 @@ ArrayOrString is a type that can hold a single string or string array. Used in J Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **array_val** | **list[str]** | | -**string_val** | **str** | Represents the stored type of ArrayOrString. | -**type** | **str** | | +**string_val** | **str** | Represents the stored type of ArrayOrString. | [default to ''] +**type** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1CannotConvertError.md b/sdk/python/docs/V1beta1CannotConvertError.md index 47b5c6000..856eb62f1 100644 --- a/sdk/python/docs/V1beta1CannotConvertError.md +++ b/sdk/python/docs/V1beta1CannotConvertError.md @@ -4,8 +4,8 @@ CannotConvertError is returned when a field cannot be converted. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**field** | **str** | | -**message** | **str** | | +**field** | **str** | | [default to ''] +**message** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1CloudEventDeliveryState.md b/sdk/python/docs/V1beta1CloudEventDeliveryState.md index 7b6802a2e..cb8735664 100644 --- a/sdk/python/docs/V1beta1CloudEventDeliveryState.md +++ b/sdk/python/docs/V1beta1CloudEventDeliveryState.md @@ -5,8 +5,8 @@ CloudEventDeliveryState reports the state of a cloud event to be sent. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **condition** | **str** | Current status | [optional] -**message** | **str** | Error is the text of error (if any) | -**retry_count** | **int** | RetryCount is the number of attempts of sending the cloud event | +**message** | **str** | Error is the text of error (if any) | [default to ''] +**retry_count** | **int** | RetryCount is the number of attempts of sending the cloud event | [default to 0] **sent_at** | [**V1Time**](V1Time.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1ConditionCheckStatus.md b/sdk/python/docs/V1beta1ConditionCheckStatus.md index 16264a09d..d6e065ee1 100644 --- a/sdk/python/docs/V1beta1ConditionCheckStatus.md +++ b/sdk/python/docs/V1beta1ConditionCheckStatus.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **completion_time** | [**V1Time**](V1Time.md) | | [optional] **conditions** | [**list[KnativeCondition]**](KnativeCondition.md) | Conditions the latest available observations of a resource's current state. | [optional] **observed_generation** | **int** | ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. | [optional] -**pod_name** | **str** | PodName is the name of the pod responsible for executing this condition check. | +**pod_name** | **str** | PodName is the name of the pod responsible for executing this condition check. | [default to ''] **start_time** | [**V1Time**](V1Time.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1ConditionCheckStatusFields.md b/sdk/python/docs/V1beta1ConditionCheckStatusFields.md index 37c72a895..3a3aea59c 100644 --- a/sdk/python/docs/V1beta1ConditionCheckStatusFields.md +++ b/sdk/python/docs/V1beta1ConditionCheckStatusFields.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **check** | [**V1ContainerState**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1ContainerState.md) | | [optional] **completion_time** | [**V1Time**](V1Time.md) | | [optional] -**pod_name** | **str** | PodName is the name of the pod responsible for executing this condition check. | +**pod_name** | **str** | PodName is the name of the pod responsible for executing this condition check. | [default to ''] **start_time** | [**V1Time**](V1Time.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1EmbeddedTask.md b/sdk/python/docs/V1beta1EmbeddedTask.md index 6f083f9a2..dc9789edc 100644 --- a/sdk/python/docs/V1beta1EmbeddedTask.md +++ b/sdk/python/docs/V1beta1EmbeddedTask.md @@ -3,12 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**api_version** | **str** | | [optional] **description** | **str** | Description is a user-facing description of the task that may be used to populate a UI. | [optional] +**kind** | **str** | | [optional] **metadata** | [**V1beta1PipelineTaskMetadata**](V1beta1PipelineTaskMetadata.md) | | [optional] **params** | [**list[V1beta1ParamSpec]**](V1beta1ParamSpec.md) | Params is a list of input parameters required to run the task. Params must be supplied as inputs in TaskRuns unless they declare a default value. | [optional] **resources** | [**V1beta1TaskResources**](V1beta1TaskResources.md) | | [optional] **results** | [**list[V1beta1TaskResult]**](V1beta1TaskResult.md) | Results are values that this Task can output | [optional] **sidecars** | [**list[V1beta1Sidecar]**](V1beta1Sidecar.md) | Sidecars are run alongside the Task's step containers. They begin before the steps start and end after the steps complete. | [optional] +**spec** | [**K8sIoApimachineryPkgRuntimeRawExtension**](K8sIoApimachineryPkgRuntimeRawExtension.md) | | [optional] **step_template** | [**V1Container**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Container.md) | | [optional] **steps** | [**list[V1beta1Step]**](V1beta1Step.md) | Steps are the steps of the build; each step is run sequentially with the source mounted into /workspace. | [optional] **volumes** | [**list[V1Volume]**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Volume.md) | Volumes is a collection of volumes that are available to mount into the steps of the build. | [optional] diff --git a/sdk/python/docs/V1beta1Param.md b/sdk/python/docs/V1beta1Param.md index 039b4ba70..cb626dabf 100644 --- a/sdk/python/docs/V1beta1Param.md +++ b/sdk/python/docs/V1beta1Param.md @@ -4,7 +4,7 @@ Param declares an ArrayOrString to use for the parameter called name. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | +**name** | **str** | | [default to ''] **value** | [**V1beta1ArrayOrString**](V1beta1ArrayOrString.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1ParamSpec.md b/sdk/python/docs/V1beta1ParamSpec.md index 3a83c044a..1379c6606 100644 --- a/sdk/python/docs/V1beta1ParamSpec.md +++ b/sdk/python/docs/V1beta1ParamSpec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default** | [**V1beta1ArrayOrString**](V1beta1ArrayOrString.md) | | [optional] **description** | **str** | Description is a user-facing description of the parameter that may be used to populate a UI. | [optional] -**name** | **str** | Name declares the name by which a parameter is referenced. | +**name** | **str** | Name declares the name by which a parameter is referenced. | [default to ''] **type** | **str** | Type is the user-specified type of the parameter. The possible types are currently \"string\" and \"array\", and \"string\" is the default. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1PipelineDeclaredResource.md b/sdk/python/docs/V1beta1PipelineDeclaredResource.md index 2e3e1bbbc..b87efd666 100644 --- a/sdk/python/docs/V1beta1PipelineDeclaredResource.md +++ b/sdk/python/docs/V1beta1PipelineDeclaredResource.md @@ -4,9 +4,9 @@ PipelineDeclaredResource is used by a Pipeline to declare the types of the Pipel ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name is the name that will be used by the Pipeline to refer to this resource. It does not directly correspond to the name of any PipelineResources Task inputs or outputs, and it does not correspond to the actual names of the PipelineResources that will be bound in the PipelineRun. | +**name** | **str** | Name is the name that will be used by the Pipeline to refer to this resource. It does not directly correspond to the name of any PipelineResources Task inputs or outputs, and it does not correspond to the actual names of the PipelineResources that will be bound in the PipelineRun. | [default to ''] **optional** | **bool** | Optional declares the resource as optional. optional: true - the resource is considered optional optional: false - the resource is considered required (default/equivalent of not specifying it) | [optional] -**type** | **str** | Type is the type of the PipelineResource. | +**type** | **str** | Type is the type of the PipelineResource. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1PipelineResourceResult.md b/sdk/python/docs/V1beta1PipelineResourceResult.md index d09aa14ec..0b86146ae 100644 --- a/sdk/python/docs/V1beta1PipelineResourceResult.md +++ b/sdk/python/docs/V1beta1PipelineResourceResult.md @@ -4,11 +4,11 @@ PipelineResourceResult used to export the image name and digest as json ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **str** | | +**key** | **str** | | [default to ''] **resource_name** | **str** | | [optional] **resource_ref** | [**V1beta1PipelineResourceRef**](V1beta1PipelineResourceRef.md) | | [optional] **type** | **str** | | [optional] -**value** | **str** | | +**value** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1PipelineResult.md b/sdk/python/docs/V1beta1PipelineResult.md index a98495cf3..688fa2610 100644 --- a/sdk/python/docs/V1beta1PipelineResult.md +++ b/sdk/python/docs/V1beta1PipelineResult.md @@ -4,9 +4,9 @@ PipelineResult used to describe the results of a pipeline ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**description** | **str** | Description is a human-readable description of the result | [optional] -**name** | **str** | Name the given name | -**value** | **str** | Value the expression used to retrieve the value | +**description** | **str** | Description is a human-readable description of the result | [optional] [default to ''] +**name** | **str** | Name the given name | [default to ''] +**value** | **str** | Value the expression used to retrieve the value | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1PipelineRunResult.md b/sdk/python/docs/V1beta1PipelineRunResult.md index ea9063762..6207ed467 100644 --- a/sdk/python/docs/V1beta1PipelineRunResult.md +++ b/sdk/python/docs/V1beta1PipelineRunResult.md @@ -4,8 +4,8 @@ PipelineRunResult used to describe the results of a pipeline ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name is the result's name as declared by the Pipeline | -**value** | **str** | Value is the result returned from the execution of this PipelineRun | +**name** | **str** | Name is the result's name as declared by the Pipeline | [default to ''] +**value** | **str** | Value is the result returned from the execution of this PipelineRun | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1PipelineRunRunStatus.md b/sdk/python/docs/V1beta1PipelineRunRunStatus.md new file mode 100644 index 000000000..510f5e506 --- /dev/null +++ b/sdk/python/docs/V1beta1PipelineRunRunStatus.md @@ -0,0 +1,13 @@ +# V1beta1PipelineRunRunStatus + +PipelineRunRunStatus contains the name of the PipelineTask for this Run and the Run's Status +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pipeline_task_name** | **str** | PipelineTaskName is the name of the PipelineTask. | [optional] +**status** | [**GithubComTektoncdPipelinePkgApisRunV1alpha1RunStatus**](GithubComTektoncdPipelinePkgApisRunV1alpha1RunStatus.md) | | [optional] +**when_expressions** | [**list[V1beta1WhenExpression]**](V1beta1WhenExpression.md) | WhenExpressions is the list of checks guarding the execution of the PipelineTask | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/python/docs/V1beta1PipelineRunSpec.md b/sdk/python/docs/V1beta1PipelineRunSpec.md index b0be56795..0605e76c9 100644 --- a/sdk/python/docs/V1beta1PipelineRunSpec.md +++ b/sdk/python/docs/V1beta1PipelineRunSpec.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **status** | **str** | Used for cancelling a pipelinerun (and maybe more later on) | [optional] **task_run_specs** | [**list[V1beta1PipelineTaskRunSpec]**](V1beta1PipelineTaskRunSpec.md) | TaskRunSpecs holds a set of runtime specs | [optional] **timeout** | [**V1Duration**](V1Duration.md) | | [optional] +**timeouts** | [**V1beta1TimeoutFields**](V1beta1TimeoutFields.md) | | [optional] **workspaces** | [**list[V1beta1WorkspaceBinding]**](V1beta1WorkspaceBinding.md) | Workspaces holds a set of workspace bindings that must match names with those declared in the pipeline. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1PipelineRunStatus.md b/sdk/python/docs/V1beta1PipelineRunStatus.md index a2eff4736..5388ba65c 100644 --- a/sdk/python/docs/V1beta1PipelineRunStatus.md +++ b/sdk/python/docs/V1beta1PipelineRunStatus.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **observed_generation** | **int** | ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. | [optional] **pipeline_results** | [**list[V1beta1PipelineRunResult]**](V1beta1PipelineRunResult.md) | PipelineResults are the list of results written out by the pipeline task's containers | [optional] **pipeline_spec** | [**V1beta1PipelineSpec**](V1beta1PipelineSpec.md) | | [optional] +**runs** | [**dict(str, V1beta1PipelineRunRunStatus)**](V1beta1PipelineRunRunStatus.md) | map of PipelineRunRunStatus with the run name as the key | [optional] **skipped_tasks** | [**list[V1beta1SkippedTask]**](V1beta1SkippedTask.md) | list of tasks that were skipped due to when expressions evaluating to false | [optional] **start_time** | [**V1Time**](V1Time.md) | | [optional] **task_runs** | [**dict(str, V1beta1PipelineRunTaskRunStatus)**](V1beta1PipelineRunTaskRunStatus.md) | map of PipelineRunTaskRunStatus with the taskRun name as the key | [optional] diff --git a/sdk/python/docs/V1beta1PipelineRunStatusFields.md b/sdk/python/docs/V1beta1PipelineRunStatusFields.md index 53357407b..711babc01 100644 --- a/sdk/python/docs/V1beta1PipelineRunStatusFields.md +++ b/sdk/python/docs/V1beta1PipelineRunStatusFields.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **completion_time** | [**V1Time**](V1Time.md) | | [optional] **pipeline_results** | [**list[V1beta1PipelineRunResult]**](V1beta1PipelineRunResult.md) | PipelineResults are the list of results written out by the pipeline task's containers | [optional] **pipeline_spec** | [**V1beta1PipelineSpec**](V1beta1PipelineSpec.md) | | [optional] +**runs** | [**dict(str, V1beta1PipelineRunRunStatus)**](V1beta1PipelineRunRunStatus.md) | map of PipelineRunRunStatus with the run name as the key | [optional] **skipped_tasks** | [**list[V1beta1SkippedTask]**](V1beta1SkippedTask.md) | list of tasks that were skipped due to when expressions evaluating to false | [optional] **start_time** | [**V1Time**](V1Time.md) | | [optional] **task_runs** | [**dict(str, V1beta1PipelineRunTaskRunStatus)**](V1beta1PipelineRunTaskRunStatus.md) | map of PipelineRunTaskRunStatus with the taskRun name as the key | [optional] diff --git a/sdk/python/docs/V1beta1PipelineTaskCondition.md b/sdk/python/docs/V1beta1PipelineTaskCondition.md index c22b1f989..4844f68a7 100644 --- a/sdk/python/docs/V1beta1PipelineTaskCondition.md +++ b/sdk/python/docs/V1beta1PipelineTaskCondition.md @@ -4,7 +4,7 @@ PipelineTaskCondition allows a PipelineTask to declare a Condition to be evaluat ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**condition_ref** | **str** | ConditionRef is the name of the Condition to use for the conditionCheck | +**condition_ref** | **str** | ConditionRef is the name of the Condition to use for the conditionCheck | [default to ''] **params** | [**list[V1beta1Param]**](V1beta1Param.md) | Params declare parameters passed to this Condition | [optional] **resources** | [**list[V1beta1PipelineTaskInputResource]**](V1beta1PipelineTaskInputResource.md) | Resources declare the resources provided to this Condition as input | [optional] diff --git a/sdk/python/docs/V1beta1PipelineTaskInputResource.md b/sdk/python/docs/V1beta1PipelineTaskInputResource.md index 4201d368d..8fa35dd39 100644 --- a/sdk/python/docs/V1beta1PipelineTaskInputResource.md +++ b/sdk/python/docs/V1beta1PipelineTaskInputResource.md @@ -5,8 +5,8 @@ PipelineTaskInputResource maps the name of a declared PipelineResource input dep Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_from** | **list[str]** | From is the list of PipelineTask names that the resource has to come from. (Implies an ordering in the execution graph.) | [optional] -**name** | **str** | Name is the name of the PipelineResource as declared by the Task. | -**resource** | **str** | Resource is the name of the DeclaredPipelineResource to use. | +**name** | **str** | Name is the name of the PipelineResource as declared by the Task. | [default to ''] +**resource** | **str** | Resource is the name of the DeclaredPipelineResource to use. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1PipelineTaskOutputResource.md b/sdk/python/docs/V1beta1PipelineTaskOutputResource.md index 1396a712b..aa21a4a03 100644 --- a/sdk/python/docs/V1beta1PipelineTaskOutputResource.md +++ b/sdk/python/docs/V1beta1PipelineTaskOutputResource.md @@ -4,8 +4,8 @@ PipelineTaskOutputResource maps the name of a declared PipelineResource output d ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name is the name of the PipelineResource as declared by the Task. | -**resource** | **str** | Resource is the name of the DeclaredPipelineResource to use. | +**name** | **str** | Name is the name of the PipelineResource as declared by the Task. | [default to ''] +**resource** | **str** | Resource is the name of the DeclaredPipelineResource to use. | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1PipelineTaskParam.md b/sdk/python/docs/V1beta1PipelineTaskParam.md index 208169e91..e98b41229 100644 --- a/sdk/python/docs/V1beta1PipelineTaskParam.md +++ b/sdk/python/docs/V1beta1PipelineTaskParam.md @@ -4,8 +4,8 @@ PipelineTaskParam is used to provide arbitrary string parameters to a Task. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | -**value** | **str** | | +**name** | **str** | | [default to ''] +**value** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1PipelineWorkspaceDeclaration.md b/sdk/python/docs/V1beta1PipelineWorkspaceDeclaration.md index 5bbfee148..4dfae3c50 100644 --- a/sdk/python/docs/V1beta1PipelineWorkspaceDeclaration.md +++ b/sdk/python/docs/V1beta1PipelineWorkspaceDeclaration.md @@ -5,7 +5,7 @@ WorkspacePipelineDeclaration creates a named slot in a Pipeline that a PipelineR Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **str** | Description is a human readable string describing how the workspace will be used in the Pipeline. It can be useful to include a bit of detail about which tasks are intended to have access to the data on the workspace. | [optional] -**name** | **str** | Name is the name of a workspace to be provided by a PipelineRun. | +**name** | **str** | Name is the name of a workspace to be provided by a PipelineRun. | [default to ''] **optional** | **bool** | Optional marks a Workspace as not being required in PipelineRuns. By default this field is false and so declared workspaces are required. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1ResultRef.md b/sdk/python/docs/V1beta1ResultRef.md index 22fbc1b7e..676c535b8 100644 --- a/sdk/python/docs/V1beta1ResultRef.md +++ b/sdk/python/docs/V1beta1ResultRef.md @@ -4,8 +4,8 @@ ResultRef is a type that represents a reference to a task run result ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pipeline_task** | **str** | | -**result** | **str** | | +**pipeline_task** | **str** | | [default to ''] +**result** | **str** | | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1Sidecar.md b/sdk/python/docs/V1beta1Sidecar.md index 95a5ae166..7de40050a 100644 --- a/sdk/python/docs/V1beta1Sidecar.md +++ b/sdk/python/docs/V1beta1Sidecar.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] **lifecycle** | [**V1Lifecycle**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Lifecycle.md) | | [optional] **liveness_probe** | [**V1Probe**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Probe.md) | | [optional] -**name** | **str** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | +**name** | **str** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | [default to ''] **ports** | [**list[V1ContainerPort]**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1ContainerPort.md) | List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. | [optional] **readiness_probe** | [**V1Probe**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Probe.md) | | [optional] **resources** | [**V1ResourceRequirements**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1ResourceRequirements.md) | | [optional] @@ -27,6 +27,7 @@ Name | Type | Description | Notes **volume_devices** | [**list[V1VolumeDevice]**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1VolumeDevice.md) | volumeDevices is the list of block devices to be used by the container. | [optional] **volume_mounts** | [**list[V1VolumeMount]**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1VolumeMount.md) | Pod volumes to mount into the container's filesystem. Cannot be updated. | [optional] **working_dir** | **str** | Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. | [optional] +**workspaces** | [**list[V1beta1WorkspaceUsage]**](V1beta1WorkspaceUsage.md) | This is an alpha field. You must set the \"enable-api-fields\" feature flag to \"alpha\" for this field to be supported. Workspaces is a list of workspaces from the Task that this Sidecar wants exclusive access to. Adding a workspace to this list means that any other Step or Sidecar that does not also request this Workspace will not have access to it. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1SkippedTask.md b/sdk/python/docs/V1beta1SkippedTask.md index 246816c1a..4dc5f0720 100644 --- a/sdk/python/docs/V1beta1SkippedTask.md +++ b/sdk/python/docs/V1beta1SkippedTask.md @@ -4,7 +4,7 @@ SkippedTask is used to describe the Tasks that were skipped due to their When Ex ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name is the Pipeline Task name | +**name** | **str** | Name is the Pipeline Task name | [default to ''] **when_expressions** | [**list[V1beta1WhenExpression]**](V1beta1WhenExpression.md) | WhenExpressions is the list of checks guarding the execution of the PipelineTask | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1Step.md b/sdk/python/docs/V1beta1Step.md index 3794e9fec..9038a3eb0 100644 --- a/sdk/python/docs/V1beta1Step.md +++ b/sdk/python/docs/V1beta1Step.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] **lifecycle** | [**V1Lifecycle**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Lifecycle.md) | | [optional] **liveness_probe** | [**V1Probe**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Probe.md) | | [optional] -**name** | **str** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | +**name** | **str** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | [default to ''] **ports** | [**list[V1ContainerPort]**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1ContainerPort.md) | List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. | [optional] **readiness_probe** | [**V1Probe**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Probe.md) | | [optional] **resources** | [**V1ResourceRequirements**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1ResourceRequirements.md) | | [optional] @@ -28,6 +28,7 @@ Name | Type | Description | Notes **volume_devices** | [**list[V1VolumeDevice]**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1VolumeDevice.md) | volumeDevices is the list of block devices to be used by the container. | [optional] **volume_mounts** | [**list[V1VolumeMount]**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1VolumeMount.md) | Pod volumes to mount into the container's filesystem. Cannot be updated. | [optional] **working_dir** | **str** | Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. | [optional] +**workspaces** | [**list[V1beta1WorkspaceUsage]**](V1beta1WorkspaceUsage.md) | This is an alpha field. You must set the \"enable-api-fields\" feature flag to \"alpha\" for this field to be supported. Workspaces is a list of workspaces from the Task that this Step wants exclusive access to. Adding a workspace to this list means that any other Step or Sidecar that does not also request this Workspace will not have access to it. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1TaskResource.md b/sdk/python/docs/V1beta1TaskResource.md index acbd9c14b..636fff5f0 100644 --- a/sdk/python/docs/V1beta1TaskResource.md +++ b/sdk/python/docs/V1beta1TaskResource.md @@ -5,10 +5,10 @@ TaskResource defines an input or output Resource declared as a requirement by a Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **str** | Description is a user-facing description of the declared resource that may be used to populate a UI. | [optional] -**name** | **str** | Name declares the name by which a resource is referenced in the definition. Resources may be referenced by name in the definition of a Task's steps. | +**name** | **str** | Name declares the name by which a resource is referenced in the definition. Resources may be referenced by name in the definition of a Task's steps. | [default to ''] **optional** | **bool** | Optional declares the resource as optional. By default optional is set to false which makes a resource required. optional: true - the resource is considered optional optional: false - the resource is considered required (equivalent of not specifying it) | [optional] **target_path** | **str** | TargetPath is the path in workspace directory where the resource will be copied. | [optional] -**type** | **str** | Type is the type of this resource; | +**type** | **str** | Type is the type of this resource; | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1TaskResult.md b/sdk/python/docs/V1beta1TaskResult.md index d2f704105..c9bb9ea1e 100644 --- a/sdk/python/docs/V1beta1TaskResult.md +++ b/sdk/python/docs/V1beta1TaskResult.md @@ -4,8 +4,8 @@ TaskResult used to describe the results of a task ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**description** | **str** | Description is a human-readable description of the result | [optional] -**name** | **str** | Name the given name | +**description** | **str** | Description is a human-readable description of the result | [optional] [default to ''] +**name** | **str** | Name the given name | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1TaskRunDebug.md b/sdk/python/docs/V1beta1TaskRunDebug.md new file mode 100644 index 000000000..9ec17ddb7 --- /dev/null +++ b/sdk/python/docs/V1beta1TaskRunDebug.md @@ -0,0 +1,11 @@ +# V1beta1TaskRunDebug + +TaskRunDebug defines the breakpoint config for a particular TaskRun +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**breakpoint** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/python/docs/V1beta1TaskRunResult.md b/sdk/python/docs/V1beta1TaskRunResult.md index 0f78ef62e..613118dc3 100644 --- a/sdk/python/docs/V1beta1TaskRunResult.md +++ b/sdk/python/docs/V1beta1TaskRunResult.md @@ -4,8 +4,8 @@ TaskRunResult used to describe the results of a task ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name the given name | -**value** | **str** | Value the given value of the result | +**name** | **str** | Name the given name | [default to ''] +**value** | **str** | Value the given value of the result | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1TaskRunSpec.md b/sdk/python/docs/V1beta1TaskRunSpec.md index 988eac59d..739b5e63e 100644 --- a/sdk/python/docs/V1beta1TaskRunSpec.md +++ b/sdk/python/docs/V1beta1TaskRunSpec.md @@ -4,10 +4,11 @@ TaskRunSpec defines the desired state of TaskRun ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**debug** | [**V1beta1TaskRunDebug**](V1beta1TaskRunDebug.md) | | [optional] **params** | [**list[V1beta1Param]**](V1beta1Param.md) | | [optional] **pod_template** | [**PodTemplate**](PodTemplate.md) | | [optional] **resources** | [**V1beta1TaskRunResources**](V1beta1TaskRunResources.md) | | [optional] -**service_account_name** | **str** | | [optional] +**service_account_name** | **str** | | [optional] [default to ''] **status** | **str** | Used for cancelling a taskrun (and maybe more later on) | [optional] **task_ref** | [**V1beta1TaskRef**](V1beta1TaskRef.md) | | [optional] **task_spec** | [**V1beta1TaskSpec**](V1beta1TaskSpec.md) | | [optional] diff --git a/sdk/python/docs/V1beta1TaskRunStatus.md b/sdk/python/docs/V1beta1TaskRunStatus.md index 2d9e409b8..d4be867ea 100644 --- a/sdk/python/docs/V1beta1TaskRunStatus.md +++ b/sdk/python/docs/V1beta1TaskRunStatus.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **completion_time** | [**V1Time**](V1Time.md) | | [optional] **conditions** | [**list[KnativeCondition]**](KnativeCondition.md) | Conditions the latest available observations of a resource's current state. | [optional] **observed_generation** | **int** | ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. | [optional] -**pod_name** | **str** | PodName is the name of the pod responsible for executing this task's steps. | +**pod_name** | **str** | PodName is the name of the pod responsible for executing this task's steps. | [default to ''] **resources_result** | [**list[V1beta1PipelineResourceResult]**](V1beta1PipelineResourceResult.md) | Results from Resources built during the taskRun. currently includes the digest of build container images | [optional] **retries_status** | [**list[V1beta1TaskRunStatus]**](V1beta1TaskRunStatus.md) | RetriesStatus contains the history of TaskRunStatus in case of a retry in order to keep record of failures. All TaskRunStatus stored in RetriesStatus will have no date within the RetriesStatus as is redundant. | [optional] **sidecars** | [**list[V1beta1SidecarState]**](V1beta1SidecarState.md) | The list has one entry per sidecar in the manifest. Each entry is represents the imageid of the corresponding sidecar. | [optional] diff --git a/sdk/python/docs/V1beta1TaskRunStatusFields.md b/sdk/python/docs/V1beta1TaskRunStatusFields.md index 7bbd40549..738acc3b5 100644 --- a/sdk/python/docs/V1beta1TaskRunStatusFields.md +++ b/sdk/python/docs/V1beta1TaskRunStatusFields.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cloud_events** | [**list[V1beta1CloudEventDelivery]**](V1beta1CloudEventDelivery.md) | CloudEvents describe the state of each cloud event requested via a CloudEventResource. | [optional] **completion_time** | [**V1Time**](V1Time.md) | | [optional] -**pod_name** | **str** | PodName is the name of the pod responsible for executing this task's steps. | +**pod_name** | **str** | PodName is the name of the pod responsible for executing this task's steps. | [default to ''] **resources_result** | [**list[V1beta1PipelineResourceResult]**](V1beta1PipelineResourceResult.md) | Results from Resources built during the taskRun. currently includes the digest of build container images | [optional] **retries_status** | [**list[V1beta1TaskRunStatus]**](V1beta1TaskRunStatus.md) | RetriesStatus contains the history of TaskRunStatus in case of a retry in order to keep record of failures. All TaskRunStatus stored in RetriesStatus will have no date within the RetriesStatus as is redundant. | [optional] **sidecars** | [**list[V1beta1SidecarState]**](V1beta1SidecarState.md) | The list has one entry per sidecar in the manifest. Each entry is represents the imageid of the corresponding sidecar. | [optional] diff --git a/sdk/python/docs/V1beta1TimeoutFields.md b/sdk/python/docs/V1beta1TimeoutFields.md new file mode 100644 index 000000000..6c0be4db1 --- /dev/null +++ b/sdk/python/docs/V1beta1TimeoutFields.md @@ -0,0 +1,12 @@ +# V1beta1TimeoutFields + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_finally** | [**V1Duration**](V1Duration.md) | | [optional] +**pipeline** | [**V1Duration**](V1Duration.md) | | [optional] +**tasks** | [**V1Duration**](V1Duration.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/python/docs/V1beta1WhenExpression.md b/sdk/python/docs/V1beta1WhenExpression.md index 9eeece822..b07ae42f0 100644 --- a/sdk/python/docs/V1beta1WhenExpression.md +++ b/sdk/python/docs/V1beta1WhenExpression.md @@ -4,11 +4,8 @@ WhenExpression allows a PipelineTask to declare expressions to be evaluated befo ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**input** | **str** | DeprecatedInput for backwards compatibility with <v0.17 it is the string for guard checking which can be a static input or an output from a parent Task | [optional] -**operator** | **str** | DeprecatedOperator for backwards compatibility with <v0.17 it represents a DeprecatedInput's relationship to the DeprecatedValues | [optional] -**values** | **list[str]** | DeprecatedValues for backwards compatibility with <v0.17 it represents a DeprecatedInput's relationship to the DeprecatedValues | [optional] -**input** | **str** | Input is the string for guard checking which can be a static input or an output from a parent Task | -**operator** | **str** | Operator that represents an Input's relationship to the values | +**input** | **str** | Input is the string for guard checking which can be a static input or an output from a parent Task | [default to ''] +**operator** | **str** | Operator that represents an Input's relationship to the values | [default to ''] **values** | **list[str]** | Values is an array of strings, which is compared against the input, for guard checking It must be non-empty | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1WorkspaceBinding.md b/sdk/python/docs/V1beta1WorkspaceBinding.md index 94633a487..589b90ca4 100644 --- a/sdk/python/docs/V1beta1WorkspaceBinding.md +++ b/sdk/python/docs/V1beta1WorkspaceBinding.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **config_map** | [**V1ConfigMapVolumeSource**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1ConfigMapVolumeSource.md) | | [optional] **empty_dir** | [**V1EmptyDirVolumeSource**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1EmptyDirVolumeSource.md) | | [optional] -**name** | **str** | Name is the name of the workspace populated by the volume. | +**name** | **str** | Name is the name of the workspace populated by the volume. | [default to ''] **persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md) | | [optional] **secret** | [**V1SecretVolumeSource**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1SecretVolumeSource.md) | | [optional] **sub_path** | **str** | SubPath is optionally a directory on the volume which should be used for this binding (i.e. the volume will be mounted at this sub directory). | [optional] diff --git a/sdk/python/docs/V1beta1WorkspaceDeclaration.md b/sdk/python/docs/V1beta1WorkspaceDeclaration.md index d5acb40d0..d1fcff613 100644 --- a/sdk/python/docs/V1beta1WorkspaceDeclaration.md +++ b/sdk/python/docs/V1beta1WorkspaceDeclaration.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **str** | Description is an optional human readable description of this volume. | [optional] **mount_path** | **str** | MountPath overrides the directory that the volume will be made available at. | [optional] -**name** | **str** | Name is the name by which you can bind the volume at runtime. | +**name** | **str** | Name is the name by which you can bind the volume at runtime. | [default to ''] **optional** | **bool** | Optional marks a Workspace as not being required in TaskRuns. By default this field is false and so declared workspaces are required. | [optional] **read_only** | **bool** | ReadOnly dictates whether a mounted volume is writable. By default this field is false and so mounted volumes are writable. | [optional] diff --git a/sdk/python/docs/V1beta1WorkspacePipelineTaskBinding.md b/sdk/python/docs/V1beta1WorkspacePipelineTaskBinding.md index 87c25b873..59f80d2e6 100644 --- a/sdk/python/docs/V1beta1WorkspacePipelineTaskBinding.md +++ b/sdk/python/docs/V1beta1WorkspacePipelineTaskBinding.md @@ -4,9 +4,9 @@ WorkspacePipelineTaskBinding describes how a workspace passed into the pipeline ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name is the name of the workspace as declared by the task | +**name** | **str** | Name is the name of the workspace as declared by the task | [default to ''] **sub_path** | **str** | SubPath is optionally a directory on the volume which should be used for this binding (i.e. the volume will be mounted at this sub directory). | [optional] -**workspace** | **str** | Workspace is the name of the workspace declared by the pipeline | +**workspace** | **str** | Workspace is the name of the workspace declared by the pipeline | [default to ''] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/python/docs/V1beta1WorkspaceUsage.md b/sdk/python/docs/V1beta1WorkspaceUsage.md new file mode 100644 index 000000000..8b33db3a3 --- /dev/null +++ b/sdk/python/docs/V1beta1WorkspaceUsage.md @@ -0,0 +1,12 @@ +# V1beta1WorkspaceUsage + +WorkspaceUsage is used by a Step or Sidecar to declare that it wants isolated access to a Workspace defined in a Task. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mount_path** | **str** | MountPath is the path that the workspace should be mounted to inside the Step or Sidecar, overriding any MountPath specified in the Task's WorkspaceDeclaration. | [default to ''] +**name** | **str** | Name is the name of the workspace this Step or Sidecar wants access to. | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/python/setup.py b/sdk/python/setup.py index d1d123ee9..b9552b44a 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/__init__.py b/sdk/python/tekton_pipeline/__init__.py index 9d5233c67..2240dfd90 100644 --- a/sdk/python/tekton_pipeline/__init__.py +++ b/sdk/python/tekton_pipeline/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ from __future__ import absolute_import -__version__ = "0.1.2" +__version__ = "0.2.0" # import apis into sdk package @@ -73,6 +73,7 @@ from tekton_pipeline.models.v1beta1_pipeline_run_condition_check_status import V1beta1PipelineRunConditionCheckStatus from tekton_pipeline.models.v1beta1_pipeline_run_list import V1beta1PipelineRunList from tekton_pipeline.models.v1beta1_pipeline_run_result import V1beta1PipelineRunResult +from tekton_pipeline.models.v1beta1_pipeline_run_run_status import V1beta1PipelineRunRunStatus from tekton_pipeline.models.v1beta1_pipeline_run_spec import V1beta1PipelineRunSpec from tekton_pipeline.models.v1beta1_pipeline_run_spec_service_account_name import V1beta1PipelineRunSpecServiceAccountName from tekton_pipeline.models.v1beta1_pipeline_run_status import V1beta1PipelineRunStatus @@ -103,6 +104,7 @@ from tekton_pipeline.models.v1beta1_task_resources import V1beta1TaskResources from tekton_pipeline.models.v1beta1_task_result import V1beta1TaskResult from tekton_pipeline.models.v1beta1_task_run import V1beta1TaskRun +from tekton_pipeline.models.v1beta1_task_run_debug import V1beta1TaskRunDebug from tekton_pipeline.models.v1beta1_task_run_inputs import V1beta1TaskRunInputs from tekton_pipeline.models.v1beta1_task_run_list import V1beta1TaskRunList from tekton_pipeline.models.v1beta1_task_run_outputs import V1beta1TaskRunOutputs @@ -112,10 +114,12 @@ from tekton_pipeline.models.v1beta1_task_run_status import V1beta1TaskRunStatus from tekton_pipeline.models.v1beta1_task_run_status_fields import V1beta1TaskRunStatusFields from tekton_pipeline.models.v1beta1_task_spec import V1beta1TaskSpec +from tekton_pipeline.models.v1beta1_timeout_fields import V1beta1TimeoutFields from tekton_pipeline.models.v1beta1_when_expression import V1beta1WhenExpression from tekton_pipeline.models.v1beta1_workspace_binding import V1beta1WorkspaceBinding from tekton_pipeline.models.v1beta1_workspace_declaration import V1beta1WorkspaceDeclaration from tekton_pipeline.models.v1beta1_workspace_pipeline_task_binding import V1beta1WorkspacePipelineTaskBinding +from tekton_pipeline.models.v1beta1_workspace_usage import V1beta1WorkspaceUsage from tekton_pipeline.api.tekton_client import TektonClient from tekton_pipeline.constants import constants diff --git a/sdk/python/tekton_pipeline/api/__init__.py b/sdk/python/tekton_pipeline/api/__init__.py index 463d3c214..7f2385a80 100644 --- a/sdk/python/tekton_pipeline/api/__init__.py +++ b/sdk/python/tekton_pipeline/api/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/api/tekton_client.py b/sdk/python/tekton_pipeline/api/tekton_client.py index ca20ea76d..b10cb0de5 100644 --- a/sdk/python/tekton_pipeline/api/tekton_client.py +++ b/sdk/python/tekton_pipeline/api/tekton_client.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/api_client.py b/sdk/python/tekton_pipeline/api_client.py index 1e304fd5e..df3956e0a 100644 --- a/sdk/python/tekton_pipeline/api_client.py +++ b/sdk/python/tekton_pipeline/api_client.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/configuration.py b/sdk/python/tekton_pipeline/configuration.py index 7e76d8cee..3b7b2a880 100644 --- a/sdk/python/tekton_pipeline/configuration.py +++ b/sdk/python/tekton_pipeline/configuration.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/constants/__init__.py b/sdk/python/tekton_pipeline/constants/__init__.py index 438bd09d1..eb06394a1 100644 --- a/sdk/python/tekton_pipeline/constants/__init__.py +++ b/sdk/python/tekton_pipeline/constants/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/constants/constants.py b/sdk/python/tekton_pipeline/constants/constants.py index 5e5b8bae2..6dc96f82a 100644 --- a/sdk/python/tekton_pipeline/constants/constants.py +++ b/sdk/python/tekton_pipeline/constants/constants.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/exceptions.py b/sdk/python/tekton_pipeline/exceptions.py index 73bb68279..57558c52d 100644 --- a/sdk/python/tekton_pipeline/exceptions.py +++ b/sdk/python/tekton_pipeline/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/__init__.py b/sdk/python/tekton_pipeline/models/__init__.py index 64756432a..327c85705 100644 --- a/sdk/python/tekton_pipeline/models/__init__.py +++ b/sdk/python/tekton_pipeline/models/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -60,6 +60,7 @@ from tekton_pipeline.models.v1beta1_pipeline_run_condition_check_status import V1beta1PipelineRunConditionCheckStatus from tekton_pipeline.models.v1beta1_pipeline_run_list import V1beta1PipelineRunList from tekton_pipeline.models.v1beta1_pipeline_run_result import V1beta1PipelineRunResult +from tekton_pipeline.models.v1beta1_pipeline_run_run_status import V1beta1PipelineRunRunStatus from tekton_pipeline.models.v1beta1_pipeline_run_spec import V1beta1PipelineRunSpec from tekton_pipeline.models.v1beta1_pipeline_run_spec_service_account_name import V1beta1PipelineRunSpecServiceAccountName from tekton_pipeline.models.v1beta1_pipeline_run_status import V1beta1PipelineRunStatus @@ -90,6 +91,7 @@ from tekton_pipeline.models.v1beta1_task_resources import V1beta1TaskResources from tekton_pipeline.models.v1beta1_task_result import V1beta1TaskResult from tekton_pipeline.models.v1beta1_task_run import V1beta1TaskRun +from tekton_pipeline.models.v1beta1_task_run_debug import V1beta1TaskRunDebug from tekton_pipeline.models.v1beta1_task_run_inputs import V1beta1TaskRunInputs from tekton_pipeline.models.v1beta1_task_run_list import V1beta1TaskRunList from tekton_pipeline.models.v1beta1_task_run_outputs import V1beta1TaskRunOutputs @@ -99,7 +101,9 @@ from tekton_pipeline.models.v1beta1_task_run_status import V1beta1TaskRunStatus from tekton_pipeline.models.v1beta1_task_run_status_fields import V1beta1TaskRunStatusFields from tekton_pipeline.models.v1beta1_task_spec import V1beta1TaskSpec +from tekton_pipeline.models.v1beta1_timeout_fields import V1beta1TimeoutFields from tekton_pipeline.models.v1beta1_when_expression import V1beta1WhenExpression from tekton_pipeline.models.v1beta1_workspace_binding import V1beta1WorkspaceBinding from tekton_pipeline.models.v1beta1_workspace_declaration import V1beta1WorkspaceDeclaration from tekton_pipeline.models.v1beta1_workspace_pipeline_task_binding import V1beta1WorkspacePipelineTaskBinding +from tekton_pipeline.models.v1beta1_workspace_usage import V1beta1WorkspaceUsage diff --git a/sdk/python/tekton_pipeline/models/pod_template.py b/sdk/python/tekton_pipeline/models/pod_template.py index f723ca857..f85bed3ed 100644 --- a/sdk/python/tekton_pipeline/models/pod_template.py +++ b/sdk/python/tekton_pipeline/models/pod_template.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,6 +52,7 @@ class PodTemplate(object): 'dns_config': 'V1PodDNSConfig', 'dns_policy': 'str', 'enable_service_links': 'bool', + 'host_aliases': 'list[V1HostAlias]', 'host_network': 'bool', 'image_pull_secrets': 'list[V1LocalObjectReference]', 'node_selector': 'dict(str, str)', @@ -69,6 +70,7 @@ class PodTemplate(object): 'dns_config': 'dnsConfig', 'dns_policy': 'dnsPolicy', 'enable_service_links': 'enableServiceLinks', + 'host_aliases': 'hostAliases', 'host_network': 'hostNetwork', 'image_pull_secrets': 'imagePullSecrets', 'node_selector': 'nodeSelector', @@ -80,7 +82,7 @@ class PodTemplate(object): 'volumes': 'volumes' } - def __init__(self, affinity=None, automount_service_account_token=None, dns_config=None, dns_policy=None, enable_service_links=None, host_network=None, image_pull_secrets=None, node_selector=None, priority_class_name=None, runtime_class_name=None, scheduler_name=None, security_context=None, tolerations=None, volumes=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, affinity=None, automount_service_account_token=None, dns_config=None, dns_policy=None, enable_service_links=None, host_aliases=None, host_network=None, image_pull_secrets=None, node_selector=None, priority_class_name=None, runtime_class_name=None, scheduler_name=None, security_context=None, tolerations=None, volumes=None, local_vars_configuration=None): # noqa: E501 """PodTemplate - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -91,6 +93,7 @@ def __init__(self, affinity=None, automount_service_account_token=None, dns_conf self._dns_config = None self._dns_policy = None self._enable_service_links = None + self._host_aliases = None self._host_network = None self._image_pull_secrets = None self._node_selector = None @@ -112,6 +115,8 @@ def __init__(self, affinity=None, automount_service_account_token=None, dns_conf self.dns_policy = dns_policy if enable_service_links is not None: self.enable_service_links = enable_service_links + if host_aliases is not None: + self.host_aliases = host_aliases if host_network is not None: self.host_network = host_network if image_pull_secrets is not None: @@ -242,6 +247,29 @@ def enable_service_links(self, enable_service_links): self._enable_service_links = enable_service_links + @property + def host_aliases(self): + """Gets the host_aliases of this PodTemplate. # noqa: E501 + + HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. # noqa: E501 + + :return: The host_aliases of this PodTemplate. # noqa: E501 + :rtype: list[V1HostAlias] + """ + return self._host_aliases + + @host_aliases.setter + def host_aliases(self, host_aliases): + """Sets the host_aliases of this PodTemplate. + + HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. # noqa: E501 + + :param host_aliases: The host_aliases of this PodTemplate. # noqa: E501 + :type: list[V1HostAlias] + """ + + self._host_aliases = host_aliases + @property def host_network(self): """Gets the host_network of this PodTemplate. # noqa: E501 diff --git a/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource.py b/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource.py index 627f9d31b..1608c8904 100644 --- a/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource.py +++ b/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource_list.py b/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource_list.py index 40bbf1092..208cea796 100644 --- a/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource_list.py +++ b/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource_list.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource_spec.py b/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource_spec.py index 433692ce7..3d0efecb0 100644 --- a/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource_spec.py +++ b/sdk/python/tekton_pipeline/models/v1alpha1_pipeline_resource_spec.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ class V1alpha1PipelineResourceSpec(object): 'type': 'type' } - def __init__(self, description=None, params=None, secrets=None, type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, description=None, params=None, secrets=None, type='', local_vars_configuration=None): # noqa: E501 """V1alpha1PipelineResourceSpec - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1alpha1_resource_declaration.py b/sdk/python/tekton_pipeline/models/v1alpha1_resource_declaration.py index f79582b0c..01d26c405 100644 --- a/sdk/python/tekton_pipeline/models/v1alpha1_resource_declaration.py +++ b/sdk/python/tekton_pipeline/models/v1alpha1_resource_declaration.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,7 @@ class V1alpha1ResourceDeclaration(object): 'type': 'type' } - def __init__(self, description=None, name=None, optional=None, target_path=None, type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, description=None, name='', optional=None, target_path=None, type='', local_vars_configuration=None): # noqa: E501 """V1alpha1ResourceDeclaration - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1alpha1_resource_param.py b/sdk/python/tekton_pipeline/models/v1alpha1_resource_param.py index bf5776c56..58132460b 100644 --- a/sdk/python/tekton_pipeline/models/v1alpha1_resource_param.py +++ b/sdk/python/tekton_pipeline/models/v1alpha1_resource_param.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ class V1alpha1ResourceParam(object): 'value': 'value' } - def __init__(self, name=None, value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, name='', value='', local_vars_configuration=None): # noqa: E501 """V1alpha1ResourceParam - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1alpha1_secret_param.py b/sdk/python/tekton_pipeline/models/v1alpha1_secret_param.py index f9aa753cf..9ca3add81 100644 --- a/sdk/python/tekton_pipeline/models/v1alpha1_secret_param.py +++ b/sdk/python/tekton_pipeline/models/v1alpha1_secret_param.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ class V1alpha1SecretParam(object): 'secret_name': 'secretName' } - def __init__(self, field_name=None, secret_key=None, secret_name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, field_name='', secret_key='', secret_name='', local_vars_configuration=None): # noqa: E501 """V1alpha1SecretParam - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_array_or_string.py b/sdk/python/tekton_pipeline/models/v1beta1_array_or_string.py index 33c53e13d..d5b52478a 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_array_or_string.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_array_or_string.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ class V1beta1ArrayOrString(object): 'type': 'type' } - def __init__(self, array_val=None, string_val=None, type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, array_val=None, string_val='', type='', local_vars_configuration=None): # noqa: E501 """V1beta1ArrayOrString - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_cannot_convert_error.py b/sdk/python/tekton_pipeline/models/v1beta1_cannot_convert_error.py index af2ab6aaa..24b9111cd 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_cannot_convert_error.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_cannot_convert_error.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ class V1beta1CannotConvertError(object): 'message': 'Message' } - def __init__(self, field=None, message=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, field='', message='', local_vars_configuration=None): # noqa: E501 """V1beta1CannotConvertError - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_cloud_event_delivery.py b/sdk/python/tekton_pipeline/models/v1beta1_cloud_event_delivery.py index 82335f779..1a7422b0c 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_cloud_event_delivery.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_cloud_event_delivery.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_cloud_event_delivery_state.py b/sdk/python/tekton_pipeline/models/v1beta1_cloud_event_delivery_state.py index beef027a4..0897634ff 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_cloud_event_delivery_state.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_cloud_event_delivery_state.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ class V1beta1CloudEventDeliveryState(object): 'sent_at': 'sentAt' } - def __init__(self, condition=None, message=None, retry_count=None, sent_at=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, condition=None, message='', retry_count=0, sent_at=None, local_vars_configuration=None): # noqa: E501 """V1beta1CloudEventDeliveryState - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_cluster_task.py b/sdk/python/tekton_pipeline/models/v1beta1_cluster_task.py index 9d2723059..9076fa1a1 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_cluster_task.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_cluster_task.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_cluster_task_list.py b/sdk/python/tekton_pipeline/models/v1beta1_cluster_task_list.py index 7e32f8010..fe26930e2 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_cluster_task_list.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_cluster_task_list.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_condition_check.py b/sdk/python/tekton_pipeline/models/v1beta1_condition_check.py index 6c321e7a1..c9dc7bc90 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_condition_check.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_condition_check.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_condition_check_status.py b/sdk/python/tekton_pipeline/models/v1beta1_condition_check_status.py index a84b5dc20..438ff73fa 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_condition_check_status.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_condition_check_status.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,7 +66,7 @@ class V1beta1ConditionCheckStatus(object): 'start_time': 'startTime' } - def __init__(self, annotations=None, check=None, completion_time=None, conditions=None, observed_generation=None, pod_name=None, start_time=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, check=None, completion_time=None, conditions=None, observed_generation=None, pod_name='', start_time=None, local_vars_configuration=None): # noqa: E501 """V1beta1ConditionCheckStatus - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_condition_check_status_fields.py b/sdk/python/tekton_pipeline/models/v1beta1_condition_check_status_fields.py index f560a805a..79d90e4ec 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_condition_check_status_fields.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_condition_check_status_fields.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ class V1beta1ConditionCheckStatusFields(object): 'start_time': 'startTime' } - def __init__(self, check=None, completion_time=None, pod_name=None, start_time=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, check=None, completion_time=None, pod_name='', start_time=None, local_vars_configuration=None): # noqa: E501 """V1beta1ConditionCheckStatusFields - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_embedded_task.py b/sdk/python/tekton_pipeline/models/v1beta1_embedded_task.py index 6009cc193..b8cd482b9 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_embedded_task.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_embedded_task.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -47,12 +47,15 @@ class V1beta1EmbeddedTask(object): and the value is json key in definition. """ openapi_types = { + 'api_version': 'str', 'description': 'str', + 'kind': 'str', 'metadata': 'V1beta1PipelineTaskMetadata', 'params': 'list[V1beta1ParamSpec]', 'resources': 'V1beta1TaskResources', 'results': 'list[V1beta1TaskResult]', 'sidecars': 'list[V1beta1Sidecar]', + 'spec': 'K8sIoApimachineryPkgRuntimeRawExtension', 'step_template': 'V1Container', 'steps': 'list[V1beta1Step]', 'volumes': 'list[V1Volume]', @@ -60,38 +63,48 @@ class V1beta1EmbeddedTask(object): } attribute_map = { + 'api_version': 'apiVersion', 'description': 'description', + 'kind': 'kind', 'metadata': 'metadata', 'params': 'params', 'resources': 'resources', 'results': 'results', 'sidecars': 'sidecars', + 'spec': 'spec', 'step_template': 'stepTemplate', 'steps': 'steps', 'volumes': 'volumes', 'workspaces': 'workspaces' } - def __init__(self, description=None, metadata=None, params=None, resources=None, results=None, sidecars=None, step_template=None, steps=None, volumes=None, workspaces=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, api_version=None, description=None, kind=None, metadata=None, params=None, resources=None, results=None, sidecars=None, spec=None, step_template=None, steps=None, volumes=None, workspaces=None, local_vars_configuration=None): # noqa: E501 """V1beta1EmbeddedTask - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._api_version = None self._description = None + self._kind = None self._metadata = None self._params = None self._resources = None self._results = None self._sidecars = None + self._spec = None self._step_template = None self._steps = None self._volumes = None self._workspaces = None self.discriminator = None + if api_version is not None: + self.api_version = api_version if description is not None: self.description = description + if kind is not None: + self.kind = kind if metadata is not None: self.metadata = metadata if params is not None: @@ -102,6 +115,8 @@ def __init__(self, description=None, metadata=None, params=None, resources=None, self.results = results if sidecars is not None: self.sidecars = sidecars + if spec is not None: + self.spec = spec if step_template is not None: self.step_template = step_template if steps is not None: @@ -111,6 +126,27 @@ def __init__(self, description=None, metadata=None, params=None, resources=None, if workspaces is not None: self.workspaces = workspaces + @property + def api_version(self): + """Gets the api_version of this V1beta1EmbeddedTask. # noqa: E501 + + + :return: The api_version of this V1beta1EmbeddedTask. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1beta1EmbeddedTask. + + + :param api_version: The api_version of this V1beta1EmbeddedTask. # noqa: E501 + :type: str + """ + + self._api_version = api_version + @property def description(self): """Gets the description of this V1beta1EmbeddedTask. # noqa: E501 @@ -134,6 +170,27 @@ def description(self, description): self._description = description + @property + def kind(self): + """Gets the kind of this V1beta1EmbeddedTask. # noqa: E501 + + + :return: The kind of this V1beta1EmbeddedTask. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1beta1EmbeddedTask. + + + :param kind: The kind of this V1beta1EmbeddedTask. # noqa: E501 + :type: str + """ + + self._kind = kind + @property def metadata(self): """Gets the metadata of this V1beta1EmbeddedTask. # noqa: E501 @@ -245,6 +302,27 @@ def sidecars(self, sidecars): self._sidecars = sidecars + @property + def spec(self): + """Gets the spec of this V1beta1EmbeddedTask. # noqa: E501 + + + :return: The spec of this V1beta1EmbeddedTask. # noqa: E501 + :rtype: K8sIoApimachineryPkgRuntimeRawExtension + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1beta1EmbeddedTask. + + + :param spec: The spec of this V1beta1EmbeddedTask. # noqa: E501 + :type: K8sIoApimachineryPkgRuntimeRawExtension + """ + + self._spec = spec + @property def step_template(self): """Gets the step_template of this V1beta1EmbeddedTask. # noqa: E501 diff --git a/sdk/python/tekton_pipeline/models/v1beta1_internal_task_modifier.py b/sdk/python/tekton_pipeline/models/v1beta1_internal_task_modifier.py index ab036ad93..897f485c4 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_internal_task_modifier.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_internal_task_modifier.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_param.py b/sdk/python/tekton_pipeline/models/v1beta1_param.py index 66b3a5641..1092377f4 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_param.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_param.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ class V1beta1Param(object): 'value': 'value' } - def __init__(self, name=None, value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, name='', value=None, local_vars_configuration=None): # noqa: E501 """V1beta1Param - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_param_spec.py b/sdk/python/tekton_pipeline/models/v1beta1_param_spec.py index 854f282a4..c9fb17d01 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_param_spec.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_param_spec.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ class V1beta1ParamSpec(object): 'type': 'type' } - def __init__(self, default=None, description=None, name=None, type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, default=None, description=None, name='', type=None, local_vars_configuration=None): # noqa: E501 """V1beta1ParamSpec - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline.py index a63b92a28..353baffa0 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_declared_resource.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_declared_resource.py index 3212d5577..8c8c6cd36 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_declared_resource.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_declared_resource.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ class V1beta1PipelineDeclaredResource(object): 'type': 'type' } - def __init__(self, name=None, optional=None, type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, name='', optional=None, type='', local_vars_configuration=None): # noqa: E501 """V1beta1PipelineDeclaredResource - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_list.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_list.py index 32d90e217..74333e65e 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_list.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_list.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_ref.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_ref.py index a8f26bb94..026082320 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_ref.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_ref.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_binding.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_binding.py index e3cecb41c..fbe85c5d9 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_binding.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_binding.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_ref.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_ref.py index 4f5d4dfc3..1f73354ee 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_ref.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_ref.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_result.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_result.py index 6dd821f47..232ebd169 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_result.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_resource_result.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,7 @@ class V1beta1PipelineResourceResult(object): 'value': 'value' } - def __init__(self, key=None, resource_name=None, resource_ref=None, type=None, value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, key='', resource_name=None, resource_ref=None, type=None, value='', local_vars_configuration=None): # noqa: E501 """V1beta1PipelineResourceResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_result.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_result.py index 4624d17ee..8bf9ebd9a 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_result.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_result.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ class V1beta1PipelineResult(object): 'value': 'value' } - def __init__(self, description=None, name=None, value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, description='', name='', value='', local_vars_configuration=None): # noqa: E501 """V1beta1PipelineResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run.py index 38a631b3a..5c03aa58f 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_condition_check_status.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_condition_check_status.py index d9e153d4f..fef94d62f 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_condition_check_status.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_condition_check_status.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_list.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_list.py index d3700b74d..60762f699 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_list.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_list.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_result.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_result.py index 32f1617d4..3def56460 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_result.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_result.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ class V1beta1PipelineRunResult(object): 'value': 'value' } - def __init__(self, name=None, value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, name='', value='', local_vars_configuration=None): # noqa: E501 """V1beta1PipelineRunResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_run_status.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_run_status.py new file mode 100644 index 000000000..c0fad87c0 --- /dev/null +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_run_status.py @@ -0,0 +1,190 @@ +# Copyright 2021 The Tekton Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# coding: utf-8 + +""" + Tekton + + Tekton Pipeline # noqa: E501 + + The version of the OpenAPI document: v0.17.2 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from tekton_pipeline.configuration import Configuration + + +class V1beta1PipelineRunRunStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'pipeline_task_name': 'str', + 'status': 'GithubComTektoncdPipelinePkgApisRunV1alpha1RunStatus', + 'when_expressions': 'list[V1beta1WhenExpression]' + } + + attribute_map = { + 'pipeline_task_name': 'pipelineTaskName', + 'status': 'status', + 'when_expressions': 'whenExpressions' + } + + def __init__(self, pipeline_task_name=None, status=None, when_expressions=None, local_vars_configuration=None): # noqa: E501 + """V1beta1PipelineRunRunStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._pipeline_task_name = None + self._status = None + self._when_expressions = None + self.discriminator = None + + if pipeline_task_name is not None: + self.pipeline_task_name = pipeline_task_name + if status is not None: + self.status = status + if when_expressions is not None: + self.when_expressions = when_expressions + + @property + def pipeline_task_name(self): + """Gets the pipeline_task_name of this V1beta1PipelineRunRunStatus. # noqa: E501 + + PipelineTaskName is the name of the PipelineTask. # noqa: E501 + + :return: The pipeline_task_name of this V1beta1PipelineRunRunStatus. # noqa: E501 + :rtype: str + """ + return self._pipeline_task_name + + @pipeline_task_name.setter + def pipeline_task_name(self, pipeline_task_name): + """Sets the pipeline_task_name of this V1beta1PipelineRunRunStatus. + + PipelineTaskName is the name of the PipelineTask. # noqa: E501 + + :param pipeline_task_name: The pipeline_task_name of this V1beta1PipelineRunRunStatus. # noqa: E501 + :type: str + """ + + self._pipeline_task_name = pipeline_task_name + + @property + def status(self): + """Gets the status of this V1beta1PipelineRunRunStatus. # noqa: E501 + + + :return: The status of this V1beta1PipelineRunRunStatus. # noqa: E501 + :rtype: GithubComTektoncdPipelinePkgApisRunV1alpha1RunStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1beta1PipelineRunRunStatus. + + + :param status: The status of this V1beta1PipelineRunRunStatus. # noqa: E501 + :type: GithubComTektoncdPipelinePkgApisRunV1alpha1RunStatus + """ + + self._status = status + + @property + def when_expressions(self): + """Gets the when_expressions of this V1beta1PipelineRunRunStatus. # noqa: E501 + + WhenExpressions is the list of checks guarding the execution of the PipelineTask # noqa: E501 + + :return: The when_expressions of this V1beta1PipelineRunRunStatus. # noqa: E501 + :rtype: list[V1beta1WhenExpression] + """ + return self._when_expressions + + @when_expressions.setter + def when_expressions(self, when_expressions): + """Sets the when_expressions of this V1beta1PipelineRunRunStatus. + + WhenExpressions is the list of checks guarding the execution of the PipelineTask # noqa: E501 + + :param when_expressions: The when_expressions of this V1beta1PipelineRunRunStatus. # noqa: E501 + :type: list[V1beta1WhenExpression] + """ + + self._when_expressions = when_expressions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PipelineRunRunStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PipelineRunRunStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_spec.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_spec.py index e48d4fa56..f7c9b317d 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_spec.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_spec.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,6 +57,7 @@ class V1beta1PipelineRunSpec(object): 'status': 'str', 'task_run_specs': 'list[V1beta1PipelineTaskRunSpec]', 'timeout': 'V1Duration', + 'timeouts': 'V1beta1TimeoutFields', 'workspaces': 'list[V1beta1WorkspaceBinding]' } @@ -71,10 +72,11 @@ class V1beta1PipelineRunSpec(object): 'status': 'status', 'task_run_specs': 'taskRunSpecs', 'timeout': 'timeout', + 'timeouts': 'timeouts', 'workspaces': 'workspaces' } - def __init__(self, params=None, pipeline_ref=None, pipeline_spec=None, pod_template=None, resources=None, service_account_name=None, service_account_names=None, status=None, task_run_specs=None, timeout=None, workspaces=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, params=None, pipeline_ref=None, pipeline_spec=None, pod_template=None, resources=None, service_account_name=None, service_account_names=None, status=None, task_run_specs=None, timeout=None, timeouts=None, workspaces=None, local_vars_configuration=None): # noqa: E501 """V1beta1PipelineRunSpec - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -90,6 +92,7 @@ def __init__(self, params=None, pipeline_ref=None, pipeline_spec=None, pod_templ self._status = None self._task_run_specs = None self._timeout = None + self._timeouts = None self._workspaces = None self.discriminator = None @@ -113,6 +116,8 @@ def __init__(self, params=None, pipeline_ref=None, pipeline_spec=None, pod_templ self.task_run_specs = task_run_specs if timeout is not None: self.timeout = timeout + if timeouts is not None: + self.timeouts = timeouts if workspaces is not None: self.workspaces = workspaces @@ -336,6 +341,27 @@ def timeout(self, timeout): self._timeout = timeout + @property + def timeouts(self): + """Gets the timeouts of this V1beta1PipelineRunSpec. # noqa: E501 + + + :return: The timeouts of this V1beta1PipelineRunSpec. # noqa: E501 + :rtype: V1beta1TimeoutFields + """ + return self._timeouts + + @timeouts.setter + def timeouts(self, timeouts): + """Sets the timeouts of this V1beta1PipelineRunSpec. + + + :param timeouts: The timeouts of this V1beta1PipelineRunSpec. # noqa: E501 + :type: V1beta1TimeoutFields + """ + + self._timeouts = timeouts + @property def workspaces(self): """Gets the workspaces of this V1beta1PipelineRunSpec. # noqa: E501 diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_spec_service_account_name.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_spec_service_account_name.py index 112dd1e56..e03db0e27 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_spec_service_account_name.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_spec_service_account_name.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_status.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_status.py index 3ff520bcc..af032291a 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_status.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_status.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -53,6 +53,7 @@ class V1beta1PipelineRunStatus(object): 'observed_generation': 'int', 'pipeline_results': 'list[V1beta1PipelineRunResult]', 'pipeline_spec': 'V1beta1PipelineSpec', + 'runs': 'dict(str, V1beta1PipelineRunRunStatus)', 'skipped_tasks': 'list[V1beta1SkippedTask]', 'start_time': 'V1Time', 'task_runs': 'dict(str, V1beta1PipelineRunTaskRunStatus)' @@ -65,12 +66,13 @@ class V1beta1PipelineRunStatus(object): 'observed_generation': 'observedGeneration', 'pipeline_results': 'pipelineResults', 'pipeline_spec': 'pipelineSpec', + 'runs': 'runs', 'skipped_tasks': 'skippedTasks', 'start_time': 'startTime', 'task_runs': 'taskRuns' } - def __init__(self, annotations=None, completion_time=None, conditions=None, observed_generation=None, pipeline_results=None, pipeline_spec=None, skipped_tasks=None, start_time=None, task_runs=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, completion_time=None, conditions=None, observed_generation=None, pipeline_results=None, pipeline_spec=None, runs=None, skipped_tasks=None, start_time=None, task_runs=None, local_vars_configuration=None): # noqa: E501 """V1beta1PipelineRunStatus - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -82,6 +84,7 @@ def __init__(self, annotations=None, completion_time=None, conditions=None, obse self._observed_generation = None self._pipeline_results = None self._pipeline_spec = None + self._runs = None self._skipped_tasks = None self._start_time = None self._task_runs = None @@ -99,6 +102,8 @@ def __init__(self, annotations=None, completion_time=None, conditions=None, obse self.pipeline_results = pipeline_results if pipeline_spec is not None: self.pipeline_spec = pipeline_spec + if runs is not None: + self.runs = runs if skipped_tasks is not None: self.skipped_tasks = skipped_tasks if start_time is not None: @@ -240,6 +245,29 @@ def pipeline_spec(self, pipeline_spec): self._pipeline_spec = pipeline_spec + @property + def runs(self): + """Gets the runs of this V1beta1PipelineRunStatus. # noqa: E501 + + map of PipelineRunRunStatus with the run name as the key # noqa: E501 + + :return: The runs of this V1beta1PipelineRunStatus. # noqa: E501 + :rtype: dict(str, V1beta1PipelineRunRunStatus) + """ + return self._runs + + @runs.setter + def runs(self, runs): + """Sets the runs of this V1beta1PipelineRunStatus. + + map of PipelineRunRunStatus with the run name as the key # noqa: E501 + + :param runs: The runs of this V1beta1PipelineRunStatus. # noqa: E501 + :type: dict(str, V1beta1PipelineRunRunStatus) + """ + + self._runs = runs + @property def skipped_tasks(self): """Gets the skipped_tasks of this V1beta1PipelineRunStatus. # noqa: E501 diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_status_fields.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_status_fields.py index ba9a810dc..0e2feadc9 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_status_fields.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_status_fields.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -50,6 +50,7 @@ class V1beta1PipelineRunStatusFields(object): 'completion_time': 'V1Time', 'pipeline_results': 'list[V1beta1PipelineRunResult]', 'pipeline_spec': 'V1beta1PipelineSpec', + 'runs': 'dict(str, V1beta1PipelineRunRunStatus)', 'skipped_tasks': 'list[V1beta1SkippedTask]', 'start_time': 'V1Time', 'task_runs': 'dict(str, V1beta1PipelineRunTaskRunStatus)' @@ -59,12 +60,13 @@ class V1beta1PipelineRunStatusFields(object): 'completion_time': 'completionTime', 'pipeline_results': 'pipelineResults', 'pipeline_spec': 'pipelineSpec', + 'runs': 'runs', 'skipped_tasks': 'skippedTasks', 'start_time': 'startTime', 'task_runs': 'taskRuns' } - def __init__(self, completion_time=None, pipeline_results=None, pipeline_spec=None, skipped_tasks=None, start_time=None, task_runs=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, completion_time=None, pipeline_results=None, pipeline_spec=None, runs=None, skipped_tasks=None, start_time=None, task_runs=None, local_vars_configuration=None): # noqa: E501 """V1beta1PipelineRunStatusFields - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -73,6 +75,7 @@ def __init__(self, completion_time=None, pipeline_results=None, pipeline_spec=No self._completion_time = None self._pipeline_results = None self._pipeline_spec = None + self._runs = None self._skipped_tasks = None self._start_time = None self._task_runs = None @@ -84,6 +87,8 @@ def __init__(self, completion_time=None, pipeline_results=None, pipeline_spec=No self.pipeline_results = pipeline_results if pipeline_spec is not None: self.pipeline_spec = pipeline_spec + if runs is not None: + self.runs = runs if skipped_tasks is not None: self.skipped_tasks = skipped_tasks if start_time is not None: @@ -156,6 +161,29 @@ def pipeline_spec(self, pipeline_spec): self._pipeline_spec = pipeline_spec + @property + def runs(self): + """Gets the runs of this V1beta1PipelineRunStatusFields. # noqa: E501 + + map of PipelineRunRunStatus with the run name as the key # noqa: E501 + + :return: The runs of this V1beta1PipelineRunStatusFields. # noqa: E501 + :rtype: dict(str, V1beta1PipelineRunRunStatus) + """ + return self._runs + + @runs.setter + def runs(self, runs): + """Sets the runs of this V1beta1PipelineRunStatusFields. + + map of PipelineRunRunStatus with the run name as the key # noqa: E501 + + :param runs: The runs of this V1beta1PipelineRunStatusFields. # noqa: E501 + :type: dict(str, V1beta1PipelineRunRunStatus) + """ + + self._runs = runs + @property def skipped_tasks(self): """Gets the skipped_tasks of this V1beta1PipelineRunStatusFields. # noqa: E501 diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_task_run_status.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_task_run_status.py index d5cfaefdb..c0a5762d7 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_task_run_status.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_run_task_run_status.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_spec.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_spec.py index 7a9c89904..21221e9a6 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_spec.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_spec.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task.py index b01a3ce6d..531d144ef 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_condition.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_condition.py index 1ed0791a1..bff4a7e78 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_condition.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_condition.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ class V1beta1PipelineTaskCondition(object): 'resources': 'resources' } - def __init__(self, condition_ref=None, params=None, resources=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, condition_ref='', params=None, resources=None, local_vars_configuration=None): # noqa: E501 """V1beta1PipelineTaskCondition - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_input_resource.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_input_resource.py index 0cf01c3a3..335fe9f96 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_input_resource.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_input_resource.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ class V1beta1PipelineTaskInputResource(object): 'resource': 'resource' } - def __init__(self, _from=None, name=None, resource=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, _from=None, name='', resource='', local_vars_configuration=None): # noqa: E501 """V1beta1PipelineTaskInputResource - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_metadata.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_metadata.py index d33bc10d9..846a46430 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_metadata.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_metadata.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_output_resource.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_output_resource.py index f8d99ee66..a6d7f655f 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_output_resource.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_output_resource.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ class V1beta1PipelineTaskOutputResource(object): 'resource': 'resource' } - def __init__(self, name=None, resource=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, name='', resource='', local_vars_configuration=None): # noqa: E501 """V1beta1PipelineTaskOutputResource - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_param.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_param.py index e9febf526..dc4f2f5f9 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_param.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_param.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ class V1beta1PipelineTaskParam(object): 'value': 'value' } - def __init__(self, name=None, value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, name='', value='', local_vars_configuration=None): # noqa: E501 """V1beta1PipelineTaskParam - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_resources.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_resources.py index 49869040e..96caa3955 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_resources.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_resources.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_run.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_run.py index 0a3b8fc9a..72aa3081d 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_run.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_run.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_run_spec.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_run_spec.py index 0c591ebf3..ce6a1f3c9 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_run_spec.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_task_run_spec.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_workspace_declaration.py b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_workspace_declaration.py index 9aee62b9a..809eb57ae 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_pipeline_workspace_declaration.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_pipeline_workspace_declaration.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ class V1beta1PipelineWorkspaceDeclaration(object): 'optional': 'optional' } - def __init__(self, description=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, description=None, name='', optional=None, local_vars_configuration=None): # noqa: E501 """V1beta1PipelineWorkspaceDeclaration - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_result_ref.py b/sdk/python/tekton_pipeline/models/v1beta1_result_ref.py index baaa04abf..87fffda80 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_result_ref.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_result_ref.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ class V1beta1ResultRef(object): 'result': 'Result' } - def __init__(self, pipeline_task=None, result=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, pipeline_task='', result='', local_vars_configuration=None): # noqa: E501 """V1beta1ResultRef - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_sidecar.py b/sdk/python/tekton_pipeline/models/v1beta1_sidecar.py index 59644ff56..21cb881ef 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_sidecar.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_sidecar.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -69,7 +69,8 @@ class V1beta1Sidecar(object): 'tty': 'bool', 'volume_devices': 'list[V1VolumeDevice]', 'volume_mounts': 'list[V1VolumeMount]', - 'working_dir': 'str' + 'working_dir': 'str', + 'workspaces': 'list[V1beta1WorkspaceUsage]' } attribute_map = { @@ -95,10 +96,11 @@ class V1beta1Sidecar(object): 'tty': 'tty', 'volume_devices': 'volumeDevices', 'volume_mounts': 'volumeMounts', - 'working_dir': 'workingDir' + 'working_dir': 'workingDir', + 'workspaces': 'workspaces' } - def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, script=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name='', ports=None, readiness_probe=None, resources=None, script=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, workspaces=None, local_vars_configuration=None): # noqa: E501 """V1beta1Sidecar - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -127,6 +129,7 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self._volume_devices = None self._volume_mounts = None self._working_dir = None + self._workspaces = None self.discriminator = None if args is not None: @@ -174,6 +177,8 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self.volume_mounts = volume_mounts if working_dir is not None: self.working_dir = working_dir + if workspaces is not None: + self.workspaces = workspaces @property def args(self): @@ -694,6 +699,29 @@ def working_dir(self, working_dir): self._working_dir = working_dir + @property + def workspaces(self): + """Gets the workspaces of this V1beta1Sidecar. # noqa: E501 + + This is an alpha field. You must set the \"enable-api-fields\" feature flag to \"alpha\" for this field to be supported. Workspaces is a list of workspaces from the Task that this Sidecar wants exclusive access to. Adding a workspace to this list means that any other Step or Sidecar that does not also request this Workspace will not have access to it. # noqa: E501 + + :return: The workspaces of this V1beta1Sidecar. # noqa: E501 + :rtype: list[V1beta1WorkspaceUsage] + """ + return self._workspaces + + @workspaces.setter + def workspaces(self, workspaces): + """Sets the workspaces of this V1beta1Sidecar. + + This is an alpha field. You must set the \"enable-api-fields\" feature flag to \"alpha\" for this field to be supported. Workspaces is a list of workspaces from the Task that this Sidecar wants exclusive access to. Adding a workspace to this list means that any other Step or Sidecar that does not also request this Workspace will not have access to it. # noqa: E501 + + :param workspaces: The workspaces of this V1beta1Sidecar. # noqa: E501 + :type: list[V1beta1WorkspaceUsage] + """ + + self._workspaces = workspaces + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sdk/python/tekton_pipeline/models/v1beta1_sidecar_state.py b/sdk/python/tekton_pipeline/models/v1beta1_sidecar_state.py index c770c175f..cc643407a 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_sidecar_state.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_sidecar_state.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_skipped_task.py b/sdk/python/tekton_pipeline/models/v1beta1_skipped_task.py index 8f19a2ce7..64a141bb5 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_skipped_task.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_skipped_task.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ class V1beta1SkippedTask(object): 'when_expressions': 'whenExpressions' } - def __init__(self, name=None, when_expressions=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, name='', when_expressions=None, local_vars_configuration=None): # noqa: E501 """V1beta1SkippedTask - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_step.py b/sdk/python/tekton_pipeline/models/v1beta1_step.py index db2a1aad8..0c5940cf7 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_step.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_step.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -70,7 +70,8 @@ class V1beta1Step(object): 'tty': 'bool', 'volume_devices': 'list[V1VolumeDevice]', 'volume_mounts': 'list[V1VolumeMount]', - 'working_dir': 'str' + 'working_dir': 'str', + 'workspaces': 'list[V1beta1WorkspaceUsage]' } attribute_map = { @@ -97,10 +98,11 @@ class V1beta1Step(object): 'tty': 'tty', 'volume_devices': 'volumeDevices', 'volume_mounts': 'volumeMounts', - 'working_dir': 'workingDir' + 'working_dir': 'workingDir', + 'workspaces': 'workspaces' } - def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, script=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, timeout=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name='', ports=None, readiness_probe=None, resources=None, script=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, timeout=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, workspaces=None, local_vars_configuration=None): # noqa: E501 """V1beta1Step - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -130,6 +132,7 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self._volume_devices = None self._volume_mounts = None self._working_dir = None + self._workspaces = None self.discriminator = None if args is not None: @@ -179,6 +182,8 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self.volume_mounts = volume_mounts if working_dir is not None: self.working_dir = working_dir + if workspaces is not None: + self.workspaces = workspaces @property def args(self): @@ -720,6 +725,29 @@ def working_dir(self, working_dir): self._working_dir = working_dir + @property + def workspaces(self): + """Gets the workspaces of this V1beta1Step. # noqa: E501 + + This is an alpha field. You must set the \"enable-api-fields\" feature flag to \"alpha\" for this field to be supported. Workspaces is a list of workspaces from the Task that this Step wants exclusive access to. Adding a workspace to this list means that any other Step or Sidecar that does not also request this Workspace will not have access to it. # noqa: E501 + + :return: The workspaces of this V1beta1Step. # noqa: E501 + :rtype: list[V1beta1WorkspaceUsage] + """ + return self._workspaces + + @workspaces.setter + def workspaces(self, workspaces): + """Sets the workspaces of this V1beta1Step. + + This is an alpha field. You must set the \"enable-api-fields\" feature flag to \"alpha\" for this field to be supported. Workspaces is a list of workspaces from the Task that this Step wants exclusive access to. Adding a workspace to this list means that any other Step or Sidecar that does not also request this Workspace will not have access to it. # noqa: E501 + + :param workspaces: The workspaces of this V1beta1Step. # noqa: E501 + :type: list[V1beta1WorkspaceUsage] + """ + + self._workspaces = workspaces + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sdk/python/tekton_pipeline/models/v1beta1_step_state.py b/sdk/python/tekton_pipeline/models/v1beta1_step_state.py index 0c94f3cc7..45b1b4d39 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_step_state.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_step_state.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task.py b/sdk/python/tekton_pipeline/models/v1beta1_task.py index 0c19c6431..0773fa18b 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_list.py b/sdk/python/tekton_pipeline/models/v1beta1_task_list.py index 0685ed312..980b5672c 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_list.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_list.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_ref.py b/sdk/python/tekton_pipeline/models/v1beta1_task_ref.py index d3214fe97..50fce0e25 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_ref.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_ref.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_resource.py b/sdk/python/tekton_pipeline/models/v1beta1_task_resource.py index c3effc929..c424aa69d 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_resource.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_resource.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,7 @@ class V1beta1TaskResource(object): 'type': 'type' } - def __init__(self, description=None, name=None, optional=None, target_path=None, type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, description=None, name='', optional=None, target_path=None, type='', local_vars_configuration=None): # noqa: E501 """V1beta1TaskResource - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_resource_binding.py b/sdk/python/tekton_pipeline/models/v1beta1_task_resource_binding.py index 17ace850d..00eb6a538 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_resource_binding.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_resource_binding.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_resources.py b/sdk/python/tekton_pipeline/models/v1beta1_task_resources.py index 843945d71..93754abf6 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_resources.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_resources.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_result.py b/sdk/python/tekton_pipeline/models/v1beta1_task_result.py index 4183312e3..79dff1ee4 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_result.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_result.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ class V1beta1TaskResult(object): 'name': 'name' } - def __init__(self, description=None, name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, description='', name='', local_vars_configuration=None): # noqa: E501 """V1beta1TaskResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_run.py b/sdk/python/tekton_pipeline/models/v1beta1_task_run.py index 75325dd05..767957e50 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_run.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_run.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_run_debug.py b/sdk/python/tekton_pipeline/models/v1beta1_task_run_debug.py new file mode 100644 index 000000000..467f0250b --- /dev/null +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_run_debug.py @@ -0,0 +1,134 @@ +# Copyright 2021 The Tekton Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# coding: utf-8 + +""" + Tekton + + Tekton Pipeline # noqa: E501 + + The version of the OpenAPI document: v0.17.2 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from tekton_pipeline.configuration import Configuration + + +class V1beta1TaskRunDebug(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'breakpoint': 'list[str]' + } + + attribute_map = { + 'breakpoint': 'breakpoint' + } + + def __init__(self, breakpoint=None, local_vars_configuration=None): # noqa: E501 + """V1beta1TaskRunDebug - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._breakpoint = None + self.discriminator = None + + if breakpoint is not None: + self.breakpoint = breakpoint + + @property + def breakpoint(self): + """Gets the breakpoint of this V1beta1TaskRunDebug. # noqa: E501 + + + :return: The breakpoint of this V1beta1TaskRunDebug. # noqa: E501 + :rtype: list[str] + """ + return self._breakpoint + + @breakpoint.setter + def breakpoint(self, breakpoint): + """Sets the breakpoint of this V1beta1TaskRunDebug. + + + :param breakpoint: The breakpoint of this V1beta1TaskRunDebug. # noqa: E501 + :type: list[str] + """ + + self._breakpoint = breakpoint + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1TaskRunDebug): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1TaskRunDebug): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_run_inputs.py b/sdk/python/tekton_pipeline/models/v1beta1_task_run_inputs.py index 64f64a516..248207e5a 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_run_inputs.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_run_inputs.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_run_list.py b/sdk/python/tekton_pipeline/models/v1beta1_task_run_list.py index d0ff3256b..6b7511ea5 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_run_list.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_run_list.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_run_outputs.py b/sdk/python/tekton_pipeline/models/v1beta1_task_run_outputs.py index a2f6748ff..271d47c3a 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_run_outputs.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_run_outputs.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_run_resources.py b/sdk/python/tekton_pipeline/models/v1beta1_task_run_resources.py index 72e929049..327b44180 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_run_resources.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_run_resources.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_run_result.py b/sdk/python/tekton_pipeline/models/v1beta1_task_run_result.py index f7958560e..84406678d 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_run_result.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_run_result.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ class V1beta1TaskRunResult(object): 'value': 'value' } - def __init__(self, name=None, value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, name='', value='', local_vars_configuration=None): # noqa: E501 """V1beta1TaskRunResult - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_run_spec.py b/sdk/python/tekton_pipeline/models/v1beta1_task_run_spec.py index 818b30cd6..5c01dd98e 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_run_spec.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_run_spec.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -47,6 +47,7 @@ class V1beta1TaskRunSpec(object): and the value is json key in definition. """ openapi_types = { + 'debug': 'V1beta1TaskRunDebug', 'params': 'list[V1beta1Param]', 'pod_template': 'PodTemplate', 'resources': 'V1beta1TaskRunResources', @@ -59,6 +60,7 @@ class V1beta1TaskRunSpec(object): } attribute_map = { + 'debug': 'debug', 'params': 'params', 'pod_template': 'podTemplate', 'resources': 'resources', @@ -70,12 +72,13 @@ class V1beta1TaskRunSpec(object): 'workspaces': 'workspaces' } - def __init__(self, params=None, pod_template=None, resources=None, service_account_name=None, status=None, task_ref=None, task_spec=None, timeout=None, workspaces=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, debug=None, params=None, pod_template=None, resources=None, service_account_name='', status=None, task_ref=None, task_spec=None, timeout=None, workspaces=None, local_vars_configuration=None): # noqa: E501 """V1beta1TaskRunSpec - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._debug = None self._params = None self._pod_template = None self._resources = None @@ -87,6 +90,8 @@ def __init__(self, params=None, pod_template=None, resources=None, service_accou self._workspaces = None self.discriminator = None + if debug is not None: + self.debug = debug if params is not None: self.params = params if pod_template is not None: @@ -106,6 +111,27 @@ def __init__(self, params=None, pod_template=None, resources=None, service_accou if workspaces is not None: self.workspaces = workspaces + @property + def debug(self): + """Gets the debug of this V1beta1TaskRunSpec. # noqa: E501 + + + :return: The debug of this V1beta1TaskRunSpec. # noqa: E501 + :rtype: V1beta1TaskRunDebug + """ + return self._debug + + @debug.setter + def debug(self, debug): + """Sets the debug of this V1beta1TaskRunSpec. + + + :param debug: The debug of this V1beta1TaskRunSpec. # noqa: E501 + :type: V1beta1TaskRunDebug + """ + + self._debug = debug + @property def params(self): """Gets the params of this V1beta1TaskRunSpec. # noqa: E501 diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_run_status.py b/sdk/python/tekton_pipeline/models/v1beta1_task_run_status.py index 298b0d2c2..4aa3b2689 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_run_status.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_run_status.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -78,7 +78,7 @@ class V1beta1TaskRunStatus(object): 'task_spec': 'taskSpec' } - def __init__(self, annotations=None, cloud_events=None, completion_time=None, conditions=None, observed_generation=None, pod_name=None, resources_result=None, retries_status=None, sidecars=None, start_time=None, steps=None, task_results=None, task_spec=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, annotations=None, cloud_events=None, completion_time=None, conditions=None, observed_generation=None, pod_name='', resources_result=None, retries_status=None, sidecars=None, start_time=None, steps=None, task_results=None, task_spec=None, local_vars_configuration=None): # noqa: E501 """V1beta1TaskRunStatus - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_run_status_fields.py b/sdk/python/tekton_pipeline/models/v1beta1_task_run_status_fields.py index 18db73df7..ef9074309 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_run_status_fields.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_run_status_fields.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -72,7 +72,7 @@ class V1beta1TaskRunStatusFields(object): 'task_spec': 'taskSpec' } - def __init__(self, cloud_events=None, completion_time=None, pod_name=None, resources_result=None, retries_status=None, sidecars=None, start_time=None, steps=None, task_results=None, task_spec=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, cloud_events=None, completion_time=None, pod_name='', resources_result=None, retries_status=None, sidecars=None, start_time=None, steps=None, task_results=None, task_spec=None, local_vars_configuration=None): # noqa: E501 """V1beta1TaskRunStatusFields - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_task_spec.py b/sdk/python/tekton_pipeline/models/v1beta1_task_spec.py index e5f8ca644..803d3348f 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_task_spec.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_task_spec.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/sdk/python/tekton_pipeline/models/v1beta1_timeout_fields.py b/sdk/python/tekton_pipeline/models/v1beta1_timeout_fields.py new file mode 100644 index 000000000..6c1389ddb --- /dev/null +++ b/sdk/python/tekton_pipeline/models/v1beta1_timeout_fields.py @@ -0,0 +1,186 @@ +# Copyright 2021 The Tekton Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# coding: utf-8 + +""" + Tekton + + Tekton Pipeline # noqa: E501 + + The version of the OpenAPI document: v0.17.2 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from tekton_pipeline.configuration import Configuration + + +class V1beta1TimeoutFields(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + '_finally': 'V1Duration', + 'pipeline': 'V1Duration', + 'tasks': 'V1Duration' + } + + attribute_map = { + '_finally': 'finally', + 'pipeline': 'pipeline', + 'tasks': 'tasks' + } + + def __init__(self, _finally=None, pipeline=None, tasks=None, local_vars_configuration=None): # noqa: E501 + """V1beta1TimeoutFields - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self.__finally = None + self._pipeline = None + self._tasks = None + self.discriminator = None + + if _finally is not None: + self._finally = _finally + if pipeline is not None: + self.pipeline = pipeline + if tasks is not None: + self.tasks = tasks + + @property + def _finally(self): + """Gets the _finally of this V1beta1TimeoutFields. # noqa: E501 + + + :return: The _finally of this V1beta1TimeoutFields. # noqa: E501 + :rtype: V1Duration + """ + return self.__finally + + @_finally.setter + def _finally(self, _finally): + """Sets the _finally of this V1beta1TimeoutFields. + + + :param _finally: The _finally of this V1beta1TimeoutFields. # noqa: E501 + :type: V1Duration + """ + + self.__finally = _finally + + @property + def pipeline(self): + """Gets the pipeline of this V1beta1TimeoutFields. # noqa: E501 + + + :return: The pipeline of this V1beta1TimeoutFields. # noqa: E501 + :rtype: V1Duration + """ + return self._pipeline + + @pipeline.setter + def pipeline(self, pipeline): + """Sets the pipeline of this V1beta1TimeoutFields. + + + :param pipeline: The pipeline of this V1beta1TimeoutFields. # noqa: E501 + :type: V1Duration + """ + + self._pipeline = pipeline + + @property + def tasks(self): + """Gets the tasks of this V1beta1TimeoutFields. # noqa: E501 + + + :return: The tasks of this V1beta1TimeoutFields. # noqa: E501 + :rtype: V1Duration + """ + return self._tasks + + @tasks.setter + def tasks(self, tasks): + """Sets the tasks of this V1beta1TimeoutFields. + + + :param tasks: The tasks of this V1beta1TimeoutFields. # noqa: E501 + :type: V1Duration + """ + + self._tasks = tasks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1TimeoutFields): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1TimeoutFields): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/tekton_pipeline/models/v1beta1_when_expression.py b/sdk/python/tekton_pipeline/models/v1beta1_when_expression.py index 0a0fba881..a5d00621b 100644 --- a/sdk/python/tekton_pipeline/models/v1beta1_when_expression.py +++ b/sdk/python/tekton_pipeline/models/v1beta1_when_expression.py @@ -1,4 +1,4 @@ -# Copyright 2020 The Tekton Authors +# Copyright 2021 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -47,116 +47,32 @@ class V1beta1WhenExpression(object): and the value is json key in definition. """ openapi_types = { - 'input': 'str', - 'operator': 'str', - 'values': 'list[str]', 'input': 'str', 'operator': 'str', 'values': 'list[str]' } attribute_map = { - 'input': 'Input', - 'operator': 'Operator', - 'values': 'Values', 'input': 'input', 'operator': 'operator', 'values': 'values' } - def __init__(self, input=None, operator=None, values=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, input='', operator='', values=None, local_vars_configuration=None): # noqa: E501 """V1beta1WhenExpression - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration - self._input = None - self._operator = None - self._values = None self._input = None self._operator = None self._values = None self.discriminator = None - if input is not None: - self.input = input - if operator is not None: - self.operator = operator - if values is not None: - self.values = values self.input = input self.operator = operator self.values = values - @property - def input(self): - """Gets the input of this V1beta1WhenExpression. # noqa: E501 - - DeprecatedInput for backwards compatibility with