Cloud Deploy API v1 - Package cloud.google.com/go/deploy/apiv1 (v1.27.3) Stay organized with collections Save and categorize content based on your preferences.
Package deploy is an auto-generated package for theCloud Deploy API.
General documentation
For information that is relevant for all client libraries please referencehttps://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on thispage includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage
To get started with this package, create a client.
// go get cloud.google.com/go/deploy/apiv1@latestctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed.The methods of Client are safe for concurrent use by multiple goroutines.The returned client must be Closed when it is done being used.
Using the Client
The following is an example of making an API call with the newly created client, mentioned above.
req:=&deploypb.AbandonReleaseRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#AbandonReleaseRequest.}resp,err:=c.AbandonRelease(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp
Use of Context
The ctx passed to NewCloudDeployClient is used for authentication requests andfor creating the underlying connection, but is not used for subsequent calls.Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Functions
func DefaultAuthScopes
funcDefaultAuthScopes()[]stringDefaultAuthScopes reports the default set of authentication scopes to use with this package.
AutomationIterator
typeAutomationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*deploypb.Automation,nextPageTokenstring,errerror)// contains filtered or unexported fields}AutomationIterator manages a stream of *deploypb.Automation.
func (*AutomationIterator) All
func(it*AutomationIterator)All()iter.Seq2[*deploypb.Automation,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*AutomationIterator) Next
func(it*AutomationIterator)Next()(*deploypb.Automation,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*AutomationIterator) PageInfo
func(it*AutomationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
AutomationRunIterator
typeAutomationRunIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*deploypb.AutomationRun,nextPageTokenstring,errerror)// contains filtered or unexported fields}AutomationRunIterator manages a stream of *deploypb.AutomationRun.
func (*AutomationRunIterator) All
func(it*AutomationRunIterator)All()iter.Seq2[*deploypb.AutomationRun,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*AutomationRunIterator) Next
func(it*AutomationRunIterator)Next()(*deploypb.AutomationRun,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*AutomationRunIterator) PageInfo
func(it*AutomationRunIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
CloudDeployCallOptions
typeCloudDeployCallOptionsstruct{ListDeliveryPipelines[]gax.CallOptionGetDeliveryPipeline[]gax.CallOptionCreateDeliveryPipeline[]gax.CallOptionUpdateDeliveryPipeline[]gax.CallOptionDeleteDeliveryPipeline[]gax.CallOptionListTargets[]gax.CallOptionRollbackTarget[]gax.CallOptionGetTarget[]gax.CallOptionCreateTarget[]gax.CallOptionUpdateTarget[]gax.CallOptionDeleteTarget[]gax.CallOptionListCustomTargetTypes[]gax.CallOptionGetCustomTargetType[]gax.CallOptionCreateCustomTargetType[]gax.CallOptionUpdateCustomTargetType[]gax.CallOptionDeleteCustomTargetType[]gax.CallOptionListReleases[]gax.CallOptionGetRelease[]gax.CallOptionCreateRelease[]gax.CallOptionAbandonRelease[]gax.CallOptionCreateDeployPolicy[]gax.CallOptionUpdateDeployPolicy[]gax.CallOptionDeleteDeployPolicy[]gax.CallOptionListDeployPolicies[]gax.CallOptionGetDeployPolicy[]gax.CallOptionApproveRollout[]gax.CallOptionAdvanceRollout[]gax.CallOptionCancelRollout[]gax.CallOptionListRollouts[]gax.CallOptionGetRollout[]gax.CallOptionCreateRollout[]gax.CallOptionIgnoreJob[]gax.CallOptionRetryJob[]gax.CallOptionListJobRuns[]gax.CallOptionGetJobRun[]gax.CallOptionTerminateJobRun[]gax.CallOptionGetConfig[]gax.CallOptionCreateAutomation[]gax.CallOptionUpdateAutomation[]gax.CallOptionDeleteAutomation[]gax.CallOptionGetAutomation[]gax.CallOptionListAutomations[]gax.CallOptionGetAutomationRun[]gax.CallOptionListAutomationRuns[]gax.CallOptionCancelAutomationRun[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionGetIamPolicy[]gax.CallOptionSetIamPolicy[]gax.CallOptionTestIamPermissions[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}CloudDeployCallOptions contains the retry settings for each method of CloudDeployClient.
CloudDeployClient
typeCloudDeployClientstruct{// The call options for this service.CallOptions*CloudDeployCallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}CloudDeployClient is a client for interacting with Cloud Deploy API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
CloudDeploy service creates and manages Continuous Delivery operationson Google Cloud Platform via Skaffold (https://skaffold.dev (athttps://skaffold.dev)).
func NewCloudDeployClient
funcNewCloudDeployClient(ctxcontext.Context,opts...option.ClientOption)(*CloudDeployClient,error)NewCloudDeployClient creates a new cloud deploy client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
CloudDeploy service creates and manages Continuous Delivery operationson Google Cloud Platform via Skaffold (https://skaffold.dev (athttps://skaffold.dev)).
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewCloudDeployRESTClient
funcNewCloudDeployRESTClient(ctxcontext.Context,opts...option.ClientOption)(*CloudDeployClient,error)NewCloudDeployRESTClient creates a new cloud deploy rest client.
CloudDeploy service creates and manages Continuous Delivery operationson Google Cloud Platform via Skaffold (https://skaffold.dev (athttps://skaffold.dev)).
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*CloudDeployClient) AbandonRelease
func(c*CloudDeployClient)AbandonRelease(ctxcontext.Context,req*deploypb.AbandonReleaseRequest,opts...gax.CallOption)(*deploypb.AbandonReleaseResponse,error)AbandonRelease abandons a Release in the Delivery Pipeline.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.AbandonReleaseRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#AbandonReleaseRequest.}resp,err:=c.AbandonRelease(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) AdvanceRollout
func(c*CloudDeployClient)AdvanceRollout(ctxcontext.Context,req*deploypb.AdvanceRolloutRequest,opts...gax.CallOption)(*deploypb.AdvanceRolloutResponse,error)AdvanceRollout advances a Rollout in a given project and location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.AdvanceRolloutRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#AdvanceRolloutRequest.}resp,err:=c.AdvanceRollout(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) ApproveRollout
func(c*CloudDeployClient)ApproveRollout(ctxcontext.Context,req*deploypb.ApproveRolloutRequest,opts...gax.CallOption)(*deploypb.ApproveRolloutResponse,error)ApproveRollout approves a Rollout.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ApproveRolloutRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ApproveRolloutRequest.}resp,err:=c.ApproveRollout(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) CancelAutomationRun
func(c*CloudDeployClient)CancelAutomationRun(ctxcontext.Context,req*deploypb.CancelAutomationRunRequest,opts...gax.CallOption)(*deploypb.CancelAutomationRunResponse,error)CancelAutomationRun cancels an AutomationRun. The state of the AutomationRun aftercancelling is CANCELLED. CancelAutomationRun can be called onAutomationRun in the state IN_PROGRESS and PENDING; AutomationRunin a different state returns an FAILED_PRECONDITION error.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.CancelAutomationRunRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#CancelAutomationRunRequest.}resp,err:=c.CancelAutomationRun(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) CancelOperation
func(c*CloudDeployClient)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*CloudDeployClient) CancelRollout
func(c*CloudDeployClient)CancelRollout(ctxcontext.Context,req*deploypb.CancelRolloutRequest,opts...gax.CallOption)(*deploypb.CancelRolloutResponse,error)CancelRollout cancels a Rollout in a given project and location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.CancelRolloutRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#CancelRolloutRequest.}resp,err:=c.CancelRollout(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) Close
func(c*CloudDeployClient)Close()errorClose closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*CloudDeployClient) Connection (deprecated)
func(c*CloudDeployClient)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*CloudDeployClient) CreateAutomation
func(c*CloudDeployClient)CreateAutomation(ctxcontext.Context,req*deploypb.CreateAutomationRequest,opts...gax.CallOption)(*CreateAutomationOperation,error)CreateAutomation creates a new Automation in a given project and location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.CreateAutomationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#CreateAutomationRequest.}op,err:=c.CreateAutomation(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) CreateAutomationOperation
func(c*CloudDeployClient)CreateAutomationOperation(namestring)*CreateAutomationOperationCreateAutomationOperation returns a new CreateAutomationOperation from a given name.The name must be that of a previously created CreateAutomationOperation, possibly from a different process.
func (*CloudDeployClient) CreateCustomTargetType
func(c*CloudDeployClient)CreateCustomTargetType(ctxcontext.Context,req*deploypb.CreateCustomTargetTypeRequest,opts...gax.CallOption)(*CreateCustomTargetTypeOperation,error)CreateCustomTargetType creates a new CustomTargetType in a given project and location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.CreateCustomTargetTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#CreateCustomTargetTypeRequest.}op,err:=c.CreateCustomTargetType(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) CreateCustomTargetTypeOperation
func(c*CloudDeployClient)CreateCustomTargetTypeOperation(namestring)*CreateCustomTargetTypeOperationCreateCustomTargetTypeOperation returns a new CreateCustomTargetTypeOperation from a given name.The name must be that of a previously created CreateCustomTargetTypeOperation, possibly from a different process.
func (*CloudDeployClient) CreateDeliveryPipeline
func(c*CloudDeployClient)CreateDeliveryPipeline(ctxcontext.Context,req*deploypb.CreateDeliveryPipelineRequest,opts...gax.CallOption)(*CreateDeliveryPipelineOperation,error)CreateDeliveryPipeline creates a new DeliveryPipeline in a given project and location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.CreateDeliveryPipelineRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#CreateDeliveryPipelineRequest.}op,err:=c.CreateDeliveryPipeline(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) CreateDeliveryPipelineOperation
func(c*CloudDeployClient)CreateDeliveryPipelineOperation(namestring)*CreateDeliveryPipelineOperationCreateDeliveryPipelineOperation returns a new CreateDeliveryPipelineOperation from a given name.The name must be that of a previously created CreateDeliveryPipelineOperation, possibly from a different process.
func (*CloudDeployClient) CreateDeployPolicy
func(c*CloudDeployClient)CreateDeployPolicy(ctxcontext.Context,req*deploypb.CreateDeployPolicyRequest,opts...gax.CallOption)(*CreateDeployPolicyOperation,error)CreateDeployPolicy creates a new DeployPolicy in a given project and location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.CreateDeployPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#CreateDeployPolicyRequest.}op,err:=c.CreateDeployPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) CreateDeployPolicyOperation
func(c*CloudDeployClient)CreateDeployPolicyOperation(namestring)*CreateDeployPolicyOperationCreateDeployPolicyOperation returns a new CreateDeployPolicyOperation from a given name.The name must be that of a previously created CreateDeployPolicyOperation, possibly from a different process.
func (*CloudDeployClient) CreateRelease
func(c*CloudDeployClient)CreateRelease(ctxcontext.Context,req*deploypb.CreateReleaseRequest,opts...gax.CallOption)(*CreateReleaseOperation,error)CreateRelease creates a new Release in a given project and location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.CreateReleaseRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#CreateReleaseRequest.}op,err:=c.CreateRelease(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) CreateReleaseOperation
func(c*CloudDeployClient)CreateReleaseOperation(namestring)*CreateReleaseOperationCreateReleaseOperation returns a new CreateReleaseOperation from a given name.The name must be that of a previously created CreateReleaseOperation, possibly from a different process.
func (*CloudDeployClient) CreateRollout
func(c*CloudDeployClient)CreateRollout(ctxcontext.Context,req*deploypb.CreateRolloutRequest,opts...gax.CallOption)(*CreateRolloutOperation,error)CreateRollout creates a new Rollout in a given project and location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.CreateRolloutRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#CreateRolloutRequest.}op,err:=c.CreateRollout(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) CreateRolloutOperation
func(c*CloudDeployClient)CreateRolloutOperation(namestring)*CreateRolloutOperationCreateRolloutOperation returns a new CreateRolloutOperation from a given name.The name must be that of a previously created CreateRolloutOperation, possibly from a different process.
func (*CloudDeployClient) CreateTarget
func(c*CloudDeployClient)CreateTarget(ctxcontext.Context,req*deploypb.CreateTargetRequest,opts...gax.CallOption)(*CreateTargetOperation,error)CreateTarget creates a new Target in a given project and location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.CreateTargetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#CreateTargetRequest.}op,err:=c.CreateTarget(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) CreateTargetOperation
func(c*CloudDeployClient)CreateTargetOperation(namestring)*CreateTargetOperationCreateTargetOperation returns a new CreateTargetOperation from a given name.The name must be that of a previously created CreateTargetOperation, possibly from a different process.
func (*CloudDeployClient) DeleteAutomation
func(c*CloudDeployClient)DeleteAutomation(ctxcontext.Context,req*deploypb.DeleteAutomationRequest,opts...gax.CallOption)(*DeleteAutomationOperation,error)DeleteAutomation deletes a single Automation resource.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.DeleteAutomationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#DeleteAutomationRequest.}op,err:=c.DeleteAutomation(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*CloudDeployClient) DeleteAutomationOperation
func(c*CloudDeployClient)DeleteAutomationOperation(namestring)*DeleteAutomationOperationDeleteAutomationOperation returns a new DeleteAutomationOperation from a given name.The name must be that of a previously created DeleteAutomationOperation, possibly from a different process.
func (*CloudDeployClient) DeleteCustomTargetType
func(c*CloudDeployClient)DeleteCustomTargetType(ctxcontext.Context,req*deploypb.DeleteCustomTargetTypeRequest,opts...gax.CallOption)(*DeleteCustomTargetTypeOperation,error)DeleteCustomTargetType deletes a single CustomTargetType.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.DeleteCustomTargetTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#DeleteCustomTargetTypeRequest.}op,err:=c.DeleteCustomTargetType(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*CloudDeployClient) DeleteCustomTargetTypeOperation
func(c*CloudDeployClient)DeleteCustomTargetTypeOperation(namestring)*DeleteCustomTargetTypeOperationDeleteCustomTargetTypeOperation returns a new DeleteCustomTargetTypeOperation from a given name.The name must be that of a previously created DeleteCustomTargetTypeOperation, possibly from a different process.
func (*CloudDeployClient) DeleteDeliveryPipeline
func(c*CloudDeployClient)DeleteDeliveryPipeline(ctxcontext.Context,req*deploypb.DeleteDeliveryPipelineRequest,opts...gax.CallOption)(*DeleteDeliveryPipelineOperation,error)DeleteDeliveryPipeline deletes a single DeliveryPipeline.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.DeleteDeliveryPipelineRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#DeleteDeliveryPipelineRequest.}op,err:=c.DeleteDeliveryPipeline(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*CloudDeployClient) DeleteDeliveryPipelineOperation
func(c*CloudDeployClient)DeleteDeliveryPipelineOperation(namestring)*DeleteDeliveryPipelineOperationDeleteDeliveryPipelineOperation returns a new DeleteDeliveryPipelineOperation from a given name.The name must be that of a previously created DeleteDeliveryPipelineOperation, possibly from a different process.
func (*CloudDeployClient) DeleteDeployPolicy
func(c*CloudDeployClient)DeleteDeployPolicy(ctxcontext.Context,req*deploypb.DeleteDeployPolicyRequest,opts...gax.CallOption)(*DeleteDeployPolicyOperation,error)DeleteDeployPolicy deletes a single DeployPolicy.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.DeleteDeployPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#DeleteDeployPolicyRequest.}op,err:=c.DeleteDeployPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*CloudDeployClient) DeleteDeployPolicyOperation
func(c*CloudDeployClient)DeleteDeployPolicyOperation(namestring)*DeleteDeployPolicyOperationDeleteDeployPolicyOperation returns a new DeleteDeployPolicyOperation from a given name.The name must be that of a previously created DeleteDeployPolicyOperation, possibly from a different process.
func (*CloudDeployClient) DeleteOperation
func(c*CloudDeployClient)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*CloudDeployClient) DeleteTarget
func(c*CloudDeployClient)DeleteTarget(ctxcontext.Context,req*deploypb.DeleteTargetRequest,opts...gax.CallOption)(*DeleteTargetOperation,error)DeleteTarget deletes a single Target.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.DeleteTargetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#DeleteTargetRequest.}op,err:=c.DeleteTarget(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*CloudDeployClient) DeleteTargetOperation
func(c*CloudDeployClient)DeleteTargetOperation(namestring)*DeleteTargetOperationDeleteTargetOperation returns a new DeleteTargetOperation from a given name.The name must be that of a previously created DeleteTargetOperation, possibly from a different process.
func (*CloudDeployClient) GetAutomation
func(c*CloudDeployClient)GetAutomation(ctxcontext.Context,req*deploypb.GetAutomationRequest,opts...gax.CallOption)(*deploypb.Automation,error)GetAutomation gets details of a single Automation.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.GetAutomationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#GetAutomationRequest.}resp,err:=c.GetAutomation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetAutomationRun
func(c*CloudDeployClient)GetAutomationRun(ctxcontext.Context,req*deploypb.GetAutomationRunRequest,opts...gax.CallOption)(*deploypb.AutomationRun,error)GetAutomationRun gets details of a single AutomationRun.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.GetAutomationRunRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#GetAutomationRunRequest.}resp,err:=c.GetAutomationRun(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetConfig
func(c*CloudDeployClient)GetConfig(ctxcontext.Context,req*deploypb.GetConfigRequest,opts...gax.CallOption)(*deploypb.Config,error)GetConfig gets the configuration for a location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.GetConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#GetConfigRequest.}resp,err:=c.GetConfig(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetCustomTargetType
func(c*CloudDeployClient)GetCustomTargetType(ctxcontext.Context,req*deploypb.GetCustomTargetTypeRequest,opts...gax.CallOption)(*deploypb.CustomTargetType,error)GetCustomTargetType gets details of a single CustomTargetType.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.GetCustomTargetTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#GetCustomTargetTypeRequest.}resp,err:=c.GetCustomTargetType(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetDeliveryPipeline
func(c*CloudDeployClient)GetDeliveryPipeline(ctxcontext.Context,req*deploypb.GetDeliveryPipelineRequest,opts...gax.CallOption)(*deploypb.DeliveryPipeline,error)GetDeliveryPipeline gets details of a single DeliveryPipeline.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.GetDeliveryPipelineRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#GetDeliveryPipelineRequest.}resp,err:=c.GetDeliveryPipeline(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetDeployPolicy
func(c*CloudDeployClient)GetDeployPolicy(ctxcontext.Context,req*deploypb.GetDeployPolicyRequest,opts...gax.CallOption)(*deploypb.DeployPolicy,error)GetDeployPolicy gets details of a single DeployPolicy.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.GetDeployPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#GetDeployPolicyRequest.}resp,err:=c.GetDeployPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetIamPolicy
func(c*CloudDeployClient)GetIamPolicy(ctxcontext.Context,req*iampb.GetIamPolicyRequest,opts...gax.CallOption)(*iampb.Policy,error)GetIamPolicy gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"iampb"cloud.google.com/go/iam/apiv1/iampb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&iampb.GetIamPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.}resp,err:=c.GetIamPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetJobRun
func(c*CloudDeployClient)GetJobRun(ctxcontext.Context,req*deploypb.GetJobRunRequest,opts...gax.CallOption)(*deploypb.JobRun,error)GetJobRun gets details of a single JobRun.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.GetJobRunRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#GetJobRunRequest.}resp,err:=c.GetJobRun(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetLocation
func(c*CloudDeployClient)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.GetLocationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.}resp,err:=c.GetLocation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetOperation
func(c*CloudDeployClient)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetRelease
func(c*CloudDeployClient)GetRelease(ctxcontext.Context,req*deploypb.GetReleaseRequest,opts...gax.CallOption)(*deploypb.Release,error)GetRelease gets details of a single Release.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.GetReleaseRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#GetReleaseRequest.}resp,err:=c.GetRelease(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetRollout
func(c*CloudDeployClient)GetRollout(ctxcontext.Context,req*deploypb.GetRolloutRequest,opts...gax.CallOption)(*deploypb.Rollout,error)GetRollout gets details of a single Rollout.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.GetRolloutRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#GetRolloutRequest.}resp,err:=c.GetRollout(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) GetTarget
func(c*CloudDeployClient)GetTarget(ctxcontext.Context,req*deploypb.GetTargetRequest,opts...gax.CallOption)(*deploypb.Target,error)GetTarget gets details of a single Target.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.GetTargetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#GetTargetRequest.}resp,err:=c.GetTarget(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) IgnoreJob
func(c*CloudDeployClient)IgnoreJob(ctxcontext.Context,req*deploypb.IgnoreJobRequest,opts...gax.CallOption)(*deploypb.IgnoreJobResponse,error)IgnoreJob ignores the specified Job in a Rollout.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.IgnoreJobRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#IgnoreJobRequest.}resp,err:=c.IgnoreJob(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) ListAutomationRuns
func(c*CloudDeployClient)ListAutomationRuns(ctxcontext.Context,req*deploypb.ListAutomationRunsRequest,opts...gax.CallOption)*AutomationRunIteratorListAutomationRuns lists AutomationRuns in a given project and location.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListAutomationRunsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListAutomationRunsRequest.}it:=c.ListAutomationRuns(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*deploypb.ListAutomationRunsResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListAutomationRunsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListAutomationRunsRequest.}forresp,err:=rangec.ListAutomationRuns(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) ListAutomations
func(c*CloudDeployClient)ListAutomations(ctxcontext.Context,req*deploypb.ListAutomationsRequest,opts...gax.CallOption)*AutomationIteratorListAutomations lists Automations in a given project and location.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListAutomationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListAutomationsRequest.}it:=c.ListAutomations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*deploypb.ListAutomationsResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListAutomationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListAutomationsRequest.}forresp,err:=rangec.ListAutomations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) ListCustomTargetTypes
func(c*CloudDeployClient)ListCustomTargetTypes(ctxcontext.Context,req*deploypb.ListCustomTargetTypesRequest,opts...gax.CallOption)*CustomTargetTypeIteratorListCustomTargetTypes lists CustomTargetTypes in a given project and location.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListCustomTargetTypesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListCustomTargetTypesRequest.}it:=c.ListCustomTargetTypes(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*deploypb.ListCustomTargetTypesResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListCustomTargetTypesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListCustomTargetTypesRequest.}forresp,err:=rangec.ListCustomTargetTypes(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) ListDeliveryPipelines
func(c*CloudDeployClient)ListDeliveryPipelines(ctxcontext.Context,req*deploypb.ListDeliveryPipelinesRequest,opts...gax.CallOption)*DeliveryPipelineIteratorListDeliveryPipelines lists DeliveryPipelines in a given project and location.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListDeliveryPipelinesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListDeliveryPipelinesRequest.}it:=c.ListDeliveryPipelines(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*deploypb.ListDeliveryPipelinesResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListDeliveryPipelinesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListDeliveryPipelinesRequest.}forresp,err:=rangec.ListDeliveryPipelines(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) ListDeployPolicies
func(c*CloudDeployClient)ListDeployPolicies(ctxcontext.Context,req*deploypb.ListDeployPoliciesRequest,opts...gax.CallOption)*DeployPolicyIteratorListDeployPolicies lists DeployPolicies in a given project and location.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListDeployPoliciesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListDeployPoliciesRequest.}it:=c.ListDeployPolicies(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*deploypb.ListDeployPoliciesResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListDeployPoliciesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListDeployPoliciesRequest.}forresp,err:=rangec.ListDeployPolicies(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) ListJobRuns
func(c*CloudDeployClient)ListJobRuns(ctxcontext.Context,req*deploypb.ListJobRunsRequest,opts...gax.CallOption)*JobRunIteratorListJobRuns lists JobRuns in a given project and location.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListJobRunsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListJobRunsRequest.}it:=c.ListJobRuns(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*deploypb.ListJobRunsResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListJobRunsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListJobRunsRequest.}forresp,err:=rangec.ListJobRuns(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) ListLocations
func(c*CloudDeployClient)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}it:=c.ListLocations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) ListOperations
func(c*CloudDeployClient)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) ListReleases
func(c*CloudDeployClient)ListReleases(ctxcontext.Context,req*deploypb.ListReleasesRequest,opts...gax.CallOption)*ReleaseIteratorListReleases lists Releases in a given project and location.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListReleasesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListReleasesRequest.}it:=c.ListReleases(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*deploypb.ListReleasesResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListReleasesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListReleasesRequest.}forresp,err:=rangec.ListReleases(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) ListRollouts
func(c*CloudDeployClient)ListRollouts(ctxcontext.Context,req*deploypb.ListRolloutsRequest,opts...gax.CallOption)*RolloutIteratorListRollouts lists Rollouts in a given project and location.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListRolloutsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListRolloutsRequest.}it:=c.ListRollouts(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*deploypb.ListRolloutsResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListRolloutsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListRolloutsRequest.}forresp,err:=rangec.ListRollouts(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) ListTargets
func(c*CloudDeployClient)ListTargets(ctxcontext.Context,req*deploypb.ListTargetsRequest,opts...gax.CallOption)*TargetIteratorListTargets lists Targets in a given project and location.
Examples
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListTargetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListTargetsRequest.}it:=c.ListTargets(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*deploypb.ListTargetsResponse)}}all
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.ListTargetsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#ListTargetsRequest.}forresp,err:=rangec.ListTargets(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*CloudDeployClient) RetryJob
func(c*CloudDeployClient)RetryJob(ctxcontext.Context,req*deploypb.RetryJobRequest,opts...gax.CallOption)(*deploypb.RetryJobResponse,error)RetryJob retries the specified Job in a Rollout.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.RetryJobRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#RetryJobRequest.}resp,err:=c.RetryJob(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) RollbackTarget
func(c*CloudDeployClient)RollbackTarget(ctxcontext.Context,req*deploypb.RollbackTargetRequest,opts...gax.CallOption)(*deploypb.RollbackTargetResponse,error)RollbackTarget creates a Rollout to roll back the specified target.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.RollbackTargetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#RollbackTargetRequest.}resp,err:=c.RollbackTarget(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) SetIamPolicy
func(c*CloudDeployClient)SetIamPolicy(ctxcontext.Context,req*iampb.SetIamPolicyRequest,opts...gax.CallOption)(*iampb.Policy,error)SetIamPolicy sets the access control policy on the specified resource. Replacesany existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"iampb"cloud.google.com/go/iam/apiv1/iampb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&iampb.SetIamPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.}resp,err:=c.SetIamPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) TerminateJobRun
func(c*CloudDeployClient)TerminateJobRun(ctxcontext.Context,req*deploypb.TerminateJobRunRequest,opts...gax.CallOption)(*deploypb.TerminateJobRunResponse,error)TerminateJobRun terminates a Job Run in a given project and location.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.TerminateJobRunRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#TerminateJobRunRequest.}resp,err:=c.TerminateJobRun(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) TestIamPermissions
func(c*CloudDeployClient)TestIamPermissions(ctxcontext.Context,req*iampb.TestIamPermissionsRequest,opts...gax.CallOption)(*iampb.TestIamPermissionsResponse,error)TestIamPermissions returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a NOT_FOUND error.
Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may “fail open” without warning.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"iampb"cloud.google.com/go/iam/apiv1/iampb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&iampb.TestIamPermissionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.}resp,err:=c.TestIamPermissions(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) UpdateAutomation
func(c*CloudDeployClient)UpdateAutomation(ctxcontext.Context,req*deploypb.UpdateAutomationRequest,opts...gax.CallOption)(*UpdateAutomationOperation,error)UpdateAutomation updates the parameters of a single Automation resource.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.UpdateAutomationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#UpdateAutomationRequest.}op,err:=c.UpdateAutomation(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) UpdateAutomationOperation
func(c*CloudDeployClient)UpdateAutomationOperation(namestring)*UpdateAutomationOperationUpdateAutomationOperation returns a new UpdateAutomationOperation from a given name.The name must be that of a previously created UpdateAutomationOperation, possibly from a different process.
func (*CloudDeployClient) UpdateCustomTargetType
func(c*CloudDeployClient)UpdateCustomTargetType(ctxcontext.Context,req*deploypb.UpdateCustomTargetTypeRequest,opts...gax.CallOption)(*UpdateCustomTargetTypeOperation,error)UpdateCustomTargetType updates a single CustomTargetType.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.UpdateCustomTargetTypeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#UpdateCustomTargetTypeRequest.}op,err:=c.UpdateCustomTargetType(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) UpdateCustomTargetTypeOperation
func(c*CloudDeployClient)UpdateCustomTargetTypeOperation(namestring)*UpdateCustomTargetTypeOperationUpdateCustomTargetTypeOperation returns a new UpdateCustomTargetTypeOperation from a given name.The name must be that of a previously created UpdateCustomTargetTypeOperation, possibly from a different process.
func (*CloudDeployClient) UpdateDeliveryPipeline
func(c*CloudDeployClient)UpdateDeliveryPipeline(ctxcontext.Context,req*deploypb.UpdateDeliveryPipelineRequest,opts...gax.CallOption)(*UpdateDeliveryPipelineOperation,error)UpdateDeliveryPipeline updates the parameters of a single DeliveryPipeline.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.UpdateDeliveryPipelineRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#UpdateDeliveryPipelineRequest.}op,err:=c.UpdateDeliveryPipeline(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) UpdateDeliveryPipelineOperation
func(c*CloudDeployClient)UpdateDeliveryPipelineOperation(namestring)*UpdateDeliveryPipelineOperationUpdateDeliveryPipelineOperation returns a new UpdateDeliveryPipelineOperation from a given name.The name must be that of a previously created UpdateDeliveryPipelineOperation, possibly from a different process.
func (*CloudDeployClient) UpdateDeployPolicy
func(c*CloudDeployClient)UpdateDeployPolicy(ctxcontext.Context,req*deploypb.UpdateDeployPolicyRequest,opts...gax.CallOption)(*UpdateDeployPolicyOperation,error)UpdateDeployPolicy updates the parameters of a single DeployPolicy.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.UpdateDeployPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#UpdateDeployPolicyRequest.}op,err:=c.UpdateDeployPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) UpdateDeployPolicyOperation
func(c*CloudDeployClient)UpdateDeployPolicyOperation(namestring)*UpdateDeployPolicyOperationUpdateDeployPolicyOperation returns a new UpdateDeployPolicyOperation from a given name.The name must be that of a previously created UpdateDeployPolicyOperation, possibly from a different process.
func (*CloudDeployClient) UpdateTarget
func(c*CloudDeployClient)UpdateTarget(ctxcontext.Context,req*deploypb.UpdateTargetRequest,opts...gax.CallOption)(*UpdateTargetOperation,error)UpdateTarget updates the parameters of a single Target.
Example
packagemainimport("context"deploy"cloud.google.com/go/deploy/apiv1"deploypb"cloud.google.com/go/deploy/apiv1/deploypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=deploy.NewCloudDeployClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&deploypb.UpdateTargetRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/deploy/apiv1/deploypb#UpdateTargetRequest.}op,err:=c.UpdateTarget(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*CloudDeployClient) UpdateTargetOperation
func(c*CloudDeployClient)UpdateTargetOperation(namestring)*UpdateTargetOperationUpdateTargetOperation returns a new UpdateTargetOperation from a given name.The name must be that of a previously created UpdateTargetOperation, possibly from a different process.
CreateAutomationOperation
typeCreateAutomationOperationstruct{// contains filtered or unexported fields}CreateAutomationOperation manages a long-running operation from CreateAutomation.
func (*CreateAutomationOperation) Done
func(op*CreateAutomationOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateAutomationOperation) Metadata
func(op*CreateAutomationOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateAutomationOperation) Name
func(op*CreateAutomationOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateAutomationOperation) Poll
func(op*CreateAutomationOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Automation,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateAutomationOperation) Wait
func(op*CreateAutomationOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Automation,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateCustomTargetTypeOperation
typeCreateCustomTargetTypeOperationstruct{// contains filtered or unexported fields}CreateCustomTargetTypeOperation manages a long-running operation from CreateCustomTargetType.
func (*CreateCustomTargetTypeOperation) Done
func(op*CreateCustomTargetTypeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateCustomTargetTypeOperation) Metadata
func(op*CreateCustomTargetTypeOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateCustomTargetTypeOperation) Name
func(op*CreateCustomTargetTypeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateCustomTargetTypeOperation) Poll
func(op*CreateCustomTargetTypeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.CustomTargetType,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateCustomTargetTypeOperation) Wait
func(op*CreateCustomTargetTypeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.CustomTargetType,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateDeliveryPipelineOperation
typeCreateDeliveryPipelineOperationstruct{// contains filtered or unexported fields}CreateDeliveryPipelineOperation manages a long-running operation from CreateDeliveryPipeline.
func (*CreateDeliveryPipelineOperation) Done
func(op*CreateDeliveryPipelineOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateDeliveryPipelineOperation) Metadata
func(op*CreateDeliveryPipelineOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateDeliveryPipelineOperation) Name
func(op*CreateDeliveryPipelineOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateDeliveryPipelineOperation) Poll
func(op*CreateDeliveryPipelineOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.DeliveryPipeline,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateDeliveryPipelineOperation) Wait
func(op*CreateDeliveryPipelineOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.DeliveryPipeline,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateDeployPolicyOperation
typeCreateDeployPolicyOperationstruct{// contains filtered or unexported fields}CreateDeployPolicyOperation manages a long-running operation from CreateDeployPolicy.
func (*CreateDeployPolicyOperation) Done
func(op*CreateDeployPolicyOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateDeployPolicyOperation) Metadata
func(op*CreateDeployPolicyOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateDeployPolicyOperation) Name
func(op*CreateDeployPolicyOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateDeployPolicyOperation) Poll
func(op*CreateDeployPolicyOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.DeployPolicy,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateDeployPolicyOperation) Wait
func(op*CreateDeployPolicyOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.DeployPolicy,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateReleaseOperation
typeCreateReleaseOperationstruct{// contains filtered or unexported fields}CreateReleaseOperation manages a long-running operation from CreateRelease.
func (*CreateReleaseOperation) Done
func(op*CreateReleaseOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateReleaseOperation) Metadata
func(op*CreateReleaseOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateReleaseOperation) Name
func(op*CreateReleaseOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateReleaseOperation) Poll
func(op*CreateReleaseOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Release,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateReleaseOperation) Wait
func(op*CreateReleaseOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Release,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateRolloutOperation
typeCreateRolloutOperationstruct{// contains filtered or unexported fields}CreateRolloutOperation manages a long-running operation from CreateRollout.
func (*CreateRolloutOperation) Done
func(op*CreateRolloutOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateRolloutOperation) Metadata
func(op*CreateRolloutOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateRolloutOperation) Name
func(op*CreateRolloutOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateRolloutOperation) Poll
func(op*CreateRolloutOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Rollout,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateRolloutOperation) Wait
func(op*CreateRolloutOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Rollout,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateTargetOperation
typeCreateTargetOperationstruct{// contains filtered or unexported fields}CreateTargetOperation manages a long-running operation from CreateTarget.
func (*CreateTargetOperation) Done
func(op*CreateTargetOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateTargetOperation) Metadata
func(op*CreateTargetOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateTargetOperation) Name
func(op*CreateTargetOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateTargetOperation) Poll
func(op*CreateTargetOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Target,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateTargetOperation) Wait
func(op*CreateTargetOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Target,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CustomTargetTypeIterator
typeCustomTargetTypeIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*deploypb.CustomTargetType,nextPageTokenstring,errerror)// contains filtered or unexported fields}CustomTargetTypeIterator manages a stream of *deploypb.CustomTargetType.
func (*CustomTargetTypeIterator) All
func(it*CustomTargetTypeIterator)All()iter.Seq2[*deploypb.CustomTargetType,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*CustomTargetTypeIterator) Next
func(it*CustomTargetTypeIterator)Next()(*deploypb.CustomTargetType,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*CustomTargetTypeIterator) PageInfo
func(it*CustomTargetTypeIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
DeleteAutomationOperation
typeDeleteAutomationOperationstruct{// contains filtered or unexported fields}DeleteAutomationOperation manages a long-running operation from DeleteAutomation.
func (*DeleteAutomationOperation) Done
func(op*DeleteAutomationOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteAutomationOperation) Metadata
func(op*DeleteAutomationOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteAutomationOperation) Name
func(op*DeleteAutomationOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteAutomationOperation) Poll
func(op*DeleteAutomationOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteAutomationOperation) Wait
func(op*DeleteAutomationOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteCustomTargetTypeOperation
typeDeleteCustomTargetTypeOperationstruct{// contains filtered or unexported fields}DeleteCustomTargetTypeOperation manages a long-running operation from DeleteCustomTargetType.
func (*DeleteCustomTargetTypeOperation) Done
func(op*DeleteCustomTargetTypeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteCustomTargetTypeOperation) Metadata
func(op*DeleteCustomTargetTypeOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteCustomTargetTypeOperation) Name
func(op*DeleteCustomTargetTypeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteCustomTargetTypeOperation) Poll
func(op*DeleteCustomTargetTypeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteCustomTargetTypeOperation) Wait
func(op*DeleteCustomTargetTypeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteDeliveryPipelineOperation
typeDeleteDeliveryPipelineOperationstruct{// contains filtered or unexported fields}DeleteDeliveryPipelineOperation manages a long-running operation from DeleteDeliveryPipeline.
func (*DeleteDeliveryPipelineOperation) Done
func(op*DeleteDeliveryPipelineOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteDeliveryPipelineOperation) Metadata
func(op*DeleteDeliveryPipelineOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteDeliveryPipelineOperation) Name
func(op*DeleteDeliveryPipelineOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteDeliveryPipelineOperation) Poll
func(op*DeleteDeliveryPipelineOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteDeliveryPipelineOperation) Wait
func(op*DeleteDeliveryPipelineOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteDeployPolicyOperation
typeDeleteDeployPolicyOperationstruct{// contains filtered or unexported fields}DeleteDeployPolicyOperation manages a long-running operation from DeleteDeployPolicy.
func (*DeleteDeployPolicyOperation) Done
func(op*DeleteDeployPolicyOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteDeployPolicyOperation) Metadata
func(op*DeleteDeployPolicyOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteDeployPolicyOperation) Name
func(op*DeleteDeployPolicyOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteDeployPolicyOperation) Poll
func(op*DeleteDeployPolicyOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteDeployPolicyOperation) Wait
func(op*DeleteDeployPolicyOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteTargetOperation
typeDeleteTargetOperationstruct{// contains filtered or unexported fields}DeleteTargetOperation manages a long-running operation from DeleteTarget.
func (*DeleteTargetOperation) Done
func(op*DeleteTargetOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteTargetOperation) Metadata
func(op*DeleteTargetOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteTargetOperation) Name
func(op*DeleteTargetOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteTargetOperation) Poll
func(op*DeleteTargetOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteTargetOperation) Wait
func(op*DeleteTargetOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeliveryPipelineIterator
typeDeliveryPipelineIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*deploypb.DeliveryPipeline,nextPageTokenstring,errerror)// contains filtered or unexported fields}DeliveryPipelineIterator manages a stream of *deploypb.DeliveryPipeline.
func (*DeliveryPipelineIterator) All
func(it*DeliveryPipelineIterator)All()iter.Seq2[*deploypb.DeliveryPipeline,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*DeliveryPipelineIterator) Next
func(it*DeliveryPipelineIterator)Next()(*deploypb.DeliveryPipeline,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*DeliveryPipelineIterator) PageInfo
func(it*DeliveryPipelineIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
DeployPolicyIterator
typeDeployPolicyIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*deploypb.DeployPolicy,nextPageTokenstring,errerror)// contains filtered or unexported fields}DeployPolicyIterator manages a stream of *deploypb.DeployPolicy.
func (*DeployPolicyIterator) All
func(it*DeployPolicyIterator)All()iter.Seq2[*deploypb.DeployPolicy,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*DeployPolicyIterator) Next
func(it*DeployPolicyIterator)Next()(*deploypb.DeployPolicy,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*DeployPolicyIterator) PageInfo
func(it*DeployPolicyIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
JobRunIterator
typeJobRunIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*deploypb.JobRun,nextPageTokenstring,errerror)// contains filtered or unexported fields}JobRunIterator manages a stream of *deploypb.JobRun.
func (*JobRunIterator) All
func(it*JobRunIterator)All()iter.Seq2[*deploypb.JobRun,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*JobRunIterator) Next
func(it*JobRunIterator)Next()(*deploypb.JobRun,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*JobRunIterator) PageInfo
func(it*JobRunIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
LocationIterator
typeLocationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*locationpb.Location,nextPageTokenstring,errerror)// contains filtered or unexported fields}LocationIterator manages a stream of *locationpb.Location.
func (*LocationIterator) All
func(it*LocationIterator)All()iter.Seq2[*locationpb.Location,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*LocationIterator) Next
func(it*LocationIterator)Next()(*locationpb.Location,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*LocationIterator) PageInfo
func(it*LocationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
OperationIterator
typeOperationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*longrunningpb.Operation,nextPageTokenstring,errerror)// contains filtered or unexported fields}OperationIterator manages a stream of *longrunningpb.Operation.
func (*OperationIterator) All
func(it*OperationIterator)All()iter.Seq2[*longrunningpb.Operation,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*OperationIterator) Next
func(it*OperationIterator)Next()(*longrunningpb.Operation,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*OperationIterator) PageInfo
func(it*OperationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
ReleaseIterator
typeReleaseIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*deploypb.Release,nextPageTokenstring,errerror)// contains filtered or unexported fields}ReleaseIterator manages a stream of *deploypb.Release.
func (*ReleaseIterator) All
func(it*ReleaseIterator)All()iter.Seq2[*deploypb.Release,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*ReleaseIterator) Next
func(it*ReleaseIterator)Next()(*deploypb.Release,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*ReleaseIterator) PageInfo
func(it*ReleaseIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
RolloutIterator
typeRolloutIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*deploypb.Rollout,nextPageTokenstring,errerror)// contains filtered or unexported fields}RolloutIterator manages a stream of *deploypb.Rollout.
func (*RolloutIterator) All
func(it*RolloutIterator)All()iter.Seq2[*deploypb.Rollout,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*RolloutIterator) Next
func(it*RolloutIterator)Next()(*deploypb.Rollout,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*RolloutIterator) PageInfo
func(it*RolloutIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
TargetIterator
typeTargetIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*deploypb.Target,nextPageTokenstring,errerror)// contains filtered or unexported fields}TargetIterator manages a stream of *deploypb.Target.
func (*TargetIterator) All
func(it*TargetIterator)All()iter.Seq2[*deploypb.Target,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*TargetIterator) Next
func(it*TargetIterator)Next()(*deploypb.Target,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*TargetIterator) PageInfo
func(it*TargetIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
UpdateAutomationOperation
typeUpdateAutomationOperationstruct{// contains filtered or unexported fields}UpdateAutomationOperation manages a long-running operation from UpdateAutomation.
func (*UpdateAutomationOperation) Done
func(op*UpdateAutomationOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateAutomationOperation) Metadata
func(op*UpdateAutomationOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateAutomationOperation) Name
func(op*UpdateAutomationOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateAutomationOperation) Poll
func(op*UpdateAutomationOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Automation,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateAutomationOperation) Wait
func(op*UpdateAutomationOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Automation,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateCustomTargetTypeOperation
typeUpdateCustomTargetTypeOperationstruct{// contains filtered or unexported fields}UpdateCustomTargetTypeOperation manages a long-running operation from UpdateCustomTargetType.
func (*UpdateCustomTargetTypeOperation) Done
func(op*UpdateCustomTargetTypeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateCustomTargetTypeOperation) Metadata
func(op*UpdateCustomTargetTypeOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateCustomTargetTypeOperation) Name
func(op*UpdateCustomTargetTypeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateCustomTargetTypeOperation) Poll
func(op*UpdateCustomTargetTypeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.CustomTargetType,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateCustomTargetTypeOperation) Wait
func(op*UpdateCustomTargetTypeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.CustomTargetType,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateDeliveryPipelineOperation
typeUpdateDeliveryPipelineOperationstruct{// contains filtered or unexported fields}UpdateDeliveryPipelineOperation manages a long-running operation from UpdateDeliveryPipeline.
func (*UpdateDeliveryPipelineOperation) Done
func(op*UpdateDeliveryPipelineOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateDeliveryPipelineOperation) Metadata
func(op*UpdateDeliveryPipelineOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateDeliveryPipelineOperation) Name
func(op*UpdateDeliveryPipelineOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateDeliveryPipelineOperation) Poll
func(op*UpdateDeliveryPipelineOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.DeliveryPipeline,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateDeliveryPipelineOperation) Wait
func(op*UpdateDeliveryPipelineOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.DeliveryPipeline,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateDeployPolicyOperation
typeUpdateDeployPolicyOperationstruct{// contains filtered or unexported fields}UpdateDeployPolicyOperation manages a long-running operation from UpdateDeployPolicy.
func (*UpdateDeployPolicyOperation) Done
func(op*UpdateDeployPolicyOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateDeployPolicyOperation) Metadata
func(op*UpdateDeployPolicyOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateDeployPolicyOperation) Name
func(op*UpdateDeployPolicyOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateDeployPolicyOperation) Poll
func(op*UpdateDeployPolicyOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.DeployPolicy,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateDeployPolicyOperation) Wait
func(op*UpdateDeployPolicyOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.DeployPolicy,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateTargetOperation
typeUpdateTargetOperationstruct{// contains filtered or unexported fields}UpdateTargetOperation manages a long-running operation from UpdateTarget.
func (*UpdateTargetOperation) Done
func(op*UpdateTargetOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateTargetOperation) Metadata
func(op*UpdateTargetOperation)Metadata()(*deploypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateTargetOperation) Name
func(op*UpdateTargetOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateTargetOperation) Poll
func(op*UpdateTargetOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Target,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateTargetOperation) Wait
func(op*UpdateTargetOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*deploypb.Target,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.