Documentation ¶
Overview ¶
Copyright 2023 Google LLC. All Rights Reserved.
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. Package beta defines operations in the declarative SDK.
Copyright 2023 Google LLC. All Rights Reserved.
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.
Copyright 2023 Google LLC. All Rights Reserved.
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.
Copyright 2023 Google LLC. All Rights Reserved.
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.
Copyright 2023 Google LLC. All Rights Reserved.
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.
Copyright 2023 Google LLC. All Rights Reserved.
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.
Copyright 2023 Google LLC. All Rights Reserved.
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.
Index ¶
- Constants
- Variables
- func DCLDeliveryPipelineSchema() *dcl.Schema
- func DCLTargetSchema() *dcl.Schema
- type Client
- func (c *Client) ApplyDeliveryPipeline(ctx context.Context, rawDesired *DeliveryPipeline, opts ...dcl.ApplyOption) (*DeliveryPipeline, error)
- func (c *Client) ApplyTarget(ctx context.Context, rawDesired *Target, opts ...dcl.ApplyOption) (*Target, error)
- func (c *Client) DeleteAllDeliveryPipeline(ctx context.Context, project, location string, ...) error
- func (c *Client) DeleteAllTarget(ctx context.Context, project, location string, filter func(*Target) bool) error
- func (c *Client) DeleteDeliveryPipeline(ctx context.Context, r *DeliveryPipeline) error
- func (c *Client) DeleteTarget(ctx context.Context, r *Target) error
- func (c *Client) GetDeliveryPipeline(ctx context.Context, r *DeliveryPipeline) (*DeliveryPipeline, error)
- func (c *Client) GetTarget(ctx context.Context, r *Target) (*Target, error)
- func (c *Client) ListDeliveryPipeline(ctx context.Context, project, location string) (*DeliveryPipelineList, error)
- func (c *Client) ListDeliveryPipelineWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*DeliveryPipelineList, error)
- func (c *Client) ListTarget(ctx context.Context, project, location string) (*TargetList, error)
- func (c *Client) ListTargetWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*TargetList, error)
- type DeliveryPipeline
- func (r *DeliveryPipeline) Describe() dcl.ServiceTypeVersion
- func (r *DeliveryPipeline) GetPolicy(basePath string) (string, string, *bytes.Buffer, error)
- func (r *DeliveryPipeline) IAMPolicyVersion() int
- func (r *DeliveryPipeline) ID() (string, error)
- func (r *DeliveryPipeline) SetPolicyURL(userBasePath string) string
- func (r *DeliveryPipeline) SetPolicyVerb() string
- func (r *DeliveryPipeline) String() string
- type DeliveryPipelineCondition
- type DeliveryPipelineConditionPipelineReadyCondition
- func (r *DeliveryPipelineConditionPipelineReadyCondition) Empty() bool
- func (r *DeliveryPipelineConditionPipelineReadyCondition) HashCode() string
- func (r *DeliveryPipelineConditionPipelineReadyCondition) String() string
- func (r *DeliveryPipelineConditionPipelineReadyCondition) UnmarshalJSON(data []byte) error
- type DeliveryPipelineConditionTargetsPresentCondition
- func (r *DeliveryPipelineConditionTargetsPresentCondition) Empty() bool
- func (r *DeliveryPipelineConditionTargetsPresentCondition) HashCode() string
- func (r *DeliveryPipelineConditionTargetsPresentCondition) String() string
- func (r *DeliveryPipelineConditionTargetsPresentCondition) UnmarshalJSON(data []byte) error
- type DeliveryPipelineConditionTargetsTypeCondition
- func (r *DeliveryPipelineConditionTargetsTypeCondition) Empty() bool
- func (r *DeliveryPipelineConditionTargetsTypeCondition) HashCode() string
- func (r *DeliveryPipelineConditionTargetsTypeCondition) String() string
- func (r *DeliveryPipelineConditionTargetsTypeCondition) UnmarshalJSON(data []byte) error
- type DeliveryPipelineList
- type DeliveryPipelineSerialPipeline
- type DeliveryPipelineSerialPipelineStages
- type DeliveryPipelineSerialPipelineStagesStrategy
- type DeliveryPipelineSerialPipelineStagesStrategyCanary
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanary) Empty() bool
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanary) HashCode() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanary) String() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanary) UnmarshalJSON(data []byte) error
- type DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) Empty() bool
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) HashCode() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) String() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) UnmarshalJSON(data []byte) error
- type DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) Empty() bool
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) HashCode() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) String() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) UnmarshalJSON(data []byte) error
- type DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs) Empty() bool
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs) HashCode() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs) String() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs) UnmarshalJSON(data []byte) error
- type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) Empty() bool
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) HashCode() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) String() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) UnmarshalJSON(data []byte) error
- type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) Empty() bool
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) HashCode() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) String() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) UnmarshalJSON(data []byte) error
- type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) Empty() bool
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) HashCode() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) String() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) UnmarshalJSON(data []byte) error
- type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh) Empty() bool
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh) HashCode() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh) String() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh) UnmarshalJSON(data []byte) error
- type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking) Empty() bool
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking) HashCode() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking) String() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking) UnmarshalJSON(data []byte) error
- type DeliveryPipelineSerialPipelineStagesStrategyStandard
- func (r *DeliveryPipelineSerialPipelineStagesStrategyStandard) Empty() bool
- func (r *DeliveryPipelineSerialPipelineStagesStrategyStandard) HashCode() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyStandard) String() string
- func (r *DeliveryPipelineSerialPipelineStagesStrategyStandard) UnmarshalJSON(data []byte) error
- type Target
- func (r *Target) Describe() dcl.ServiceTypeVersion
- func (r *Target) GetPolicy(basePath string) (string, string, *bytes.Buffer, error)
- func (r *Target) IAMPolicyVersion() int
- func (r *Target) ID() (string, error)
- func (r *Target) SetPolicyURL(userBasePath string) string
- func (r *Target) SetPolicyVerb() string
- func (r *Target) String() string
- type TargetAnthosCluster
- type TargetExecutionConfigs
- type TargetExecutionConfigsUsagesEnum
- type TargetGke
- type TargetList
- type TargetMultiTarget
- type TargetRun
Constants ¶
const DeliveryPipelineMaxPage = -1
const TargetMaxPage = -1
Variables ¶
var YAML_delivery_pipeline = []byte("info:\n title: Clouddeploy/DeliveryPipeline\n description: The Cloud Deploy `DeliveryPipeline` resource\n x-dcl-struct-name: DeliveryPipeline\n x-dcl-has-iam: false\n x-dcl-ref:\n text: REST API\n url: https://cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations.deliveryPipelines\npaths:\n get:\n description: The function used to get information about a DeliveryPipeline\n parameters:\n - name: deliveryPipeline\n required: true\n description: A full instance of a DeliveryPipeline\n apply:\n description: The function used to apply information about a DeliveryPipeline\n parameters:\n - name: deliveryPipeline\n required: true\n description: A full instance of a DeliveryPipeline\n delete:\n description: The function used to delete a DeliveryPipeline\n parameters:\n - name: deliveryPipeline\n required: true\n description: A full instance of a DeliveryPipeline\n deleteAll:\n description: The function used to delete all DeliveryPipeline\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many DeliveryPipeline\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n DeliveryPipeline:\n title: DeliveryPipeline\n x-dcl-id: projects/{{project}}/locations/{{location}}/deliveryPipelines/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n annotations:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Annotations\n description: User annotations. These attributes can only be set and used\n by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations\n for more details such as format and size limitations.\n condition:\n type: object\n x-dcl-go-name: Condition\n x-dcl-go-type: DeliveryPipelineCondition\n readOnly: true\n description: Output only. Information around the state of the Delivery Pipeline.\n properties:\n pipelineReadyCondition:\n type: object\n x-dcl-go-name: PipelineReadyCondition\n x-dcl-go-type: DeliveryPipelineConditionPipelineReadyCondition\n description: Details around the Pipeline's overall status.\n properties:\n status:\n type: boolean\n x-dcl-go-name: Status\n description: True if the Pipeline is in a valid state. Otherwise\n at least one condition in `PipelineCondition` is in an invalid\n state. Iterate over those conditions and see which condition(s)\n has status = false to find out what is wrong with the Pipeline.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last time the condition was updated.\n targetsPresentCondition:\n type: object\n x-dcl-go-name: TargetsPresentCondition\n x-dcl-go-type: DeliveryPipelineConditionTargetsPresentCondition\n description: Details around targets enumerated in the pipeline.\n properties:\n missingTargets:\n type: array\n x-dcl-go-name: MissingTargets\n description: The list of Target names that are missing. For example,\n projects/{project_id}/locations/{location_name}/targets/{target_name}.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Clouddeploy/Target\n field: selfLink\n status:\n type: boolean\n x-dcl-go-name: Status\n description: True if there aren't any missing Targets.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last time the condition was updated.\n targetsTypeCondition:\n type: object\n x-dcl-go-name: TargetsTypeCondition\n x-dcl-go-type: DeliveryPipelineConditionTargetsTypeCondition\n description: Details on the whether the targets enumerated in the pipeline\n are of the same type.\n properties:\n errorDetails:\n type: string\n x-dcl-go-name: ErrorDetails\n description: Human readable error message.\n status:\n type: boolean\n x-dcl-go-name: Status\n description: True if the targets are all a comparable type. For\n example this is true if all targets are GKE clusters. This is\n false if some targets are Cloud Run targets and others are GKE\n clusters.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. Time at which the pipeline was created.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Description of the `DeliveryPipeline`. Max length is 255 characters.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: This checksum is computed by the server based on the value\n of other fields, and may be sent on update and delete requests to ensure\n the client has an up-to-date value before proceeding.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: 'Labels are attributes that can be set and used by both the\n user and by Google Cloud Deploy. Labels must meet the following constraints:\n * Keys and values can contain only lowercase letters, numeric characters,\n underscores, and dashes. * All characters must use UTF-8 encoding, and\n international characters are allowed. * Keys must start with a lowercase\n letter or international character. * Each resource is limited to a maximum\n of 64 labels. Both keys and values are additionally constrained to be\n <= 128 bytes.'\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the `DeliveryPipeline`. Format is [a-z][a-z0-9\\-]{0,62}.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n serialPipeline:\n type: object\n x-dcl-go-name: SerialPipeline\n x-dcl-go-type: DeliveryPipelineSerialPipeline\n description: SerialPipeline defines a sequential set of stages for a `DeliveryPipeline`.\n properties:\n stages:\n type: array\n x-dcl-go-name: Stages\n description: Each stage specifies configuration for a `Target`. The\n ordering of this list defines the promotion flow.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: DeliveryPipelineSerialPipelineStages\n properties:\n profiles:\n type: array\n x-dcl-go-name: Profiles\n description: Skaffold profiles to use when rendering the manifest\n for this stage's `Target`.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n strategy:\n type: object\n x-dcl-go-name: Strategy\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategy\n description: Optional. The strategy to use for a `Rollout` to\n this stage.\n properties:\n canary:\n type: object\n x-dcl-go-name: Canary\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategyCanary\n description: Canary deployment strategy provides progressive\n percentage based deployments to a Target.\n properties:\n canaryDeployment:\n type: object\n x-dcl-go-name: CanaryDeployment\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment\n description: Configures the progressive based deployment\n for a Target.\n x-dcl-conflicts:\n - customCanaryDeployment\n required:\n - percentages\n properties:\n percentages:\n type: array\n x-dcl-go-name: Percentages\n description: Required. The percentage based deployments\n that will occur as a part of a `Rollout`. List is\n expected in ascending order and each integer n is\n 0 <= n < 100.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: integer\n format: int64\n x-dcl-go-type: int64\n verify:\n type: boolean\n x-dcl-go-name: Verify\n description: Whether to run verify tests after each\n percentage deployment.\n customCanaryDeployment:\n type: object\n x-dcl-go-name: CustomCanaryDeployment\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment\n description: Configures the progressive based deployment\n for a Target, but allows customizing at the phase level\n where a phase represents each of the percentage deployments.\n x-dcl-conflicts:\n - canaryDeployment\n required:\n - phaseConfigs\n properties:\n phaseConfigs:\n type: array\n x-dcl-go-name: PhaseConfigs\n description: Required. Configuration for each phase\n in the canary deployment in the order executed.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs\n required:\n - phaseId\n - percentage\n properties:\n percentage:\n type: integer\n format: int64\n x-dcl-go-name: Percentage\n description: Required. Percentage deployment\n for the phase.\n phaseId:\n type: string\n x-dcl-go-name: PhaseId\n description: 'Required. The ID to assign to\n the `Rollout` phase. This value must consist\n of lower-case letters, numbers, and hyphens,\n start with a letter and end with a letter\n or a number, and have a max length of 63 characters.\n In other words, it must match the following\n regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.'\n profiles:\n type: array\n x-dcl-go-name: Profiles\n description: Skaffold profiles to use when rendering\n the manifest for this phase. These are in\n addition to the profiles list specified in\n the `DeliveryPipeline` stage.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n verify:\n type: boolean\n x-dcl-go-name: Verify\n description: Whether to run verify tests after\n the deployment.\n runtimeConfig:\n type: object\n x-dcl-go-name: RuntimeConfig\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig\n description: Optional. Runtime specific configurations\n for the deployment strategy. The runtime configuration\n is used to determine how Cloud Deploy will split traffic\n to enable a progressive deployment.\n properties:\n cloudRun:\n type: object\n x-dcl-go-name: CloudRun\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun\n description: Cloud Run runtime configuration.\n x-dcl-conflicts:\n - kubernetes\n properties:\n automaticTrafficControl:\n type: boolean\n x-dcl-go-name: AutomaticTrafficControl\n description: Whether Cloud Deploy should update\n the traffic stanza in a Cloud Run Service on\n the user's behalf to facilitate traffic splitting.\n This is required to be true for CanaryDeployments,\n but optional for CustomCanaryDeployments.\n kubernetes:\n type: object\n x-dcl-go-name: Kubernetes\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes\n description: Kubernetes runtime configuration.\n x-dcl-conflicts:\n - cloudRun\n properties:\n gatewayServiceMesh:\n type: object\n x-dcl-go-name: GatewayServiceMesh\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh\n description: Kubernetes Gateway API service mesh\n configuration.\n x-dcl-conflicts:\n - serviceNetworking\n required:\n - httpRoute\n - service\n - deployment\n properties:\n deployment:\n type: string\n x-dcl-go-name: Deployment\n description: Required. Name of the Kubernetes\n Deployment whose traffic is managed by the\n specified HTTPRoute and Service.\n httpRoute:\n type: string\n x-dcl-go-name: HttpRoute\n description: Required. Name of the Gateway\n API HTTPRoute.\n service:\n type: string\n x-dcl-go-name: Service\n description: Required. Name of the Kubernetes\n Service.\n serviceNetworking:\n type: object\n x-dcl-go-name: ServiceNetworking\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking\n description: Kubernetes Service networking configuration.\n x-dcl-conflicts:\n - gatewayServiceMesh\n required:\n - service\n - deployment\n properties:\n deployment:\n type: string\n x-dcl-go-name: Deployment\n description: Required. Name of the Kubernetes\n Deployment whose traffic is managed by the\n specified Service.\n service:\n type: string\n x-dcl-go-name: Service\n description: Required. Name of the Kubernetes\n Service.\n standard:\n type: object\n x-dcl-go-name: Standard\n x-dcl-go-type: DeliveryPipelineSerialPipelineStagesStrategyStandard\n description: Standard deployment strategy executes a single\n deploy and allows verifying the deployment.\n properties:\n verify:\n type: boolean\n x-dcl-go-name: Verify\n description: Whether to verify a deployment.\n targetId:\n type: string\n x-dcl-go-name: TargetId\n description: The target_id to which this stage points. This field\n refers exclusively to the last segment of a target name. For\n example, this field would just be `my-target` (rather than `projects/project/locations/location/targets/my-target`).\n The location of the `Target` is inferred to be the same as the\n location of the `DeliveryPipeline` that contains this `Stage`.\n suspended:\n type: boolean\n x-dcl-go-name: Suspended\n description: When suspended, no new releases or rollouts can be created,\n but in-progress ones will complete.\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. Unique identifier of the `DeliveryPipeline`.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. Most recent time at which the pipeline was updated.\n x-kubernetes-immutable: true\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/clouddeploy/beta/delivery_pipeline.yaml
var YAML_target = []byte("info:\n title: Clouddeploy/Target\n description: The Cloud Deploy `Target` resource\n x-dcl-struct-name: Target\n x-dcl-has-iam: false\n x-dcl-ref:\n text: REST API\n url: https://cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations.targets\npaths:\n get:\n description: The function used to get information about a Target\n parameters:\n - name: target\n required: true\n description: A full instance of a Target\n apply:\n description: The function used to apply information about a Target\n parameters:\n - name: target\n required: true\n description: A full instance of a Target\n delete:\n description: The function used to delete a Target\n parameters:\n - name: target\n required: true\n description: A full instance of a Target\n deleteAll:\n description: The function used to delete all Target\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Target\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Target:\n title: Target\n x-dcl-id: projects/{{project}}/locations/{{location}}/targets/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n annotations:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Annotations\n description: Optional. User annotations. These attributes can only be set\n and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations\n for more details such as format and size limitations.\n anthosCluster:\n type: object\n x-dcl-go-name: AnthosCluster\n x-dcl-go-type: TargetAnthosCluster\n description: Information specifying an Anthos Cluster.\n x-dcl-conflicts:\n - gke\n - run\n - multiTarget\n properties:\n membership:\n type: string\n x-dcl-go-name: Membership\n description: Membership of the GKE Hub-registered cluster to which to\n apply the Skaffold configuration. Format is `projects/{project}/locations/{location}/memberships/{membership_name}`.\n x-dcl-references:\n - resource: Gkehub/Membership\n field: selfLink\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. Time at which the `Target` was created.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the `Target`. Max length is 255 characters.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Optional. This checksum is computed by the server based on\n the value of other fields, and may be sent on update and delete requests\n to ensure the client has an up-to-date value before proceeding.\n x-kubernetes-immutable: true\n executionConfigs:\n type: array\n x-dcl-go-name: ExecutionConfigs\n description: Configurations for all execution that relates to this `Target`.\n Each `ExecutionEnvironmentUsage` value may only be used in a single configuration;\n using the same value multiple times is an error. When one or more configurations\n are specified, they must include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage`\n values. When no configurations are specified, execution will use the default\n specified in `DefaultPool`.\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: TargetExecutionConfigs\n required:\n - usages\n properties:\n artifactStorage:\n type: string\n x-dcl-go-name: ArtifactStorage\n description: Optional. Cloud Storage location in which to store execution\n outputs. This can either be a bucket (\"gs://my-bucket\") or a path\n within a bucket (\"gs://my-bucket/my-dir\"). If unspecified, a default\n bucket located in the same region will be used.\n x-dcl-server-default: true\n executionTimeout:\n type: string\n x-dcl-go-name: ExecutionTimeout\n description: Optional. Execution timeout for a Cloud Build Execution.\n This must be between 10m and 24h in seconds format. If unspecified,\n a default timeout of 1h is used.\n x-dcl-server-default: true\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Optional. Google service account to use for execution.\n If unspecified, the project execution service account (-compute@developer.gserviceaccount.com)\n is used.\n x-dcl-server-default: true\n usages:\n type: array\n x-dcl-go-name: Usages\n description: Required. Usages when this configuration should be applied.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: TargetExecutionConfigsUsagesEnum\n enum:\n - EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED\n - RENDER\n - DEPLOY\n workerPool:\n type: string\n x-dcl-go-name: WorkerPool\n description: Optional. The resource name of the `WorkerPool`, with\n the format `projects/{project}/locations/{location}/workerPools/{worker_pool}`.\n If this optional field is unspecified, the default Cloud Build pool\n will be used.\n x-dcl-references:\n - resource: Cloudbuild/WorkerPool\n field: selfLink\n gke:\n type: object\n x-dcl-go-name: Gke\n x-dcl-go-type: TargetGke\n description: Information specifying a GKE Cluster.\n x-dcl-conflicts:\n - anthosCluster\n - run\n - multiTarget\n properties:\n cluster:\n type: string\n x-dcl-go-name: Cluster\n description: Information specifying a GKE Cluster. Format is `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.\n x-dcl-references:\n - resource: Container/Cluster\n field: selfLink\n internalIP:\n type: boolean\n x-dcl-go-name: InternalIP\n description: Optional. If true, `cluster` is accessed using the private\n IP address of the control plane endpoint. Otherwise, the default IP\n address of the control plane endpoint is used. The default IP address\n is the private IP address for clusters with private control-plane\n endpoints and the public IP address otherwise. Only specify this option\n when `cluster` is a [private GKE cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: 'Optional. Labels are attributes that can be set and used by\n both the user and by Google Cloud Deploy. Labels must meet the following\n constraints: * Keys and values can contain only lowercase letters, numeric\n characters, underscores, and dashes. * All characters must use UTF-8 encoding,\n and international characters are allowed. * Keys must start with a lowercase\n letter or international character. * Each resource is limited to a maximum\n of 64 labels. Both keys and values are additionally constrained to be\n <= 128 bytes.'\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n multiTarget:\n type: object\n x-dcl-go-name: MultiTarget\n x-dcl-go-type: TargetMultiTarget\n description: Information specifying a multiTarget.\n x-dcl-conflicts:\n - gke\n - anthosCluster\n - run\n required:\n - targetIds\n properties:\n targetIds:\n type: array\n x-dcl-go-name: TargetIds\n description: Required. The target_ids of this multiTarget.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the `Target`. Format is [a-z][a-z0-9\\-]{0,62}.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n requireApproval:\n type: boolean\n x-dcl-go-name: RequireApproval\n description: Optional. Whether or not the `Target` requires approval.\n run:\n type: object\n x-dcl-go-name: Run\n x-dcl-go-type: TargetRun\n description: Information specifying a Cloud Run deployment target.\n x-dcl-conflicts:\n - gke\n - anthosCluster\n - multiTarget\n required:\n - location\n properties:\n location:\n type: string\n x-dcl-go-name: Location\n description: Required. The location where the Cloud Run Service should\n be located. Format is `projects/{project}/locations/{location}`.\n targetId:\n type: string\n x-dcl-go-name: TargetId\n readOnly: true\n description: Output only. Resource id of the `Target`.\n x-kubernetes-immutable: true\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. Unique identifier of the `Target`.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. Most recent time at which the `Target` was updated.\n x-kubernetes-immutable: true\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/clouddeploy/beta/target.yaml
Functions ¶
func DCLDeliveryPipelineSchema ¶ added in v1.10.3
func DCLTargetSchema ¶ added in v1.10.3
Types ¶
type Client ¶
The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.
func (*Client) ApplyDeliveryPipeline ¶
func (c *Client) ApplyDeliveryPipeline(ctx context.Context, rawDesired *DeliveryPipeline, opts ...dcl.ApplyOption) (*DeliveryPipeline, error)
func (*Client) ApplyTarget ¶
func (*Client) DeleteAllDeliveryPipeline ¶
func (c *Client) DeleteAllDeliveryPipeline(ctx context.Context, project, location string, filter func(*DeliveryPipeline) bool) error
DeleteAllDeliveryPipeline deletes all resources that the filter functions returns true on.
func (*Client) DeleteAllTarget ¶
func (c *Client) DeleteAllTarget(ctx context.Context, project, location string, filter func(*Target) bool) error
DeleteAllTarget deletes all resources that the filter functions returns true on.
func (*Client) DeleteDeliveryPipeline ¶
func (c *Client) DeleteDeliveryPipeline(ctx context.Context, r *DeliveryPipeline) error
func (*Client) GetDeliveryPipeline ¶
func (c *Client) GetDeliveryPipeline(ctx context.Context, r *DeliveryPipeline) (*DeliveryPipeline, error)
func (*Client) ListDeliveryPipeline ¶
func (*Client) ListDeliveryPipelineWithMaxResults ¶
func (*Client) ListTarget ¶
func (*Client) ListTargetWithMaxResults ¶
type DeliveryPipeline ¶
type DeliveryPipeline struct { Name *string `json:"name"` Uid *string `json:"uid"` Description *string `json:"description"` Annotations map[string]string `json:"annotations"` Labels map[string]string `json:"labels"` CreateTime *string `json:"createTime"` UpdateTime *string `json:"updateTime"` SerialPipeline *DeliveryPipelineSerialPipeline `json:"serialPipeline"` Condition *DeliveryPipelineCondition `json:"condition"` Etag *string `json:"etag"` Project *string `json:"project"` Location *string `json:"location"` Suspended *bool `json:"suspended"` }
func (*DeliveryPipeline) Describe ¶
func (r *DeliveryPipeline) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
func (*DeliveryPipeline) IAMPolicyVersion ¶
func (r *DeliveryPipeline) IAMPolicyVersion() int
func (*DeliveryPipeline) ID ¶
func (r *DeliveryPipeline) ID() (string, error)
func (*DeliveryPipeline) SetPolicyURL ¶
func (r *DeliveryPipeline) SetPolicyURL(userBasePath string) string
func (*DeliveryPipeline) SetPolicyVerb ¶
func (r *DeliveryPipeline) SetPolicyVerb() string
func (*DeliveryPipeline) String ¶
func (r *DeliveryPipeline) String() string
type DeliveryPipelineCondition ¶
type DeliveryPipelineCondition struct { PipelineReadyCondition *DeliveryPipelineConditionPipelineReadyCondition `json:"pipelineReadyCondition"` TargetsPresentCondition *DeliveryPipelineConditionTargetsPresentCondition `json:"targetsPresentCondition"` TargetsTypeCondition *DeliveryPipelineConditionTargetsTypeCondition `json:"targetsTypeCondition"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineCondition *DeliveryPipelineCondition = &DeliveryPipelineCondition{empty: true}
This object is used to assert a desired state where this DeliveryPipelineCondition is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineCondition) Empty ¶
func (r *DeliveryPipelineCondition) Empty() bool
func (*DeliveryPipelineCondition) HashCode ¶
func (r *DeliveryPipelineCondition) HashCode() string
func (*DeliveryPipelineCondition) String ¶
func (r *DeliveryPipelineCondition) String() string
func (*DeliveryPipelineCondition) UnmarshalJSON ¶
func (r *DeliveryPipelineCondition) UnmarshalJSON(data []byte) error
type DeliveryPipelineConditionPipelineReadyCondition ¶
type DeliveryPipelineConditionPipelineReadyCondition struct { Status *bool `json:"status"` UpdateTime *string `json:"updateTime"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineConditionPipelineReadyCondition *DeliveryPipelineConditionPipelineReadyCondition = &DeliveryPipelineConditionPipelineReadyCondition{empty: true}
This object is used to assert a desired state where this DeliveryPipelineConditionPipelineReadyCondition is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineConditionPipelineReadyCondition) Empty ¶
func (r *DeliveryPipelineConditionPipelineReadyCondition) Empty() bool
func (*DeliveryPipelineConditionPipelineReadyCondition) HashCode ¶
func (r *DeliveryPipelineConditionPipelineReadyCondition) HashCode() string
func (*DeliveryPipelineConditionPipelineReadyCondition) String ¶
func (r *DeliveryPipelineConditionPipelineReadyCondition) String() string
func (*DeliveryPipelineConditionPipelineReadyCondition) UnmarshalJSON ¶
func (r *DeliveryPipelineConditionPipelineReadyCondition) UnmarshalJSON(data []byte) error
type DeliveryPipelineConditionTargetsPresentCondition ¶
type DeliveryPipelineConditionTargetsPresentCondition struct { Status *bool `json:"status"` MissingTargets []string `json:"missingTargets"` UpdateTime *string `json:"updateTime"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineConditionTargetsPresentCondition *DeliveryPipelineConditionTargetsPresentCondition = &DeliveryPipelineConditionTargetsPresentCondition{empty: true}
This object is used to assert a desired state where this DeliveryPipelineConditionTargetsPresentCondition is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineConditionTargetsPresentCondition) Empty ¶
func (r *DeliveryPipelineConditionTargetsPresentCondition) Empty() bool
func (*DeliveryPipelineConditionTargetsPresentCondition) HashCode ¶
func (r *DeliveryPipelineConditionTargetsPresentCondition) HashCode() string
func (*DeliveryPipelineConditionTargetsPresentCondition) String ¶
func (r *DeliveryPipelineConditionTargetsPresentCondition) String() string
func (*DeliveryPipelineConditionTargetsPresentCondition) UnmarshalJSON ¶
func (r *DeliveryPipelineConditionTargetsPresentCondition) UnmarshalJSON(data []byte) error
type DeliveryPipelineConditionTargetsTypeCondition ¶ added in v1.37.0
type DeliveryPipelineConditionTargetsTypeCondition struct { Status *bool `json:"status"` ErrorDetails *string `json:"errorDetails"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineConditionTargetsTypeCondition *DeliveryPipelineConditionTargetsTypeCondition = &DeliveryPipelineConditionTargetsTypeCondition{empty: true}
This object is used to assert a desired state where this DeliveryPipelineConditionTargetsTypeCondition is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineConditionTargetsTypeCondition) Empty ¶ added in v1.37.0
func (r *DeliveryPipelineConditionTargetsTypeCondition) Empty() bool
func (*DeliveryPipelineConditionTargetsTypeCondition) HashCode ¶ added in v1.37.0
func (r *DeliveryPipelineConditionTargetsTypeCondition) HashCode() string
func (*DeliveryPipelineConditionTargetsTypeCondition) String ¶ added in v1.37.0
func (r *DeliveryPipelineConditionTargetsTypeCondition) String() string
func (*DeliveryPipelineConditionTargetsTypeCondition) UnmarshalJSON ¶ added in v1.37.0
func (r *DeliveryPipelineConditionTargetsTypeCondition) UnmarshalJSON(data []byte) error
type DeliveryPipelineList ¶
type DeliveryPipelineList struct { Items []*DeliveryPipeline // contains filtered or unexported fields }
func (*DeliveryPipelineList) HasNext ¶
func (l *DeliveryPipelineList) HasNext() bool
type DeliveryPipelineSerialPipeline ¶
type DeliveryPipelineSerialPipeline struct { Stages []DeliveryPipelineSerialPipelineStages `json:"stages"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipeline *DeliveryPipelineSerialPipeline = &DeliveryPipelineSerialPipeline{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipeline is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipeline) Empty ¶
func (r *DeliveryPipelineSerialPipeline) Empty() bool
func (*DeliveryPipelineSerialPipeline) HashCode ¶
func (r *DeliveryPipelineSerialPipeline) HashCode() string
func (*DeliveryPipelineSerialPipeline) String ¶
func (r *DeliveryPipelineSerialPipeline) String() string
func (*DeliveryPipelineSerialPipeline) UnmarshalJSON ¶
func (r *DeliveryPipelineSerialPipeline) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStages ¶
type DeliveryPipelineSerialPipelineStages struct { TargetId *string `json:"targetId"` Profiles []string `json:"profiles"` Strategy *DeliveryPipelineSerialPipelineStagesStrategy `json:"strategy"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStages *DeliveryPipelineSerialPipelineStages = &DeliveryPipelineSerialPipelineStages{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStages is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStages) Empty ¶
func (r *DeliveryPipelineSerialPipelineStages) Empty() bool
func (*DeliveryPipelineSerialPipelineStages) HashCode ¶
func (r *DeliveryPipelineSerialPipelineStages) HashCode() string
func (*DeliveryPipelineSerialPipelineStages) String ¶
func (r *DeliveryPipelineSerialPipelineStages) String() string
func (*DeliveryPipelineSerialPipelineStages) UnmarshalJSON ¶
func (r *DeliveryPipelineSerialPipelineStages) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategy ¶ added in v1.21.0
type DeliveryPipelineSerialPipelineStagesStrategy struct { Standard *DeliveryPipelineSerialPipelineStagesStrategyStandard `json:"standard"` Canary *DeliveryPipelineSerialPipelineStagesStrategyCanary `json:"canary"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategy *DeliveryPipelineSerialPipelineStagesStrategy = &DeliveryPipelineSerialPipelineStagesStrategy{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategy is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategy) Empty ¶ added in v1.21.0
func (r *DeliveryPipelineSerialPipelineStagesStrategy) Empty() bool
func (*DeliveryPipelineSerialPipelineStagesStrategy) HashCode ¶ added in v1.21.0
func (r *DeliveryPipelineSerialPipelineStagesStrategy) HashCode() string
func (*DeliveryPipelineSerialPipelineStagesStrategy) String ¶ added in v1.21.0
func (r *DeliveryPipelineSerialPipelineStagesStrategy) String() string
func (*DeliveryPipelineSerialPipelineStagesStrategy) UnmarshalJSON ¶ added in v1.21.0
func (r *DeliveryPipelineSerialPipelineStagesStrategy) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategyCanary ¶ added in v1.37.0
type DeliveryPipelineSerialPipelineStagesStrategyCanary struct { RuntimeConfig *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig `json:"runtimeConfig"` CanaryDeployment *DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment `json:"canaryDeployment"` CustomCanaryDeployment *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment `json:"customCanaryDeployment"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategyCanary *DeliveryPipelineSerialPipelineStagesStrategyCanary = &DeliveryPipelineSerialPipelineStagesStrategyCanary{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategyCanary is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategyCanary) Empty ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanary) Empty() bool
func (*DeliveryPipelineSerialPipelineStagesStrategyCanary) HashCode ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanary) HashCode() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanary) String ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanary) String() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanary) UnmarshalJSON ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanary) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment ¶ added in v1.37.0
type DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment struct { Percentages []int64 `json:"percentages"` Verify *bool `json:"verify"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment *DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment = &DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) Empty ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) Empty() bool
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) HashCode ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) HashCode() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) String ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) String() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) UnmarshalJSON ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCanaryDeployment) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment ¶ added in v1.37.0
type DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment struct { PhaseConfigs []DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs `json:"phaseConfigs"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment = &DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) Empty ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) Empty() bool
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) HashCode ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) HashCode() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) String ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) String() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) UnmarshalJSON ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeployment) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs ¶ added in v1.37.0
type DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs struct { PhaseId *string `json:"phaseId"` Percentage *int64 `json:"percentage"` Profiles []string `json:"profiles"` Verify *bool `json:"verify"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs = &DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs) Empty ¶ added in v1.37.0
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs) HashCode ¶ added in v1.37.0
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs) String ¶ added in v1.37.0
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs) UnmarshalJSON ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryCustomCanaryDeploymentPhaseConfigs) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig ¶ added in v1.37.0
type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig struct { Kubernetes *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes `json:"kubernetes"` CloudRun *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun `json:"cloudRun"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig = &DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) Empty ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) Empty() bool
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) HashCode ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) HashCode() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) String ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) String() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) UnmarshalJSON ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfig) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun ¶ added in v1.37.0
type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun struct { AutomaticTrafficControl *bool `json:"automaticTrafficControl"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun = &DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) Empty ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) Empty() bool
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) HashCode ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) HashCode() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) String ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) String() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) UnmarshalJSON ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes ¶ added in v1.37.0
type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes struct { GatewayServiceMesh *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh `json:"gatewayServiceMesh"` ServiceNetworking *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking `json:"serviceNetworking"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes = &DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) Empty ¶ added in v1.37.0
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) HashCode ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) HashCode() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) String ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) String() string
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) UnmarshalJSON ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetes) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh ¶ added in v1.37.0
type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh struct { HttpRoute *string `json:"httpRoute"` Service *string `json:"service"` Deployment *string `json:"deployment"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh = &DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh) Empty ¶ added in v1.37.0
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh) HashCode ¶ added in v1.37.0
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh) String ¶ added in v1.37.0
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh) UnmarshalJSON ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking ¶ added in v1.37.0
type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking struct { Service *string `json:"service"` Deployment *string `json:"deployment"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking = &DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking) Empty ¶ added in v1.37.0
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking) HashCode ¶ added in v1.37.0
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking) String ¶ added in v1.37.0
func (*DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking) UnmarshalJSON ¶ added in v1.37.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking) UnmarshalJSON(data []byte) error
type DeliveryPipelineSerialPipelineStagesStrategyStandard ¶ added in v1.21.0
type DeliveryPipelineSerialPipelineStagesStrategyStandard struct { Verify *bool `json:"verify"` // contains filtered or unexported fields }
var EmptyDeliveryPipelineSerialPipelineStagesStrategyStandard *DeliveryPipelineSerialPipelineStagesStrategyStandard = &DeliveryPipelineSerialPipelineStagesStrategyStandard{empty: true}
This object is used to assert a desired state where this DeliveryPipelineSerialPipelineStagesStrategyStandard is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*DeliveryPipelineSerialPipelineStagesStrategyStandard) Empty ¶ added in v1.21.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyStandard) Empty() bool
func (*DeliveryPipelineSerialPipelineStagesStrategyStandard) HashCode ¶ added in v1.21.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyStandard) HashCode() string
func (*DeliveryPipelineSerialPipelineStagesStrategyStandard) String ¶ added in v1.21.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyStandard) String() string
func (*DeliveryPipelineSerialPipelineStagesStrategyStandard) UnmarshalJSON ¶ added in v1.21.0
func (r *DeliveryPipelineSerialPipelineStagesStrategyStandard) UnmarshalJSON(data []byte) error
type Target ¶
type Target struct { Name *string `json:"name"` TargetId *string `json:"targetId"` Uid *string `json:"uid"` Description *string `json:"description"` Annotations map[string]string `json:"annotations"` Labels map[string]string `json:"labels"` RequireApproval *bool `json:"requireApproval"` CreateTime *string `json:"createTime"` UpdateTime *string `json:"updateTime"` Gke *TargetGke `json:"gke"` AnthosCluster *TargetAnthosCluster `json:"anthosCluster"` Etag *string `json:"etag"` ExecutionConfigs []TargetExecutionConfigs `json:"executionConfigs"` Project *string `json:"project"` Location *string `json:"location"` Run *TargetRun `json:"run"` MultiTarget *TargetMultiTarget `json:"multiTarget"` }
func (*Target) Describe ¶
func (r *Target) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
func (*Target) IAMPolicyVersion ¶
func (*Target) SetPolicyURL ¶
func (*Target) SetPolicyVerb ¶
type TargetAnthosCluster ¶
type TargetAnthosCluster struct { Membership *string `json:"membership"` // contains filtered or unexported fields }
var EmptyTargetAnthosCluster *TargetAnthosCluster = &TargetAnthosCluster{empty: true}
This object is used to assert a desired state where this TargetAnthosCluster is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*TargetAnthosCluster) Empty ¶
func (r *TargetAnthosCluster) Empty() bool
func (*TargetAnthosCluster) HashCode ¶
func (r *TargetAnthosCluster) HashCode() string
func (*TargetAnthosCluster) String ¶
func (r *TargetAnthosCluster) String() string
func (*TargetAnthosCluster) UnmarshalJSON ¶
func (r *TargetAnthosCluster) UnmarshalJSON(data []byte) error
type TargetExecutionConfigs ¶
type TargetExecutionConfigs struct { Usages []TargetExecutionConfigsUsagesEnum `json:"usages"` WorkerPool *string `json:"workerPool"` ServiceAccount *string `json:"serviceAccount"` ArtifactStorage *string `json:"artifactStorage"` ExecutionTimeout *string `json:"executionTimeout"` // contains filtered or unexported fields }
var EmptyTargetExecutionConfigs *TargetExecutionConfigs = &TargetExecutionConfigs{empty: true}
This object is used to assert a desired state where this TargetExecutionConfigs is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*TargetExecutionConfigs) Empty ¶
func (r *TargetExecutionConfigs) Empty() bool
func (*TargetExecutionConfigs) HashCode ¶
func (r *TargetExecutionConfigs) HashCode() string
func (*TargetExecutionConfigs) String ¶
func (r *TargetExecutionConfigs) String() string
func (*TargetExecutionConfigs) UnmarshalJSON ¶
func (r *TargetExecutionConfigs) UnmarshalJSON(data []byte) error
type TargetExecutionConfigsUsagesEnum ¶
type TargetExecutionConfigsUsagesEnum string
The enum TargetExecutionConfigsUsagesEnum.
func TargetExecutionConfigsUsagesEnumRef ¶
func TargetExecutionConfigsUsagesEnumRef(s string) *TargetExecutionConfigsUsagesEnum
TargetExecutionConfigsUsagesEnumRef returns a *TargetExecutionConfigsUsagesEnum with the value of string s If the empty string is provided, nil is returned.
func (TargetExecutionConfigsUsagesEnum) Validate ¶
func (v TargetExecutionConfigsUsagesEnum) Validate() error
type TargetGke ¶
type TargetGke struct { Cluster *string `json:"cluster"` InternalIP *bool `json:"internalIP"` // contains filtered or unexported fields }
This object is used to assert a desired state where this TargetGke is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*TargetGke) UnmarshalJSON ¶
type TargetList ¶
type TargetList struct { Items []*Target // contains filtered or unexported fields }
func (*TargetList) HasNext ¶
func (l *TargetList) HasNext() bool
type TargetMultiTarget ¶ added in v1.34.0
type TargetMultiTarget struct { TargetIds []string `json:"targetIds"` // contains filtered or unexported fields }
var EmptyTargetMultiTarget *TargetMultiTarget = &TargetMultiTarget{empty: true}
This object is used to assert a desired state where this TargetMultiTarget is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*TargetMultiTarget) Empty ¶ added in v1.34.0
func (r *TargetMultiTarget) Empty() bool
func (*TargetMultiTarget) HashCode ¶ added in v1.34.0
func (r *TargetMultiTarget) HashCode() string
func (*TargetMultiTarget) String ¶ added in v1.34.0
func (r *TargetMultiTarget) String() string
func (*TargetMultiTarget) UnmarshalJSON ¶ added in v1.34.0
func (r *TargetMultiTarget) UnmarshalJSON(data []byte) error
type TargetRun ¶ added in v1.21.0
type TargetRun struct { Location *string `json:"location"` // contains filtered or unexported fields }
This object is used to assert a desired state where this TargetRun is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.