Telco Automation API v1 - Package cloud.google.com/go/telcoautomation/apiv1 (v1.1.6) Stay organized with collections Save and categorize content based on your preferences.
Package telcoautomation is an auto-generated package for theTelco Automation API.
APIs to automate management of cloud infrastructure for network functions.
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/telcoautomation/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:=telcoautomation.NewClient(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:=&telcoautomationpb.ApplyDeploymentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ApplyDeploymentRequest.}resp,err:=c.ApplyDeployment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp
Use of Context
The ctx passed to NewClient 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.
BlueprintIterator
typeBlueprintIteratorstruct{// 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[]*telcoautomationpb.Blueprint,nextPageTokenstring,errerror)// contains filtered or unexported fields}BlueprintIterator manages a stream of *telcoautomationpb.Blueprint.
func (*BlueprintIterator) All
func(it*BlueprintIterator)All()iter.Seq2[*telcoautomationpb.Blueprint,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*BlueprintIterator) Next
func(it*BlueprintIterator)Next()(*telcoautomationpb.Blueprint,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 (*BlueprintIterator) PageInfo
func(it*BlueprintIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
CallOptions
typeCallOptionsstruct{ListOrchestrationClusters[]gax.CallOptionGetOrchestrationCluster[]gax.CallOptionCreateOrchestrationCluster[]gax.CallOptionDeleteOrchestrationCluster[]gax.CallOptionListEdgeSlms[]gax.CallOptionGetEdgeSlm[]gax.CallOptionCreateEdgeSlm[]gax.CallOptionDeleteEdgeSlm[]gax.CallOptionCreateBlueprint[]gax.CallOptionUpdateBlueprint[]gax.CallOptionGetBlueprint[]gax.CallOptionDeleteBlueprint[]gax.CallOptionListBlueprints[]gax.CallOptionApproveBlueprint[]gax.CallOptionProposeBlueprint[]gax.CallOptionRejectBlueprint[]gax.CallOptionListBlueprintRevisions[]gax.CallOptionSearchBlueprintRevisions[]gax.CallOptionSearchDeploymentRevisions[]gax.CallOptionDiscardBlueprintChanges[]gax.CallOptionListPublicBlueprints[]gax.CallOptionGetPublicBlueprint[]gax.CallOptionCreateDeployment[]gax.CallOptionUpdateDeployment[]gax.CallOptionGetDeployment[]gax.CallOptionRemoveDeployment[]gax.CallOptionListDeployments[]gax.CallOptionListDeploymentRevisions[]gax.CallOptionDiscardDeploymentChanges[]gax.CallOptionApplyDeployment[]gax.CallOptionComputeDeploymentStatus[]gax.CallOptionRollbackDeployment[]gax.CallOptionGetHydratedDeployment[]gax.CallOptionListHydratedDeployments[]gax.CallOptionUpdateHydratedDeployment[]gax.CallOptionApplyHydratedDeployment[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}CallOptions contains the retry settings for each method of Client.
Client
typeClientstruct{// The call options for this service.CallOptions*CallOptions// 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}Client is a client for interacting with Telco Automation API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
TelcoAutomation Service manages the control plane cluster a.k.a.Orchestration Cluster (GKE cluster with config controller) of TNA. It alsoexposes blueprint APIs which manages the lifecycle of blueprints that controlthe infrastructure setup (e.g GDCE clusters) and deployment of networkfunctions.
func NewClient
NewClient creates a new telco automation client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
TelcoAutomation Service manages the control plane cluster a.k.a.Orchestration Cluster (GKE cluster with config controller) of TNA. It alsoexposes blueprint APIs which manages the lifecycle of blueprints that controlthe infrastructure setup (e.g GDCE clusters) and deployment of networkfunctions.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewRESTClient
NewRESTClient creates a new telco automation rest client.
TelcoAutomation Service manages the control plane cluster a.k.a.Orchestration Cluster (GKE cluster with config controller) of TNA. It alsoexposes blueprint APIs which manages the lifecycle of blueprints that controlthe infrastructure setup (e.g GDCE clusters) and deployment of networkfunctions.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/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:=telcoautomation.NewRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*Client) ApplyDeployment
func(c*Client)ApplyDeployment(ctxcontext.Context,req*telcoautomationpb.ApplyDeploymentRequest,opts...gax.CallOption)(*telcoautomationpb.Deployment,error)ApplyDeployment applies the deployment’s YAML files to the parent orchestration cluster.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ApplyDeploymentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ApplyDeploymentRequest.}resp,err:=c.ApplyDeployment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ApplyHydratedDeployment
func(c*Client)ApplyHydratedDeployment(ctxcontext.Context,req*telcoautomationpb.ApplyHydratedDeploymentRequest,opts...gax.CallOption)(*telcoautomationpb.HydratedDeployment,error)ApplyHydratedDeployment applies a hydrated deployment to a workload cluster.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ApplyHydratedDeploymentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ApplyHydratedDeploymentRequest.}resp,err:=c.ApplyHydratedDeployment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ApproveBlueprint
func(c*Client)ApproveBlueprint(ctxcontext.Context,req*telcoautomationpb.ApproveBlueprintRequest,opts...gax.CallOption)(*telcoautomationpb.Blueprint,error)ApproveBlueprint approves a blueprint and commits a new revision.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ApproveBlueprintRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ApproveBlueprintRequest.}resp,err:=c.ApproveBlueprint(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CancelOperation
func(c*Client)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"telcoautomation"cloud.google.com/go/telcoautomation/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:=telcoautomation.NewClient(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 (*Client) Close
Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*Client) ComputeDeploymentStatus
func(c*Client)ComputeDeploymentStatus(ctxcontext.Context,req*telcoautomationpb.ComputeDeploymentStatusRequest,opts...gax.CallOption)(*telcoautomationpb.ComputeDeploymentStatusResponse,error)ComputeDeploymentStatus returns the requested deployment status.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ComputeDeploymentStatusRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ComputeDeploymentStatusRequest.}resp,err:=c.ComputeDeploymentStatus(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) Connection (deprecated)
func(c*Client)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 (*Client) CreateBlueprint
func(c*Client)CreateBlueprint(ctxcontext.Context,req*telcoautomationpb.CreateBlueprintRequest,opts...gax.CallOption)(*telcoautomationpb.Blueprint,error)CreateBlueprint creates a blueprint.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.CreateBlueprintRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#CreateBlueprintRequest.}resp,err:=c.CreateBlueprint(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateDeployment
func(c*Client)CreateDeployment(ctxcontext.Context,req*telcoautomationpb.CreateDeploymentRequest,opts...gax.CallOption)(*telcoautomationpb.Deployment,error)CreateDeployment creates a deployment.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.CreateDeploymentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#CreateDeploymentRequest.}resp,err:=c.CreateDeployment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateEdgeSlm
func(c*Client)CreateEdgeSlm(ctxcontext.Context,req*telcoautomationpb.CreateEdgeSlmRequest,opts...gax.CallOption)(*CreateEdgeSlmOperation,error)CreateEdgeSlm creates a new EdgeSlm in a given project and location.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.CreateEdgeSlmRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#CreateEdgeSlmRequest.}op,err:=c.CreateEdgeSlm(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateEdgeSlmOperation
func(c*Client)CreateEdgeSlmOperation(namestring)*CreateEdgeSlmOperationCreateEdgeSlmOperation returns a new CreateEdgeSlmOperation from a given name.The name must be that of a previously created CreateEdgeSlmOperation, possibly from a different process.
func (*Client) CreateOrchestrationCluster
func(c*Client)CreateOrchestrationCluster(ctxcontext.Context,req*telcoautomationpb.CreateOrchestrationClusterRequest,opts...gax.CallOption)(*CreateOrchestrationClusterOperation,error)CreateOrchestrationCluster creates a new OrchestrationCluster in a given project and location.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.CreateOrchestrationClusterRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#CreateOrchestrationClusterRequest.}op,err:=c.CreateOrchestrationCluster(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateOrchestrationClusterOperation
func(c*Client)CreateOrchestrationClusterOperation(namestring)*CreateOrchestrationClusterOperationCreateOrchestrationClusterOperation returns a new CreateOrchestrationClusterOperation from a given name.The name must be that of a previously created CreateOrchestrationClusterOperation, possibly from a different process.
func (*Client) DeleteBlueprint
func(c*Client)DeleteBlueprint(ctxcontext.Context,req*telcoautomationpb.DeleteBlueprintRequest,opts...gax.CallOption)errorDeleteBlueprint deletes a blueprint and all its revisions.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.DeleteBlueprintRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#DeleteBlueprintRequest.}err=c.DeleteBlueprint(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteEdgeSlm
func(c*Client)DeleteEdgeSlm(ctxcontext.Context,req*telcoautomationpb.DeleteEdgeSlmRequest,opts...gax.CallOption)(*DeleteEdgeSlmOperation,error)DeleteEdgeSlm deletes a single EdgeSlm.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.DeleteEdgeSlmRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#DeleteEdgeSlmRequest.}op,err:=c.DeleteEdgeSlm(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteEdgeSlmOperation
func(c*Client)DeleteEdgeSlmOperation(namestring)*DeleteEdgeSlmOperationDeleteEdgeSlmOperation returns a new DeleteEdgeSlmOperation from a given name.The name must be that of a previously created DeleteEdgeSlmOperation, possibly from a different process.
func (*Client) DeleteOperation
func(c*Client)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"telcoautomation"cloud.google.com/go/telcoautomation/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:=telcoautomation.NewClient(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 (*Client) DeleteOrchestrationCluster
func(c*Client)DeleteOrchestrationCluster(ctxcontext.Context,req*telcoautomationpb.DeleteOrchestrationClusterRequest,opts...gax.CallOption)(*DeleteOrchestrationClusterOperation,error)DeleteOrchestrationCluster deletes a single OrchestrationCluster.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.DeleteOrchestrationClusterRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#DeleteOrchestrationClusterRequest.}op,err:=c.DeleteOrchestrationCluster(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteOrchestrationClusterOperation
func(c*Client)DeleteOrchestrationClusterOperation(namestring)*DeleteOrchestrationClusterOperationDeleteOrchestrationClusterOperation returns a new DeleteOrchestrationClusterOperation from a given name.The name must be that of a previously created DeleteOrchestrationClusterOperation, possibly from a different process.
func (*Client) DiscardBlueprintChanges
func(c*Client)DiscardBlueprintChanges(ctxcontext.Context,req*telcoautomationpb.DiscardBlueprintChangesRequest,opts...gax.CallOption)(*telcoautomationpb.DiscardBlueprintChangesResponse,error)DiscardBlueprintChanges discards the changes in a blueprint and reverts the blueprint to the lastapproved blueprint revision. No changes take place if a blueprint does nothave revisions.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.DiscardBlueprintChangesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#DiscardBlueprintChangesRequest.}resp,err:=c.DiscardBlueprintChanges(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) DiscardDeploymentChanges
func(c*Client)DiscardDeploymentChanges(ctxcontext.Context,req*telcoautomationpb.DiscardDeploymentChangesRequest,opts...gax.CallOption)(*telcoautomationpb.DiscardDeploymentChangesResponse,error)DiscardDeploymentChanges discards the changes in a deployment and reverts the deployment to the lastapproved deployment revision. No changes take place if a deployment doesnot have revisions.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.DiscardDeploymentChangesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#DiscardDeploymentChangesRequest.}resp,err:=c.DiscardDeploymentChanges(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetBlueprint
func(c*Client)GetBlueprint(ctxcontext.Context,req*telcoautomationpb.GetBlueprintRequest,opts...gax.CallOption)(*telcoautomationpb.Blueprint,error)GetBlueprint returns the requested blueprint.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.GetBlueprintRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#GetBlueprintRequest.}resp,err:=c.GetBlueprint(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetDeployment
func(c*Client)GetDeployment(ctxcontext.Context,req*telcoautomationpb.GetDeploymentRequest,opts...gax.CallOption)(*telcoautomationpb.Deployment,error)GetDeployment returns the requested deployment.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.GetDeploymentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#GetDeploymentRequest.}resp,err:=c.GetDeployment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetEdgeSlm
func(c*Client)GetEdgeSlm(ctxcontext.Context,req*telcoautomationpb.GetEdgeSlmRequest,opts...gax.CallOption)(*telcoautomationpb.EdgeSlm,error)GetEdgeSlm gets details of a single EdgeSlm.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.GetEdgeSlmRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#GetEdgeSlmRequest.}resp,err:=c.GetEdgeSlm(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetHydratedDeployment
func(c*Client)GetHydratedDeployment(ctxcontext.Context,req*telcoautomationpb.GetHydratedDeploymentRequest,opts...gax.CallOption)(*telcoautomationpb.HydratedDeployment,error)GetHydratedDeployment returns the requested hydrated deployment.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.GetHydratedDeploymentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#GetHydratedDeploymentRequest.}resp,err:=c.GetHydratedDeployment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetLocation
func(c*Client)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/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:=telcoautomation.NewClient(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 (*Client) GetOperation
func(c*Client)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"telcoautomation"cloud.google.com/go/telcoautomation/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:=telcoautomation.NewClient(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 (*Client) GetOrchestrationCluster
func(c*Client)GetOrchestrationCluster(ctxcontext.Context,req*telcoautomationpb.GetOrchestrationClusterRequest,opts...gax.CallOption)(*telcoautomationpb.OrchestrationCluster,error)GetOrchestrationCluster gets details of a single OrchestrationCluster.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.GetOrchestrationClusterRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#GetOrchestrationClusterRequest.}resp,err:=c.GetOrchestrationCluster(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetPublicBlueprint
func(c*Client)GetPublicBlueprint(ctxcontext.Context,req*telcoautomationpb.GetPublicBlueprintRequest,opts...gax.CallOption)(*telcoautomationpb.PublicBlueprint,error)GetPublicBlueprint returns the requested public blueprint.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.GetPublicBlueprintRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#GetPublicBlueprintRequest.}resp,err:=c.GetPublicBlueprint(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ListBlueprintRevisions
func(c*Client)ListBlueprintRevisions(ctxcontext.Context,req*telcoautomationpb.ListBlueprintRevisionsRequest,opts...gax.CallOption)*BlueprintIteratorListBlueprintRevisions list blueprint revisions of a given blueprint.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb""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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListBlueprintRevisionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListBlueprintRevisionsRequest.}it:=c.ListBlueprintRevisions(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.(*telcoautomationpb.ListBlueprintRevisionsResponse)}}all
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListBlueprintRevisionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListBlueprintRevisionsRequest.}forresp,err:=rangec.ListBlueprintRevisions(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListBlueprints
func(c*Client)ListBlueprints(ctxcontext.Context,req*telcoautomationpb.ListBlueprintsRequest,opts...gax.CallOption)*BlueprintIteratorListBlueprints list all blueprints.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb""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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListBlueprintsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListBlueprintsRequest.}it:=c.ListBlueprints(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.(*telcoautomationpb.ListBlueprintsResponse)}}all
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListBlueprintsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListBlueprintsRequest.}forresp,err:=rangec.ListBlueprints(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListDeploymentRevisions
func(c*Client)ListDeploymentRevisions(ctxcontext.Context,req*telcoautomationpb.ListDeploymentRevisionsRequest,opts...gax.CallOption)*DeploymentIteratorListDeploymentRevisions list deployment revisions of a given deployment.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb""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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListDeploymentRevisionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListDeploymentRevisionsRequest.}it:=c.ListDeploymentRevisions(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.(*telcoautomationpb.ListDeploymentRevisionsResponse)}}all
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListDeploymentRevisionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListDeploymentRevisionsRequest.}forresp,err:=rangec.ListDeploymentRevisions(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListDeployments
func(c*Client)ListDeployments(ctxcontext.Context,req*telcoautomationpb.ListDeploymentsRequest,opts...gax.CallOption)*DeploymentIteratorListDeployments list all deployments.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb""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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListDeploymentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListDeploymentsRequest.}it:=c.ListDeployments(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.(*telcoautomationpb.ListDeploymentsResponse)}}all
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListDeploymentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListDeploymentsRequest.}forresp,err:=rangec.ListDeployments(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListEdgeSlms
func(c*Client)ListEdgeSlms(ctxcontext.Context,req*telcoautomationpb.ListEdgeSlmsRequest,opts...gax.CallOption)*EdgeSlmIteratorListEdgeSlms lists EdgeSlms in a given project and location.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb""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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListEdgeSlmsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListEdgeSlmsRequest.}it:=c.ListEdgeSlms(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.(*telcoautomationpb.ListEdgeSlmsResponse)}}all
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListEdgeSlmsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListEdgeSlmsRequest.}forresp,err:=rangec.ListEdgeSlms(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListHydratedDeployments
func(c*Client)ListHydratedDeployments(ctxcontext.Context,req*telcoautomationpb.ListHydratedDeploymentsRequest,opts...gax.CallOption)*HydratedDeploymentIteratorListHydratedDeployments list all hydrated deployments present under a deployment.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb""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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListHydratedDeploymentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListHydratedDeploymentsRequest.}it:=c.ListHydratedDeployments(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.(*telcoautomationpb.ListHydratedDeploymentsResponse)}}all
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListHydratedDeploymentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListHydratedDeploymentsRequest.}forresp,err:=rangec.ListHydratedDeployments(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListLocations
func(c*Client)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/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:=telcoautomation.NewClient(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"telcoautomation"cloud.google.com/go/telcoautomation/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:=telcoautomation.NewClient(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 (*Client) ListOperations
func(c*Client)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"telcoautomation"cloud.google.com/go/telcoautomation/apiv1""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:=telcoautomation.NewClient(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"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"telcoautomation"cloud.google.com/go/telcoautomation/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:=telcoautomation.NewClient(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 (*Client) ListOrchestrationClusters
func(c*Client)ListOrchestrationClusters(ctxcontext.Context,req*telcoautomationpb.ListOrchestrationClustersRequest,opts...gax.CallOption)*OrchestrationClusterIteratorListOrchestrationClusters lists OrchestrationClusters in a given project and location.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb""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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListOrchestrationClustersRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListOrchestrationClustersRequest.}it:=c.ListOrchestrationClusters(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.(*telcoautomationpb.ListOrchestrationClustersResponse)}}all
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListOrchestrationClustersRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListOrchestrationClustersRequest.}forresp,err:=rangec.ListOrchestrationClusters(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListPublicBlueprints
func(c*Client)ListPublicBlueprints(ctxcontext.Context,req*telcoautomationpb.ListPublicBlueprintsRequest,opts...gax.CallOption)*PublicBlueprintIteratorListPublicBlueprints lists the blueprints in TNA’s public catalog. Default page size = 20,Max Page Size = 100.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb""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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListPublicBlueprintsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListPublicBlueprintsRequest.}it:=c.ListPublicBlueprints(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.(*telcoautomationpb.ListPublicBlueprintsResponse)}}all
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ListPublicBlueprintsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ListPublicBlueprintsRequest.}forresp,err:=rangec.ListPublicBlueprints(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ProposeBlueprint
func(c*Client)ProposeBlueprint(ctxcontext.Context,req*telcoautomationpb.ProposeBlueprintRequest,opts...gax.CallOption)(*telcoautomationpb.Blueprint,error)ProposeBlueprint proposes a blueprint for approval of changes.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.ProposeBlueprintRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#ProposeBlueprintRequest.}resp,err:=c.ProposeBlueprint(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) RejectBlueprint
func(c*Client)RejectBlueprint(ctxcontext.Context,req*telcoautomationpb.RejectBlueprintRequest,opts...gax.CallOption)(*telcoautomationpb.Blueprint,error)RejectBlueprint rejects a blueprint revision proposal and flips it back to Draft state.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.RejectBlueprintRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#RejectBlueprintRequest.}resp,err:=c.RejectBlueprint(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) RemoveDeployment
func(c*Client)RemoveDeployment(ctxcontext.Context,req*telcoautomationpb.RemoveDeploymentRequest,opts...gax.CallOption)errorRemoveDeployment removes the deployment by marking it as DELETING. Post which deployment andit’s revisions gets deleted.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.RemoveDeploymentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#RemoveDeploymentRequest.}err=c.RemoveDeployment(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) RollbackDeployment
func(c*Client)RollbackDeployment(ctxcontext.Context,req*telcoautomationpb.RollbackDeploymentRequest,opts...gax.CallOption)(*telcoautomationpb.Deployment,error)RollbackDeployment rollback the active deployment to the given past approved deploymentrevision.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.RollbackDeploymentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#RollbackDeploymentRequest.}resp,err:=c.RollbackDeployment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) SearchBlueprintRevisions
func(c*Client)SearchBlueprintRevisions(ctxcontext.Context,req*telcoautomationpb.SearchBlueprintRevisionsRequest,opts...gax.CallOption)*BlueprintIteratorSearchBlueprintRevisions searches across blueprint revisions.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb""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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.SearchBlueprintRevisionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#SearchBlueprintRevisionsRequest.}it:=c.SearchBlueprintRevisions(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.(*telcoautomationpb.SearchBlueprintRevisionsResponse)}}all
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.SearchBlueprintRevisionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#SearchBlueprintRevisionsRequest.}forresp,err:=rangec.SearchBlueprintRevisions(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) SearchDeploymentRevisions
func(c*Client)SearchDeploymentRevisions(ctxcontext.Context,req*telcoautomationpb.SearchDeploymentRevisionsRequest,opts...gax.CallOption)*DeploymentIteratorSearchDeploymentRevisions searches across deployment revisions.
Examples
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb""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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.SearchDeploymentRevisionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#SearchDeploymentRevisionsRequest.}it:=c.SearchDeploymentRevisions(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.(*telcoautomationpb.SearchDeploymentRevisionsResponse)}}all
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.SearchDeploymentRevisionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#SearchDeploymentRevisionsRequest.}forresp,err:=rangec.SearchDeploymentRevisions(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) UpdateBlueprint
func(c*Client)UpdateBlueprint(ctxcontext.Context,req*telcoautomationpb.UpdateBlueprintRequest,opts...gax.CallOption)(*telcoautomationpb.Blueprint,error)UpdateBlueprint updates a blueprint.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.UpdateBlueprintRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#UpdateBlueprintRequest.}resp,err:=c.UpdateBlueprint(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateDeployment
func(c*Client)UpdateDeployment(ctxcontext.Context,req*telcoautomationpb.UpdateDeploymentRequest,opts...gax.CallOption)(*telcoautomationpb.Deployment,error)UpdateDeployment updates a deployment.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.UpdateDeploymentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#UpdateDeploymentRequest.}resp,err:=c.UpdateDeployment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateHydratedDeployment
func(c*Client)UpdateHydratedDeployment(ctxcontext.Context,req*telcoautomationpb.UpdateHydratedDeploymentRequest,opts...gax.CallOption)(*telcoautomationpb.HydratedDeployment,error)UpdateHydratedDeployment updates a hydrated deployment.
Example
packagemainimport("context"telcoautomation"cloud.google.com/go/telcoautomation/apiv1"telcoautomationpb"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb")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:=telcoautomation.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&telcoautomationpb.UpdateHydratedDeploymentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#UpdateHydratedDeploymentRequest.}resp,err:=c.UpdateHydratedDeployment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}CreateEdgeSlmOperation
typeCreateEdgeSlmOperationstruct{// contains filtered or unexported fields}CreateEdgeSlmOperation manages a long-running operation from CreateEdgeSlm.
func (*CreateEdgeSlmOperation) Done
func(op*CreateEdgeSlmOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateEdgeSlmOperation) Metadata
func(op*CreateEdgeSlmOperation)Metadata()(*telcoautomationpb.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 (*CreateEdgeSlmOperation) Name
func(op*CreateEdgeSlmOperation)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 (*CreateEdgeSlmOperation) Poll
func(op*CreateEdgeSlmOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*telcoautomationpb.EdgeSlm,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 (*CreateEdgeSlmOperation) Wait
func(op*CreateEdgeSlmOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*telcoautomationpb.EdgeSlm,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.
CreateOrchestrationClusterOperation
typeCreateOrchestrationClusterOperationstruct{// contains filtered or unexported fields}CreateOrchestrationClusterOperation manages a long-running operation from CreateOrchestrationCluster.
func (*CreateOrchestrationClusterOperation) Done
func(op*CreateOrchestrationClusterOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateOrchestrationClusterOperation) Metadata
func(op*CreateOrchestrationClusterOperation)Metadata()(*telcoautomationpb.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 (*CreateOrchestrationClusterOperation) Name
func(op*CreateOrchestrationClusterOperation)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 (*CreateOrchestrationClusterOperation) Poll
func(op*CreateOrchestrationClusterOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*telcoautomationpb.OrchestrationCluster,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 (*CreateOrchestrationClusterOperation) Wait
func(op*CreateOrchestrationClusterOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*telcoautomationpb.OrchestrationCluster,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.
DeleteEdgeSlmOperation
typeDeleteEdgeSlmOperationstruct{// contains filtered or unexported fields}DeleteEdgeSlmOperation manages a long-running operation from DeleteEdgeSlm.
func (*DeleteEdgeSlmOperation) Done
func(op*DeleteEdgeSlmOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteEdgeSlmOperation) Metadata
func(op*DeleteEdgeSlmOperation)Metadata()(*telcoautomationpb.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 (*DeleteEdgeSlmOperation) Name
func(op*DeleteEdgeSlmOperation)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 (*DeleteEdgeSlmOperation) Poll
func(op*DeleteEdgeSlmOperation)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 (*DeleteEdgeSlmOperation) Wait
func(op*DeleteEdgeSlmOperation)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.
DeleteOrchestrationClusterOperation
typeDeleteOrchestrationClusterOperationstruct{// contains filtered or unexported fields}DeleteOrchestrationClusterOperation manages a long-running operation from DeleteOrchestrationCluster.
func (*DeleteOrchestrationClusterOperation) Done
func(op*DeleteOrchestrationClusterOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteOrchestrationClusterOperation) Metadata
func(op*DeleteOrchestrationClusterOperation)Metadata()(*telcoautomationpb.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 (*DeleteOrchestrationClusterOperation) Name
func(op*DeleteOrchestrationClusterOperation)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 (*DeleteOrchestrationClusterOperation) Poll
func(op*DeleteOrchestrationClusterOperation)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 (*DeleteOrchestrationClusterOperation) Wait
func(op*DeleteOrchestrationClusterOperation)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.
DeploymentIterator
typeDeploymentIteratorstruct{// 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[]*telcoautomationpb.Deployment,nextPageTokenstring,errerror)// contains filtered or unexported fields}DeploymentIterator manages a stream of *telcoautomationpb.Deployment.
func (*DeploymentIterator) All
func(it*DeploymentIterator)All()iter.Seq2[*telcoautomationpb.Deployment,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*DeploymentIterator) Next
func(it*DeploymentIterator)Next()(*telcoautomationpb.Deployment,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 (*DeploymentIterator) PageInfo
func(it*DeploymentIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
EdgeSlmIterator
typeEdgeSlmIteratorstruct{// 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[]*telcoautomationpb.EdgeSlm,nextPageTokenstring,errerror)// contains filtered or unexported fields}EdgeSlmIterator manages a stream of *telcoautomationpb.EdgeSlm.
func (*EdgeSlmIterator) All
func(it*EdgeSlmIterator)All()iter.Seq2[*telcoautomationpb.EdgeSlm,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*EdgeSlmIterator) Next
func(it*EdgeSlmIterator)Next()(*telcoautomationpb.EdgeSlm,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 (*EdgeSlmIterator) PageInfo
func(it*EdgeSlmIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
HydratedDeploymentIterator
typeHydratedDeploymentIteratorstruct{// 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[]*telcoautomationpb.HydratedDeployment,nextPageTokenstring,errerror)// contains filtered or unexported fields}HydratedDeploymentIterator manages a stream of *telcoautomationpb.HydratedDeployment.
func (*HydratedDeploymentIterator) All
func(it*HydratedDeploymentIterator)All()iter.Seq2[*telcoautomationpb.HydratedDeployment,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*HydratedDeploymentIterator) Next
func(it*HydratedDeploymentIterator)Next()(*telcoautomationpb.HydratedDeployment,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 (*HydratedDeploymentIterator) PageInfo
func(it*HydratedDeploymentIterator)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.
OrchestrationClusterIterator
typeOrchestrationClusterIteratorstruct{// 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[]*telcoautomationpb.OrchestrationCluster,nextPageTokenstring,errerror)// contains filtered or unexported fields}OrchestrationClusterIterator manages a stream of *telcoautomationpb.OrchestrationCluster.
func (*OrchestrationClusterIterator) All
func(it*OrchestrationClusterIterator)All()iter.Seq2[*telcoautomationpb.OrchestrationCluster,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*OrchestrationClusterIterator) Next
func(it*OrchestrationClusterIterator)Next()(*telcoautomationpb.OrchestrationCluster,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 (*OrchestrationClusterIterator) PageInfo
func(it*OrchestrationClusterIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
PublicBlueprintIterator
typePublicBlueprintIteratorstruct{// 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[]*telcoautomationpb.PublicBlueprint,nextPageTokenstring,errerror)// contains filtered or unexported fields}PublicBlueprintIterator manages a stream of *telcoautomationpb.PublicBlueprint.
func (*PublicBlueprintIterator) All
func(it*PublicBlueprintIterator)All()iter.Seq2[*telcoautomationpb.PublicBlueprint,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*PublicBlueprintIterator) Next
func(it*PublicBlueprintIterator)Next()(*telcoautomationpb.PublicBlueprint,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 (*PublicBlueprintIterator) PageInfo
func(it*PublicBlueprintIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
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.