Package saasservicemgmt is an auto-generated package for the SaaS Runtime API.
Model, deploy, and operate your SaaS at scale.
NOTE: This package is in beta. It is not stable, and may be subject to changes.
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/saasplatform/saasservicemgmt/apiv1beta1@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 := saasservicemgmt.NewSaasDeploymentsClient(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 := &saasservicemgmtpb.CreateReleaseRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#CreateReleaseRequest. } resp, err := c.CreateRelease(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp
Use of Context
The ctx passed to NewSaasDeploymentsClient 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() []stringDefaultAuthScopes reports the default set of authentication scopes to use with this package.
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.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
ReleaseIterator
type ReleaseIterator 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 []*saasservicemgmtpb.Release, nextPageToken string, err error)
// contains filtered or unexported fields
}ReleaseIterator manages a stream of *saasservicemgmtpb.Release.
func (*ReleaseIterator) All
func (it *ReleaseIterator) All() iter.Seq2[*saasservicemgmtpb.Release, error]All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ReleaseIterator) Next
func (it *ReleaseIterator) Next() (*saasservicemgmtpb.Release, 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 (*ReleaseIterator) PageInfo
func (it *ReleaseIterator) PageInfo() *iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
RolloutIterator
type RolloutIterator 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 []*saasservicemgmtpb.Rollout, nextPageToken string, err error)
// contains filtered or unexported fields
}RolloutIterator manages a stream of *saasservicemgmtpb.Rollout.
func (*RolloutIterator) All
func (it *RolloutIterator) All() iter.Seq2[*saasservicemgmtpb.Rollout, error]All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*RolloutIterator) Next
func (it *RolloutIterator) Next() (*saasservicemgmtpb.Rollout, 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 (*RolloutIterator) PageInfo
func (it *RolloutIterator) PageInfo() *iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
RolloutKindIterator
type RolloutKindIterator 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 []*saasservicemgmtpb.RolloutKind, nextPageToken string, err error)
// contains filtered or unexported fields
}RolloutKindIterator manages a stream of *saasservicemgmtpb.RolloutKind.
func (*RolloutKindIterator) All
func (it *RolloutKindIterator) All() iter.Seq2[*saasservicemgmtpb.RolloutKind, error]All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*RolloutKindIterator) Next
func (it *RolloutKindIterator) Next() (*saasservicemgmtpb.RolloutKind, 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 (*RolloutKindIterator) PageInfo
func (it *RolloutKindIterator) PageInfo() *iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
SaasDeploymentsCallOptions
type SaasDeploymentsCallOptions struct {
ListSaas []gax.CallOption
GetSaas []gax.CallOption
CreateSaas []gax.CallOption
UpdateSaas []gax.CallOption
DeleteSaas []gax.CallOption
ListTenants []gax.CallOption
GetTenant []gax.CallOption
CreateTenant []gax.CallOption
UpdateTenant []gax.CallOption
DeleteTenant []gax.CallOption
ListUnitKinds []gax.CallOption
GetUnitKind []gax.CallOption
CreateUnitKind []gax.CallOption
UpdateUnitKind []gax.CallOption
DeleteUnitKind []gax.CallOption
ListUnits []gax.CallOption
GetUnit []gax.CallOption
CreateUnit []gax.CallOption
UpdateUnit []gax.CallOption
DeleteUnit []gax.CallOption
ListUnitOperations []gax.CallOption
GetUnitOperation []gax.CallOption
CreateUnitOperation []gax.CallOption
UpdateUnitOperation []gax.CallOption
DeleteUnitOperation []gax.CallOption
ListReleases []gax.CallOption
GetRelease []gax.CallOption
CreateRelease []gax.CallOption
UpdateRelease []gax.CallOption
DeleteRelease []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
}SaasDeploymentsCallOptions contains the retry settings for each method of SaasDeploymentsClient.
SaasDeploymentsClient
type SaasDeploymentsClient struct {
// The call options for this service.
CallOptions *SaasDeploymentsCallOptions
// contains filtered or unexported fields
}SaasDeploymentsClient is a client for interacting with SaaS Runtime API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Manages the deployment of SaaS services.
func NewSaasDeploymentsClient
func NewSaasDeploymentsClient(ctx context.Context, opts ...option.ClientOption) (*SaasDeploymentsClient, error)NewSaasDeploymentsClient creates a new saas deployments client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Manages the deployment of SaaS services.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func NewSaasDeploymentsRESTClient
func NewSaasDeploymentsRESTClient(ctx context.Context, opts ...option.ClientOption) (*SaasDeploymentsClient, error)NewSaasDeploymentsRESTClient creates a new saas deployments rest client.
Manages the deployment of SaaS services.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
)
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 := saasservicemgmt.NewSaasDeploymentsRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func (*SaasDeploymentsClient) Close
func (c *SaasDeploymentsClient) Close() errorClose closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*SaasDeploymentsClient) Connection (deprecated)
func (c *SaasDeploymentsClient) Connection() *grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*SaasDeploymentsClient) CreateRelease
func (c *SaasDeploymentsClient) CreateRelease(ctx context.Context, req *saasservicemgmtpb.CreateReleaseRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Release, error)CreateRelease create a new release.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.CreateReleaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#CreateReleaseRequest.
}
resp, err := c.CreateRelease(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) CreateSaas
func (c *SaasDeploymentsClient) CreateSaas(ctx context.Context, req *saasservicemgmtpb.CreateSaasRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Saas, error)CreateSaas create a new saas.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.CreateSaasRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#CreateSaasRequest.
}
resp, err := c.CreateSaas(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) CreateTenant
func (c *SaasDeploymentsClient) CreateTenant(ctx context.Context, req *saasservicemgmtpb.CreateTenantRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Tenant, error)CreateTenant create a new tenant.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.CreateTenantRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#CreateTenantRequest.
}
resp, err := c.CreateTenant(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) CreateUnit
func (c *SaasDeploymentsClient) CreateUnit(ctx context.Context, req *saasservicemgmtpb.CreateUnitRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Unit, error)CreateUnit create a new unit.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.CreateUnitRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#CreateUnitRequest.
}
resp, err := c.CreateUnit(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) CreateUnitKind
func (c *SaasDeploymentsClient) CreateUnitKind(ctx context.Context, req *saasservicemgmtpb.CreateUnitKindRequest, opts ...gax.CallOption) (*saasservicemgmtpb.UnitKind, error)CreateUnitKind create a new unit kind.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.CreateUnitKindRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#CreateUnitKindRequest.
}
resp, err := c.CreateUnitKind(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) CreateUnitOperation
func (c *SaasDeploymentsClient) CreateUnitOperation(ctx context.Context, req *saasservicemgmtpb.CreateUnitOperationRequest, opts ...gax.CallOption) (*saasservicemgmtpb.UnitOperation, error)CreateUnitOperation create a new unit operation.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.CreateUnitOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#CreateUnitOperationRequest.
}
resp, err := c.CreateUnitOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) DeleteRelease
func (c *SaasDeploymentsClient) DeleteRelease(ctx context.Context, req *saasservicemgmtpb.DeleteReleaseRequest, opts ...gax.CallOption) errorDeleteRelease delete a single release.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.DeleteReleaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#DeleteReleaseRequest.
}
err = c.DeleteRelease(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*SaasDeploymentsClient) DeleteSaas
func (c *SaasDeploymentsClient) DeleteSaas(ctx context.Context, req *saasservicemgmtpb.DeleteSaasRequest, opts ...gax.CallOption) errorDeleteSaas delete a single saas.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.DeleteSaasRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#DeleteSaasRequest.
}
err = c.DeleteSaas(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*SaasDeploymentsClient) DeleteTenant
func (c *SaasDeploymentsClient) DeleteTenant(ctx context.Context, req *saasservicemgmtpb.DeleteTenantRequest, opts ...gax.CallOption) errorDeleteTenant delete a single tenant.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.DeleteTenantRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#DeleteTenantRequest.
}
err = c.DeleteTenant(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*SaasDeploymentsClient) DeleteUnit
func (c *SaasDeploymentsClient) DeleteUnit(ctx context.Context, req *saasservicemgmtpb.DeleteUnitRequest, opts ...gax.CallOption) errorDeleteUnit delete a single unit.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.DeleteUnitRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#DeleteUnitRequest.
}
err = c.DeleteUnit(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*SaasDeploymentsClient) DeleteUnitKind
func (c *SaasDeploymentsClient) DeleteUnitKind(ctx context.Context, req *saasservicemgmtpb.DeleteUnitKindRequest, opts ...gax.CallOption) errorDeleteUnitKind delete a single unit kind.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.DeleteUnitKindRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#DeleteUnitKindRequest.
}
err = c.DeleteUnitKind(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*SaasDeploymentsClient) DeleteUnitOperation
func (c *SaasDeploymentsClient) DeleteUnitOperation(ctx context.Context, req *saasservicemgmtpb.DeleteUnitOperationRequest, opts ...gax.CallOption) errorDeleteUnitOperation delete a single unit operation.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.DeleteUnitOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#DeleteUnitOperationRequest.
}
err = c.DeleteUnitOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*SaasDeploymentsClient) GetLocation
func (c *SaasDeploymentsClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)GetLocation gets information about a location.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
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 := saasservicemgmt.NewSaasDeploymentsClient(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 (*SaasDeploymentsClient) GetRelease
func (c *SaasDeploymentsClient) GetRelease(ctx context.Context, req *saasservicemgmtpb.GetReleaseRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Release, error)GetRelease retrieve a single release.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.GetReleaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#GetReleaseRequest.
}
resp, err := c.GetRelease(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) GetSaas
func (c *SaasDeploymentsClient) GetSaas(ctx context.Context, req *saasservicemgmtpb.GetSaasRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Saas, error)GetSaas retrieve a single saas.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.GetSaasRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#GetSaasRequest.
}
resp, err := c.GetSaas(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) GetTenant
func (c *SaasDeploymentsClient) GetTenant(ctx context.Context, req *saasservicemgmtpb.GetTenantRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Tenant, error)GetTenant retrieve a single tenant.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.GetTenantRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#GetTenantRequest.
}
resp, err := c.GetTenant(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) GetUnit
func (c *SaasDeploymentsClient) GetUnit(ctx context.Context, req *saasservicemgmtpb.GetUnitRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Unit, error)GetUnit retrieve a single unit.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.GetUnitRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#GetUnitRequest.
}
resp, err := c.GetUnit(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) GetUnitKind
func (c *SaasDeploymentsClient) GetUnitKind(ctx context.Context, req *saasservicemgmtpb.GetUnitKindRequest, opts ...gax.CallOption) (*saasservicemgmtpb.UnitKind, error)GetUnitKind retrieve a single unit kind.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.GetUnitKindRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#GetUnitKindRequest.
}
resp, err := c.GetUnitKind(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) GetUnitOperation
func (c *SaasDeploymentsClient) GetUnitOperation(ctx context.Context, req *saasservicemgmtpb.GetUnitOperationRequest, opts ...gax.CallOption) (*saasservicemgmtpb.UnitOperation, error)GetUnitOperation retrieve a single unit operation.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.GetUnitOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#GetUnitOperationRequest.
}
resp, err := c.GetUnitOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) ListLocations
func (c *SaasDeploymentsClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIteratorListLocations lists information about the supported locations for this service.
Examples
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
"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 := saasservicemgmt.NewSaasDeploymentsClient(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"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
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 := saasservicemgmt.NewSaasDeploymentsClient(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 (*SaasDeploymentsClient) ListReleases
func (c *SaasDeploymentsClient) ListReleases(ctx context.Context, req *saasservicemgmtpb.ListReleasesRequest, opts ...gax.CallOption) *ReleaseIteratorListReleases retrieve a collection of releases.
Examples
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
"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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListReleasesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListReleasesRequest.
}
it := c.ListReleases(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.(*saasservicemgmtpb.ListReleasesResponse)
}
}
all
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListReleasesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListReleasesRequest.
}
for resp, err := range c.ListReleases(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*SaasDeploymentsClient) ListSaas
func (c *SaasDeploymentsClient) ListSaas(ctx context.Context, req *saasservicemgmtpb.ListSaasRequest, opts ...gax.CallOption) *SaasIteratorListSaas retrieve a collection of saas.
Examples
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
"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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListSaasRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListSaasRequest.
}
it := c.ListSaas(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.(*saasservicemgmtpb.ListSaasResponse)
}
}
all
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListSaasRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListSaasRequest.
}
for resp, err := range c.ListSaas(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*SaasDeploymentsClient) ListTenants
func (c *SaasDeploymentsClient) ListTenants(ctx context.Context, req *saasservicemgmtpb.ListTenantsRequest, opts ...gax.CallOption) *TenantIteratorListTenants retrieve a collection of tenants.
Examples
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
"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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListTenantsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListTenantsRequest.
}
it := c.ListTenants(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.(*saasservicemgmtpb.ListTenantsResponse)
}
}
all
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListTenantsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListTenantsRequest.
}
for resp, err := range c.ListTenants(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*SaasDeploymentsClient) ListUnitKinds
func (c *SaasDeploymentsClient) ListUnitKinds(ctx context.Context, req *saasservicemgmtpb.ListUnitKindsRequest, opts ...gax.CallOption) *UnitKindIteratorListUnitKinds retrieve a collection of unit kinds.
Examples
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
"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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListUnitKindsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListUnitKindsRequest.
}
it := c.ListUnitKinds(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.(*saasservicemgmtpb.ListUnitKindsResponse)
}
}
all
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListUnitKindsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListUnitKindsRequest.
}
for resp, err := range c.ListUnitKinds(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*SaasDeploymentsClient) ListUnitOperations
func (c *SaasDeploymentsClient) ListUnitOperations(ctx context.Context, req *saasservicemgmtpb.ListUnitOperationsRequest, opts ...gax.CallOption) *UnitOperationIteratorListUnitOperations retrieve a collection of unit operations.
Examples
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
"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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListUnitOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListUnitOperationsRequest.
}
it := c.ListUnitOperations(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.(*saasservicemgmtpb.ListUnitOperationsResponse)
}
}
all
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListUnitOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListUnitOperationsRequest.
}
for resp, err := range c.ListUnitOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*SaasDeploymentsClient) ListUnits
func (c *SaasDeploymentsClient) ListUnits(ctx context.Context, req *saasservicemgmtpb.ListUnitsRequest, opts ...gax.CallOption) *UnitIteratorListUnits retrieve a collection of units.
Examples
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
"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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListUnitsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListUnitsRequest.
}
it := c.ListUnits(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.(*saasservicemgmtpb.ListUnitsResponse)
}
}
all
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListUnitsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListUnitsRequest.
}
for resp, err := range c.ListUnits(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*SaasDeploymentsClient) UpdateRelease
func (c *SaasDeploymentsClient) UpdateRelease(ctx context.Context, req *saasservicemgmtpb.UpdateReleaseRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Release, error)UpdateRelease update a single release.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.UpdateReleaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#UpdateReleaseRequest.
}
resp, err := c.UpdateRelease(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) UpdateSaas
func (c *SaasDeploymentsClient) UpdateSaas(ctx context.Context, req *saasservicemgmtpb.UpdateSaasRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Saas, error)UpdateSaas update a single saas.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.UpdateSaasRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#UpdateSaasRequest.
}
resp, err := c.UpdateSaas(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) UpdateTenant
func (c *SaasDeploymentsClient) UpdateTenant(ctx context.Context, req *saasservicemgmtpb.UpdateTenantRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Tenant, error)UpdateTenant update a single tenant.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.UpdateTenantRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#UpdateTenantRequest.
}
resp, err := c.UpdateTenant(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) UpdateUnit
func (c *SaasDeploymentsClient) UpdateUnit(ctx context.Context, req *saasservicemgmtpb.UpdateUnitRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Unit, error)UpdateUnit update a single unit.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.UpdateUnitRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#UpdateUnitRequest.
}
resp, err := c.UpdateUnit(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) UpdateUnitKind
func (c *SaasDeploymentsClient) UpdateUnitKind(ctx context.Context, req *saasservicemgmtpb.UpdateUnitKindRequest, opts ...gax.CallOption) (*saasservicemgmtpb.UnitKind, error)UpdateUnitKind update a single unit kind.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.UpdateUnitKindRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#UpdateUnitKindRequest.
}
resp, err := c.UpdateUnitKind(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasDeploymentsClient) UpdateUnitOperation
func (c *SaasDeploymentsClient) UpdateUnitOperation(ctx context.Context, req *saasservicemgmtpb.UpdateUnitOperationRequest, opts ...gax.CallOption) (*saasservicemgmtpb.UnitOperation, error)UpdateUnitOperation update a single unit operation.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasDeploymentsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.UpdateUnitOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#UpdateUnitOperationRequest.
}
resp, err := c.UpdateUnitOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
SaasIterator
type SaasIterator 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 []*saasservicemgmtpb.Saas, nextPageToken string, err error)
// contains filtered or unexported fields
}SaasIterator manages a stream of *saasservicemgmtpb.Saas.
func (*SaasIterator) All
func (it *SaasIterator) All() iter.Seq2[*saasservicemgmtpb.Saas, error]All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SaasIterator) Next
func (it *SaasIterator) Next() (*saasservicemgmtpb.Saas, 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 (*SaasIterator) PageInfo
func (it *SaasIterator) PageInfo() *iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
SaasRolloutsCallOptions
type SaasRolloutsCallOptions struct {
ListRollouts []gax.CallOption
GetRollout []gax.CallOption
CreateRollout []gax.CallOption
UpdateRollout []gax.CallOption
DeleteRollout []gax.CallOption
ListRolloutKinds []gax.CallOption
GetRolloutKind []gax.CallOption
CreateRolloutKind []gax.CallOption
UpdateRolloutKind []gax.CallOption
DeleteRolloutKind []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
}SaasRolloutsCallOptions contains the retry settings for each method of SaasRolloutsClient.
SaasRolloutsClient
type SaasRolloutsClient struct {
// The call options for this service.
CallOptions *SaasRolloutsCallOptions
// contains filtered or unexported fields
}SaasRolloutsClient is a client for interacting with SaaS Runtime API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Manages the rollout of SaaS services.
func NewSaasRolloutsClient
func NewSaasRolloutsClient(ctx context.Context, opts ...option.ClientOption) (*SaasRolloutsClient, error)NewSaasRolloutsClient creates a new saas rollouts client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Manages the rollout of SaaS services.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func NewSaasRolloutsRESTClient
func NewSaasRolloutsRESTClient(ctx context.Context, opts ...option.ClientOption) (*SaasRolloutsClient, error)NewSaasRolloutsRESTClient creates a new saas rollouts rest client.
Manages the rollout of SaaS services.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
)
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 := saasservicemgmt.NewSaasRolloutsRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func (*SaasRolloutsClient) Close
func (c *SaasRolloutsClient) Close() errorClose closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*SaasRolloutsClient) Connection (deprecated)
func (c *SaasRolloutsClient) Connection() *grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*SaasRolloutsClient) CreateRollout
func (c *SaasRolloutsClient) CreateRollout(ctx context.Context, req *saasservicemgmtpb.CreateRolloutRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Rollout, error)CreateRollout create a new rollout.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.CreateRolloutRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#CreateRolloutRequest.
}
resp, err := c.CreateRollout(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasRolloutsClient) CreateRolloutKind
func (c *SaasRolloutsClient) CreateRolloutKind(ctx context.Context, req *saasservicemgmtpb.CreateRolloutKindRequest, opts ...gax.CallOption) (*saasservicemgmtpb.RolloutKind, error)CreateRolloutKind create a new rollout kind.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.CreateRolloutKindRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#CreateRolloutKindRequest.
}
resp, err := c.CreateRolloutKind(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasRolloutsClient) DeleteRollout
func (c *SaasRolloutsClient) DeleteRollout(ctx context.Context, req *saasservicemgmtpb.DeleteRolloutRequest, opts ...gax.CallOption) errorDeleteRollout delete a single rollout.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.DeleteRolloutRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#DeleteRolloutRequest.
}
err = c.DeleteRollout(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*SaasRolloutsClient) DeleteRolloutKind
func (c *SaasRolloutsClient) DeleteRolloutKind(ctx context.Context, req *saasservicemgmtpb.DeleteRolloutKindRequest, opts ...gax.CallOption) errorDeleteRolloutKind delete a single rollout kind.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.DeleteRolloutKindRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#DeleteRolloutKindRequest.
}
err = c.DeleteRolloutKind(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*SaasRolloutsClient) GetLocation
func (c *SaasRolloutsClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)GetLocation gets information about a location.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
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 := saasservicemgmt.NewSaasRolloutsClient(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 (*SaasRolloutsClient) GetRollout
func (c *SaasRolloutsClient) GetRollout(ctx context.Context, req *saasservicemgmtpb.GetRolloutRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Rollout, error)GetRollout retrieve a single rollout.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.GetRolloutRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#GetRolloutRequest.
}
resp, err := c.GetRollout(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasRolloutsClient) GetRolloutKind
func (c *SaasRolloutsClient) GetRolloutKind(ctx context.Context, req *saasservicemgmtpb.GetRolloutKindRequest, opts ...gax.CallOption) (*saasservicemgmtpb.RolloutKind, error)GetRolloutKind retrieve a single rollout kind.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.GetRolloutKindRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#GetRolloutKindRequest.
}
resp, err := c.GetRolloutKind(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasRolloutsClient) ListLocations
func (c *SaasRolloutsClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIteratorListLocations lists information about the supported locations for this service.
Examples
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
"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 := saasservicemgmt.NewSaasRolloutsClient(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"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
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 := saasservicemgmt.NewSaasRolloutsClient(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 (*SaasRolloutsClient) ListRolloutKinds
func (c *SaasRolloutsClient) ListRolloutKinds(ctx context.Context, req *saasservicemgmtpb.ListRolloutKindsRequest, opts ...gax.CallOption) *RolloutKindIteratorListRolloutKinds retrieve a collection of rollout kinds.
Examples
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
"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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListRolloutKindsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListRolloutKindsRequest.
}
it := c.ListRolloutKinds(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.(*saasservicemgmtpb.ListRolloutKindsResponse)
}
}
all
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListRolloutKindsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListRolloutKindsRequest.
}
for resp, err := range c.ListRolloutKinds(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*SaasRolloutsClient) ListRollouts
func (c *SaasRolloutsClient) ListRollouts(ctx context.Context, req *saasservicemgmtpb.ListRolloutsRequest, opts ...gax.CallOption) *RolloutIteratorListRollouts retrieve a collection of rollouts.
Examples
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
"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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListRolloutsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListRolloutsRequest.
}
it := c.ListRollouts(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.(*saasservicemgmtpb.ListRolloutsResponse)
}
}
all
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.ListRolloutsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#ListRolloutsRequest.
}
for resp, err := range c.ListRollouts(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*SaasRolloutsClient) UpdateRollout
func (c *SaasRolloutsClient) UpdateRollout(ctx context.Context, req *saasservicemgmtpb.UpdateRolloutRequest, opts ...gax.CallOption) (*saasservicemgmtpb.Rollout, error)UpdateRollout update a single rollout.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.UpdateRolloutRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#UpdateRolloutRequest.
}
resp, err := c.UpdateRollout(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*SaasRolloutsClient) UpdateRolloutKind
func (c *SaasRolloutsClient) UpdateRolloutKind(ctx context.Context, req *saasservicemgmtpb.UpdateRolloutKindRequest, opts ...gax.CallOption) (*saasservicemgmtpb.RolloutKind, error)UpdateRolloutKind update a single rollout kind.
Example
package main
import (
"context"
saasservicemgmt "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1"
saasservicemgmtpb "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb"
)
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 := saasservicemgmt.NewSaasRolloutsClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &saasservicemgmtpb.UpdateRolloutKindRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb#UpdateRolloutKindRequest.
}
resp, err := c.UpdateRolloutKind(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
TenantIterator
type TenantIterator 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 []*saasservicemgmtpb.Tenant, nextPageToken string, err error)
// contains filtered or unexported fields
}TenantIterator manages a stream of *saasservicemgmtpb.Tenant.
func (*TenantIterator) All
func (it *TenantIterator) All() iter.Seq2[*saasservicemgmtpb.Tenant, error]All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*TenantIterator) Next
func (it *TenantIterator) Next() (*saasservicemgmtpb.Tenant, 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 (*TenantIterator) PageInfo
func (it *TenantIterator) PageInfo() *iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
UnitIterator
type UnitIterator 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 []*saasservicemgmtpb.Unit, nextPageToken string, err error)
// contains filtered or unexported fields
}UnitIterator manages a stream of *saasservicemgmtpb.Unit.
func (*UnitIterator) All
func (it *UnitIterator) All() iter.Seq2[*saasservicemgmtpb.Unit, error]All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*UnitIterator) Next
func (it *UnitIterator) Next() (*saasservicemgmtpb.Unit, 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 (*UnitIterator) PageInfo
func (it *UnitIterator) PageInfo() *iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
UnitKindIterator
type UnitKindIterator 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 []*saasservicemgmtpb.UnitKind, nextPageToken string, err error)
// contains filtered or unexported fields
}UnitKindIterator manages a stream of *saasservicemgmtpb.UnitKind.
func (*UnitKindIterator) All
func (it *UnitKindIterator) All() iter.Seq2[*saasservicemgmtpb.UnitKind, error]All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*UnitKindIterator) Next
func (it *UnitKindIterator) Next() (*saasservicemgmtpb.UnitKind, 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 (*UnitKindIterator) PageInfo
func (it *UnitKindIterator) PageInfo() *iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
UnitOperationIterator
type UnitOperationIterator 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 []*saasservicemgmtpb.UnitOperation, nextPageToken string, err error)
// contains filtered or unexported fields
}UnitOperationIterator manages a stream of *saasservicemgmtpb.UnitOperation.
func (*UnitOperationIterator) All
func (it *UnitOperationIterator) All() iter.Seq2[*saasservicemgmtpb.UnitOperation, error]All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*UnitOperationIterator) Next
func (it *UnitOperationIterator) Next() (*saasservicemgmtpb.UnitOperation, 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 (*UnitOperationIterator) PageInfo
func (it *UnitOperationIterator) PageInfo() *iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.