Documentation ¶
Overview ¶
Package certificatemanager is an auto-generated package for the Certificate Manager API.
NOTE: This package is in beta. It is not stable, and may be subject to changes.
Example usage ¶
To get started with this package, create a client.
ctx := context.Background() 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.
ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 }
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.
For information about setting deadlines, reusing contexts, and more please visit https://pkg.golang.ir/cloud.google.com/go.
Index ¶
- func DefaultAuthScopes() []string
- type CallOptions
- type CertificateIterator
- type CertificateMapEntryIterator
- type CertificateMapIterator
- type Client
- func (c *Client) Close() error
- func (c *Client) Connection() *grpc.ClientConn
- func (c *Client) CreateCertificate(ctx context.Context, req *certificatemanagerpb.CreateCertificateRequest, ...) (*CreateCertificateOperation, error)
- func (c *Client) CreateCertificateMap(ctx context.Context, req *certificatemanagerpb.CreateCertificateMapRequest, ...) (*CreateCertificateMapOperation, error)
- func (c *Client) CreateCertificateMapEntry(ctx context.Context, ...) (*CreateCertificateMapEntryOperation, error)
- func (c *Client) CreateCertificateMapEntryOperation(name string) *CreateCertificateMapEntryOperation
- func (c *Client) CreateCertificateMapOperation(name string) *CreateCertificateMapOperation
- func (c *Client) CreateCertificateOperation(name string) *CreateCertificateOperation
- func (c *Client) CreateDnsAuthorization(ctx context.Context, req *certificatemanagerpb.CreateDnsAuthorizationRequest, ...) (*CreateDnsAuthorizationOperation, error)
- func (c *Client) CreateDnsAuthorizationOperation(name string) *CreateDnsAuthorizationOperation
- func (c *Client) DeleteCertificate(ctx context.Context, req *certificatemanagerpb.DeleteCertificateRequest, ...) (*DeleteCertificateOperation, error)
- func (c *Client) DeleteCertificateMap(ctx context.Context, req *certificatemanagerpb.DeleteCertificateMapRequest, ...) (*DeleteCertificateMapOperation, error)
- func (c *Client) DeleteCertificateMapEntry(ctx context.Context, ...) (*DeleteCertificateMapEntryOperation, error)
- func (c *Client) DeleteCertificateMapEntryOperation(name string) *DeleteCertificateMapEntryOperation
- func (c *Client) DeleteCertificateMapOperation(name string) *DeleteCertificateMapOperation
- func (c *Client) DeleteCertificateOperation(name string) *DeleteCertificateOperation
- func (c *Client) DeleteDnsAuthorization(ctx context.Context, req *certificatemanagerpb.DeleteDnsAuthorizationRequest, ...) (*DeleteDnsAuthorizationOperation, error)
- func (c *Client) DeleteDnsAuthorizationOperation(name string) *DeleteDnsAuthorizationOperation
- func (c *Client) GetCertificate(ctx context.Context, req *certificatemanagerpb.GetCertificateRequest, ...) (*certificatemanagerpb.Certificate, error)
- func (c *Client) GetCertificateMap(ctx context.Context, req *certificatemanagerpb.GetCertificateMapRequest, ...) (*certificatemanagerpb.CertificateMap, error)
- func (c *Client) GetCertificateMapEntry(ctx context.Context, req *certificatemanagerpb.GetCertificateMapEntryRequest, ...) (*certificatemanagerpb.CertificateMapEntry, error)
- func (c *Client) GetDnsAuthorization(ctx context.Context, req *certificatemanagerpb.GetDnsAuthorizationRequest, ...) (*certificatemanagerpb.DnsAuthorization, error)
- func (c *Client) ListCertificateMapEntries(ctx context.Context, ...) *CertificateMapEntryIterator
- func (c *Client) ListCertificateMaps(ctx context.Context, req *certificatemanagerpb.ListCertificateMapsRequest, ...) *CertificateMapIterator
- func (c *Client) ListCertificates(ctx context.Context, req *certificatemanagerpb.ListCertificatesRequest, ...) *CertificateIterator
- func (c *Client) ListDnsAuthorizations(ctx context.Context, req *certificatemanagerpb.ListDnsAuthorizationsRequest, ...) *DnsAuthorizationIterator
- func (c *Client) UpdateCertificate(ctx context.Context, req *certificatemanagerpb.UpdateCertificateRequest, ...) (*UpdateCertificateOperation, error)
- func (c *Client) UpdateCertificateMap(ctx context.Context, req *certificatemanagerpb.UpdateCertificateMapRequest, ...) (*UpdateCertificateMapOperation, error)
- func (c *Client) UpdateCertificateMapEntry(ctx context.Context, ...) (*UpdateCertificateMapEntryOperation, error)
- func (c *Client) UpdateCertificateMapEntryOperation(name string) *UpdateCertificateMapEntryOperation
- func (c *Client) UpdateCertificateMapOperation(name string) *UpdateCertificateMapOperation
- func (c *Client) UpdateCertificateOperation(name string) *UpdateCertificateOperation
- func (c *Client) UpdateDnsAuthorization(ctx context.Context, req *certificatemanagerpb.UpdateDnsAuthorizationRequest, ...) (*UpdateDnsAuthorizationOperation, error)
- func (c *Client) UpdateDnsAuthorizationOperation(name string) *UpdateDnsAuthorizationOperation
- type CreateCertificateMapEntryOperation
- func (op *CreateCertificateMapEntryOperation) Done() bool
- func (op *CreateCertificateMapEntryOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *CreateCertificateMapEntryOperation) Name() string
- func (op *CreateCertificateMapEntryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMapEntry, error)
- func (op *CreateCertificateMapEntryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMapEntry, error)
- type CreateCertificateMapOperation
- func (op *CreateCertificateMapOperation) Done() bool
- func (op *CreateCertificateMapOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *CreateCertificateMapOperation) Name() string
- func (op *CreateCertificateMapOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMap, error)
- func (op *CreateCertificateMapOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMap, error)
- type CreateCertificateOperation
- func (op *CreateCertificateOperation) Done() bool
- func (op *CreateCertificateOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *CreateCertificateOperation) Name() string
- func (op *CreateCertificateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.Certificate, error)
- func (op *CreateCertificateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.Certificate, error)
- type CreateDnsAuthorizationOperation
- func (op *CreateDnsAuthorizationOperation) Done() bool
- func (op *CreateDnsAuthorizationOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *CreateDnsAuthorizationOperation) Name() string
- func (op *CreateDnsAuthorizationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.DnsAuthorization, error)
- func (op *CreateDnsAuthorizationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.DnsAuthorization, error)
- type DeleteCertificateMapEntryOperation
- func (op *DeleteCertificateMapEntryOperation) Done() bool
- func (op *DeleteCertificateMapEntryOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *DeleteCertificateMapEntryOperation) Name() string
- func (op *DeleteCertificateMapEntryOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteCertificateMapEntryOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteCertificateMapOperation
- func (op *DeleteCertificateMapOperation) Done() bool
- func (op *DeleteCertificateMapOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *DeleteCertificateMapOperation) Name() string
- func (op *DeleteCertificateMapOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteCertificateMapOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteCertificateOperation
- func (op *DeleteCertificateOperation) Done() bool
- func (op *DeleteCertificateOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *DeleteCertificateOperation) Name() string
- func (op *DeleteCertificateOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteCertificateOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteDnsAuthorizationOperation
- func (op *DeleteDnsAuthorizationOperation) Done() bool
- func (op *DeleteDnsAuthorizationOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *DeleteDnsAuthorizationOperation) Name() string
- func (op *DeleteDnsAuthorizationOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteDnsAuthorizationOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DnsAuthorizationIterator
- type UpdateCertificateMapEntryOperation
- func (op *UpdateCertificateMapEntryOperation) Done() bool
- func (op *UpdateCertificateMapEntryOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *UpdateCertificateMapEntryOperation) Name() string
- func (op *UpdateCertificateMapEntryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMapEntry, error)
- func (op *UpdateCertificateMapEntryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMapEntry, error)
- type UpdateCertificateMapOperation
- func (op *UpdateCertificateMapOperation) Done() bool
- func (op *UpdateCertificateMapOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *UpdateCertificateMapOperation) Name() string
- func (op *UpdateCertificateMapOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMap, error)
- func (op *UpdateCertificateMapOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.CertificateMap, error)
- type UpdateCertificateOperation
- func (op *UpdateCertificateOperation) Done() bool
- func (op *UpdateCertificateOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *UpdateCertificateOperation) Name() string
- func (op *UpdateCertificateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.Certificate, error)
- func (op *UpdateCertificateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.Certificate, error)
- type UpdateDnsAuthorizationOperation
- func (op *UpdateDnsAuthorizationOperation) Done() bool
- func (op *UpdateDnsAuthorizationOperation) Metadata() (*certificatemanagerpb.OperationMetadata, error)
- func (op *UpdateDnsAuthorizationOperation) Name() string
- func (op *UpdateDnsAuthorizationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.DnsAuthorization, error)
- func (op *UpdateDnsAuthorizationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*certificatemanagerpb.DnsAuthorization, error)
Examples ¶
- Client.CreateCertificate
- Client.CreateCertificateMap
- Client.CreateCertificateMapEntry
- Client.CreateDnsAuthorization
- Client.DeleteCertificate
- Client.DeleteCertificateMap
- Client.DeleteCertificateMapEntry
- Client.DeleteDnsAuthorization
- Client.GetCertificate
- Client.GetCertificateMap
- Client.GetCertificateMapEntry
- Client.GetDnsAuthorization
- Client.ListCertificateMapEntries
- Client.ListCertificateMaps
- Client.ListCertificates
- Client.ListDnsAuthorizations
- Client.UpdateCertificate
- Client.UpdateCertificateMap
- Client.UpdateCertificateMapEntry
- Client.UpdateDnsAuthorization
- NewClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Types ¶
type 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 }
CallOptions contains the retry settings for each method of Client.
type 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) 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.
type 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) 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.
type 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) 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.
type 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 which describes a single TLS certificate. CertificateMap which describes a collection of certificates that can be attached to a target resource. CertificateMapEntry which 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 match “^[a-z0-9-]{1,63}$” regexp, which means that
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 which describes a single TLS certificate. CertificateMap which describes a collection of certificates that can be attached to a target resource. CertificateMapEntry which 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 match “^[a-z0-9-]{1,63}$” regexp, which means that
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() c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
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 ¶
func (c *Client) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated.
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 }
Output:
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) 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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#DeleteCertificateRequest. } op, err := c.DeleteCertificate(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#DeleteCertificateMapRequest. } op, err := c.DeleteCertificateMap(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#DeleteCertificateMapEntryRequest. } op, err := c.DeleteCertificateMapEntry(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#DeleteDnsAuthorizationRequest. } op, err := c.DeleteDnsAuthorization(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
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) 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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#GetCertificateRequest. } resp, err := c.GetCertificate(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#GetCertificateMapRequest. } resp, err := c.GetCertificateMap(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#GetCertificateMapEntryRequest. } resp, err := c.GetCertificateMapEntry(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#GetDnsAuthorizationRequest. } resp, err := c.GetDnsAuthorization(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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.
Example ¶
package main import ( "context" certificatemanager "cloud.google.com/go/certificatemanager/apiv1" "google.golang.org/api/iterator" certificatemanagerpb "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 } }
Output:
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.
Example ¶
package main import ( "context" certificatemanager "cloud.google.com/go/certificatemanager/apiv1" "google.golang.org/api/iterator" certificatemanagerpb "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 } }
Output:
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.
Example ¶
package main import ( "context" certificatemanager "cloud.google.com/go/certificatemanager/apiv1" "google.golang.org/api/iterator" certificatemanagerpb "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 } }
Output:
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.
Example ¶
package main import ( "context" certificatemanager "cloud.google.com/go/certificatemanager/apiv1" "google.golang.org/api/iterator" certificatemanagerpb "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 } }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 }
Output:
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 "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1" ) func main() { ctx := context.Background() 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.golang.ir/google.golang.org/genproto/googleapis/cloud/certificatemanager/v1#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 }
Output:
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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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) 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.
type 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.
type 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.
type 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.
type 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.