Package certificatemanager is an auto-generated package for the Certificate Manager API.
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/certificatemanager/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 := certificatemanager.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 := &certificatemanagerpb.CreateCertificateRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#CreateCertificateRequest. } op, err := c.CreateCertificate(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) 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.
CallOptions
type CallOptions struct {
ListCertificates []gax.CallOption
GetCertificate []gax.CallOption
CreateCertificate []gax.CallOption
UpdateCertificate []gax.CallOption
DeleteCertificate []gax.CallOption
ListCertificateMaps []gax.CallOption
GetCertificateMap []gax.CallOption
CreateCertificateMap []gax.CallOption
UpdateCertificateMap []gax.CallOption
DeleteCertificateMap []gax.CallOption
ListCertificateMapEntries []gax.CallOption
GetCertificateMapEntry []gax.CallOption
CreateCertificateMapEntry []gax.CallOption
UpdateCertificateMapEntry []gax.CallOption
DeleteCertificateMapEntry []gax.CallOption
ListDnsAuthorizations []gax.CallOption
GetDnsAuthorization []gax.CallOption
CreateDnsAuthorization []gax.CallOption
UpdateDnsAuthorization []gax.CallOption
DeleteDnsAuthorization []gax.CallOption
ListCertificateIssuanceConfigs []gax.CallOption
GetCertificateIssuanceConfig []gax.CallOption
CreateCertificateIssuanceConfig []gax.CallOption
DeleteCertificateIssuanceConfig []gax.CallOption
ListTrustConfigs []gax.CallOption
GetTrustConfig []gax.CallOption
CreateTrustConfig []gax.CallOption
UpdateTrustConfig []gax.CallOption
DeleteTrustConfig []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.
CertificateIssuanceConfigIterator
type CertificateIssuanceConfigIterator 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 []*certificatemanagerpb.CertificateIssuanceConfig, nextPageToken string, err error)
// contains filtered or unexported fields
}
CertificateIssuanceConfigIterator manages a stream of *certificatemanagerpb.CertificateIssuanceConfig.
func (*CertificateIssuanceConfigIterator) All
func (it *CertificateIssuanceConfigIterator) All() iter.Seq2[*certificatemanagerpb.CertificateIssuanceConfig, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*CertificateIssuanceConfigIterator) Next
func (it *CertificateIssuanceConfigIterator) Next() (*certificatemanagerpb.CertificateIssuanceConfig, 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 (*CertificateIssuanceConfigIterator) PageInfo
func (it *CertificateIssuanceConfigIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
CertificateIterator
type CertificateIterator 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 []*certificatemanagerpb.Certificate, nextPageToken string, err error)
// contains filtered or unexported fields
}
CertificateIterator manages a stream of *certificatemanagerpb.Certificate.
func (*CertificateIterator) All
func (it *CertificateIterator) All() iter.Seq2[*certificatemanagerpb.Certificate, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*CertificateIterator) Next
func (it *CertificateIterator) Next() (*certificatemanagerpb.Certificate, 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 (*CertificateIterator) PageInfo
func (it *CertificateIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
CertificateMapEntryIterator
type CertificateMapEntryIterator 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 []*certificatemanagerpb.CertificateMapEntry, nextPageToken string, err error)
// contains filtered or unexported fields
}
CertificateMapEntryIterator manages a stream of *certificatemanagerpb.CertificateMapEntry.
func (*CertificateMapEntryIterator) All
func (it *CertificateMapEntryIterator) All() iter.Seq2[*certificatemanagerpb.CertificateMapEntry, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*CertificateMapEntryIterator) Next
func (it *CertificateMapEntryIterator) Next() (*certificatemanagerpb.CertificateMapEntry, 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 (*CertificateMapEntryIterator) PageInfo
func (it *CertificateMapEntryIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
CertificateMapIterator
type CertificateMapIterator 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 []*certificatemanagerpb.CertificateMap, nextPageToken string, err error)
// contains filtered or unexported fields
}
CertificateMapIterator manages a stream of *certificatemanagerpb.CertificateMap.
func (*CertificateMapIterator) All
func (it *CertificateMapIterator) All() iter.Seq2[*certificatemanagerpb.CertificateMap, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*CertificateMapIterator) Next
func (it *CertificateMapIterator) Next() (*certificatemanagerpb.CertificateMap, 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 (*CertificateMapIterator) PageInfo
func (it *CertificateMapIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
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 Certificate Manager API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
API Overview
Certificates Manager API allows customers to see and manage all their TLS certificates.
Certificates Manager API service provides methods to manage certificates, group them into collections, and create serving configuration that can be easily applied to other Cloud resources e.g. Target Proxies.
Data Model
The Certificates Manager service exposes the following resources:
Certificate that describes a single TLS certificate.
CertificateMap that describes a collection of certificates that can be
attached to a target resource.
CertificateMapEntry that describes a single configuration entry that
consists of a SNI and a group of certificates. It’s a subresource of
CertificateMap.
Certificate, CertificateMap and CertificateMapEntry IDs have to fully match the regexp [a-z0-9-]{1,63}. In other words,
only lower case letters, digits, and hyphen are allowed
length of the resource ID has to be in [1,63] range.
Provides methods to manage Cloud Certificate Manager entities.
func NewClient
NewClient creates a new certificate manager client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
API Overview
Certificates Manager API allows customers to see and manage all their TLS certificates.
Certificates Manager API service provides methods to manage certificates, group them into collections, and create serving configuration that can be easily applied to other Cloud resources e.g. Target Proxies.
Data Model
The Certificates Manager service exposes the following resources:
Certificate that describes a single TLS certificate.
CertificateMap that describes a collection of certificates that can be
attached to a target resource.
CertificateMapEntry that describes a single configuration entry that
consists of a SNI and a group of certificates. It’s a subresource of
CertificateMap.
Certificate, CertificateMap and CertificateMapEntry IDs have to fully match the regexp [a-z0-9-]{1,63}. In other words,
only lower case letters, digits, and hyphen are allowed
length of the resource ID has to be in [1,63] range.
Provides methods to manage Cloud Certificate Manager entities.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func NewRESTClient
NewRESTClient creates a new certificate manager rest client.
API Overview
Certificates Manager API allows customers to see and manage all their TLS certificates.
Certificates Manager API service provides methods to manage certificates, group them into collections, and create serving configuration that can be easily applied to other Cloud resources e.g. Target Proxies.
Data Model
The Certificates Manager service exposes the following resources:
Certificate that describes a single TLS certificate.
CertificateMap that describes a collection of certificates that can be
attached to a target resource.
CertificateMapEntry that describes a single configuration entry that
consists of a SNI and a group of certificates. It’s a subresource of
CertificateMap.
Certificate, CertificateMap and CertificateMapEntry IDs have to fully match the regexp [a-z0-9-]{1,63}. In other words,
only lower case letters, digits, and hyphen are allowed
length of the resource ID has to be in [1,63] range.
Provides methods to manage Cloud Certificate Manager entities.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/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 := certificatemanager.NewRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
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"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
)
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 := certificatemanager.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) 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) CreateCertificate
func (c *Client) CreateCertificate(ctx context.Context, req *certificatemanagerpb.CreateCertificateRequest, opts ...gax.CallOption) (*CreateCertificateOperation, error)
CreateCertificate creates a new Certificate in a given project and location.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.CreateCertificateRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#CreateCertificateRequest.
}
op, err := c.CreateCertificate(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) CreateCertificateIssuanceConfig
func (c *Client) CreateCertificateIssuanceConfig(ctx context.Context, req *certificatemanagerpb.CreateCertificateIssuanceConfigRequest, opts ...gax.CallOption) (*CreateCertificateIssuanceConfigOperation, error)
CreateCertificateIssuanceConfig creates a new CertificateIssuanceConfig in a given project and location.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.CreateCertificateIssuanceConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#CreateCertificateIssuanceConfigRequest.
}
op, err := c.CreateCertificateIssuanceConfig(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) CreateCertificateIssuanceConfigOperation
func (c *Client) CreateCertificateIssuanceConfigOperation(name string) *CreateCertificateIssuanceConfigOperation
CreateCertificateIssuanceConfigOperation returns a new CreateCertificateIssuanceConfigOperation from a given name. The name must be that of a previously created CreateCertificateIssuanceConfigOperation, possibly from a different process.
func (*Client) CreateCertificateMap
func (c *Client) CreateCertificateMap(ctx context.Context, req *certificatemanagerpb.CreateCertificateMapRequest, opts ...gax.CallOption) (*CreateCertificateMapOperation, error)
CreateCertificateMap creates a new CertificateMap in a given project and location.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.CreateCertificateMapRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#CreateCertificateMapRequest.
}
op, err := c.CreateCertificateMap(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) CreateCertificateMapEntry
func (c *Client) CreateCertificateMapEntry(ctx context.Context, req *certificatemanagerpb.CreateCertificateMapEntryRequest, opts ...gax.CallOption) (*CreateCertificateMapEntryOperation, error)
CreateCertificateMapEntry creates a new CertificateMapEntry in a given project and location.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.CreateCertificateMapEntryRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#CreateCertificateMapEntryRequest.
}
op, err := c.CreateCertificateMapEntry(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) CreateCertificateMapEntryOperation
func (c *Client) CreateCertificateMapEntryOperation(name string) *CreateCertificateMapEntryOperation
CreateCertificateMapEntryOperation returns a new CreateCertificateMapEntryOperation from a given name. The name must be that of a previously created CreateCertificateMapEntryOperation, possibly from a different process.
func (*Client) CreateCertificateMapOperation
func (c *Client) CreateCertificateMapOperation(name string) *CreateCertificateMapOperation
CreateCertificateMapOperation returns a new CreateCertificateMapOperation from a given name. The name must be that of a previously created CreateCertificateMapOperation, possibly from a different process.
func (*Client) CreateCertificateOperation
func (c *Client) CreateCertificateOperation(name string) *CreateCertificateOperation
CreateCertificateOperation returns a new CreateCertificateOperation from a given name. The name must be that of a previously created CreateCertificateOperation, possibly from a different process.
func (*Client) CreateDnsAuthorization
func (c *Client) CreateDnsAuthorization(ctx context.Context, req *certificatemanagerpb.CreateDnsAuthorizationRequest, opts ...gax.CallOption) (*CreateDnsAuthorizationOperation, error)
CreateDnsAuthorization creates a new DnsAuthorization in a given project and location.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.CreateDnsAuthorizationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#CreateDnsAuthorizationRequest.
}
op, err := c.CreateDnsAuthorization(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) CreateDnsAuthorizationOperation
func (c *Client) CreateDnsAuthorizationOperation(name string) *CreateDnsAuthorizationOperation
CreateDnsAuthorizationOperation returns a new CreateDnsAuthorizationOperation from a given name. The name must be that of a previously created CreateDnsAuthorizationOperation, possibly from a different process.
func (*Client) CreateTrustConfig
func (c *Client) CreateTrustConfig(ctx context.Context, req *certificatemanagerpb.CreateTrustConfigRequest, opts ...gax.CallOption) (*CreateTrustConfigOperation, error)
CreateTrustConfig creates a new TrustConfig in a given project and location.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.CreateTrustConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#CreateTrustConfigRequest.
}
op, err := c.CreateTrustConfig(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) CreateTrustConfigOperation
func (c *Client) CreateTrustConfigOperation(name string) *CreateTrustConfigOperation
CreateTrustConfigOperation returns a new CreateTrustConfigOperation from a given name. The name must be that of a previously created CreateTrustConfigOperation, possibly from a different process.
func (*Client) DeleteCertificate
func (c *Client) DeleteCertificate(ctx context.Context, req *certificatemanagerpb.DeleteCertificateRequest, opts ...gax.CallOption) (*DeleteCertificateOperation, error)
DeleteCertificate deletes a single Certificate.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.DeleteCertificateRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#DeleteCertificateRequest.
}
op, err := c.DeleteCertificate(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteCertificateIssuanceConfig
func (c *Client) DeleteCertificateIssuanceConfig(ctx context.Context, req *certificatemanagerpb.DeleteCertificateIssuanceConfigRequest, opts ...gax.CallOption) (*DeleteCertificateIssuanceConfigOperation, error)
DeleteCertificateIssuanceConfig deletes a single CertificateIssuanceConfig.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.DeleteCertificateIssuanceConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#DeleteCertificateIssuanceConfigRequest.
}
op, err := c.DeleteCertificateIssuanceConfig(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteCertificateIssuanceConfigOperation
func (c *Client) DeleteCertificateIssuanceConfigOperation(name string) *DeleteCertificateIssuanceConfigOperation
DeleteCertificateIssuanceConfigOperation returns a new DeleteCertificateIssuanceConfigOperation from a given name. The name must be that of a previously created DeleteCertificateIssuanceConfigOperation, possibly from a different process.
func (*Client) DeleteCertificateMap
func (c *Client) DeleteCertificateMap(ctx context.Context, req *certificatemanagerpb.DeleteCertificateMapRequest, opts ...gax.CallOption) (*DeleteCertificateMapOperation, error)
DeleteCertificateMap deletes a single CertificateMap. A Certificate Map can’t be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.DeleteCertificateMapRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#DeleteCertificateMapRequest.
}
op, err := c.DeleteCertificateMap(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteCertificateMapEntry
func (c *Client) DeleteCertificateMapEntry(ctx context.Context, req *certificatemanagerpb.DeleteCertificateMapEntryRequest, opts ...gax.CallOption) (*DeleteCertificateMapEntryOperation, error)
DeleteCertificateMapEntry deletes a single CertificateMapEntry.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.DeleteCertificateMapEntryRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#DeleteCertificateMapEntryRequest.
}
op, err := c.DeleteCertificateMapEntry(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteCertificateMapEntryOperation
func (c *Client) DeleteCertificateMapEntryOperation(name string) *DeleteCertificateMapEntryOperation
DeleteCertificateMapEntryOperation returns a new DeleteCertificateMapEntryOperation from a given name. The name must be that of a previously created DeleteCertificateMapEntryOperation, possibly from a different process.
func (*Client) DeleteCertificateMapOperation
func (c *Client) DeleteCertificateMapOperation(name string) *DeleteCertificateMapOperation
DeleteCertificateMapOperation returns a new DeleteCertificateMapOperation from a given name. The name must be that of a previously created DeleteCertificateMapOperation, possibly from a different process.
func (*Client) DeleteCertificateOperation
func (c *Client) DeleteCertificateOperation(name string) *DeleteCertificateOperation
DeleteCertificateOperation returns a new DeleteCertificateOperation from a given name. The name must be that of a previously created DeleteCertificateOperation, possibly from a different process.
func (*Client) DeleteDnsAuthorization
func (c *Client) DeleteDnsAuthorization(ctx context.Context, req *certificatemanagerpb.DeleteDnsAuthorizationRequest, opts ...gax.CallOption) (*DeleteDnsAuthorizationOperation, error)
DeleteDnsAuthorization deletes a single DnsAuthorization.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.DeleteDnsAuthorizationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#DeleteDnsAuthorizationRequest.
}
op, err := c.DeleteDnsAuthorization(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteDnsAuthorizationOperation
func (c *Client) DeleteDnsAuthorizationOperation(name string) *DeleteDnsAuthorizationOperation
DeleteDnsAuthorizationOperation returns a new DeleteDnsAuthorizationOperation from a given name. The name must be that of a previously created DeleteDnsAuthorizationOperation, 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"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
)
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 := certificatemanager.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) DeleteTrustConfig
func (c *Client) DeleteTrustConfig(ctx context.Context, req *certificatemanagerpb.DeleteTrustConfigRequest, opts ...gax.CallOption) (*DeleteTrustConfigOperation, error)
DeleteTrustConfig deletes a single TrustConfig.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.DeleteTrustConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#DeleteTrustConfigRequest.
}
op, err := c.DeleteTrustConfig(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteTrustConfigOperation
func (c *Client) DeleteTrustConfigOperation(name string) *DeleteTrustConfigOperation
DeleteTrustConfigOperation returns a new DeleteTrustConfigOperation from a given name. The name must be that of a previously created DeleteTrustConfigOperation, possibly from a different process.
func (*Client) GetCertificate
func (c *Client) GetCertificate(ctx context.Context, req *certificatemanagerpb.GetCertificateRequest, opts ...gax.CallOption) (*certificatemanagerpb.Certificate, error)
GetCertificate gets details of a single Certificate.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.GetCertificateRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#GetCertificateRequest.
}
resp, err := c.GetCertificate(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetCertificateIssuanceConfig
func (c *Client) GetCertificateIssuanceConfig(ctx context.Context, req *certificatemanagerpb.GetCertificateIssuanceConfigRequest, opts ...gax.CallOption) (*certificatemanagerpb.CertificateIssuanceConfig, error)
GetCertificateIssuanceConfig gets details of a single CertificateIssuanceConfig.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.GetCertificateIssuanceConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#GetCertificateIssuanceConfigRequest.
}
resp, err := c.GetCertificateIssuanceConfig(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetCertificateMap
func (c *Client) GetCertificateMap(ctx context.Context, req *certificatemanagerpb.GetCertificateMapRequest, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMap, error)
GetCertificateMap gets details of a single CertificateMap.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.GetCertificateMapRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#GetCertificateMapRequest.
}
resp, err := c.GetCertificateMap(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetCertificateMapEntry
func (c *Client) GetCertificateMapEntry(ctx context.Context, req *certificatemanagerpb.GetCertificateMapEntryRequest, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMapEntry, error)
GetCertificateMapEntry gets details of a single CertificateMapEntry.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.GetCertificateMapEntryRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#GetCertificateMapEntryRequest.
}
resp, err := c.GetCertificateMapEntry(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetDnsAuthorization
func (c *Client) GetDnsAuthorization(ctx context.Context, req *certificatemanagerpb.GetDnsAuthorizationRequest, opts ...gax.CallOption) (*certificatemanagerpb.DnsAuthorization, error)
GetDnsAuthorization gets details of a single DnsAuthorization.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.GetDnsAuthorizationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#GetDnsAuthorizationRequest.
}
resp, err := c.GetDnsAuthorization(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"
certificatemanager "cloud.google.com/go/certificatemanager/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 := certificatemanager.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"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
)
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 := certificatemanager.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) GetTrustConfig
func (c *Client) GetTrustConfig(ctx context.Context, req *certificatemanagerpb.GetTrustConfigRequest, opts ...gax.CallOption) (*certificatemanagerpb.TrustConfig, error)
GetTrustConfig gets details of a single TrustConfig.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.GetTrustConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#GetTrustConfigRequest.
}
resp, err := c.GetTrustConfig(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ListCertificateIssuanceConfigs
func (c *Client) ListCertificateIssuanceConfigs(ctx context.Context, req *certificatemanagerpb.ListCertificateIssuanceConfigsRequest, opts ...gax.CallOption) *CertificateIssuanceConfigIterator
ListCertificateIssuanceConfigs lists CertificateIssuanceConfigs in a given project and location.
Examples
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
"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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListCertificateIssuanceConfigsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListCertificateIssuanceConfigsRequest.
}
it := c.ListCertificateIssuanceConfigs(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.(*certificatemanagerpb.ListCertificateIssuanceConfigsResponse)
}
}
all
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListCertificateIssuanceConfigsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListCertificateIssuanceConfigsRequest.
}
for resp, err := range c.ListCertificateIssuanceConfigs(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListCertificateMapEntries
func (c *Client) ListCertificateMapEntries(ctx context.Context, req *certificatemanagerpb.ListCertificateMapEntriesRequest, opts ...gax.CallOption) *CertificateMapEntryIterator
ListCertificateMapEntries lists CertificateMapEntries in a given project and location.
Examples
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
"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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListCertificateMapEntriesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListCertificateMapEntriesRequest.
}
it := c.ListCertificateMapEntries(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.(*certificatemanagerpb.ListCertificateMapEntriesResponse)
}
}
all
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListCertificateMapEntriesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListCertificateMapEntriesRequest.
}
for resp, err := range c.ListCertificateMapEntries(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListCertificateMaps
func (c *Client) ListCertificateMaps(ctx context.Context, req *certificatemanagerpb.ListCertificateMapsRequest, opts ...gax.CallOption) *CertificateMapIterator
ListCertificateMaps lists CertificateMaps in a given project and location.
Examples
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
"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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListCertificateMapsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListCertificateMapsRequest.
}
it := c.ListCertificateMaps(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.(*certificatemanagerpb.ListCertificateMapsResponse)
}
}
all
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListCertificateMapsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListCertificateMapsRequest.
}
for resp, err := range c.ListCertificateMaps(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListCertificates
func (c *Client) ListCertificates(ctx context.Context, req *certificatemanagerpb.ListCertificatesRequest, opts ...gax.CallOption) *CertificateIterator
ListCertificates lists Certificates in a given project and location.
Examples
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
"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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListCertificatesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListCertificatesRequest.
}
it := c.ListCertificates(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.(*certificatemanagerpb.ListCertificatesResponse)
}
}
all
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListCertificatesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListCertificatesRequest.
}
for resp, err := range c.ListCertificates(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListDnsAuthorizations
func (c *Client) ListDnsAuthorizations(ctx context.Context, req *certificatemanagerpb.ListDnsAuthorizationsRequest, opts ...gax.CallOption) *DnsAuthorizationIterator
ListDnsAuthorizations lists DnsAuthorizations in a given project and location.
Examples
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
"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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListDnsAuthorizationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListDnsAuthorizationsRequest.
}
it := c.ListDnsAuthorizations(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.(*certificatemanagerpb.ListDnsAuthorizationsResponse)
}
}
all
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListDnsAuthorizationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListDnsAuthorizationsRequest.
}
for resp, err := range c.ListDnsAuthorizations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListLocations
func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
Examples
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/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 := certificatemanager.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)
}
}
all
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/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 := certificatemanager.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.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListOperations
func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Examples
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
"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 := certificatemanager.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)
}
}
all
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
)
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 := certificatemanager.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.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListTrustConfigs
func (c *Client) ListTrustConfigs(ctx context.Context, req *certificatemanagerpb.ListTrustConfigsRequest, opts ...gax.CallOption) *TrustConfigIterator
ListTrustConfigs lists TrustConfigs in a given project and location.
Examples
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
"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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListTrustConfigsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListTrustConfigsRequest.
}
it := c.ListTrustConfigs(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.(*certificatemanagerpb.ListTrustConfigsResponse)
}
}
all
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.ListTrustConfigsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#ListTrustConfigsRequest.
}
for resp, err := range c.ListTrustConfigs(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) UpdateCertificate
func (c *Client) UpdateCertificate(ctx context.Context, req *certificatemanagerpb.UpdateCertificateRequest, opts ...gax.CallOption) (*UpdateCertificateOperation, error)
UpdateCertificate updates a Certificate.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.UpdateCertificateRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#UpdateCertificateRequest.
}
op, err := c.UpdateCertificate(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) UpdateCertificateMap
func (c *Client) UpdateCertificateMap(ctx context.Context, req *certificatemanagerpb.UpdateCertificateMapRequest, opts ...gax.CallOption) (*UpdateCertificateMapOperation, error)
UpdateCertificateMap updates a CertificateMap.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.UpdateCertificateMapRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#UpdateCertificateMapRequest.
}
op, err := c.UpdateCertificateMap(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) UpdateCertificateMapEntry
func (c *Client) UpdateCertificateMapEntry(ctx context.Context, req *certificatemanagerpb.UpdateCertificateMapEntryRequest, opts ...gax.CallOption) (*UpdateCertificateMapEntryOperation, error)
UpdateCertificateMapEntry updates a CertificateMapEntry.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.UpdateCertificateMapEntryRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#UpdateCertificateMapEntryRequest.
}
op, err := c.UpdateCertificateMapEntry(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) UpdateCertificateMapEntryOperation
func (c *Client) UpdateCertificateMapEntryOperation(name string) *UpdateCertificateMapEntryOperation
UpdateCertificateMapEntryOperation returns a new UpdateCertificateMapEntryOperation from a given name. The name must be that of a previously created UpdateCertificateMapEntryOperation, possibly from a different process.
func (*Client) UpdateCertificateMapOperation
func (c *Client) UpdateCertificateMapOperation(name string) *UpdateCertificateMapOperation
UpdateCertificateMapOperation returns a new UpdateCertificateMapOperation from a given name. The name must be that of a previously created UpdateCertificateMapOperation, possibly from a different process.
func (*Client) UpdateCertificateOperation
func (c *Client) UpdateCertificateOperation(name string) *UpdateCertificateOperation
UpdateCertificateOperation returns a new UpdateCertificateOperation from a given name. The name must be that of a previously created UpdateCertificateOperation, possibly from a different process.
func (*Client) UpdateDnsAuthorization
func (c *Client) UpdateDnsAuthorization(ctx context.Context, req *certificatemanagerpb.UpdateDnsAuthorizationRequest, opts ...gax.CallOption) (*UpdateDnsAuthorizationOperation, error)
UpdateDnsAuthorization updates a DnsAuthorization.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.UpdateDnsAuthorizationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#UpdateDnsAuthorizationRequest.
}
op, err := c.UpdateDnsAuthorization(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) UpdateDnsAuthorizationOperation
func (c *Client) UpdateDnsAuthorizationOperation(name string) *UpdateDnsAuthorizationOperation
UpdateDnsAuthorizationOperation returns a new UpdateDnsAuthorizationOperation from a given name. The name must be that of a previously created UpdateDnsAuthorizationOperation, possibly from a different process.
func (*Client) UpdateTrustConfig
func (c *Client) UpdateTrustConfig(ctx context.Context, req *certificatemanagerpb.UpdateTrustConfigRequest, opts ...gax.CallOption) (*UpdateTrustConfigOperation, error)
UpdateTrustConfig updates a TrustConfig.
Example
package main
import (
"context"
certificatemanager "cloud.google.com/go/certificatemanager/apiv1"
certificatemanagerpb "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb"
)
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 := certificatemanager.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &certificatemanagerpb.UpdateTrustConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb#UpdateTrustConfigRequest.
}
op, err := c.UpdateTrustConfig(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) UpdateTrustConfigOperation
func (c *Client) UpdateTrustConfigOperation(name string) *UpdateTrustConfigOperation
UpdateTrustConfigOperation returns a new UpdateTrustConfigOperation from a given name. The name must be that of a previously created UpdateTrustConfigOperation, possibly from a different process.
CreateCertificateIssuanceConfigOperation
type CreateCertificateIssuanceConfigOperation struct {
// contains filtered or unexported fields
}
CreateCertificateIssuanceConfigOperation manages a long-running operation from CreateCertificateIssuanceConfig.
func (*CreateCertificateIssuanceConfigOperation) Done
func (op *CreateCertificateIssuanceConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateCertificateIssuanceConfigOperation) Metadata
func (op *CreateCertificateIssuanceConfigOperation) Metadata() (*certificatemanagerpb.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 (*CreateCertificateIssuanceConfigOperation) Name
func (op *CreateCertificateIssuanceConfigOperation) 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 (*CreateCertificateIssuanceConfigOperation) Poll
func (op *CreateCertificateIssuanceConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateIssuanceConfig, 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 (*CreateCertificateIssuanceConfigOperation) Wait
func (op *CreateCertificateIssuanceConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateIssuanceConfig, 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.
CreateCertificateMapEntryOperation
type CreateCertificateMapEntryOperation struct {
// contains filtered or unexported fields
}
CreateCertificateMapEntryOperation manages a long-running operation from CreateCertificateMapEntry.
func (*CreateCertificateMapEntryOperation) Done
func (op *CreateCertificateMapEntryOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateCertificateMapEntryOperation) Metadata
func (op *CreateCertificateMapEntryOperation) Metadata() (*certificatemanagerpb.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 (*CreateCertificateMapEntryOperation) Name
func (op *CreateCertificateMapEntryOperation) 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 (*CreateCertificateMapEntryOperation) Poll
func (op *CreateCertificateMapEntryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMapEntry, 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 (*CreateCertificateMapEntryOperation) Wait
func (op *CreateCertificateMapEntryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMapEntry, 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.
CreateCertificateMapOperation
type CreateCertificateMapOperation struct {
// contains filtered or unexported fields
}
CreateCertificateMapOperation manages a long-running operation from CreateCertificateMap.
func (*CreateCertificateMapOperation) Done
func (op *CreateCertificateMapOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateCertificateMapOperation) Metadata
func (op *CreateCertificateMapOperation) Metadata() (*certificatemanagerpb.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 (*CreateCertificateMapOperation) Name
func (op *CreateCertificateMapOperation) 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 (*CreateCertificateMapOperation) Poll
func (op *CreateCertificateMapOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMap, 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 (*CreateCertificateMapOperation) Wait
func (op *CreateCertificateMapOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMap, 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.
CreateCertificateOperation
type CreateCertificateOperation struct {
// contains filtered or unexported fields
}
CreateCertificateOperation manages a long-running operation from CreateCertificate.
func (*CreateCertificateOperation) Done
func (op *CreateCertificateOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateCertificateOperation) Metadata
func (op *CreateCertificateOperation) Metadata() (*certificatemanagerpb.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 (*CreateCertificateOperation) Name
func (op *CreateCertificateOperation) 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 (*CreateCertificateOperation) Poll
func (op *CreateCertificateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.Certificate, 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 (*CreateCertificateOperation) Wait
func (op *CreateCertificateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.Certificate, 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.
CreateDnsAuthorizationOperation
type CreateDnsAuthorizationOperation struct {
// contains filtered or unexported fields
}
CreateDnsAuthorizationOperation manages a long-running operation from CreateDnsAuthorization.
func (*CreateDnsAuthorizationOperation) Done
func (op *CreateDnsAuthorizationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateDnsAuthorizationOperation) Metadata
func (op *CreateDnsAuthorizationOperation) Metadata() (*certificatemanagerpb.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 (*CreateDnsAuthorizationOperation) Name
func (op *CreateDnsAuthorizationOperation) 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 (*CreateDnsAuthorizationOperation) Poll
func (op *CreateDnsAuthorizationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.DnsAuthorization, 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 (*CreateDnsAuthorizationOperation) Wait
func (op *CreateDnsAuthorizationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.DnsAuthorization, 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.
CreateTrustConfigOperation
type CreateTrustConfigOperation struct {
// contains filtered or unexported fields
}
CreateTrustConfigOperation manages a long-running operation from CreateTrustConfig.
func (*CreateTrustConfigOperation) Done
func (op *CreateTrustConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateTrustConfigOperation) Metadata
func (op *CreateTrustConfigOperation) Metadata() (*certificatemanagerpb.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 (*CreateTrustConfigOperation) Name
func (op *CreateTrustConfigOperation) 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 (*CreateTrustConfigOperation) Poll
func (op *CreateTrustConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.TrustConfig, 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 (*CreateTrustConfigOperation) Wait
func (op *CreateTrustConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.TrustConfig, 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.
DeleteCertificateIssuanceConfigOperation
type DeleteCertificateIssuanceConfigOperation struct {
// contains filtered or unexported fields
}
DeleteCertificateIssuanceConfigOperation manages a long-running operation from DeleteCertificateIssuanceConfig.
func (*DeleteCertificateIssuanceConfigOperation) Done
func (op *DeleteCertificateIssuanceConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteCertificateIssuanceConfigOperation) Metadata
func (op *DeleteCertificateIssuanceConfigOperation) Metadata() (*certificatemanagerpb.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 (*DeleteCertificateIssuanceConfigOperation) Name
func (op *DeleteCertificateIssuanceConfigOperation) 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 (*DeleteCertificateIssuanceConfigOperation) Poll
func (op *DeleteCertificateIssuanceConfigOperation) 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 (*DeleteCertificateIssuanceConfigOperation) Wait
func (op *DeleteCertificateIssuanceConfigOperation) 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.
DeleteCertificateMapEntryOperation
type DeleteCertificateMapEntryOperation struct {
// contains filtered or unexported fields
}
DeleteCertificateMapEntryOperation manages a long-running operation from DeleteCertificateMapEntry.
func (*DeleteCertificateMapEntryOperation) Done
func (op *DeleteCertificateMapEntryOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteCertificateMapEntryOperation) Metadata
func (op *DeleteCertificateMapEntryOperation) Metadata() (*certificatemanagerpb.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 (*DeleteCertificateMapEntryOperation) Name
func (op *DeleteCertificateMapEntryOperation) 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 (*DeleteCertificateMapEntryOperation) Poll
func (op *DeleteCertificateMapEntryOperation) 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 (*DeleteCertificateMapEntryOperation) Wait
func (op *DeleteCertificateMapEntryOperation) 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.
DeleteCertificateMapOperation
type DeleteCertificateMapOperation struct {
// contains filtered or unexported fields
}
DeleteCertificateMapOperation manages a long-running operation from DeleteCertificateMap.
func (*DeleteCertificateMapOperation) Done
func (op *DeleteCertificateMapOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteCertificateMapOperation) Metadata
func (op *DeleteCertificateMapOperation) Metadata() (*certificatemanagerpb.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 (*DeleteCertificateMapOperation) Name
func (op *DeleteCertificateMapOperation) 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 (*DeleteCertificateMapOperation) Poll
func (op *DeleteCertificateMapOperation) 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 (*DeleteCertificateMapOperation) Wait
func (op *DeleteCertificateMapOperation) 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.
DeleteCertificateOperation
type DeleteCertificateOperation struct {
// contains filtered or unexported fields
}
DeleteCertificateOperation manages a long-running operation from DeleteCertificate.
func (*DeleteCertificateOperation) Done
func (op *DeleteCertificateOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteCertificateOperation) Metadata
func (op *DeleteCertificateOperation) Metadata() (*certificatemanagerpb.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 (*DeleteCertificateOperation) Name
func (op *DeleteCertificateOperation) 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 (*DeleteCertificateOperation) Poll
func (op *DeleteCertificateOperation) 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 (*DeleteCertificateOperation) Wait
func (op *DeleteCertificateOperation) 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.
DeleteDnsAuthorizationOperation
type DeleteDnsAuthorizationOperation struct {
// contains filtered or unexported fields
}
DeleteDnsAuthorizationOperation manages a long-running operation from DeleteDnsAuthorization.
func (*DeleteDnsAuthorizationOperation) Done
func (op *DeleteDnsAuthorizationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteDnsAuthorizationOperation) Metadata
func (op *DeleteDnsAuthorizationOperation) Metadata() (*certificatemanagerpb.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 (*DeleteDnsAuthorizationOperation) Name
func (op *DeleteDnsAuthorizationOperation) 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 (*DeleteDnsAuthorizationOperation) Poll
func (op *DeleteDnsAuthorizationOperation) 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 (*DeleteDnsAuthorizationOperation) Wait
func (op *DeleteDnsAuthorizationOperation) 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.
DeleteTrustConfigOperation
type DeleteTrustConfigOperation struct {
// contains filtered or unexported fields
}
DeleteTrustConfigOperation manages a long-running operation from DeleteTrustConfig.
func (*DeleteTrustConfigOperation) Done
func (op *DeleteTrustConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteTrustConfigOperation) Metadata
func (op *DeleteTrustConfigOperation) Metadata() (*certificatemanagerpb.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 (*DeleteTrustConfigOperation) Name
func (op *DeleteTrustConfigOperation) 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 (*DeleteTrustConfigOperation) Poll
func (op *DeleteTrustConfigOperation) 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 (*DeleteTrustConfigOperation) Wait
func (op *DeleteTrustConfigOperation) 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.
DnsAuthorizationIterator
type DnsAuthorizationIterator 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 []*certificatemanagerpb.DnsAuthorization, nextPageToken string, err error)
// contains filtered or unexported fields
}
DnsAuthorizationIterator manages a stream of *certificatemanagerpb.DnsAuthorization.
func (*DnsAuthorizationIterator) All
func (it *DnsAuthorizationIterator) All() iter.Seq2[*certificatemanagerpb.DnsAuthorization, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DnsAuthorizationIterator) Next
func (it *DnsAuthorizationIterator) Next() (*certificatemanagerpb.DnsAuthorization, 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 (*DnsAuthorizationIterator) PageInfo
func (it *DnsAuthorizationIterator) 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) All
func (it *LocationIterator) All() iter.Seq2[*locationpb.Location, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*LocationIterator) Next
func (it *LocationIterator) Next() (*locationpb.Location, error)
Next returns the next result. Its second return value is iterator.Done if there are no 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) All
func (it *OperationIterator) All() iter.Seq2[*longrunningpb.Operation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*OperationIterator) Next
func (it *OperationIterator) Next() (*longrunningpb.Operation, error)
Next returns the next result. Its second return value is iterator.Done if there are no 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.
TrustConfigIterator
type TrustConfigIterator 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 []*certificatemanagerpb.TrustConfig, nextPageToken string, err error)
// contains filtered or unexported fields
}
TrustConfigIterator manages a stream of *certificatemanagerpb.TrustConfig.
func (*TrustConfigIterator) All
func (it *TrustConfigIterator) All() iter.Seq2[*certificatemanagerpb.TrustConfig, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*TrustConfigIterator) Next
func (it *TrustConfigIterator) Next() (*certificatemanagerpb.TrustConfig, 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 (*TrustConfigIterator) PageInfo
func (it *TrustConfigIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
UpdateCertificateMapEntryOperation
type UpdateCertificateMapEntryOperation struct {
// contains filtered or unexported fields
}
UpdateCertificateMapEntryOperation manages a long-running operation from UpdateCertificateMapEntry.
func (*UpdateCertificateMapEntryOperation) Done
func (op *UpdateCertificateMapEntryOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateCertificateMapEntryOperation) Metadata
func (op *UpdateCertificateMapEntryOperation) Metadata() (*certificatemanagerpb.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 (*UpdateCertificateMapEntryOperation) Name
func (op *UpdateCertificateMapEntryOperation) 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 (*UpdateCertificateMapEntryOperation) Poll
func (op *UpdateCertificateMapEntryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMapEntry, 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 (*UpdateCertificateMapEntryOperation) Wait
func (op *UpdateCertificateMapEntryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMapEntry, 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.
UpdateCertificateMapOperation
type UpdateCertificateMapOperation struct {
// contains filtered or unexported fields
}
UpdateCertificateMapOperation manages a long-running operation from UpdateCertificateMap.
func (*UpdateCertificateMapOperation) Done
func (op *UpdateCertificateMapOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateCertificateMapOperation) Metadata
func (op *UpdateCertificateMapOperation) Metadata() (*certificatemanagerpb.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 (*UpdateCertificateMapOperation) Name
func (op *UpdateCertificateMapOperation) 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 (*UpdateCertificateMapOperation) Poll
func (op *UpdateCertificateMapOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMap, 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 (*UpdateCertificateMapOperation) Wait
func (op *UpdateCertificateMapOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMap, 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.
UpdateCertificateOperation
type UpdateCertificateOperation struct {
// contains filtered or unexported fields
}
UpdateCertificateOperation manages a long-running operation from UpdateCertificate.
func (*UpdateCertificateOperation) Done
func (op *UpdateCertificateOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateCertificateOperation) Metadata
func (op *UpdateCertificateOperation) Metadata() (*certificatemanagerpb.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 (*UpdateCertificateOperation) Name
func (op *UpdateCertificateOperation) 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 (*UpdateCertificateOperation) Poll
func (op *UpdateCertificateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.Certificate, 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 (*UpdateCertificateOperation) Wait
func (op *UpdateCertificateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.Certificate, 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.
UpdateDnsAuthorizationOperation
type UpdateDnsAuthorizationOperation struct {
// contains filtered or unexported fields
}
UpdateDnsAuthorizationOperation manages a long-running operation from UpdateDnsAuthorization.
func (*UpdateDnsAuthorizationOperation) Done
func (op *UpdateDnsAuthorizationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateDnsAuthorizationOperation) Metadata
func (op *UpdateDnsAuthorizationOperation) Metadata() (*certificatemanagerpb.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 (*UpdateDnsAuthorizationOperation) Name
func (op *UpdateDnsAuthorizationOperation) 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 (*UpdateDnsAuthorizationOperation) Poll
func (op *UpdateDnsAuthorizationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.DnsAuthorization, 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 (*UpdateDnsAuthorizationOperation) Wait
func (op *UpdateDnsAuthorizationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.DnsAuthorization, 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.
UpdateTrustConfigOperation
type UpdateTrustConfigOperation struct {
// contains filtered or unexported fields
}
UpdateTrustConfigOperation manages a long-running operation from UpdateTrustConfig.
func (*UpdateTrustConfigOperation) Done
func (op *UpdateTrustConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateTrustConfigOperation) Metadata
func (op *UpdateTrustConfigOperation) Metadata() (*certificatemanagerpb.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 (*UpdateTrustConfigOperation) Name
func (op *UpdateTrustConfigOperation) 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 (*UpdateTrustConfigOperation) Poll
func (op *UpdateTrustConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.TrustConfig, 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 (*UpdateTrustConfigOperation) Wait
func (op *UpdateTrustConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.TrustConfig, 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.