SaaS Runtime API v1beta1 - Package cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1 (v0.2.0)

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:

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() []string

DefaultAuthScopes 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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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() error

Close 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.ClientConn

Connection returns a connection to the API service.

Deprecated: Connections are now pooled so this method does not always return the same resource.

func (*SaasDeploymentsClient) CreateRelease

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

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

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

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

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

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

DeleteRelease 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

DeleteSaas 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

DeleteTenant 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

DeleteUnit 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

DeleteUnitKind 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

DeleteUnitOperation 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

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

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

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

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

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

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

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

ListLocations 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

ListReleases 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

ListSaas 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

ListTenants 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

ListUnitKinds 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

ListUnitOperations 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

ListUnits 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

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

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

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

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

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

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.PageInfo

PageInfo 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() error

Close 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.ClientConn

Connection returns a connection to the API service.

Deprecated: Connections are now pooled so this method does not always return the same resource.

func (*SaasRolloutsClient) CreateRollout

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

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

DeleteRollout 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

DeleteRolloutKind 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

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

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

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

ListLocations 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

ListRolloutKinds 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

ListRollouts 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

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

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

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.PageInfo

PageInfo 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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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

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.PageInfo

PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.