Package telcoautomation is an auto-generated package for the Telco Automation API.
APIs to automate management of cloud infrastructure for network functions.
General documentation
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page 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@latest 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_Options c, err := telcoautomation.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.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) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp
Use of Context
The ctx passed to NewClient is used for authentication requests and for 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
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
BlueprintIterator
type BlueprintIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*telcoautomationpb.Blueprint, nextPageToken string, err error)
// 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, the iterator 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 more results. Once Next returns Done, all subsequent calls will return Done.
func (*BlueprintIterator) PageInfo
func (it *BlueprintIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
CallOptions
type CallOptions struct {
ListOrchestrationClusters []gax.CallOption
GetOrchestrationCluster []gax.CallOption
CreateOrchestrationCluster []gax.CallOption
DeleteOrchestrationCluster []gax.CallOption
ListEdgeSlms []gax.CallOption
GetEdgeSlm []gax.CallOption
CreateEdgeSlm []gax.CallOption
DeleteEdgeSlm []gax.CallOption
CreateBlueprint []gax.CallOption
UpdateBlueprint []gax.CallOption
GetBlueprint []gax.CallOption
DeleteBlueprint []gax.CallOption
ListBlueprints []gax.CallOption
ApproveBlueprint []gax.CallOption
ProposeBlueprint []gax.CallOption
RejectBlueprint []gax.CallOption
ListBlueprintRevisions []gax.CallOption
SearchBlueprintRevisions []gax.CallOption
SearchDeploymentRevisions []gax.CallOption
DiscardBlueprintChanges []gax.CallOption
ListPublicBlueprints []gax.CallOption
GetPublicBlueprint []gax.CallOption
CreateDeployment []gax.CallOption
UpdateDeployment []gax.CallOption
GetDeployment []gax.CallOption
RemoveDeployment []gax.CallOption
ListDeployments []gax.CallOption
ListDeploymentRevisions []gax.CallOption
DiscardDeploymentChanges []gax.CallOption
ApplyDeployment []gax.CallOption
ComputeDeploymentStatus []gax.CallOption
RollbackDeployment []gax.CallOption
GetHydratedDeployment []gax.CallOption
ListHydratedDeployments []gax.CallOption
UpdateHydratedDeployment []gax.CallOption
ApplyHydratedDeployment []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
CallOptions contains the retry settings for each method of Client.
Client
type Client struct {
// 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 also exposes blueprint APIs which manages the lifecycle of blueprints that control the infrastructure setup (e.g GDCE clusters) and deployment of network functions.
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 also exposes blueprint APIs which manages the lifecycle of blueprints that control the infrastructure setup (e.g GDCE clusters) and deployment of network functions.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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 also exposes blueprint APIs which manages the lifecycle of blueprints that control the infrastructure setup (e.g GDCE clusters) and deployment of network functions.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
)
func main() {
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_Options
c, err := telcoautomation.NewRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func (*Client) ApplyDeployment
func (c *Client) ApplyDeployment(ctx context.Context, req *telcoautomationpb.ApplyDeploymentRequest, opts ...gax.CallOption) (*telcoautomationpb.Deployment, error)
ApplyDeployment applies the deployment’s YAML files to the parent orchestration cluster.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ApplyHydratedDeployment
func (c *Client) ApplyHydratedDeployment(ctx context.Context, req *telcoautomationpb.ApplyHydratedDeploymentRequest, opts ...gax.CallOption) (*telcoautomationpb.HydratedDeployment, error)
ApplyHydratedDeployment applies a hydrated deployment to a workload cluster.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ApproveBlueprint
func (c *Client) ApproveBlueprint(ctx context.Context, req *telcoautomationpb.ApproveBlueprintRequest, opts ...gax.CallOption) (*telcoautomationpb.Blueprint, error)
ApproveBlueprint approves a blueprint and commits a new revision.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CancelOperation
func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) Close
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*Client) ComputeDeploymentStatus
func (c *Client) ComputeDeploymentStatus(ctx context.Context, req *telcoautomationpb.ComputeDeploymentStatusRequest, opts ...gax.CallOption) (*telcoautomationpb.ComputeDeploymentStatusResponse, error)
ComputeDeploymentStatus returns the requested deployment status.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) Connection (deprecated)
func (c *Client) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*Client) CreateBlueprint
func (c *Client) CreateBlueprint(ctx context.Context, req *telcoautomationpb.CreateBlueprintRequest, opts ...gax.CallOption) (*telcoautomationpb.Blueprint, error)
CreateBlueprint creates a blueprint.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateDeployment
func (c *Client) CreateDeployment(ctx context.Context, req *telcoautomationpb.CreateDeploymentRequest, opts ...gax.CallOption) (*telcoautomationpb.Deployment, error)
CreateDeployment creates a deployment.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateEdgeSlm
func (c *Client) CreateEdgeSlm(ctx context.Context, req *telcoautomationpb.CreateEdgeSlmRequest, opts ...gax.CallOption) (*CreateEdgeSlmOperation, error)
CreateEdgeSlm creates a new EdgeSlm in a given project and location.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateEdgeSlmOperation
func (c *Client) CreateEdgeSlmOperation(name string) *CreateEdgeSlmOperation
CreateEdgeSlmOperation 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(ctx context.Context, req *telcoautomationpb.CreateOrchestrationClusterRequest, opts ...gax.CallOption) (*CreateOrchestrationClusterOperation, error)
CreateOrchestrationCluster creates a new OrchestrationCluster in a given project and location.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateOrchestrationClusterOperation
func (c *Client) CreateOrchestrationClusterOperation(name string) *CreateOrchestrationClusterOperation
CreateOrchestrationClusterOperation 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(ctx context.Context, req *telcoautomationpb.DeleteBlueprintRequest, opts ...gax.CallOption) error
DeleteBlueprint deletes a blueprint and all its revisions.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteEdgeSlm
func (c *Client) DeleteEdgeSlm(ctx context.Context, req *telcoautomationpb.DeleteEdgeSlmRequest, opts ...gax.CallOption) (*DeleteEdgeSlmOperation, error)
DeleteEdgeSlm deletes a single EdgeSlm.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteEdgeSlmOperation
func (c *Client) DeleteEdgeSlmOperation(name string) *DeleteEdgeSlmOperation
DeleteEdgeSlmOperation 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(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteOrchestrationCluster
func (c *Client) DeleteOrchestrationCluster(ctx context.Context, req *telcoautomationpb.DeleteOrchestrationClusterRequest, opts ...gax.CallOption) (*DeleteOrchestrationClusterOperation, error)
DeleteOrchestrationCluster deletes a single OrchestrationCluster.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteOrchestrationClusterOperation
func (c *Client) DeleteOrchestrationClusterOperation(name string) *DeleteOrchestrationClusterOperation
DeleteOrchestrationClusterOperation 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(ctx context.Context, req *telcoautomationpb.DiscardBlueprintChangesRequest, opts ...gax.CallOption) (*telcoautomationpb.DiscardBlueprintChangesResponse, error)
DiscardBlueprintChanges discards the changes in a blueprint and reverts the blueprint to the last approved blueprint revision. No changes take place if a blueprint does not have revisions.
Example
package main
import (
"context"
telcoautomation "cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
)
func main() {
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_Options
c, err := telcoautomation.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}