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.
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.
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
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) 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
}
func (*Client) DiscardDeploymentChanges
func
(
c
*
Client
)
DiscardDeploymentChanges
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
DiscardDeploymentChangesRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
DiscardDeploymentChangesResponse
,
error
)
DiscardDeploymentChanges discards the changes in a deployment and reverts the deployment to the last approved deployment revision. No changes take place if a deployment 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) GetBlueprint
func
(
c
*
Client
)
GetBlueprint
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
GetBlueprintRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
Blueprint
,
error
)
GetBlueprint returns the requested 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) GetDeployment
func
(
c
*
Client
)
GetDeployment
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
GetDeploymentRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
Deployment
,
error
)
GetDeployment returns the requested 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) GetEdgeSlm
func
(
c
*
Client
)
GetEdgeSlm
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
GetEdgeSlmRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
EdgeSlm
,
error
)
GetEdgeSlm gets details of 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) GetHydratedDeployment
func
(
c
*
Client
)
GetHydratedDeployment
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
GetHydratedDeploymentRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
HydratedDeployment
,
error
)
GetHydratedDeployment returns the requested hydrated 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) GetLocation
func
(
c
*
Client
)
GetLocation
(
ctx
context
.
Context
,
req
*
locationpb
.
GetLocationRequest
,
opts
...
gax
.
CallOption
)
(
*
locationpb
.
Location
,
error
)
GetLocation gets information about a location.
Example
package
main
import
(
"context"
telcoautomation
"cloud.google.com/go/telcoautomation/apiv1"
locationpb
"google.golang.org/genproto/googleapis/cloud/location"
)
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
:=
& 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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) GetOperation
func
(
c
*
Client
)
GetOperation
(
ctx
context
.
Context
,
req
*
longrunningpb
.
GetOperationRequest
,
opts
...
gax
.
CallOption
)
(
*
longrunningpb
.
Operation
,
error
)
GetOperation 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) GetOrchestrationCluster
func
(
c
*
Client
)
GetOrchestrationCluster
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
GetOrchestrationClusterRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
OrchestrationCluster
,
error
)
GetOrchestrationCluster gets details of 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) GetPublicBlueprint
func
(
c
*
Client
)
GetPublicBlueprint
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
GetPublicBlueprintRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
PublicBlueprint
,
error
)
GetPublicBlueprint returns the requested public 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) ListBlueprintRevisions
func
(
c
*
Client
)
ListBlueprintRevisions
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
ListBlueprintRevisionsRequest
,
opts
...
gax
.
CallOption
)
*
BlueprintIterator
ListBlueprintRevisions list blueprint revisions of a given blueprint.
Example
package
main
import
(
"context"
telcoautomation
"cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb
"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) ListBlueprints
func
(
c
*
Client
)
ListBlueprints
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
ListBlueprintsRequest
,
opts
...
gax
.
CallOption
)
*
BlueprintIterator
ListBlueprints list all blueprints.
Example
package
main
import
(
"context"
telcoautomation
"cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb
"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) ListDeploymentRevisions
func
(
c
*
Client
)
ListDeploymentRevisions
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
ListDeploymentRevisionsRequest
,
opts
...
gax
.
CallOption
)
*
DeploymentIterator
ListDeploymentRevisions list deployment revisions of a given deployment.
Example
package
main
import
(
"context"
telcoautomation
"cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb
"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) ListDeployments
func
(
c
*
Client
)
ListDeployments
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
ListDeploymentsRequest
,
opts
...
gax
.
CallOption
)
*
DeploymentIterator
ListDeployments list all deployments.
Example
package
main
import
(
"context"
telcoautomation
"cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb
"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) ListEdgeSlms
func
(
c
*
Client
)
ListEdgeSlms
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
ListEdgeSlmsRequest
,
opts
...
gax
.
CallOption
)
*
EdgeSlmIterator
ListEdgeSlms lists EdgeSlms 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"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) ListHydratedDeployments
func
(
c
*
Client
)
ListHydratedDeployments
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
ListHydratedDeploymentsRequest
,
opts
...
gax
.
CallOption
)
*
HydratedDeploymentIterator
ListHydratedDeployments list all hydrated deployments present under a deployment.
Example
package
main
import
(
"context"
telcoautomation
"cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb
"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) ListLocations
func
(
c
*
Client
)
ListLocations
(
ctx
context
.
Context
,
req
*
locationpb
.
ListLocationsRequest
,
opts
...
gax
.
CallOption
)
*
LocationIterator
ListLocations lists information about the supported locations for this service.
Example
package
main
import
(
"context"
telcoautomation
"cloud.google.com/go/telcoautomation/apiv1"
"google.golang.org/api/iterator"
locationpb
"google.golang.org/genproto/googleapis/cloud/location"
)
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
:=
& 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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) ListOperations
func
(
c
*
Client
)
ListOperations
(
ctx
context
.
Context
,
req
*
longrunningpb
.
ListOperationsRequest
,
opts
...
gax
.
CallOption
)
*
OperationIterator
ListOperations 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"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) ListOrchestrationClusters
func
(
c
*
Client
)
ListOrchestrationClusters
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
ListOrchestrationClustersRequest
,
opts
...
gax
.
CallOption
)
*
OrchestrationClusterIterator
ListOrchestrationClusters lists OrchestrationClusters 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"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) ListPublicBlueprints
func
(
c
*
Client
)
ListPublicBlueprints
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
ListPublicBlueprintsRequest
,
opts
...
gax
.
CallOption
)
*
PublicBlueprintIterator
ListPublicBlueprints lists the blueprints in TNA’s public catalog. Default page size = 20, Max Page Size = 100.
Example
package
main
import
(
"context"
telcoautomation
"cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb
"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) ProposeBlueprint
func
(
c
*
Client
)
ProposeBlueprint
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
ProposeBlueprintRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
Blueprint
,
error
)
ProposeBlueprint proposes a blueprint for approval of changes.
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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) RejectBlueprint
func
(
c
*
Client
)
RejectBlueprint
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
RejectBlueprintRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
Blueprint
,
error
)
RejectBlueprint rejects a blueprint revision proposal and flips it back to Draft state.
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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) RemoveDeployment
func
(
c
*
Client
)
RemoveDeployment
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
RemoveDeploymentRequest
,
opts
...
gax
.
CallOption
)
error
RemoveDeployment removes the deployment by marking it as DELETING. Post which deployment and it’s revisions gets deleted.
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
.
RemoveDeploymentRequest
{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb#RemoveDeploymentRequest.
}
err
=
c
.
RemoveDeployment
(
ctx
,
req
)
if
err
!=
nil
{
// TODO: Handle error.
}
}
func (*Client) RollbackDeployment
func
(
c
*
Client
)
RollbackDeployment
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
RollbackDeploymentRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
Deployment
,
error
)
RollbackDeployment rollback the active deployment to the given past approved deployment 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) SearchBlueprintRevisions
func
(
c
*
Client
)
SearchBlueprintRevisions
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
SearchBlueprintRevisionsRequest
,
opts
...
gax
.
CallOption
)
*
BlueprintIterator
SearchBlueprintRevisions searches across blueprint revisions.
Example
package
main
import
(
"context"
telcoautomation
"cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb
"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) SearchDeploymentRevisions
func
(
c
*
Client
)
SearchDeploymentRevisions
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
SearchDeploymentRevisionsRequest
,
opts
...
gax
.
CallOption
)
*
DeploymentIterator
SearchDeploymentRevisions searches across deployment revisions.
Example
package
main
import
(
"context"
telcoautomation
"cloud.google.com/go/telcoautomation/apiv1"
telcoautomationpb
"cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb"
"google.golang.org/api/iterator"
)
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
.
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
()
if
err
==
iterator
.
Done
{
break
}
if
err
!=
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
)
}
}
func (*Client) UpdateBlueprint
func
(
c
*
Client
)
UpdateBlueprint
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
UpdateBlueprintRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
Blueprint
,
error
)
UpdateBlueprint updates 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) UpdateDeployment
func
(
c
*
Client
)
UpdateDeployment
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
UpdateDeploymentRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
Deployment
,
error
)
UpdateDeployment updates 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
func (*Client) UpdateHydratedDeployment
func
(
c
*
Client
)
UpdateHydratedDeployment
(
ctx
context
.
Context
,
req
*
telcoautomationpb
.
UpdateHydratedDeploymentRequest
,
opts
...
gax
.
CallOption
)
(
*
telcoautomationpb
.
HydratedDeployment
,
error
)
UpdateHydratedDeployment updates a hydrated 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
.
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
)
if
err
!=
nil
{
// TODO: Handle error.
}
// TODO: Use resp.
_
=
resp
}
CreateEdgeSlmOperation
type
CreateEdgeSlmOperation
struct
{
// contains filtered or unexported fields
}
CreateEdgeSlmOperation manages a long-running operation from CreateEdgeSlm.
func (*CreateEdgeSlmOperation) Done
func
(
op
*
CreateEdgeSlmOperation
)
Done
()
bool
Done 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
()
string
Name 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
(
ctx
context
.
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 and the 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
(
ctx
context
.
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
type
CreateOrchestrationClusterOperation
struct
{
// contains filtered or unexported fields
}
CreateOrchestrationClusterOperation manages a long-running operation from CreateOrchestrationCluster.
func (*CreateOrchestrationClusterOperation) Done
func
(
op
*
CreateOrchestrationClusterOperation
)
Done
()
bool
Done 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
()
string
Name 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
(
ctx
context
.
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 and the 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
(
ctx
context
.
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
type
DeleteEdgeSlmOperation
struct
{
// contains filtered or unexported fields
}
DeleteEdgeSlmOperation manages a long-running operation from DeleteEdgeSlm.
func (*DeleteEdgeSlmOperation) Done
func
(
op
*
DeleteEdgeSlmOperation
)
Done
()
bool
Done 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
()
string
Name 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
(
ctx
context
.
Context
,
opts
...
gax
.
CallOption
)
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 and the 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
(
ctx
context
.
Context
,
opts
...
gax
.
CallOption
)
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.
DeleteOrchestrationClusterOperation
type
DeleteOrchestrationClusterOperation
struct
{
// contains filtered or unexported fields
}
DeleteOrchestrationClusterOperation manages a long-running operation from DeleteOrchestrationCluster.
func (*DeleteOrchestrationClusterOperation) Done
func
(
op
*
DeleteOrchestrationClusterOperation
)
Done
()
bool
Done 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
()
string
Name 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
(
ctx
context
.
Context
,
opts
...
gax
.
CallOption
)
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 and the 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
(
ctx
context
.
Context
,
opts
...
gax
.
CallOption
)
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.
DeploymentIterator
type
DeploymentIterator
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
.
Deployment
,
nextPageToken
string
,
err
error
)
// contains filtered or unexported fields
}
DeploymentIterator manages a stream of *telcoautomationpb.Deployment.
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 more results. Once Next returns Done, all subsequent calls will return Done.
func (*DeploymentIterator) PageInfo
func
(
it
*
DeploymentIterator
)
PageInfo
()
*
iterator
.
PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
EdgeSlmIterator
type
EdgeSlmIterator
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
.
EdgeSlm
,
nextPageToken
string
,
err
error
)
// contains filtered or unexported fields
}
EdgeSlmIterator manages a stream of *telcoautomationpb.EdgeSlm.
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 more results. Once Next returns Done, all subsequent calls will return Done.
func (*EdgeSlmIterator) PageInfo
func
(
it
*
EdgeSlmIterator
)
PageInfo
()
*
iterator
.
PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
HydratedDeploymentIterator
type
HydratedDeploymentIterator
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
.
HydratedDeployment
,
nextPageToken
string
,
err
error
)
// contains filtered or unexported fields
}
HydratedDeploymentIterator manages a stream of *telcoautomationpb.HydratedDeployment.
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 more results. Once Next returns Done, all subsequent calls will return Done.
func (*HydratedDeploymentIterator) PageInfo
func
(
it
*
HydratedDeploymentIterator
)
PageInfo
()
*
iterator
.
PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
LocationIterator
type
LocationIterator
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
[]
*
locationpb
.
Location
,
nextPageToken
string
,
err
error
)
// contains filtered or unexported fields
}
LocationIterator manages a stream of *locationpb.Location.
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 more results. Once Next returns Done, all subsequent calls will return Done.
func (*LocationIterator) PageInfo
func
(
it
*
LocationIterator
)
PageInfo
()
*
iterator
.
PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
OperationIterator
type
OperationIterator
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
[]
*
longrunningpb
.
Operation
,
nextPageToken
string
,
err
error
)
// contains filtered or unexported fields
}
OperationIterator manages a stream of *longrunningpb.Operation.
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 more results. Once Next returns Done, all subsequent calls will return Done.
func (*OperationIterator) PageInfo
func
(
it
*
OperationIterator
)
PageInfo
()
*
iterator
.
PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
OrchestrationClusterIterator
type
OrchestrationClusterIterator
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
.
OrchestrationCluster
,
nextPageToken
string
,
err
error
)
// contains filtered or unexported fields
}
OrchestrationClusterIterator manages a stream of *telcoautomationpb.OrchestrationCluster.
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 more results. Once Next returns Done, all subsequent calls will return Done.
func (*OrchestrationClusterIterator) PageInfo
func
(
it
*
OrchestrationClusterIterator
)
PageInfo
()
*
iterator
.
PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
PublicBlueprintIterator
type
PublicBlueprintIterator
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
.
PublicBlueprint
,
nextPageToken
string
,
err
error
)
// contains filtered or unexported fields
}
PublicBlueprintIterator manages a stream of *telcoautomationpb.PublicBlueprint.
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 more results. Once Next returns Done, all subsequent calls will return Done.
func (*PublicBlueprintIterator) PageInfo
func
(
it
*
PublicBlueprintIterator
)
PageInfo
()
*
iterator
.
PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.