networksecurity

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package networksecurity is an auto-generated package for the Network Security API.

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/networksecurity/apiv1@latest
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(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 := &networksecuritypb.AddAddressGroupItemsRequest{
	// TODO: Fill request struct fields.
	// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#AddAddressGroupItemsRequest.
}
op, err := c.AddAddressGroupItems(ctx, req)
if err != nil {
	// TODO: Handle error.
}

resp, err := op.Wait(ctx)
if err != nil {
	// TODO: Handle error.
}
// TODO: Use resp.
_ = resp

Use of Context

The ctx passed to NewAddressGroupClient 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.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAuthScopes

func DefaultAuthScopes() []string

DefaultAuthScopes reports the default set of authentication scopes to use with this package.

Types

type AddAddressGroupItemsOperation

type AddAddressGroupItemsOperation struct {
	// contains filtered or unexported fields
}

AddAddressGroupItemsOperation manages a long-running operation from AddAddressGroupItems.

func (*AddAddressGroupItemsOperation) Done

Done reports whether the long-running operation has completed.

func (*AddAddressGroupItemsOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*AddAddressGroupItemsOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*AddAddressGroupItemsOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*AddAddressGroupItemsOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type AddressGroupCallOptions

type AddressGroupCallOptions struct {
	ListAddressGroups          []gax.CallOption
	GetAddressGroup            []gax.CallOption
	CreateAddressGroup         []gax.CallOption
	UpdateAddressGroup         []gax.CallOption
	AddAddressGroupItems       []gax.CallOption
	RemoveAddressGroupItems    []gax.CallOption
	CloneAddressGroupItems     []gax.CallOption
	DeleteAddressGroup         []gax.CallOption
	ListAddressGroupReferences []gax.CallOption
	GetLocation                []gax.CallOption
	ListLocations              []gax.CallOption
	GetIamPolicy               []gax.CallOption
	SetIamPolicy               []gax.CallOption
	TestIamPermissions         []gax.CallOption
	CancelOperation            []gax.CallOption
	DeleteOperation            []gax.CallOption
	GetOperation               []gax.CallOption
	ListOperations             []gax.CallOption
}

AddressGroupCallOptions contains the retry settings for each method of AddressGroupClient.

type AddressGroupClient

type AddressGroupClient struct {

	// The call options for this service.
	CallOptions *AddressGroupCallOptions

	// LROClient is used internally to handle long-running operations.
	// It is exposed so that its CallOptions can be modified if required.
	// Users should not Close this client.
	LROClient *lroauto.OperationsClient
	// contains filtered or unexported fields
}

AddressGroupClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

AddressGroup is a resource that manages a collection of IP or Domain Names, it can be used in Firewall Policy to represent allow or deny traffic from all the IP or Domain Names from the Address Group.

func NewAddressGroupClient

func NewAddressGroupClient(ctx context.Context, opts ...option.ClientOption) (*AddressGroupClient, error)

NewAddressGroupClient creates a new address group service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.

AddressGroup is a resource that manages a collection of IP or Domain Names, it can be used in Firewall Policy to represent allow or deny traffic from all the IP or Domain Names from the Address Group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func NewAddressGroupRESTClient

func NewAddressGroupRESTClient(ctx context.Context, opts ...option.ClientOption) (*AddressGroupClient, error)

NewAddressGroupRESTClient creates a new address group service rest client.

AddressGroup is a resource that manages a collection of IP or Domain Names, it can be used in Firewall Policy to represent allow or deny traffic from all the IP or Domain Names from the Address Group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupRESTClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func (*AddressGroupClient) AddAddressGroupItems

AddAddressGroupItems adds items to an address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.AddAddressGroupItemsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#AddAddressGroupItemsRequest.
	}
	op, err := c.AddAddressGroupItems(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*AddressGroupClient) AddAddressGroupItemsOperation

func (c *AddressGroupClient) AddAddressGroupItemsOperation(name string) *AddAddressGroupItemsOperation

AddAddressGroupItemsOperation returns a new AddAddressGroupItemsOperation from a given name. The name must be that of a previously created AddAddressGroupItemsOperation, possibly from a different process.

func (*AddressGroupClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.CancelOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
	}
	err = c.CancelOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*AddressGroupClient) CloneAddressGroupItems

CloneAddressGroupItems clones items from one address group to another.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CloneAddressGroupItemsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CloneAddressGroupItemsRequest.
	}
	op, err := c.CloneAddressGroupItems(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*AddressGroupClient) CloneAddressGroupItemsOperation

func (c *AddressGroupClient) CloneAddressGroupItemsOperation(name string) *CloneAddressGroupItemsOperation

CloneAddressGroupItemsOperation returns a new CloneAddressGroupItemsOperation from a given name. The name must be that of a previously created CloneAddressGroupItemsOperation, possibly from a different process.

func (*AddressGroupClient) Close

func (c *AddressGroupClient) Close() error

Close closes the connection to the API service. **Always** call Close() when the client is no longer required.

func (*AddressGroupClient) Connection deprecated

func (c *AddressGroupClient) 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 (*AddressGroupClient) CreateAddressGroup

CreateAddressGroup creates a new address group in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateAddressGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateAddressGroupRequest.
	}
	op, err := c.CreateAddressGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*AddressGroupClient) CreateAddressGroupOperation

func (c *AddressGroupClient) CreateAddressGroupOperation(name string) *CreateAddressGroupOperation

CreateAddressGroupOperation returns a new CreateAddressGroupOperation from a given name. The name must be that of a previously created CreateAddressGroupOperation, possibly from a different process.

func (*AddressGroupClient) DeleteAddressGroup

DeleteAddressGroup deletes a single address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteAddressGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteAddressGroupRequest.
	}
	op, err := c.DeleteAddressGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*AddressGroupClient) DeleteAddressGroupOperation

func (c *AddressGroupClient) DeleteAddressGroupOperation(name string) *DeleteAddressGroupOperation

DeleteAddressGroupOperation returns a new DeleteAddressGroupOperation from a given name. The name must be that of a previously created DeleteAddressGroupOperation, possibly from a different process.

func (*AddressGroupClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.DeleteOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
	}
	err = c.DeleteOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*AddressGroupClient) GetAddressGroup

GetAddressGroup gets details of a single address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetAddressGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetAddressGroupRequest.
	}
	resp, err := c.GetAddressGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*AddressGroupClient) GetIamPolicy

func (c *AddressGroupClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)

GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.GetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
	}
	resp, err := c.GetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*AddressGroupClient) GetLocation

GetLocation gets information about a location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(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 (*AddressGroupClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.GetOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
	}
	resp, err := c.GetOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*AddressGroupClient) ListAddressGroupReferences

ListAddressGroupReferences lists references of an address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAddressGroupReferencesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupReferencesRequest.
	}
	it := c.ListAddressGroupReferences(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.(*networksecuritypb.ListAddressGroupReferencesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAddressGroupReferencesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupReferencesRequest.
	}
	for resp, err := range c.ListAddressGroupReferences(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*AddressGroupClient) ListAddressGroups

ListAddressGroups lists address groups in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAddressGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupsRequest.
	}
	it := c.ListAddressGroups(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.(*networksecuritypb.ListAddressGroupsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAddressGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupsRequest.
	}
	for resp, err := range c.ListAddressGroups(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*AddressGroupClient) ListLocations

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(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)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(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 (*AddressGroupClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	it := c.ListOperations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*longrunningpb.ListOperationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	for resp, err := range c.ListOperations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*AddressGroupClient) RemoveAddressGroupItems

RemoveAddressGroupItems removes items from an address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.RemoveAddressGroupItemsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#RemoveAddressGroupItemsRequest.
	}
	op, err := c.RemoveAddressGroupItems(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*AddressGroupClient) RemoveAddressGroupItemsOperation

func (c *AddressGroupClient) RemoveAddressGroupItemsOperation(name string) *RemoveAddressGroupItemsOperation

RemoveAddressGroupItemsOperation returns a new RemoveAddressGroupItemsOperation from a given name. The name must be that of a previously created RemoveAddressGroupItemsOperation, possibly from a different process.

func (*AddressGroupClient) SetIamPolicy

func (c *AddressGroupClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)

SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.SetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
	}
	resp, err := c.SetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*AddressGroupClient) TestIamPermissions

TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.TestIamPermissionsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
	}
	resp, err := c.TestIamPermissions(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*AddressGroupClient) UpdateAddressGroup

UpdateAddressGroup updates the parameters of a single address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateAddressGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateAddressGroupRequest.
	}
	op, err := c.UpdateAddressGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*AddressGroupClient) UpdateAddressGroupOperation

func (c *AddressGroupClient) UpdateAddressGroupOperation(name string) *UpdateAddressGroupOperation

UpdateAddressGroupOperation returns a new UpdateAddressGroupOperation from a given name. The name must be that of a previously created UpdateAddressGroupOperation, possibly from a different process.

type AddressGroupIterator

type AddressGroupIterator 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 []*networksecuritypb.AddressGroup, nextPageToken string, err error)
	// contains filtered or unexported fields
}

AddressGroupIterator manages a stream of *networksecuritypb.AddressGroup.

func (*AddressGroupIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*AddressGroupIterator) 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 (*AddressGroupIterator) PageInfo

func (it *AddressGroupIterator) PageInfo() *iterator.PageInfo

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

type AuthorizationPolicyIterator

type AuthorizationPolicyIterator 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 []*networksecuritypb.AuthorizationPolicy, nextPageToken string, err error)
	// contains filtered or unexported fields
}

AuthorizationPolicyIterator manages a stream of *networksecuritypb.AuthorizationPolicy.

func (*AuthorizationPolicyIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*AuthorizationPolicyIterator) 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 (*AuthorizationPolicyIterator) PageInfo

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

type AuthzPolicyIterator

type AuthzPolicyIterator 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 []*networksecuritypb.AuthzPolicy, nextPageToken string, err error)
	// contains filtered or unexported fields
}

AuthzPolicyIterator manages a stream of *networksecuritypb.AuthzPolicy.

func (*AuthzPolicyIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*AuthzPolicyIterator) 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 (*AuthzPolicyIterator) PageInfo

func (it *AuthzPolicyIterator) PageInfo() *iterator.PageInfo

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

type BackendAuthenticationConfigIterator

type BackendAuthenticationConfigIterator 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 []*networksecuritypb.BackendAuthenticationConfig, nextPageToken string, err error)
	// contains filtered or unexported fields
}

BackendAuthenticationConfigIterator manages a stream of *networksecuritypb.BackendAuthenticationConfig.

func (*BackendAuthenticationConfigIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*BackendAuthenticationConfigIterator) 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 (*BackendAuthenticationConfigIterator) PageInfo

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

type CallOptions

type CallOptions struct {
	ListAuthorizationPolicies         []gax.CallOption
	GetAuthorizationPolicy            []gax.CallOption
	CreateAuthorizationPolicy         []gax.CallOption
	UpdateAuthorizationPolicy         []gax.CallOption
	DeleteAuthorizationPolicy         []gax.CallOption
	ListBackendAuthenticationConfigs  []gax.CallOption
	GetBackendAuthenticationConfig    []gax.CallOption
	CreateBackendAuthenticationConfig []gax.CallOption
	UpdateBackendAuthenticationConfig []gax.CallOption
	DeleteBackendAuthenticationConfig []gax.CallOption
	ListServerTlsPolicies             []gax.CallOption
	GetServerTlsPolicy                []gax.CallOption
	CreateServerTlsPolicy             []gax.CallOption
	UpdateServerTlsPolicy             []gax.CallOption
	DeleteServerTlsPolicy             []gax.CallOption
	ListClientTlsPolicies             []gax.CallOption
	GetClientTlsPolicy                []gax.CallOption
	CreateClientTlsPolicy             []gax.CallOption
	UpdateClientTlsPolicy             []gax.CallOption
	DeleteClientTlsPolicy             []gax.CallOption
	ListGatewaySecurityPolicies       []gax.CallOption
	GetGatewaySecurityPolicy          []gax.CallOption
	CreateGatewaySecurityPolicy       []gax.CallOption
	UpdateGatewaySecurityPolicy       []gax.CallOption
	DeleteGatewaySecurityPolicy       []gax.CallOption
	ListGatewaySecurityPolicyRules    []gax.CallOption
	GetGatewaySecurityPolicyRule      []gax.CallOption
	CreateGatewaySecurityPolicyRule   []gax.CallOption
	UpdateGatewaySecurityPolicyRule   []gax.CallOption
	DeleteGatewaySecurityPolicyRule   []gax.CallOption
	ListUrlLists                      []gax.CallOption
	GetUrlList                        []gax.CallOption
	CreateUrlList                     []gax.CallOption
	UpdateUrlList                     []gax.CallOption
	DeleteUrlList                     []gax.CallOption
	ListTlsInspectionPolicies         []gax.CallOption
	GetTlsInspectionPolicy            []gax.CallOption
	CreateTlsInspectionPolicy         []gax.CallOption
	UpdateTlsInspectionPolicy         []gax.CallOption
	DeleteTlsInspectionPolicy         []gax.CallOption
	ListAuthzPolicies                 []gax.CallOption
	GetAuthzPolicy                    []gax.CallOption
	CreateAuthzPolicy                 []gax.CallOption
	UpdateAuthzPolicy                 []gax.CallOption
	DeleteAuthzPolicy                 []gax.CallOption
	GetLocation                       []gax.CallOption
	ListLocations                     []gax.CallOption
	GetIamPolicy                      []gax.CallOption
	SetIamPolicy                      []gax.CallOption
	TestIamPermissions                []gax.CallOption
	CancelOperation                   []gax.CallOption
	DeleteOperation                   []gax.CallOption
	GetOperation                      []gax.CallOption
	ListOperations                    []gax.CallOption
}

CallOptions contains the retry settings for each method of Client.

type Client

type Client struct {

	// The call options for this service.
	CallOptions *CallOptions

	// LROClient is used internally to handle long-running operations.
	// It is exposed so that its CallOptions can be modified if required.
	// Users should not Close this client.
	LROClient *lroauto.OperationsClient
	// contains filtered or unexported fields
}

Client is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Network Security API provides resources to configure authentication and authorization policies. Refer to per API resource documentation for more information.

func NewClient

func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error)

NewClient creates a new network security client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.

Network Security API provides resources to configure authentication and authorization policies. Refer to per API resource documentation for more information.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func NewRESTClient

func NewRESTClient(ctx context.Context, opts ...option.ClientOption) (*Client, error)

NewRESTClient creates a new network security rest client.

Network Security API provides resources to configure authentication and authorization policies. Refer to per API resource documentation for more information.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewRESTClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func (*Client) CancelOperation

func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error

CancelOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.CancelOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
	}
	err = c.CancelOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) Close

func (c *Client) Close() error

Close closes the connection to the API service. **Always** call Close() when the client is no longer required.

func (*Client) Connection deprecated

func (c *Client) Connection() *grpc.ClientConn

Connection returns a connection to the API service.

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

func (*Client) CreateAuthorizationPolicy

CreateAuthorizationPolicy creates a new AuthorizationPolicy in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateAuthorizationPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateAuthorizationPolicyRequest.
	}
	op, err := c.CreateAuthorizationPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) CreateAuthorizationPolicyOperation

func (c *Client) CreateAuthorizationPolicyOperation(name string) *CreateAuthorizationPolicyOperation

CreateAuthorizationPolicyOperation returns a new CreateAuthorizationPolicyOperation from a given name. The name must be that of a previously created CreateAuthorizationPolicyOperation, possibly from a different process.

func (*Client) CreateAuthzPolicy

CreateAuthzPolicy creates a new AuthzPolicy in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateAuthzPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateAuthzPolicyRequest.
	}
	op, err := c.CreateAuthzPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) CreateAuthzPolicyOperation

func (c *Client) CreateAuthzPolicyOperation(name string) *CreateAuthzPolicyOperation

CreateAuthzPolicyOperation returns a new CreateAuthzPolicyOperation from a given name. The name must be that of a previously created CreateAuthzPolicyOperation, possibly from a different process.

func (*Client) CreateBackendAuthenticationConfig

CreateBackendAuthenticationConfig creates a new BackendAuthenticationConfig in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateBackendAuthenticationConfigRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateBackendAuthenticationConfigRequest.
	}
	op, err := c.CreateBackendAuthenticationConfig(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) CreateBackendAuthenticationConfigOperation

func (c *Client) CreateBackendAuthenticationConfigOperation(name string) *CreateBackendAuthenticationConfigOperation

CreateBackendAuthenticationConfigOperation returns a new CreateBackendAuthenticationConfigOperation from a given name. The name must be that of a previously created CreateBackendAuthenticationConfigOperation, possibly from a different process.

func (*Client) CreateClientTlsPolicy

CreateClientTlsPolicy creates a new ClientTlsPolicy in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateClientTlsPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateClientTlsPolicyRequest.
	}
	op, err := c.CreateClientTlsPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) CreateClientTlsPolicyOperation

func (c *Client) CreateClientTlsPolicyOperation(name string) *CreateClientTlsPolicyOperation

CreateClientTlsPolicyOperation returns a new CreateClientTlsPolicyOperation from a given name. The name must be that of a previously created CreateClientTlsPolicyOperation, possibly from a different process.

func (*Client) CreateGatewaySecurityPolicy

CreateGatewaySecurityPolicy creates a new GatewaySecurityPolicy in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateGatewaySecurityPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateGatewaySecurityPolicyRequest.
	}
	op, err := c.CreateGatewaySecurityPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) CreateGatewaySecurityPolicyOperation

func (c *Client) CreateGatewaySecurityPolicyOperation(name string) *CreateGatewaySecurityPolicyOperation

CreateGatewaySecurityPolicyOperation returns a new CreateGatewaySecurityPolicyOperation from a given name. The name must be that of a previously created CreateGatewaySecurityPolicyOperation, possibly from a different process.

func (*Client) CreateGatewaySecurityPolicyRule

CreateGatewaySecurityPolicyRule creates a new GatewaySecurityPolicy in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateGatewaySecurityPolicyRuleRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateGatewaySecurityPolicyRuleRequest.
	}
	op, err := c.CreateGatewaySecurityPolicyRule(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) CreateGatewaySecurityPolicyRuleOperation

func (c *Client) CreateGatewaySecurityPolicyRuleOperation(name string) *CreateGatewaySecurityPolicyRuleOperation

CreateGatewaySecurityPolicyRuleOperation returns a new CreateGatewaySecurityPolicyRuleOperation from a given name. The name must be that of a previously created CreateGatewaySecurityPolicyRuleOperation, possibly from a different process.

func (*Client) CreateServerTlsPolicy

CreateServerTlsPolicy creates a new ServerTlsPolicy in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateServerTlsPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateServerTlsPolicyRequest.
	}
	op, err := c.CreateServerTlsPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) CreateServerTlsPolicyOperation

func (c *Client) CreateServerTlsPolicyOperation(name string) *CreateServerTlsPolicyOperation

CreateServerTlsPolicyOperation returns a new CreateServerTlsPolicyOperation from a given name. The name must be that of a previously created CreateServerTlsPolicyOperation, possibly from a different process.

func (*Client) CreateTlsInspectionPolicy

CreateTlsInspectionPolicy creates a new TlsInspectionPolicy in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateTlsInspectionPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateTlsInspectionPolicyRequest.
	}
	op, err := c.CreateTlsInspectionPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) CreateTlsInspectionPolicyOperation

func (c *Client) CreateTlsInspectionPolicyOperation(name string) *CreateTlsInspectionPolicyOperation

CreateTlsInspectionPolicyOperation returns a new CreateTlsInspectionPolicyOperation from a given name. The name must be that of a previously created CreateTlsInspectionPolicyOperation, possibly from a different process.

func (*Client) CreateUrlList

CreateUrlList creates a new UrlList in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateUrlListRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateUrlListRequest.
	}
	op, err := c.CreateUrlList(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) CreateUrlListOperation

func (c *Client) CreateUrlListOperation(name string) *CreateUrlListOperation

CreateUrlListOperation returns a new CreateUrlListOperation from a given name. The name must be that of a previously created CreateUrlListOperation, possibly from a different process.

func (*Client) DeleteAuthorizationPolicy

DeleteAuthorizationPolicy deletes a single AuthorizationPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteAuthorizationPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteAuthorizationPolicyRequest.
	}
	op, err := c.DeleteAuthorizationPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) DeleteAuthorizationPolicyOperation

func (c *Client) DeleteAuthorizationPolicyOperation(name string) *DeleteAuthorizationPolicyOperation

DeleteAuthorizationPolicyOperation returns a new DeleteAuthorizationPolicyOperation from a given name. The name must be that of a previously created DeleteAuthorizationPolicyOperation, possibly from a different process.

func (*Client) DeleteAuthzPolicy

DeleteAuthzPolicy deletes a single AuthzPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteAuthzPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteAuthzPolicyRequest.
	}
	op, err := c.DeleteAuthzPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) DeleteAuthzPolicyOperation

func (c *Client) DeleteAuthzPolicyOperation(name string) *DeleteAuthzPolicyOperation

DeleteAuthzPolicyOperation returns a new DeleteAuthzPolicyOperation from a given name. The name must be that of a previously created DeleteAuthzPolicyOperation, possibly from a different process.

func (*Client) DeleteBackendAuthenticationConfig

DeleteBackendAuthenticationConfig deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteBackendAuthenticationConfigRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteBackendAuthenticationConfigRequest.
	}
	op, err := c.DeleteBackendAuthenticationConfig(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) DeleteBackendAuthenticationConfigOperation

func (c *Client) DeleteBackendAuthenticationConfigOperation(name string) *DeleteBackendAuthenticationConfigOperation

DeleteBackendAuthenticationConfigOperation returns a new DeleteBackendAuthenticationConfigOperation from a given name. The name must be that of a previously created DeleteBackendAuthenticationConfigOperation, possibly from a different process.

func (*Client) DeleteClientTlsPolicy

DeleteClientTlsPolicy deletes a single ClientTlsPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteClientTlsPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteClientTlsPolicyRequest.
	}
	op, err := c.DeleteClientTlsPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) DeleteClientTlsPolicyOperation

func (c *Client) DeleteClientTlsPolicyOperation(name string) *DeleteClientTlsPolicyOperation

DeleteClientTlsPolicyOperation returns a new DeleteClientTlsPolicyOperation from a given name. The name must be that of a previously created DeleteClientTlsPolicyOperation, possibly from a different process.

func (*Client) DeleteGatewaySecurityPolicy

DeleteGatewaySecurityPolicy deletes a single GatewaySecurityPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteGatewaySecurityPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteGatewaySecurityPolicyRequest.
	}
	op, err := c.DeleteGatewaySecurityPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) DeleteGatewaySecurityPolicyOperation

func (c *Client) DeleteGatewaySecurityPolicyOperation(name string) *DeleteGatewaySecurityPolicyOperation

DeleteGatewaySecurityPolicyOperation returns a new DeleteGatewaySecurityPolicyOperation from a given name. The name must be that of a previously created DeleteGatewaySecurityPolicyOperation, possibly from a different process.

func (*Client) DeleteGatewaySecurityPolicyRule

DeleteGatewaySecurityPolicyRule deletes a single GatewaySecurityPolicyRule.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteGatewaySecurityPolicyRuleRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteGatewaySecurityPolicyRuleRequest.
	}
	op, err := c.DeleteGatewaySecurityPolicyRule(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) DeleteGatewaySecurityPolicyRuleOperation

func (c *Client) DeleteGatewaySecurityPolicyRuleOperation(name string) *DeleteGatewaySecurityPolicyRuleOperation

DeleteGatewaySecurityPolicyRuleOperation returns a new DeleteGatewaySecurityPolicyRuleOperation from a given name. The name must be that of a previously created DeleteGatewaySecurityPolicyRuleOperation, possibly from a different process.

func (*Client) DeleteOperation

func (c *Client) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error

DeleteOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.DeleteOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
	}
	err = c.DeleteOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) DeleteServerTlsPolicy

DeleteServerTlsPolicy deletes a single ServerTlsPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteServerTlsPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteServerTlsPolicyRequest.
	}
	op, err := c.DeleteServerTlsPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) DeleteServerTlsPolicyOperation

func (c *Client) DeleteServerTlsPolicyOperation(name string) *DeleteServerTlsPolicyOperation

DeleteServerTlsPolicyOperation returns a new DeleteServerTlsPolicyOperation from a given name. The name must be that of a previously created DeleteServerTlsPolicyOperation, possibly from a different process.

func (*Client) DeleteTlsInspectionPolicy

DeleteTlsInspectionPolicy deletes a single TlsInspectionPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteTlsInspectionPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteTlsInspectionPolicyRequest.
	}
	op, err := c.DeleteTlsInspectionPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) DeleteTlsInspectionPolicyOperation

func (c *Client) DeleteTlsInspectionPolicyOperation(name string) *DeleteTlsInspectionPolicyOperation

DeleteTlsInspectionPolicyOperation returns a new DeleteTlsInspectionPolicyOperation from a given name. The name must be that of a previously created DeleteTlsInspectionPolicyOperation, possibly from a different process.

func (*Client) DeleteUrlList

DeleteUrlList deletes a single UrlList.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteUrlListRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteUrlListRequest.
	}
	op, err := c.DeleteUrlList(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*Client) DeleteUrlListOperation

func (c *Client) DeleteUrlListOperation(name string) *DeleteUrlListOperation

DeleteUrlListOperation returns a new DeleteUrlListOperation from a given name. The name must be that of a previously created DeleteUrlListOperation, possibly from a different process.

func (*Client) GetAuthorizationPolicy

GetAuthorizationPolicy gets details of a single AuthorizationPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetAuthorizationPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetAuthorizationPolicyRequest.
	}
	resp, err := c.GetAuthorizationPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetAuthzPolicy

GetAuthzPolicy gets details of a single AuthzPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetAuthzPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetAuthzPolicyRequest.
	}
	resp, err := c.GetAuthzPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetBackendAuthenticationConfig

GetBackendAuthenticationConfig gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetBackendAuthenticationConfigRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetBackendAuthenticationConfigRequest.
	}
	resp, err := c.GetBackendAuthenticationConfig(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetClientTlsPolicy

GetClientTlsPolicy gets details of a single ClientTlsPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetClientTlsPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetClientTlsPolicyRequest.
	}
	resp, err := c.GetClientTlsPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetGatewaySecurityPolicy

GetGatewaySecurityPolicy gets details of a single GatewaySecurityPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetGatewaySecurityPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetGatewaySecurityPolicyRequest.
	}
	resp, err := c.GetGatewaySecurityPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetGatewaySecurityPolicyRule

GetGatewaySecurityPolicyRule gets details of a single GatewaySecurityPolicyRule.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetGatewaySecurityPolicyRuleRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetGatewaySecurityPolicyRuleRequest.
	}
	resp, err := c.GetGatewaySecurityPolicyRule(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetIamPolicy

func (c *Client) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)

GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.GetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
	}
	resp, err := c.GetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetLocation

func (c *Client) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)

GetLocation gets information about a location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &locationpb.GetLocationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
	}
	resp, err := c.GetLocation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.GetOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
	}
	resp, err := c.GetOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetServerTlsPolicy

GetServerTlsPolicy gets details of a single ServerTlsPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetServerTlsPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetServerTlsPolicyRequest.
	}
	resp, err := c.GetServerTlsPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetTlsInspectionPolicy

GetTlsInspectionPolicy gets details of a single TlsInspectionPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetTlsInspectionPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetTlsInspectionPolicyRequest.
	}
	resp, err := c.GetTlsInspectionPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) GetUrlList

GetUrlList gets details of a single UrlList.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetUrlListRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetUrlListRequest.
	}
	resp, err := c.GetUrlList(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) ListAuthorizationPolicies

ListAuthorizationPolicies lists AuthorizationPolicies in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAuthorizationPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAuthorizationPoliciesRequest.
	}
	it := c.ListAuthorizationPolicies(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.(*networksecuritypb.ListAuthorizationPoliciesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAuthorizationPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAuthorizationPoliciesRequest.
	}
	for resp, err := range c.ListAuthorizationPolicies(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) ListAuthzPolicies

ListAuthzPolicies lists AuthzPolicies in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAuthzPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAuthzPoliciesRequest.
	}
	it := c.ListAuthzPolicies(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.(*networksecuritypb.ListAuthzPoliciesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAuthzPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAuthzPoliciesRequest.
	}
	for resp, err := range c.ListAuthzPolicies(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) ListBackendAuthenticationConfigs

ListBackendAuthenticationConfigs lists BackendAuthenticationConfigs in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListBackendAuthenticationConfigsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListBackendAuthenticationConfigsRequest.
	}
	it := c.ListBackendAuthenticationConfigs(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.(*networksecuritypb.ListBackendAuthenticationConfigsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListBackendAuthenticationConfigsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListBackendAuthenticationConfigsRequest.
	}
	for resp, err := range c.ListBackendAuthenticationConfigs(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) ListClientTlsPolicies

ListClientTlsPolicies lists ClientTlsPolicies in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListClientTlsPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListClientTlsPoliciesRequest.
	}
	it := c.ListClientTlsPolicies(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.(*networksecuritypb.ListClientTlsPoliciesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListClientTlsPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListClientTlsPoliciesRequest.
	}
	for resp, err := range c.ListClientTlsPolicies(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) ListGatewaySecurityPolicies

ListGatewaySecurityPolicies lists GatewaySecurityPolicies in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListGatewaySecurityPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListGatewaySecurityPoliciesRequest.
	}
	it := c.ListGatewaySecurityPolicies(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.(*networksecuritypb.ListGatewaySecurityPoliciesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListGatewaySecurityPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListGatewaySecurityPoliciesRequest.
	}
	for resp, err := range c.ListGatewaySecurityPolicies(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) ListGatewaySecurityPolicyRules

ListGatewaySecurityPolicyRules lists GatewaySecurityPolicyRules in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListGatewaySecurityPolicyRulesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListGatewaySecurityPolicyRulesRequest.
	}
	it := c.ListGatewaySecurityPolicyRules(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.(*networksecuritypb.ListGatewaySecurityPolicyRulesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListGatewaySecurityPolicyRulesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListGatewaySecurityPolicyRulesRequest.
	}
	for resp, err := range c.ListGatewaySecurityPolicyRules(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) ListLocations

func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &locationpb.ListLocationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
	}
	it := c.ListLocations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*locationpb.ListLocationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &locationpb.ListLocationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
	}
	for resp, err := range c.ListLocations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	it := c.ListOperations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*longrunningpb.ListOperationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	for resp, err := range c.ListOperations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) ListServerTlsPolicies

ListServerTlsPolicies lists ServerTlsPolicies in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListServerTlsPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListServerTlsPoliciesRequest.
	}
	it := c.ListServerTlsPolicies(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.(*networksecuritypb.ListServerTlsPoliciesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListServerTlsPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListServerTlsPoliciesRequest.
	}
	for resp, err := range c.ListServerTlsPolicies(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) ListTlsInspectionPolicies

ListTlsInspectionPolicies lists TlsInspectionPolicies in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListTlsInspectionPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListTlsInspectionPoliciesRequest.
	}
	it := c.ListTlsInspectionPolicies(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.(*networksecuritypb.ListTlsInspectionPoliciesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListTlsInspectionPoliciesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListTlsInspectionPoliciesRequest.
	}
	for resp, err := range c.ListTlsInspectionPolicies(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) ListUrlLists

ListUrlLists lists UrlLists in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListUrlListsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListUrlListsRequest.
	}
	it := c.ListUrlLists(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.(*networksecuritypb.ListUrlListsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListUrlListsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListUrlListsRequest.
	}
	for resp, err := range c.ListUrlLists(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*Client) SetIamPolicy

func (c *Client) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)

SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.SetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
	}
	resp, err := c.SetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) TestIamPermissions

TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.TestIamPermissionsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
	}
	resp, err := c.TestIamPermissions(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) UpdateAuthorizationPolicy

UpdateAuthorizationPolicy updates the parameters of a single AuthorizationPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateAuthorizationPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateAuthorizationPolicyRequest.
	}
	op, err := c.UpdateAuthorizationPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) UpdateAuthorizationPolicyOperation

func (c *Client) UpdateAuthorizationPolicyOperation(name string) *UpdateAuthorizationPolicyOperation

UpdateAuthorizationPolicyOperation returns a new UpdateAuthorizationPolicyOperation from a given name. The name must be that of a previously created UpdateAuthorizationPolicyOperation, possibly from a different process.

func (*Client) UpdateAuthzPolicy

UpdateAuthzPolicy updates the parameters of a single AuthzPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateAuthzPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateAuthzPolicyRequest.
	}
	op, err := c.UpdateAuthzPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) UpdateAuthzPolicyOperation

func (c *Client) UpdateAuthzPolicyOperation(name string) *UpdateAuthzPolicyOperation

UpdateAuthzPolicyOperation returns a new UpdateAuthzPolicyOperation from a given name. The name must be that of a previously created UpdateAuthzPolicyOperation, possibly from a different process.

func (*Client) UpdateBackendAuthenticationConfig

UpdateBackendAuthenticationConfig updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateBackendAuthenticationConfigRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateBackendAuthenticationConfigRequest.
	}
	op, err := c.UpdateBackendAuthenticationConfig(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) UpdateBackendAuthenticationConfigOperation

func (c *Client) UpdateBackendAuthenticationConfigOperation(name string) *UpdateBackendAuthenticationConfigOperation

UpdateBackendAuthenticationConfigOperation returns a new UpdateBackendAuthenticationConfigOperation from a given name. The name must be that of a previously created UpdateBackendAuthenticationConfigOperation, possibly from a different process.

func (*Client) UpdateClientTlsPolicy

UpdateClientTlsPolicy updates the parameters of a single ClientTlsPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateClientTlsPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateClientTlsPolicyRequest.
	}
	op, err := c.UpdateClientTlsPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) UpdateClientTlsPolicyOperation

func (c *Client) UpdateClientTlsPolicyOperation(name string) *UpdateClientTlsPolicyOperation

UpdateClientTlsPolicyOperation returns a new UpdateClientTlsPolicyOperation from a given name. The name must be that of a previously created UpdateClientTlsPolicyOperation, possibly from a different process.

func (*Client) UpdateGatewaySecurityPolicy

UpdateGatewaySecurityPolicy updates the parameters of a single GatewaySecurityPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateGatewaySecurityPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateGatewaySecurityPolicyRequest.
	}
	op, err := c.UpdateGatewaySecurityPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) UpdateGatewaySecurityPolicyOperation

func (c *Client) UpdateGatewaySecurityPolicyOperation(name string) *UpdateGatewaySecurityPolicyOperation

UpdateGatewaySecurityPolicyOperation returns a new UpdateGatewaySecurityPolicyOperation from a given name. The name must be that of a previously created UpdateGatewaySecurityPolicyOperation, possibly from a different process.

func (*Client) UpdateGatewaySecurityPolicyRule

UpdateGatewaySecurityPolicyRule updates the parameters of a single GatewaySecurityPolicyRule.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateGatewaySecurityPolicyRuleRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateGatewaySecurityPolicyRuleRequest.
	}
	op, err := c.UpdateGatewaySecurityPolicyRule(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) UpdateGatewaySecurityPolicyRuleOperation

func (c *Client) UpdateGatewaySecurityPolicyRuleOperation(name string) *UpdateGatewaySecurityPolicyRuleOperation

UpdateGatewaySecurityPolicyRuleOperation returns a new UpdateGatewaySecurityPolicyRuleOperation from a given name. The name must be that of a previously created UpdateGatewaySecurityPolicyRuleOperation, possibly from a different process.

func (*Client) UpdateServerTlsPolicy

UpdateServerTlsPolicy updates the parameters of a single ServerTlsPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateServerTlsPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateServerTlsPolicyRequest.
	}
	op, err := c.UpdateServerTlsPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) UpdateServerTlsPolicyOperation

func (c *Client) UpdateServerTlsPolicyOperation(name string) *UpdateServerTlsPolicyOperation

UpdateServerTlsPolicyOperation returns a new UpdateServerTlsPolicyOperation from a given name. The name must be that of a previously created UpdateServerTlsPolicyOperation, possibly from a different process.

func (*Client) UpdateTlsInspectionPolicy

UpdateTlsInspectionPolicy updates the parameters of a single TlsInspectionPolicy.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateTlsInspectionPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateTlsInspectionPolicyRequest.
	}
	op, err := c.UpdateTlsInspectionPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) UpdateTlsInspectionPolicyOperation

func (c *Client) UpdateTlsInspectionPolicyOperation(name string) *UpdateTlsInspectionPolicyOperation

UpdateTlsInspectionPolicyOperation returns a new UpdateTlsInspectionPolicyOperation from a given name. The name must be that of a previously created UpdateTlsInspectionPolicyOperation, possibly from a different process.

func (*Client) UpdateUrlList

UpdateUrlList updates the parameters of a single UrlList.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateUrlListRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateUrlListRequest.
	}
	op, err := c.UpdateUrlList(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*Client) UpdateUrlListOperation

func (c *Client) UpdateUrlListOperation(name string) *UpdateUrlListOperation

UpdateUrlListOperation returns a new UpdateUrlListOperation from a given name. The name must be that of a previously created UpdateUrlListOperation, possibly from a different process.

type ClientTlsPolicyIterator

type ClientTlsPolicyIterator 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 []*networksecuritypb.ClientTlsPolicy, nextPageToken string, err error)
	// contains filtered or unexported fields
}

ClientTlsPolicyIterator manages a stream of *networksecuritypb.ClientTlsPolicy.

func (*ClientTlsPolicyIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*ClientTlsPolicyIterator) 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 (*ClientTlsPolicyIterator) PageInfo

func (it *ClientTlsPolicyIterator) PageInfo() *iterator.PageInfo

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

type CloneAddressGroupItemsOperation

type CloneAddressGroupItemsOperation struct {
	// contains filtered or unexported fields
}

CloneAddressGroupItemsOperation manages a long-running operation from CloneAddressGroupItems.

func (*CloneAddressGroupItemsOperation) Done

Done reports whether the long-running operation has completed.

func (*CloneAddressGroupItemsOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CloneAddressGroupItemsOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CloneAddressGroupItemsOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CloneAddressGroupItemsOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateAddressGroupOperation

type CreateAddressGroupOperation struct {
	// contains filtered or unexported fields
}

CreateAddressGroupOperation manages a long-running operation from CreateAddressGroup.

func (*CreateAddressGroupOperation) Done

func (op *CreateAddressGroupOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*CreateAddressGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateAddressGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateAddressGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateAddressGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateAuthorizationPolicyOperation

type CreateAuthorizationPolicyOperation struct {
	// contains filtered or unexported fields
}

CreateAuthorizationPolicyOperation manages a long-running operation from CreateAuthorizationPolicy.

func (*CreateAuthorizationPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateAuthorizationPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateAuthorizationPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateAuthorizationPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateAuthorizationPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateAuthzPolicyOperation

type CreateAuthzPolicyOperation struct {
	// contains filtered or unexported fields
}

CreateAuthzPolicyOperation manages a long-running operation from CreateAuthzPolicy.

func (*CreateAuthzPolicyOperation) Done

func (op *CreateAuthzPolicyOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*CreateAuthzPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateAuthzPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateAuthzPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateAuthzPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateBackendAuthenticationConfigOperation

type CreateBackendAuthenticationConfigOperation struct {
	// contains filtered or unexported fields
}

CreateBackendAuthenticationConfigOperation manages a long-running operation from CreateBackendAuthenticationConfig.

func (*CreateBackendAuthenticationConfigOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateBackendAuthenticationConfigOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateBackendAuthenticationConfigOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateBackendAuthenticationConfigOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateBackendAuthenticationConfigOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateClientTlsPolicyOperation

type CreateClientTlsPolicyOperation struct {
	// contains filtered or unexported fields
}

CreateClientTlsPolicyOperation manages a long-running operation from CreateClientTlsPolicy.

func (*CreateClientTlsPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateClientTlsPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateClientTlsPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateClientTlsPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateClientTlsPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateFirewallEndpointAssociationOperation

type CreateFirewallEndpointAssociationOperation struct {
	// contains filtered or unexported fields
}

CreateFirewallEndpointAssociationOperation manages a long-running operation from CreateFirewallEndpointAssociation.

func (*CreateFirewallEndpointAssociationOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateFirewallEndpointAssociationOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateFirewallEndpointAssociationOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateFirewallEndpointAssociationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateFirewallEndpointAssociationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateFirewallEndpointOperation

type CreateFirewallEndpointOperation struct {
	// contains filtered or unexported fields
}

CreateFirewallEndpointOperation manages a long-running operation from CreateFirewallEndpoint.

func (*CreateFirewallEndpointOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateFirewallEndpointOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateFirewallEndpointOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateFirewallEndpointOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateFirewallEndpointOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateGatewaySecurityPolicyOperation

type CreateGatewaySecurityPolicyOperation struct {
	// contains filtered or unexported fields
}

CreateGatewaySecurityPolicyOperation manages a long-running operation from CreateGatewaySecurityPolicy.

func (*CreateGatewaySecurityPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateGatewaySecurityPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateGatewaySecurityPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateGatewaySecurityPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateGatewaySecurityPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateGatewaySecurityPolicyRuleOperation

type CreateGatewaySecurityPolicyRuleOperation struct {
	// contains filtered or unexported fields
}

CreateGatewaySecurityPolicyRuleOperation manages a long-running operation from CreateGatewaySecurityPolicyRule.

func (*CreateGatewaySecurityPolicyRuleOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateGatewaySecurityPolicyRuleOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateGatewaySecurityPolicyRuleOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateGatewaySecurityPolicyRuleOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateGatewaySecurityPolicyRuleOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateInterceptDeploymentGroupOperation

type CreateInterceptDeploymentGroupOperation struct {
	// contains filtered or unexported fields
}

CreateInterceptDeploymentGroupOperation manages a long-running operation from CreateInterceptDeploymentGroup.

func (*CreateInterceptDeploymentGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateInterceptDeploymentGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateInterceptDeploymentGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateInterceptDeploymentGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateInterceptDeploymentGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateInterceptDeploymentOperation

type CreateInterceptDeploymentOperation struct {
	// contains filtered or unexported fields
}

CreateInterceptDeploymentOperation manages a long-running operation from CreateInterceptDeployment.

func (*CreateInterceptDeploymentOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateInterceptDeploymentOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateInterceptDeploymentOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateInterceptDeploymentOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateInterceptDeploymentOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateInterceptEndpointGroupAssociationOperation

type CreateInterceptEndpointGroupAssociationOperation struct {
	// contains filtered or unexported fields
}

CreateInterceptEndpointGroupAssociationOperation manages a long-running operation from CreateInterceptEndpointGroupAssociation.

func (*CreateInterceptEndpointGroupAssociationOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateInterceptEndpointGroupAssociationOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateInterceptEndpointGroupAssociationOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateInterceptEndpointGroupAssociationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateInterceptEndpointGroupAssociationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateInterceptEndpointGroupOperation

type CreateInterceptEndpointGroupOperation struct {
	// contains filtered or unexported fields
}

CreateInterceptEndpointGroupOperation manages a long-running operation from CreateInterceptEndpointGroup.

func (*CreateInterceptEndpointGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateInterceptEndpointGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateInterceptEndpointGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateInterceptEndpointGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateInterceptEndpointGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateMirroringDeploymentGroupOperation

type CreateMirroringDeploymentGroupOperation struct {
	// contains filtered or unexported fields
}

CreateMirroringDeploymentGroupOperation manages a long-running operation from CreateMirroringDeploymentGroup.

func (*CreateMirroringDeploymentGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateMirroringDeploymentGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateMirroringDeploymentGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateMirroringDeploymentGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateMirroringDeploymentGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateMirroringDeploymentOperation

type CreateMirroringDeploymentOperation struct {
	// contains filtered or unexported fields
}

CreateMirroringDeploymentOperation manages a long-running operation from CreateMirroringDeployment.

func (*CreateMirroringDeploymentOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateMirroringDeploymentOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateMirroringDeploymentOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateMirroringDeploymentOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateMirroringDeploymentOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateMirroringEndpointGroupAssociationOperation

type CreateMirroringEndpointGroupAssociationOperation struct {
	// contains filtered or unexported fields
}

CreateMirroringEndpointGroupAssociationOperation manages a long-running operation from CreateMirroringEndpointGroupAssociation.

func (*CreateMirroringEndpointGroupAssociationOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateMirroringEndpointGroupAssociationOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateMirroringEndpointGroupAssociationOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateMirroringEndpointGroupAssociationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateMirroringEndpointGroupAssociationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateMirroringEndpointGroupOperation

type CreateMirroringEndpointGroupOperation struct {
	// contains filtered or unexported fields
}

CreateMirroringEndpointGroupOperation manages a long-running operation from CreateMirroringEndpointGroup.

func (*CreateMirroringEndpointGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateMirroringEndpointGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateMirroringEndpointGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateMirroringEndpointGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateMirroringEndpointGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateProjectFirewallEndpointOperation

type CreateProjectFirewallEndpointOperation struct {
	// contains filtered or unexported fields
}

CreateProjectFirewallEndpointOperation manages a long-running operation from CreateProjectFirewallEndpoint.

func (*CreateProjectFirewallEndpointOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateProjectFirewallEndpointOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateProjectFirewallEndpointOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateProjectFirewallEndpointOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateProjectFirewallEndpointOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateSACAttachmentOperation

type CreateSACAttachmentOperation struct {
	// contains filtered or unexported fields
}

CreateSACAttachmentOperation manages a long-running operation from CreateSACAttachment.

func (*CreateSACAttachmentOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateSACAttachmentOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateSACAttachmentOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateSACAttachmentOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateSACAttachmentOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateSACRealmOperation

type CreateSACRealmOperation struct {
	// contains filtered or unexported fields
}

CreateSACRealmOperation manages a long-running operation from CreateSACRealm.

func (*CreateSACRealmOperation) Done

func (op *CreateSACRealmOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*CreateSACRealmOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateSACRealmOperation) Name

func (op *CreateSACRealmOperation) Name() string

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateSACRealmOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateSACRealmOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateSecurityProfileGroupOperation

type CreateSecurityProfileGroupOperation struct {
	// contains filtered or unexported fields
}

CreateSecurityProfileGroupOperation manages a long-running operation from CreateSecurityProfileGroup.

func (*CreateSecurityProfileGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateSecurityProfileGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateSecurityProfileGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateSecurityProfileGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateSecurityProfileGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateSecurityProfileOperation

type CreateSecurityProfileOperation struct {
	// contains filtered or unexported fields
}

CreateSecurityProfileOperation manages a long-running operation from CreateSecurityProfile.

func (*CreateSecurityProfileOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateSecurityProfileOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateSecurityProfileOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateSecurityProfileOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateSecurityProfileOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateServerTlsPolicyOperation

type CreateServerTlsPolicyOperation struct {
	// contains filtered or unexported fields
}

CreateServerTlsPolicyOperation manages a long-running operation from CreateServerTlsPolicy.

func (*CreateServerTlsPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateServerTlsPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateServerTlsPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateServerTlsPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateServerTlsPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateTlsInspectionPolicyOperation

type CreateTlsInspectionPolicyOperation struct {
	// contains filtered or unexported fields
}

CreateTlsInspectionPolicyOperation manages a long-running operation from CreateTlsInspectionPolicy.

func (*CreateTlsInspectionPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*CreateTlsInspectionPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateTlsInspectionPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateTlsInspectionPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateTlsInspectionPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type CreateUrlListOperation

type CreateUrlListOperation struct {
	// contains filtered or unexported fields
}

CreateUrlListOperation manages a long-running operation from CreateUrlList.

func (*CreateUrlListOperation) Done

func (op *CreateUrlListOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*CreateUrlListOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*CreateUrlListOperation) Name

func (op *CreateUrlListOperation) Name() string

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*CreateUrlListOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*CreateUrlListOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteAddressGroupOperation

type DeleteAddressGroupOperation struct {
	// contains filtered or unexported fields
}

DeleteAddressGroupOperation manages a long-running operation from DeleteAddressGroup.

func (*DeleteAddressGroupOperation) Done

func (op *DeleteAddressGroupOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*DeleteAddressGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteAddressGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteAddressGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteAddressGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteAuthorizationPolicyOperation

type DeleteAuthorizationPolicyOperation struct {
	// contains filtered or unexported fields
}

DeleteAuthorizationPolicyOperation manages a long-running operation from DeleteAuthorizationPolicy.

func (*DeleteAuthorizationPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteAuthorizationPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteAuthorizationPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteAuthorizationPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteAuthorizationPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteAuthzPolicyOperation

type DeleteAuthzPolicyOperation struct {
	// contains filtered or unexported fields
}

DeleteAuthzPolicyOperation manages a long-running operation from DeleteAuthzPolicy.

func (*DeleteAuthzPolicyOperation) Done

func (op *DeleteAuthzPolicyOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*DeleteAuthzPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteAuthzPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteAuthzPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteAuthzPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteBackendAuthenticationConfigOperation

type DeleteBackendAuthenticationConfigOperation struct {
	// contains filtered or unexported fields
}

DeleteBackendAuthenticationConfigOperation manages a long-running operation from DeleteBackendAuthenticationConfig.

func (*DeleteBackendAuthenticationConfigOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteBackendAuthenticationConfigOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteBackendAuthenticationConfigOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteBackendAuthenticationConfigOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteBackendAuthenticationConfigOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteClientTlsPolicyOperation

type DeleteClientTlsPolicyOperation struct {
	// contains filtered or unexported fields
}

DeleteClientTlsPolicyOperation manages a long-running operation from DeleteClientTlsPolicy.

func (*DeleteClientTlsPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteClientTlsPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteClientTlsPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteClientTlsPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteClientTlsPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteFirewallEndpointAssociationOperation

type DeleteFirewallEndpointAssociationOperation struct {
	// contains filtered or unexported fields
}

DeleteFirewallEndpointAssociationOperation manages a long-running operation from DeleteFirewallEndpointAssociation.

func (*DeleteFirewallEndpointAssociationOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteFirewallEndpointAssociationOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteFirewallEndpointAssociationOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteFirewallEndpointAssociationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteFirewallEndpointAssociationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteFirewallEndpointOperation

type DeleteFirewallEndpointOperation struct {
	// contains filtered or unexported fields
}

DeleteFirewallEndpointOperation manages a long-running operation from DeleteFirewallEndpoint.

func (*DeleteFirewallEndpointOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteFirewallEndpointOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteFirewallEndpointOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteFirewallEndpointOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteFirewallEndpointOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteGatewaySecurityPolicyOperation

type DeleteGatewaySecurityPolicyOperation struct {
	// contains filtered or unexported fields
}

DeleteGatewaySecurityPolicyOperation manages a long-running operation from DeleteGatewaySecurityPolicy.

func (*DeleteGatewaySecurityPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteGatewaySecurityPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteGatewaySecurityPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteGatewaySecurityPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteGatewaySecurityPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteGatewaySecurityPolicyRuleOperation

type DeleteGatewaySecurityPolicyRuleOperation struct {
	// contains filtered or unexported fields
}

DeleteGatewaySecurityPolicyRuleOperation manages a long-running operation from DeleteGatewaySecurityPolicyRule.

func (*DeleteGatewaySecurityPolicyRuleOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteGatewaySecurityPolicyRuleOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteGatewaySecurityPolicyRuleOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteGatewaySecurityPolicyRuleOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteGatewaySecurityPolicyRuleOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteInterceptDeploymentGroupOperation

type DeleteInterceptDeploymentGroupOperation struct {
	// contains filtered or unexported fields
}

DeleteInterceptDeploymentGroupOperation manages a long-running operation from DeleteInterceptDeploymentGroup.

func (*DeleteInterceptDeploymentGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteInterceptDeploymentGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteInterceptDeploymentGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteInterceptDeploymentGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteInterceptDeploymentGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteInterceptDeploymentOperation

type DeleteInterceptDeploymentOperation struct {
	// contains filtered or unexported fields
}

DeleteInterceptDeploymentOperation manages a long-running operation from DeleteInterceptDeployment.

func (*DeleteInterceptDeploymentOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteInterceptDeploymentOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteInterceptDeploymentOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteInterceptDeploymentOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteInterceptDeploymentOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteInterceptEndpointGroupAssociationOperation

type DeleteInterceptEndpointGroupAssociationOperation struct {
	// contains filtered or unexported fields
}

DeleteInterceptEndpointGroupAssociationOperation manages a long-running operation from DeleteInterceptEndpointGroupAssociation.

func (*DeleteInterceptEndpointGroupAssociationOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteInterceptEndpointGroupAssociationOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteInterceptEndpointGroupAssociationOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteInterceptEndpointGroupAssociationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteInterceptEndpointGroupAssociationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteInterceptEndpointGroupOperation

type DeleteInterceptEndpointGroupOperation struct {
	// contains filtered or unexported fields
}

DeleteInterceptEndpointGroupOperation manages a long-running operation from DeleteInterceptEndpointGroup.

func (*DeleteInterceptEndpointGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteInterceptEndpointGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteInterceptEndpointGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteInterceptEndpointGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteInterceptEndpointGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteMirroringDeploymentGroupOperation

type DeleteMirroringDeploymentGroupOperation struct {
	// contains filtered or unexported fields
}

DeleteMirroringDeploymentGroupOperation manages a long-running operation from DeleteMirroringDeploymentGroup.

func (*DeleteMirroringDeploymentGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteMirroringDeploymentGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteMirroringDeploymentGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteMirroringDeploymentGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteMirroringDeploymentGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteMirroringDeploymentOperation

type DeleteMirroringDeploymentOperation struct {
	// contains filtered or unexported fields
}

DeleteMirroringDeploymentOperation manages a long-running operation from DeleteMirroringDeployment.

func (*DeleteMirroringDeploymentOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteMirroringDeploymentOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteMirroringDeploymentOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteMirroringDeploymentOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteMirroringDeploymentOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteMirroringEndpointGroupAssociationOperation

type DeleteMirroringEndpointGroupAssociationOperation struct {
	// contains filtered or unexported fields
}

DeleteMirroringEndpointGroupAssociationOperation manages a long-running operation from DeleteMirroringEndpointGroupAssociation.

func (*DeleteMirroringEndpointGroupAssociationOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteMirroringEndpointGroupAssociationOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteMirroringEndpointGroupAssociationOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteMirroringEndpointGroupAssociationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteMirroringEndpointGroupAssociationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteMirroringEndpointGroupOperation

type DeleteMirroringEndpointGroupOperation struct {
	// contains filtered or unexported fields
}

DeleteMirroringEndpointGroupOperation manages a long-running operation from DeleteMirroringEndpointGroup.

func (*DeleteMirroringEndpointGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteMirroringEndpointGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteMirroringEndpointGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteMirroringEndpointGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteMirroringEndpointGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteProjectFirewallEndpointOperation

type DeleteProjectFirewallEndpointOperation struct {
	// contains filtered or unexported fields
}

DeleteProjectFirewallEndpointOperation manages a long-running operation from DeleteProjectFirewallEndpoint.

func (*DeleteProjectFirewallEndpointOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteProjectFirewallEndpointOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteProjectFirewallEndpointOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteProjectFirewallEndpointOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteProjectFirewallEndpointOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteSACAttachmentOperation

type DeleteSACAttachmentOperation struct {
	// contains filtered or unexported fields
}

DeleteSACAttachmentOperation manages a long-running operation from DeleteSACAttachment.

func (*DeleteSACAttachmentOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteSACAttachmentOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteSACAttachmentOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteSACAttachmentOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteSACAttachmentOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteSACRealmOperation

type DeleteSACRealmOperation struct {
	// contains filtered or unexported fields
}

DeleteSACRealmOperation manages a long-running operation from DeleteSACRealm.

func (*DeleteSACRealmOperation) Done

func (op *DeleteSACRealmOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*DeleteSACRealmOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteSACRealmOperation) Name

func (op *DeleteSACRealmOperation) Name() string

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteSACRealmOperation) Poll

func (op *DeleteSACRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) error

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteSACRealmOperation) Wait

func (op *DeleteSACRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) error

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteSecurityProfileGroupOperation

type DeleteSecurityProfileGroupOperation struct {
	// contains filtered or unexported fields
}

DeleteSecurityProfileGroupOperation manages a long-running operation from DeleteSecurityProfileGroup.

func (*DeleteSecurityProfileGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteSecurityProfileGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteSecurityProfileGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteSecurityProfileGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteSecurityProfileGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteSecurityProfileOperation

type DeleteSecurityProfileOperation struct {
	// contains filtered or unexported fields
}

DeleteSecurityProfileOperation manages a long-running operation from DeleteSecurityProfile.

func (*DeleteSecurityProfileOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteSecurityProfileOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteSecurityProfileOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteSecurityProfileOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteSecurityProfileOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteServerTlsPolicyOperation

type DeleteServerTlsPolicyOperation struct {
	// contains filtered or unexported fields
}

DeleteServerTlsPolicyOperation manages a long-running operation from DeleteServerTlsPolicy.

func (*DeleteServerTlsPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteServerTlsPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteServerTlsPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteServerTlsPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteServerTlsPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteTlsInspectionPolicyOperation

type DeleteTlsInspectionPolicyOperation struct {
	// contains filtered or unexported fields
}

DeleteTlsInspectionPolicyOperation manages a long-running operation from DeleteTlsInspectionPolicy.

func (*DeleteTlsInspectionPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*DeleteTlsInspectionPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteTlsInspectionPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteTlsInspectionPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteTlsInspectionPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DeleteUrlListOperation

type DeleteUrlListOperation struct {
	// contains filtered or unexported fields
}

DeleteUrlListOperation manages a long-running operation from DeleteUrlList.

func (*DeleteUrlListOperation) Done

func (op *DeleteUrlListOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*DeleteUrlListOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*DeleteUrlListOperation) Name

func (op *DeleteUrlListOperation) Name() string

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*DeleteUrlListOperation) Poll

func (op *DeleteUrlListOperation) Poll(ctx context.Context, opts ...gax.CallOption) error

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*DeleteUrlListOperation) Wait

func (op *DeleteUrlListOperation) Wait(ctx context.Context, opts ...gax.CallOption) error

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type DnsThreatDetectorCallOptions

type DnsThreatDetectorCallOptions struct {
	ListDnsThreatDetectors  []gax.CallOption
	GetDnsThreatDetector    []gax.CallOption
	CreateDnsThreatDetector []gax.CallOption
	UpdateDnsThreatDetector []gax.CallOption
	DeleteDnsThreatDetector []gax.CallOption
	GetLocation             []gax.CallOption
	ListLocations           []gax.CallOption
	GetIamPolicy            []gax.CallOption
	SetIamPolicy            []gax.CallOption
	TestIamPermissions      []gax.CallOption
	CancelOperation         []gax.CallOption
	DeleteOperation         []gax.CallOption
	GetOperation            []gax.CallOption
	ListOperations          []gax.CallOption
}

DnsThreatDetectorCallOptions contains the retry settings for each method of DnsThreatDetectorClient.

type DnsThreatDetectorClient

type DnsThreatDetectorClient struct {

	// The call options for this service.
	CallOptions *DnsThreatDetectorCallOptions
	// contains filtered or unexported fields
}

DnsThreatDetectorClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

The Network Security API for DNS Threat Detectors.

func NewDnsThreatDetectorClient

func NewDnsThreatDetectorClient(ctx context.Context, opts ...option.ClientOption) (*DnsThreatDetectorClient, error)

NewDnsThreatDetectorClient creates a new dns threat detector service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.

The Network Security API for DNS Threat Detectors.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func NewDnsThreatDetectorRESTClient

func NewDnsThreatDetectorRESTClient(ctx context.Context, opts ...option.ClientOption) (*DnsThreatDetectorClient, error)

NewDnsThreatDetectorRESTClient creates a new dns threat detector service rest client.

The Network Security API for DNS Threat Detectors.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorRESTClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func (*DnsThreatDetectorClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.CancelOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
	}
	err = c.CancelOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*DnsThreatDetectorClient) Close

func (c *DnsThreatDetectorClient) Close() error

Close closes the connection to the API service. **Always** call Close() when the client is no longer required.

func (*DnsThreatDetectorClient) Connection deprecated

func (c *DnsThreatDetectorClient) 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 (*DnsThreatDetectorClient) CreateDnsThreatDetector

CreateDnsThreatDetector creates a new DnsThreatDetector in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateDnsThreatDetectorRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateDnsThreatDetectorRequest.
	}
	resp, err := c.CreateDnsThreatDetector(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*DnsThreatDetectorClient) DeleteDnsThreatDetector

DeleteDnsThreatDetector deletes a single DnsThreatDetector.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteDnsThreatDetectorRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteDnsThreatDetectorRequest.
	}
	err = c.DeleteDnsThreatDetector(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*DnsThreatDetectorClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.DeleteOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
	}
	err = c.DeleteOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*DnsThreatDetectorClient) GetDnsThreatDetector

GetDnsThreatDetector gets the details of a single DnsThreatDetector.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetDnsThreatDetectorRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetDnsThreatDetectorRequest.
	}
	resp, err := c.GetDnsThreatDetector(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*DnsThreatDetectorClient) GetIamPolicy

GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.GetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
	}
	resp, err := c.GetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*DnsThreatDetectorClient) GetLocation

GetLocation gets information about a location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(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 (*DnsThreatDetectorClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.GetOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
	}
	resp, err := c.GetOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*DnsThreatDetectorClient) ListDnsThreatDetectors

ListDnsThreatDetectors lists DnsThreatDetectors in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListDnsThreatDetectorsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListDnsThreatDetectorsRequest.
	}
	it := c.ListDnsThreatDetectors(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.(*networksecuritypb.ListDnsThreatDetectorsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListDnsThreatDetectorsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListDnsThreatDetectorsRequest.
	}
	for resp, err := range c.ListDnsThreatDetectors(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*DnsThreatDetectorClient) ListLocations

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(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)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(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 (*DnsThreatDetectorClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	it := c.ListOperations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*longrunningpb.ListOperationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	for resp, err := range c.ListOperations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*DnsThreatDetectorClient) SetIamPolicy

SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.SetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
	}
	resp, err := c.SetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*DnsThreatDetectorClient) TestIamPermissions

TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.TestIamPermissionsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
	}
	resp, err := c.TestIamPermissions(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*DnsThreatDetectorClient) UpdateDnsThreatDetector

UpdateDnsThreatDetector updates a single DnsThreatDetector.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewDnsThreatDetectorClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateDnsThreatDetectorRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateDnsThreatDetectorRequest.
	}
	resp, err := c.UpdateDnsThreatDetector(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

type DnsThreatDetectorIterator

type DnsThreatDetectorIterator 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 []*networksecuritypb.DnsThreatDetector, nextPageToken string, err error)
	// contains filtered or unexported fields
}

DnsThreatDetectorIterator manages a stream of *networksecuritypb.DnsThreatDetector.

func (*DnsThreatDetectorIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*DnsThreatDetectorIterator) 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 (*DnsThreatDetectorIterator) PageInfo

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

type FirewallActivationCallOptions

type FirewallActivationCallOptions struct {
	ListFirewallEndpoints             []gax.CallOption
	ListProjectFirewallEndpoints      []gax.CallOption
	GetFirewallEndpoint               []gax.CallOption
	GetProjectFirewallEndpoint        []gax.CallOption
	CreateFirewallEndpoint            []gax.CallOption
	CreateProjectFirewallEndpoint     []gax.CallOption
	DeleteFirewallEndpoint            []gax.CallOption
	DeleteProjectFirewallEndpoint     []gax.CallOption
	UpdateFirewallEndpoint            []gax.CallOption
	UpdateProjectFirewallEndpoint     []gax.CallOption
	ListFirewallEndpointAssociations  []gax.CallOption
	GetFirewallEndpointAssociation    []gax.CallOption
	CreateFirewallEndpointAssociation []gax.CallOption
	DeleteFirewallEndpointAssociation []gax.CallOption
	UpdateFirewallEndpointAssociation []gax.CallOption
	GetLocation                       []gax.CallOption
	ListLocations                     []gax.CallOption
	GetIamPolicy                      []gax.CallOption
	SetIamPolicy                      []gax.CallOption
	TestIamPermissions                []gax.CallOption
	CancelOperation                   []gax.CallOption
	DeleteOperation                   []gax.CallOption
	GetOperation                      []gax.CallOption
	ListOperations                    []gax.CallOption
}

FirewallActivationCallOptions contains the retry settings for each method of FirewallActivationClient.

type FirewallActivationClient

type FirewallActivationClient struct {

	// The call options for this service.
	CallOptions *FirewallActivationCallOptions

	// LROClient is used internally to handle long-running operations.
	// It is exposed so that its CallOptions can be modified if required.
	// Users should not Close this client.
	LROClient *lroauto.OperationsClient
	// contains filtered or unexported fields
}

FirewallActivationClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Service for managing Firewall Endpoints and Associations.

func NewFirewallActivationClient

func NewFirewallActivationClient(ctx context.Context, opts ...option.ClientOption) (*FirewallActivationClient, error)

NewFirewallActivationClient creates a new firewall activation client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.

Service for managing Firewall Endpoints and Associations.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func NewFirewallActivationRESTClient

func NewFirewallActivationRESTClient(ctx context.Context, opts ...option.ClientOption) (*FirewallActivationClient, error)

NewFirewallActivationRESTClient creates a new firewall activation rest client.

Service for managing Firewall Endpoints and Associations.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationRESTClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func (*FirewallActivationClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.CancelOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
	}
	err = c.CancelOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*FirewallActivationClient) Close

func (c *FirewallActivationClient) Close() error

Close closes the connection to the API service. **Always** call Close() when the client is no longer required.

func (*FirewallActivationClient) Connection deprecated

func (c *FirewallActivationClient) 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 (*FirewallActivationClient) CreateFirewallEndpoint

CreateFirewallEndpoint creates a new FirewallEndpoint in a given organization and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateFirewallEndpointRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateFirewallEndpointRequest.
	}
	op, err := c.CreateFirewallEndpoint(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) CreateFirewallEndpointAssociation

CreateFirewallEndpointAssociation creates a new FirewallEndpointAssociation in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateFirewallEndpointAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateFirewallEndpointAssociationRequest.
	}
	op, err := c.CreateFirewallEndpointAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) CreateFirewallEndpointAssociationOperation

func (c *FirewallActivationClient) CreateFirewallEndpointAssociationOperation(name string) *CreateFirewallEndpointAssociationOperation

CreateFirewallEndpointAssociationOperation returns a new CreateFirewallEndpointAssociationOperation from a given name. The name must be that of a previously created CreateFirewallEndpointAssociationOperation, possibly from a different process.

func (*FirewallActivationClient) CreateFirewallEndpointOperation

func (c *FirewallActivationClient) CreateFirewallEndpointOperation(name string) *CreateFirewallEndpointOperation

CreateFirewallEndpointOperation returns a new CreateFirewallEndpointOperation from a given name. The name must be that of a previously created CreateFirewallEndpointOperation, possibly from a different process.

func (*FirewallActivationClient) CreateProjectFirewallEndpoint

CreateProjectFirewallEndpoint creates a new FirewallEndpoint in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateFirewallEndpointRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateFirewallEndpointRequest.
	}
	op, err := c.CreateProjectFirewallEndpoint(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) CreateProjectFirewallEndpointOperation

func (c *FirewallActivationClient) CreateProjectFirewallEndpointOperation(name string) *CreateProjectFirewallEndpointOperation

CreateProjectFirewallEndpointOperation returns a new CreateProjectFirewallEndpointOperation from a given name. The name must be that of a previously created CreateProjectFirewallEndpointOperation, possibly from a different process.

func (*FirewallActivationClient) DeleteFirewallEndpoint

DeleteFirewallEndpoint deletes a single org Endpoint.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteFirewallEndpointRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteFirewallEndpointRequest.
	}
	op, err := c.DeleteFirewallEndpoint(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*FirewallActivationClient) DeleteFirewallEndpointAssociation

DeleteFirewallEndpointAssociation deletes a single FirewallEndpointAssociation.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteFirewallEndpointAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteFirewallEndpointAssociationRequest.
	}
	op, err := c.DeleteFirewallEndpointAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*FirewallActivationClient) DeleteFirewallEndpointAssociationOperation

func (c *FirewallActivationClient) DeleteFirewallEndpointAssociationOperation(name string) *DeleteFirewallEndpointAssociationOperation

DeleteFirewallEndpointAssociationOperation returns a new DeleteFirewallEndpointAssociationOperation from a given name. The name must be that of a previously created DeleteFirewallEndpointAssociationOperation, possibly from a different process.

func (*FirewallActivationClient) DeleteFirewallEndpointOperation

func (c *FirewallActivationClient) DeleteFirewallEndpointOperation(name string) *DeleteFirewallEndpointOperation

DeleteFirewallEndpointOperation returns a new DeleteFirewallEndpointOperation from a given name. The name must be that of a previously created DeleteFirewallEndpointOperation, possibly from a different process.

func (*FirewallActivationClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.DeleteOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
	}
	err = c.DeleteOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*FirewallActivationClient) DeleteProjectFirewallEndpoint

DeleteProjectFirewallEndpoint deletes a single project Endpoint.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteFirewallEndpointRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteFirewallEndpointRequest.
	}
	op, err := c.DeleteProjectFirewallEndpoint(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*FirewallActivationClient) DeleteProjectFirewallEndpointOperation

func (c *FirewallActivationClient) DeleteProjectFirewallEndpointOperation(name string) *DeleteProjectFirewallEndpointOperation

DeleteProjectFirewallEndpointOperation returns a new DeleteProjectFirewallEndpointOperation from a given name. The name must be that of a previously created DeleteProjectFirewallEndpointOperation, possibly from a different process.

func (*FirewallActivationClient) GetFirewallEndpoint

GetFirewallEndpoint gets details of a single org Endpoint.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetFirewallEndpointRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetFirewallEndpointRequest.
	}
	resp, err := c.GetFirewallEndpoint(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) GetFirewallEndpointAssociation

GetFirewallEndpointAssociation gets details of a single FirewallEndpointAssociation.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetFirewallEndpointAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetFirewallEndpointAssociationRequest.
	}
	resp, err := c.GetFirewallEndpointAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) GetIamPolicy

GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.GetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
	}
	resp, err := c.GetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) GetLocation

GetLocation gets information about a location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(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 (*FirewallActivationClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.GetOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
	}
	resp, err := c.GetOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) GetProjectFirewallEndpoint

GetProjectFirewallEndpoint gets details of a single project Endpoint.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetFirewallEndpointRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetFirewallEndpointRequest.
	}
	resp, err := c.GetProjectFirewallEndpoint(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) ListFirewallEndpointAssociations

ListFirewallEndpointAssociations lists Associations in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListFirewallEndpointAssociationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointAssociationsRequest.
	}
	it := c.ListFirewallEndpointAssociations(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.(*networksecuritypb.ListFirewallEndpointAssociationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListFirewallEndpointAssociationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointAssociationsRequest.
	}
	for resp, err := range c.ListFirewallEndpointAssociations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*FirewallActivationClient) ListFirewallEndpoints

ListFirewallEndpoints lists FirewallEndpoints in a given organization and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListFirewallEndpointsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointsRequest.
	}
	it := c.ListFirewallEndpoints(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.(*networksecuritypb.ListFirewallEndpointsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListFirewallEndpointsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointsRequest.
	}
	for resp, err := range c.ListFirewallEndpoints(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*FirewallActivationClient) ListLocations

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(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)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(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 (*FirewallActivationClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	it := c.ListOperations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*longrunningpb.ListOperationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	for resp, err := range c.ListOperations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*FirewallActivationClient) ListProjectFirewallEndpoints

ListProjectFirewallEndpoints lists FirewallEndpoints in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListFirewallEndpointsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointsRequest.
	}
	it := c.ListProjectFirewallEndpoints(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.(*networksecuritypb.ListFirewallEndpointsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListFirewallEndpointsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointsRequest.
	}
	for resp, err := range c.ListProjectFirewallEndpoints(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*FirewallActivationClient) SetIamPolicy

SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.SetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
	}
	resp, err := c.SetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) TestIamPermissions

TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.TestIamPermissionsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
	}
	resp, err := c.TestIamPermissions(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) UpdateFirewallEndpoint

UpdateFirewallEndpoint update a single org Endpoint.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateFirewallEndpointRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateFirewallEndpointRequest.
	}
	op, err := c.UpdateFirewallEndpoint(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) UpdateFirewallEndpointAssociation

UpdateFirewallEndpointAssociation update a single FirewallEndpointAssociation.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateFirewallEndpointAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateFirewallEndpointAssociationRequest.
	}
	op, err := c.UpdateFirewallEndpointAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) UpdateFirewallEndpointAssociationOperation

func (c *FirewallActivationClient) UpdateFirewallEndpointAssociationOperation(name string) *UpdateFirewallEndpointAssociationOperation

UpdateFirewallEndpointAssociationOperation returns a new UpdateFirewallEndpointAssociationOperation from a given name. The name must be that of a previously created UpdateFirewallEndpointAssociationOperation, possibly from a different process.

func (*FirewallActivationClient) UpdateFirewallEndpointOperation

func (c *FirewallActivationClient) UpdateFirewallEndpointOperation(name string) *UpdateFirewallEndpointOperation

UpdateFirewallEndpointOperation returns a new UpdateFirewallEndpointOperation from a given name. The name must be that of a previously created UpdateFirewallEndpointOperation, possibly from a different process.

func (*FirewallActivationClient) UpdateProjectFirewallEndpoint

UpdateProjectFirewallEndpoint update a single project Endpoint.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewFirewallActivationClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateFirewallEndpointRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateFirewallEndpointRequest.
	}
	op, err := c.UpdateProjectFirewallEndpoint(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*FirewallActivationClient) UpdateProjectFirewallEndpointOperation

func (c *FirewallActivationClient) UpdateProjectFirewallEndpointOperation(name string) *UpdateProjectFirewallEndpointOperation

UpdateProjectFirewallEndpointOperation returns a new UpdateProjectFirewallEndpointOperation from a given name. The name must be that of a previously created UpdateProjectFirewallEndpointOperation, possibly from a different process.

type FirewallEndpointAssociationIterator

type FirewallEndpointAssociationIterator 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 []*networksecuritypb.FirewallEndpointAssociation, nextPageToken string, err error)
	// contains filtered or unexported fields
}

FirewallEndpointAssociationIterator manages a stream of *networksecuritypb.FirewallEndpointAssociation.

func (*FirewallEndpointAssociationIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*FirewallEndpointAssociationIterator) 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 (*FirewallEndpointAssociationIterator) PageInfo

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

type FirewallEndpointIterator

type FirewallEndpointIterator 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 []*networksecuritypb.FirewallEndpoint, nextPageToken string, err error)
	// contains filtered or unexported fields
}

FirewallEndpointIterator manages a stream of *networksecuritypb.FirewallEndpoint.

func (*FirewallEndpointIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*FirewallEndpointIterator) 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 (*FirewallEndpointIterator) PageInfo

func (it *FirewallEndpointIterator) PageInfo() *iterator.PageInfo

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

type GatewaySecurityPolicyIterator

type GatewaySecurityPolicyIterator 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 []*networksecuritypb.GatewaySecurityPolicy, nextPageToken string, err error)
	// contains filtered or unexported fields
}

GatewaySecurityPolicyIterator manages a stream of *networksecuritypb.GatewaySecurityPolicy.

func (*GatewaySecurityPolicyIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*GatewaySecurityPolicyIterator) 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 (*GatewaySecurityPolicyIterator) PageInfo

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

type GatewaySecurityPolicyRuleIterator

type GatewaySecurityPolicyRuleIterator 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 []*networksecuritypb.GatewaySecurityPolicyRule, nextPageToken string, err error)
	// contains filtered or unexported fields
}

GatewaySecurityPolicyRuleIterator manages a stream of *networksecuritypb.GatewaySecurityPolicyRule.

func (*GatewaySecurityPolicyRuleIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*GatewaySecurityPolicyRuleIterator) 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 (*GatewaySecurityPolicyRuleIterator) PageInfo

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

type InterceptCallOptions

type InterceptCallOptions struct {
	ListInterceptEndpointGroups             []gax.CallOption
	GetInterceptEndpointGroup               []gax.CallOption
	CreateInterceptEndpointGroup            []gax.CallOption
	UpdateInterceptEndpointGroup            []gax.CallOption
	DeleteInterceptEndpointGroup            []gax.CallOption
	ListInterceptEndpointGroupAssociations  []gax.CallOption
	GetInterceptEndpointGroupAssociation    []gax.CallOption
	CreateInterceptEndpointGroupAssociation []gax.CallOption
	UpdateInterceptEndpointGroupAssociation []gax.CallOption
	DeleteInterceptEndpointGroupAssociation []gax.CallOption
	ListInterceptDeploymentGroups           []gax.CallOption
	GetInterceptDeploymentGroup             []gax.CallOption
	CreateInterceptDeploymentGroup          []gax.CallOption
	UpdateInterceptDeploymentGroup          []gax.CallOption
	DeleteInterceptDeploymentGroup          []gax.CallOption
	ListInterceptDeployments                []gax.CallOption
	GetInterceptDeployment                  []gax.CallOption
	CreateInterceptDeployment               []gax.CallOption
	UpdateInterceptDeployment               []gax.CallOption
	DeleteInterceptDeployment               []gax.CallOption
	GetLocation                             []gax.CallOption
	ListLocations                           []gax.CallOption
	GetIamPolicy                            []gax.CallOption
	SetIamPolicy                            []gax.CallOption
	TestIamPermissions                      []gax.CallOption
	CancelOperation                         []gax.CallOption
	DeleteOperation                         []gax.CallOption
	GetOperation                            []gax.CallOption
	ListOperations                          []gax.CallOption
}

InterceptCallOptions contains the retry settings for each method of InterceptClient.

type InterceptClient

type InterceptClient struct {

	// The call options for this service.
	CallOptions *InterceptCallOptions

	// LROClient is used internally to handle long-running operations.
	// It is exposed so that its CallOptions can be modified if required.
	// Users should not Close this client.
	LROClient *lroauto.OperationsClient
	// contains filtered or unexported fields
}

InterceptClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Service for Third-Party Packet Intercept (TPPI). TPPI is the “in-band” flavor of the Network Security Integrations product.

func NewInterceptClient

func NewInterceptClient(ctx context.Context, opts ...option.ClientOption) (*InterceptClient, error)

NewInterceptClient creates a new intercept client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.

Service for Third-Party Packet Intercept (TPPI). TPPI is the “in-band” flavor of the Network Security Integrations product.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func NewInterceptRESTClient

func NewInterceptRESTClient(ctx context.Context, opts ...option.ClientOption) (*InterceptClient, error)

NewInterceptRESTClient creates a new intercept rest client.

Service for Third-Party Packet Intercept (TPPI). TPPI is the “in-band” flavor of the Network Security Integrations product.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptRESTClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func (*InterceptClient) CancelOperation

func (c *InterceptClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error

CancelOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.CancelOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
	}
	err = c.CancelOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*InterceptClient) Close

func (c *InterceptClient) Close() error

Close closes the connection to the API service. **Always** call Close() when the client is no longer required.

func (*InterceptClient) Connection deprecated

func (c *InterceptClient) 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 (*InterceptClient) CreateInterceptDeployment

CreateInterceptDeployment creates a deployment in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateInterceptDeploymentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateInterceptDeploymentRequest.
	}
	op, err := c.CreateInterceptDeployment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) CreateInterceptDeploymentGroup

CreateInterceptDeploymentGroup creates a deployment group in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateInterceptDeploymentGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateInterceptDeploymentGroupRequest.
	}
	op, err := c.CreateInterceptDeploymentGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) CreateInterceptDeploymentGroupOperation

func (c *InterceptClient) CreateInterceptDeploymentGroupOperation(name string) *CreateInterceptDeploymentGroupOperation

CreateInterceptDeploymentGroupOperation returns a new CreateInterceptDeploymentGroupOperation from a given name. The name must be that of a previously created CreateInterceptDeploymentGroupOperation, possibly from a different process.

func (*InterceptClient) CreateInterceptDeploymentOperation

func (c *InterceptClient) CreateInterceptDeploymentOperation(name string) *CreateInterceptDeploymentOperation

CreateInterceptDeploymentOperation returns a new CreateInterceptDeploymentOperation from a given name. The name must be that of a previously created CreateInterceptDeploymentOperation, possibly from a different process.

func (*InterceptClient) CreateInterceptEndpointGroup

CreateInterceptEndpointGroup creates an endpoint group in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateInterceptEndpointGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateInterceptEndpointGroupRequest.
	}
	op, err := c.CreateInterceptEndpointGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) CreateInterceptEndpointGroupAssociation

CreateInterceptEndpointGroupAssociation creates an association in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateInterceptEndpointGroupAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateInterceptEndpointGroupAssociationRequest.
	}
	op, err := c.CreateInterceptEndpointGroupAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) CreateInterceptEndpointGroupAssociationOperation

func (c *InterceptClient) CreateInterceptEndpointGroupAssociationOperation(name string) *CreateInterceptEndpointGroupAssociationOperation

CreateInterceptEndpointGroupAssociationOperation returns a new CreateInterceptEndpointGroupAssociationOperation from a given name. The name must be that of a previously created CreateInterceptEndpointGroupAssociationOperation, possibly from a different process.

func (*InterceptClient) CreateInterceptEndpointGroupOperation

func (c *InterceptClient) CreateInterceptEndpointGroupOperation(name string) *CreateInterceptEndpointGroupOperation

CreateInterceptEndpointGroupOperation returns a new CreateInterceptEndpointGroupOperation from a given name. The name must be that of a previously created CreateInterceptEndpointGroupOperation, possibly from a different process.

func (*InterceptClient) DeleteInterceptDeployment

DeleteInterceptDeployment deletes a deployment. See https://google.aip.dev/135 (at https://google.aip.dev/135).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteInterceptDeploymentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteInterceptDeploymentRequest.
	}
	op, err := c.DeleteInterceptDeployment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*InterceptClient) DeleteInterceptDeploymentGroup

DeleteInterceptDeploymentGroup deletes a deployment group. See https://google.aip.dev/135 (at https://google.aip.dev/135).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteInterceptDeploymentGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteInterceptDeploymentGroupRequest.
	}
	op, err := c.DeleteInterceptDeploymentGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*InterceptClient) DeleteInterceptDeploymentGroupOperation

func (c *InterceptClient) DeleteInterceptDeploymentGroupOperation(name string) *DeleteInterceptDeploymentGroupOperation

DeleteInterceptDeploymentGroupOperation returns a new DeleteInterceptDeploymentGroupOperation from a given name. The name must be that of a previously created DeleteInterceptDeploymentGroupOperation, possibly from a different process.

func (*InterceptClient) DeleteInterceptDeploymentOperation

func (c *InterceptClient) DeleteInterceptDeploymentOperation(name string) *DeleteInterceptDeploymentOperation

DeleteInterceptDeploymentOperation returns a new DeleteInterceptDeploymentOperation from a given name. The name must be that of a previously created DeleteInterceptDeploymentOperation, possibly from a different process.

func (*InterceptClient) DeleteInterceptEndpointGroup

DeleteInterceptEndpointGroup deletes an endpoint group. See https://google.aip.dev/135 (at https://google.aip.dev/135).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteInterceptEndpointGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteInterceptEndpointGroupRequest.
	}
	op, err := c.DeleteInterceptEndpointGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*InterceptClient) DeleteInterceptEndpointGroupAssociation

DeleteInterceptEndpointGroupAssociation deletes an association. See https://google.aip.dev/135 (at https://google.aip.dev/135).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteInterceptEndpointGroupAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteInterceptEndpointGroupAssociationRequest.
	}
	op, err := c.DeleteInterceptEndpointGroupAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*InterceptClient) DeleteInterceptEndpointGroupAssociationOperation

func (c *InterceptClient) DeleteInterceptEndpointGroupAssociationOperation(name string) *DeleteInterceptEndpointGroupAssociationOperation

DeleteInterceptEndpointGroupAssociationOperation returns a new DeleteInterceptEndpointGroupAssociationOperation from a given name. The name must be that of a previously created DeleteInterceptEndpointGroupAssociationOperation, possibly from a different process.

func (*InterceptClient) DeleteInterceptEndpointGroupOperation

func (c *InterceptClient) DeleteInterceptEndpointGroupOperation(name string) *DeleteInterceptEndpointGroupOperation

DeleteInterceptEndpointGroupOperation returns a new DeleteInterceptEndpointGroupOperation from a given name. The name must be that of a previously created DeleteInterceptEndpointGroupOperation, possibly from a different process.

func (*InterceptClient) DeleteOperation

func (c *InterceptClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error

DeleteOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.DeleteOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
	}
	err = c.DeleteOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*InterceptClient) GetIamPolicy

func (c *InterceptClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)

GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.GetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
	}
	resp, err := c.GetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) GetInterceptDeployment

GetInterceptDeployment gets a specific deployment. See https://google.aip.dev/131 (at https://google.aip.dev/131).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetInterceptDeploymentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetInterceptDeploymentRequest.
	}
	resp, err := c.GetInterceptDeployment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) GetInterceptDeploymentGroup

GetInterceptDeploymentGroup gets a specific deployment group. See https://google.aip.dev/131 (at https://google.aip.dev/131).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetInterceptDeploymentGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetInterceptDeploymentGroupRequest.
	}
	resp, err := c.GetInterceptDeploymentGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) GetInterceptEndpointGroup

GetInterceptEndpointGroup gets a specific endpoint group. See https://google.aip.dev/131 (at https://google.aip.dev/131).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetInterceptEndpointGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetInterceptEndpointGroupRequest.
	}
	resp, err := c.GetInterceptEndpointGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) GetInterceptEndpointGroupAssociation

GetInterceptEndpointGroupAssociation gets a specific association. See https://google.aip.dev/131 (at https://google.aip.dev/131).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetInterceptEndpointGroupAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetInterceptEndpointGroupAssociationRequest.
	}
	resp, err := c.GetInterceptEndpointGroupAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) GetLocation

GetLocation gets information about a location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(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 (*InterceptClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.GetOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
	}
	resp, err := c.GetOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) ListInterceptDeploymentGroups

ListInterceptDeploymentGroups lists deployment groups in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListInterceptDeploymentGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptDeploymentGroupsRequest.
	}
	it := c.ListInterceptDeploymentGroups(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.(*networksecuritypb.ListInterceptDeploymentGroupsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListInterceptDeploymentGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptDeploymentGroupsRequest.
	}
	for resp, err := range c.ListInterceptDeploymentGroups(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*InterceptClient) ListInterceptDeployments

ListInterceptDeployments lists deployments in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListInterceptDeploymentsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptDeploymentsRequest.
	}
	it := c.ListInterceptDeployments(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.(*networksecuritypb.ListInterceptDeploymentsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListInterceptDeploymentsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptDeploymentsRequest.
	}
	for resp, err := range c.ListInterceptDeployments(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*InterceptClient) ListInterceptEndpointGroupAssociations

ListInterceptEndpointGroupAssociations lists associations in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListInterceptEndpointGroupAssociationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptEndpointGroupAssociationsRequest.
	}
	it := c.ListInterceptEndpointGroupAssociations(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.(*networksecuritypb.ListInterceptEndpointGroupAssociationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListInterceptEndpointGroupAssociationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptEndpointGroupAssociationsRequest.
	}
	for resp, err := range c.ListInterceptEndpointGroupAssociations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*InterceptClient) ListInterceptEndpointGroups

ListInterceptEndpointGroups lists endpoint groups in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListInterceptEndpointGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptEndpointGroupsRequest.
	}
	it := c.ListInterceptEndpointGroups(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.(*networksecuritypb.ListInterceptEndpointGroupsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListInterceptEndpointGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptEndpointGroupsRequest.
	}
	for resp, err := range c.ListInterceptEndpointGroups(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*InterceptClient) ListLocations

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(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)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(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 (*InterceptClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	it := c.ListOperations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*longrunningpb.ListOperationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	for resp, err := range c.ListOperations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*InterceptClient) SetIamPolicy

func (c *InterceptClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)

SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.SetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
	}
	resp, err := c.SetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) TestIamPermissions

TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.TestIamPermissionsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
	}
	resp, err := c.TestIamPermissions(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) UpdateInterceptDeployment

UpdateInterceptDeployment updates a deployment. See https://google.aip.dev/134 (at https://google.aip.dev/134).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateInterceptDeploymentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateInterceptDeploymentRequest.
	}
	op, err := c.UpdateInterceptDeployment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) UpdateInterceptDeploymentGroup

UpdateInterceptDeploymentGroup updates a deployment group. See https://google.aip.dev/134 (at https://google.aip.dev/134).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateInterceptDeploymentGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateInterceptDeploymentGroupRequest.
	}
	op, err := c.UpdateInterceptDeploymentGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) UpdateInterceptDeploymentGroupOperation

func (c *InterceptClient) UpdateInterceptDeploymentGroupOperation(name string) *UpdateInterceptDeploymentGroupOperation

UpdateInterceptDeploymentGroupOperation returns a new UpdateInterceptDeploymentGroupOperation from a given name. The name must be that of a previously created UpdateInterceptDeploymentGroupOperation, possibly from a different process.

func (*InterceptClient) UpdateInterceptDeploymentOperation

func (c *InterceptClient) UpdateInterceptDeploymentOperation(name string) *UpdateInterceptDeploymentOperation

UpdateInterceptDeploymentOperation returns a new UpdateInterceptDeploymentOperation from a given name. The name must be that of a previously created UpdateInterceptDeploymentOperation, possibly from a different process.

func (*InterceptClient) UpdateInterceptEndpointGroup

UpdateInterceptEndpointGroup updates an endpoint group. See https://google.aip.dev/134 (at https://google.aip.dev/134).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateInterceptEndpointGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateInterceptEndpointGroupRequest.
	}
	op, err := c.UpdateInterceptEndpointGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) UpdateInterceptEndpointGroupAssociation

UpdateInterceptEndpointGroupAssociation updates an association. See https://google.aip.dev/134 (at https://google.aip.dev/134).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewInterceptClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateInterceptEndpointGroupAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateInterceptEndpointGroupAssociationRequest.
	}
	op, err := c.UpdateInterceptEndpointGroupAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*InterceptClient) UpdateInterceptEndpointGroupAssociationOperation

func (c *InterceptClient) UpdateInterceptEndpointGroupAssociationOperation(name string) *UpdateInterceptEndpointGroupAssociationOperation

UpdateInterceptEndpointGroupAssociationOperation returns a new UpdateInterceptEndpointGroupAssociationOperation from a given name. The name must be that of a previously created UpdateInterceptEndpointGroupAssociationOperation, possibly from a different process.

func (*InterceptClient) UpdateInterceptEndpointGroupOperation

func (c *InterceptClient) UpdateInterceptEndpointGroupOperation(name string) *UpdateInterceptEndpointGroupOperation

UpdateInterceptEndpointGroupOperation returns a new UpdateInterceptEndpointGroupOperation from a given name. The name must be that of a previously created UpdateInterceptEndpointGroupOperation, possibly from a different process.

type InterceptDeploymentGroupIterator

type InterceptDeploymentGroupIterator 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 []*networksecuritypb.InterceptDeploymentGroup, nextPageToken string, err error)
	// contains filtered or unexported fields
}

InterceptDeploymentGroupIterator manages a stream of *networksecuritypb.InterceptDeploymentGroup.

func (*InterceptDeploymentGroupIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*InterceptDeploymentGroupIterator) 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 (*InterceptDeploymentGroupIterator) PageInfo

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

type InterceptDeploymentIterator

type InterceptDeploymentIterator 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 []*networksecuritypb.InterceptDeployment, nextPageToken string, err error)
	// contains filtered or unexported fields
}

InterceptDeploymentIterator manages a stream of *networksecuritypb.InterceptDeployment.

func (*InterceptDeploymentIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*InterceptDeploymentIterator) 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 (*InterceptDeploymentIterator) PageInfo

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

type InterceptEndpointGroupAssociationIterator

type InterceptEndpointGroupAssociationIterator 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 []*networksecuritypb.InterceptEndpointGroupAssociation, nextPageToken string, err error)
	// contains filtered or unexported fields
}

InterceptEndpointGroupAssociationIterator manages a stream of *networksecuritypb.InterceptEndpointGroupAssociation.

func (*InterceptEndpointGroupAssociationIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*InterceptEndpointGroupAssociationIterator) 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 (*InterceptEndpointGroupAssociationIterator) PageInfo

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

type InterceptEndpointGroupIterator

type InterceptEndpointGroupIterator 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 []*networksecuritypb.InterceptEndpointGroup, nextPageToken string, err error)
	// contains filtered or unexported fields
}

InterceptEndpointGroupIterator manages a stream of *networksecuritypb.InterceptEndpointGroup.

func (*InterceptEndpointGroupIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*InterceptEndpointGroupIterator) 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 (*InterceptEndpointGroupIterator) PageInfo

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

type ListAddressGroupReferencesResponse_AddressGroupReferenceIterator

type ListAddressGroupReferencesResponse_AddressGroupReferenceIterator 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 []*networksecuritypb.ListAddressGroupReferencesResponse_AddressGroupReference, nextPageToken string, err error)
	// contains filtered or unexported fields
}

ListAddressGroupReferencesResponse_AddressGroupReferenceIterator manages a stream of *networksecuritypb.ListAddressGroupReferencesResponse_AddressGroupReference.

func (*ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) 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 (*ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) PageInfo

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

type 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

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.

type MirroringCallOptions

type MirroringCallOptions struct {
	ListMirroringEndpointGroups             []gax.CallOption
	GetMirroringEndpointGroup               []gax.CallOption
	CreateMirroringEndpointGroup            []gax.CallOption
	UpdateMirroringEndpointGroup            []gax.CallOption
	DeleteMirroringEndpointGroup            []gax.CallOption
	ListMirroringEndpointGroupAssociations  []gax.CallOption
	GetMirroringEndpointGroupAssociation    []gax.CallOption
	CreateMirroringEndpointGroupAssociation []gax.CallOption
	UpdateMirroringEndpointGroupAssociation []gax.CallOption
	DeleteMirroringEndpointGroupAssociation []gax.CallOption
	ListMirroringDeploymentGroups           []gax.CallOption
	GetMirroringDeploymentGroup             []gax.CallOption
	CreateMirroringDeploymentGroup          []gax.CallOption
	UpdateMirroringDeploymentGroup          []gax.CallOption
	DeleteMirroringDeploymentGroup          []gax.CallOption
	ListMirroringDeployments                []gax.CallOption
	GetMirroringDeployment                  []gax.CallOption
	CreateMirroringDeployment               []gax.CallOption
	UpdateMirroringDeployment               []gax.CallOption
	DeleteMirroringDeployment               []gax.CallOption
	GetLocation                             []gax.CallOption
	ListLocations                           []gax.CallOption
	GetIamPolicy                            []gax.CallOption
	SetIamPolicy                            []gax.CallOption
	TestIamPermissions                      []gax.CallOption
	CancelOperation                         []gax.CallOption
	DeleteOperation                         []gax.CallOption
	GetOperation                            []gax.CallOption
	ListOperations                          []gax.CallOption
}

MirroringCallOptions contains the retry settings for each method of MirroringClient.

type MirroringClient

type MirroringClient struct {

	// The call options for this service.
	CallOptions *MirroringCallOptions

	// LROClient is used internally to handle long-running operations.
	// It is exposed so that its CallOptions can be modified if required.
	// Users should not Close this client.
	LROClient *lroauto.OperationsClient
	// contains filtered or unexported fields
}

MirroringClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

PM2 is the “out-of-band” flavor of the Network Security Integrations product.

func NewMirroringClient

func NewMirroringClient(ctx context.Context, opts ...option.ClientOption) (*MirroringClient, error)

NewMirroringClient creates a new mirroring client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.

PM2 is the “out-of-band” flavor of the Network Security Integrations product.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func NewMirroringRESTClient

func NewMirroringRESTClient(ctx context.Context, opts ...option.ClientOption) (*MirroringClient, error)

NewMirroringRESTClient creates a new mirroring rest client.

PM2 is the “out-of-band” flavor of the Network Security Integrations product.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringRESTClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func (*MirroringClient) CancelOperation

func (c *MirroringClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error

CancelOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.CancelOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
	}
	err = c.CancelOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*MirroringClient) Close

func (c *MirroringClient) Close() error

Close closes the connection to the API service. **Always** call Close() when the client is no longer required.

func (*MirroringClient) Connection deprecated

func (c *MirroringClient) 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 (*MirroringClient) CreateMirroringDeployment

CreateMirroringDeployment creates a deployment in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateMirroringDeploymentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateMirroringDeploymentRequest.
	}
	op, err := c.CreateMirroringDeployment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) CreateMirroringDeploymentGroup

CreateMirroringDeploymentGroup creates a deployment group in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateMirroringDeploymentGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateMirroringDeploymentGroupRequest.
	}
	op, err := c.CreateMirroringDeploymentGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) CreateMirroringDeploymentGroupOperation

func (c *MirroringClient) CreateMirroringDeploymentGroupOperation(name string) *CreateMirroringDeploymentGroupOperation

CreateMirroringDeploymentGroupOperation returns a new CreateMirroringDeploymentGroupOperation from a given name. The name must be that of a previously created CreateMirroringDeploymentGroupOperation, possibly from a different process.

func (*MirroringClient) CreateMirroringDeploymentOperation

func (c *MirroringClient) CreateMirroringDeploymentOperation(name string) *CreateMirroringDeploymentOperation

CreateMirroringDeploymentOperation returns a new CreateMirroringDeploymentOperation from a given name. The name must be that of a previously created CreateMirroringDeploymentOperation, possibly from a different process.

func (*MirroringClient) CreateMirroringEndpointGroup

CreateMirroringEndpointGroup creates an endpoint group in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateMirroringEndpointGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateMirroringEndpointGroupRequest.
	}
	op, err := c.CreateMirroringEndpointGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) CreateMirroringEndpointGroupAssociation

CreateMirroringEndpointGroupAssociation creates an association in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateMirroringEndpointGroupAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateMirroringEndpointGroupAssociationRequest.
	}
	op, err := c.CreateMirroringEndpointGroupAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) CreateMirroringEndpointGroupAssociationOperation

func (c *MirroringClient) CreateMirroringEndpointGroupAssociationOperation(name string) *CreateMirroringEndpointGroupAssociationOperation

CreateMirroringEndpointGroupAssociationOperation returns a new CreateMirroringEndpointGroupAssociationOperation from a given name. The name must be that of a previously created CreateMirroringEndpointGroupAssociationOperation, possibly from a different process.

func (*MirroringClient) CreateMirroringEndpointGroupOperation

func (c *MirroringClient) CreateMirroringEndpointGroupOperation(name string) *CreateMirroringEndpointGroupOperation

CreateMirroringEndpointGroupOperation returns a new CreateMirroringEndpointGroupOperation from a given name. The name must be that of a previously created CreateMirroringEndpointGroupOperation, possibly from a different process.

func (*MirroringClient) DeleteMirroringDeployment

DeleteMirroringDeployment deletes a deployment. See https://google.aip.dev/135 (at https://google.aip.dev/135).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteMirroringDeploymentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteMirroringDeploymentRequest.
	}
	op, err := c.DeleteMirroringDeployment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*MirroringClient) DeleteMirroringDeploymentGroup

DeleteMirroringDeploymentGroup deletes a deployment group. See https://google.aip.dev/135 (at https://google.aip.dev/135).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteMirroringDeploymentGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteMirroringDeploymentGroupRequest.
	}
	op, err := c.DeleteMirroringDeploymentGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*MirroringClient) DeleteMirroringDeploymentGroupOperation

func (c *MirroringClient) DeleteMirroringDeploymentGroupOperation(name string) *DeleteMirroringDeploymentGroupOperation

DeleteMirroringDeploymentGroupOperation returns a new DeleteMirroringDeploymentGroupOperation from a given name. The name must be that of a previously created DeleteMirroringDeploymentGroupOperation, possibly from a different process.

func (*MirroringClient) DeleteMirroringDeploymentOperation

func (c *MirroringClient) DeleteMirroringDeploymentOperation(name string) *DeleteMirroringDeploymentOperation

DeleteMirroringDeploymentOperation returns a new DeleteMirroringDeploymentOperation from a given name. The name must be that of a previously created DeleteMirroringDeploymentOperation, possibly from a different process.

func (*MirroringClient) DeleteMirroringEndpointGroup

DeleteMirroringEndpointGroup deletes an endpoint group. See https://google.aip.dev/135 (at https://google.aip.dev/135).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteMirroringEndpointGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteMirroringEndpointGroupRequest.
	}
	op, err := c.DeleteMirroringEndpointGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*MirroringClient) DeleteMirroringEndpointGroupAssociation

DeleteMirroringEndpointGroupAssociation deletes an association. See https://google.aip.dev/135 (at https://google.aip.dev/135).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteMirroringEndpointGroupAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteMirroringEndpointGroupAssociationRequest.
	}
	op, err := c.DeleteMirroringEndpointGroupAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*MirroringClient) DeleteMirroringEndpointGroupAssociationOperation

func (c *MirroringClient) DeleteMirroringEndpointGroupAssociationOperation(name string) *DeleteMirroringEndpointGroupAssociationOperation

DeleteMirroringEndpointGroupAssociationOperation returns a new DeleteMirroringEndpointGroupAssociationOperation from a given name. The name must be that of a previously created DeleteMirroringEndpointGroupAssociationOperation, possibly from a different process.

func (*MirroringClient) DeleteMirroringEndpointGroupOperation

func (c *MirroringClient) DeleteMirroringEndpointGroupOperation(name string) *DeleteMirroringEndpointGroupOperation

DeleteMirroringEndpointGroupOperation returns a new DeleteMirroringEndpointGroupOperation from a given name. The name must be that of a previously created DeleteMirroringEndpointGroupOperation, possibly from a different process.

func (*MirroringClient) DeleteOperation

func (c *MirroringClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error

DeleteOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.DeleteOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
	}
	err = c.DeleteOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*MirroringClient) GetIamPolicy

func (c *MirroringClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)

GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.GetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
	}
	resp, err := c.GetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) GetLocation

GetLocation gets information about a location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(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 (*MirroringClient) GetMirroringDeployment

GetMirroringDeployment gets a specific deployment. See https://google.aip.dev/131 (at https://google.aip.dev/131).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetMirroringDeploymentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetMirroringDeploymentRequest.
	}
	resp, err := c.GetMirroringDeployment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) GetMirroringDeploymentGroup

GetMirroringDeploymentGroup gets a specific deployment group. See https://google.aip.dev/131 (at https://google.aip.dev/131).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetMirroringDeploymentGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetMirroringDeploymentGroupRequest.
	}
	resp, err := c.GetMirroringDeploymentGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) GetMirroringEndpointGroup

GetMirroringEndpointGroup gets a specific endpoint group. See https://google.aip.dev/131 (at https://google.aip.dev/131).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetMirroringEndpointGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetMirroringEndpointGroupRequest.
	}
	resp, err := c.GetMirroringEndpointGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) GetMirroringEndpointGroupAssociation

GetMirroringEndpointGroupAssociation gets a specific association. See https://google.aip.dev/131 (at https://google.aip.dev/131).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetMirroringEndpointGroupAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetMirroringEndpointGroupAssociationRequest.
	}
	resp, err := c.GetMirroringEndpointGroupAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.GetOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
	}
	resp, err := c.GetOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) ListLocations

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(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)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(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 (*MirroringClient) ListMirroringDeploymentGroups

ListMirroringDeploymentGroups lists deployment groups in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListMirroringDeploymentGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringDeploymentGroupsRequest.
	}
	it := c.ListMirroringDeploymentGroups(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.(*networksecuritypb.ListMirroringDeploymentGroupsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListMirroringDeploymentGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringDeploymentGroupsRequest.
	}
	for resp, err := range c.ListMirroringDeploymentGroups(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*MirroringClient) ListMirroringDeployments

ListMirroringDeployments lists deployments in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListMirroringDeploymentsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringDeploymentsRequest.
	}
	it := c.ListMirroringDeployments(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.(*networksecuritypb.ListMirroringDeploymentsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListMirroringDeploymentsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringDeploymentsRequest.
	}
	for resp, err := range c.ListMirroringDeployments(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*MirroringClient) ListMirroringEndpointGroupAssociations

ListMirroringEndpointGroupAssociations lists associations in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListMirroringEndpointGroupAssociationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringEndpointGroupAssociationsRequest.
	}
	it := c.ListMirroringEndpointGroupAssociations(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.(*networksecuritypb.ListMirroringEndpointGroupAssociationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListMirroringEndpointGroupAssociationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringEndpointGroupAssociationsRequest.
	}
	for resp, err := range c.ListMirroringEndpointGroupAssociations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*MirroringClient) ListMirroringEndpointGroups

ListMirroringEndpointGroups lists endpoint groups in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListMirroringEndpointGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringEndpointGroupsRequest.
	}
	it := c.ListMirroringEndpointGroups(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.(*networksecuritypb.ListMirroringEndpointGroupsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListMirroringEndpointGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringEndpointGroupsRequest.
	}
	for resp, err := range c.ListMirroringEndpointGroups(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*MirroringClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	it := c.ListOperations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*longrunningpb.ListOperationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	for resp, err := range c.ListOperations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*MirroringClient) SetIamPolicy

func (c *MirroringClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)

SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.SetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
	}
	resp, err := c.SetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) TestIamPermissions

TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.TestIamPermissionsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
	}
	resp, err := c.TestIamPermissions(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) UpdateMirroringDeployment

UpdateMirroringDeployment updates a deployment. See https://google.aip.dev/134 (at https://google.aip.dev/134).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateMirroringDeploymentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateMirroringDeploymentRequest.
	}
	op, err := c.UpdateMirroringDeployment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) UpdateMirroringDeploymentGroup

UpdateMirroringDeploymentGroup updates a deployment group. See https://google.aip.dev/134 (at https://google.aip.dev/134).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateMirroringDeploymentGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateMirroringDeploymentGroupRequest.
	}
	op, err := c.UpdateMirroringDeploymentGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) UpdateMirroringDeploymentGroupOperation

func (c *MirroringClient) UpdateMirroringDeploymentGroupOperation(name string) *UpdateMirroringDeploymentGroupOperation

UpdateMirroringDeploymentGroupOperation returns a new UpdateMirroringDeploymentGroupOperation from a given name. The name must be that of a previously created UpdateMirroringDeploymentGroupOperation, possibly from a different process.

func (*MirroringClient) UpdateMirroringDeploymentOperation

func (c *MirroringClient) UpdateMirroringDeploymentOperation(name string) *UpdateMirroringDeploymentOperation

UpdateMirroringDeploymentOperation returns a new UpdateMirroringDeploymentOperation from a given name. The name must be that of a previously created UpdateMirroringDeploymentOperation, possibly from a different process.

func (*MirroringClient) UpdateMirroringEndpointGroup

UpdateMirroringEndpointGroup updates an endpoint group. See https://google.aip.dev/134 (at https://google.aip.dev/134).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateMirroringEndpointGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateMirroringEndpointGroupRequest.
	}
	op, err := c.UpdateMirroringEndpointGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) UpdateMirroringEndpointGroupAssociation

UpdateMirroringEndpointGroupAssociation updates an association. See https://google.aip.dev/134 (at https://google.aip.dev/134).

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewMirroringClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateMirroringEndpointGroupAssociationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateMirroringEndpointGroupAssociationRequest.
	}
	op, err := c.UpdateMirroringEndpointGroupAssociation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*MirroringClient) UpdateMirroringEndpointGroupAssociationOperation

func (c *MirroringClient) UpdateMirroringEndpointGroupAssociationOperation(name string) *UpdateMirroringEndpointGroupAssociationOperation

UpdateMirroringEndpointGroupAssociationOperation returns a new UpdateMirroringEndpointGroupAssociationOperation from a given name. The name must be that of a previously created UpdateMirroringEndpointGroupAssociationOperation, possibly from a different process.

func (*MirroringClient) UpdateMirroringEndpointGroupOperation

func (c *MirroringClient) UpdateMirroringEndpointGroupOperation(name string) *UpdateMirroringEndpointGroupOperation

UpdateMirroringEndpointGroupOperation returns a new UpdateMirroringEndpointGroupOperation from a given name. The name must be that of a previously created UpdateMirroringEndpointGroupOperation, possibly from a different process.

type MirroringDeploymentGroupIterator

type MirroringDeploymentGroupIterator 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 []*networksecuritypb.MirroringDeploymentGroup, nextPageToken string, err error)
	// contains filtered or unexported fields
}

MirroringDeploymentGroupIterator manages a stream of *networksecuritypb.MirroringDeploymentGroup.

func (*MirroringDeploymentGroupIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*MirroringDeploymentGroupIterator) 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 (*MirroringDeploymentGroupIterator) PageInfo

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

type MirroringDeploymentIterator

type MirroringDeploymentIterator 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 []*networksecuritypb.MirroringDeployment, nextPageToken string, err error)
	// contains filtered or unexported fields
}

MirroringDeploymentIterator manages a stream of *networksecuritypb.MirroringDeployment.

func (*MirroringDeploymentIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*MirroringDeploymentIterator) 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 (*MirroringDeploymentIterator) PageInfo

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

type MirroringEndpointGroupAssociationIterator

type MirroringEndpointGroupAssociationIterator 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 []*networksecuritypb.MirroringEndpointGroupAssociation, nextPageToken string, err error)
	// contains filtered or unexported fields
}

MirroringEndpointGroupAssociationIterator manages a stream of *networksecuritypb.MirroringEndpointGroupAssociation.

func (*MirroringEndpointGroupAssociationIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*MirroringEndpointGroupAssociationIterator) 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 (*MirroringEndpointGroupAssociationIterator) PageInfo

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

type MirroringEndpointGroupIterator

type MirroringEndpointGroupIterator 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 []*networksecuritypb.MirroringEndpointGroup, nextPageToken string, err error)
	// contains filtered or unexported fields
}

MirroringEndpointGroupIterator manages a stream of *networksecuritypb.MirroringEndpointGroup.

func (*MirroringEndpointGroupIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*MirroringEndpointGroupIterator) 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 (*MirroringEndpointGroupIterator) PageInfo

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

type OperationIterator

type OperationIterator struct {

	// Response is the raw response for the current page.
	// It must be cast to the RPC response type.
	// Calling Next() or InternalFetch() updates this value.
	Response interface{}

	// InternalFetch is for use by the Google Cloud Libraries only.
	// It is not part of the stable interface of this package.
	//
	// InternalFetch returns results from a single call to the underlying RPC.
	// The number of results is no greater than pageSize.
	// If there are no more results, nextPageToken is empty and err is nil.
	InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error)
	// contains filtered or unexported fields
}

OperationIterator manages a stream of *longrunningpb.Operation.

func (*OperationIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*OperationIterator) 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 (*OperationIterator) PageInfo

func (it *OperationIterator) PageInfo() *iterator.PageInfo

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

type OrganizationAddressGroupCallOptions

type OrganizationAddressGroupCallOptions struct {
	ListAddressGroups          []gax.CallOption
	GetAddressGroup            []gax.CallOption
	CreateAddressGroup         []gax.CallOption
	UpdateAddressGroup         []gax.CallOption
	AddAddressGroupItems       []gax.CallOption
	RemoveAddressGroupItems    []gax.CallOption
	CloneAddressGroupItems     []gax.CallOption
	DeleteAddressGroup         []gax.CallOption
	ListAddressGroupReferences []gax.CallOption
	GetLocation                []gax.CallOption
	ListLocations              []gax.CallOption
	GetIamPolicy               []gax.CallOption
	SetIamPolicy               []gax.CallOption
	TestIamPermissions         []gax.CallOption
	CancelOperation            []gax.CallOption
	DeleteOperation            []gax.CallOption
	GetOperation               []gax.CallOption
	ListOperations             []gax.CallOption
}

OrganizationAddressGroupCallOptions contains the retry settings for each method of OrganizationAddressGroupClient.

type OrganizationAddressGroupClient

type OrganizationAddressGroupClient struct {

	// The call options for this service.
	CallOptions *OrganizationAddressGroupCallOptions

	// LROClient is used internally to handle long-running operations.
	// It is exposed so that its CallOptions can be modified if required.
	// Users should not Close this client.
	LROClient *lroauto.OperationsClient
	// contains filtered or unexported fields
}

OrganizationAddressGroupClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Organization AddressGroup is created under organization. Requests against Organization AddressGroup will use project from request credential for activation/quota/visibility check.

func NewOrganizationAddressGroupClient

func NewOrganizationAddressGroupClient(ctx context.Context, opts ...option.ClientOption) (*OrganizationAddressGroupClient, error)

NewOrganizationAddressGroupClient creates a new organization address group service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.

Organization AddressGroup is created under organization. Requests against Organization AddressGroup will use project from request credential for activation/quota/visibility check.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func NewOrganizationAddressGroupRESTClient

func NewOrganizationAddressGroupRESTClient(ctx context.Context, opts ...option.ClientOption) (*OrganizationAddressGroupClient, error)

NewOrganizationAddressGroupRESTClient creates a new organization address group service rest client.

Organization AddressGroup is created under organization. Requests against Organization AddressGroup will use project from request credential for activation/quota/visibility check.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupRESTClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func (*OrganizationAddressGroupClient) AddAddressGroupItems

AddAddressGroupItems adds items to an address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.AddAddressGroupItemsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#AddAddressGroupItemsRequest.
	}
	op, err := c.AddAddressGroupItems(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationAddressGroupClient) AddAddressGroupItemsOperation

func (c *OrganizationAddressGroupClient) AddAddressGroupItemsOperation(name string) *AddAddressGroupItemsOperation

AddAddressGroupItemsOperation returns a new AddAddressGroupItemsOperation from a given name. The name must be that of a previously created AddAddressGroupItemsOperation, possibly from a different process.

func (*OrganizationAddressGroupClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.CancelOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
	}
	err = c.CancelOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*OrganizationAddressGroupClient) CloneAddressGroupItems

CloneAddressGroupItems clones items from one address group to another.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CloneAddressGroupItemsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CloneAddressGroupItemsRequest.
	}
	op, err := c.CloneAddressGroupItems(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationAddressGroupClient) CloneAddressGroupItemsOperation

func (c *OrganizationAddressGroupClient) CloneAddressGroupItemsOperation(name string) *CloneAddressGroupItemsOperation

CloneAddressGroupItemsOperation returns a new CloneAddressGroupItemsOperation from a given name. The name must be that of a previously created CloneAddressGroupItemsOperation, possibly from a different process.

func (*OrganizationAddressGroupClient) Close

Close closes the connection to the API service. **Always** call Close() when the client is no longer required.

func (*OrganizationAddressGroupClient) Connection deprecated

Connection returns a connection to the API service.

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

func (*OrganizationAddressGroupClient) CreateAddressGroup

CreateAddressGroup creates a new address group in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateAddressGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateAddressGroupRequest.
	}
	op, err := c.CreateAddressGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationAddressGroupClient) CreateAddressGroupOperation

func (c *OrganizationAddressGroupClient) CreateAddressGroupOperation(name string) *CreateAddressGroupOperation

CreateAddressGroupOperation returns a new CreateAddressGroupOperation from a given name. The name must be that of a previously created CreateAddressGroupOperation, possibly from a different process.

func (*OrganizationAddressGroupClient) DeleteAddressGroup

DeleteAddressGroup deletes an address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteAddressGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteAddressGroupRequest.
	}
	op, err := c.DeleteAddressGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*OrganizationAddressGroupClient) DeleteAddressGroupOperation

func (c *OrganizationAddressGroupClient) DeleteAddressGroupOperation(name string) *DeleteAddressGroupOperation

DeleteAddressGroupOperation returns a new DeleteAddressGroupOperation from a given name. The name must be that of a previously created DeleteAddressGroupOperation, possibly from a different process.

func (*OrganizationAddressGroupClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.DeleteOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
	}
	err = c.DeleteOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*OrganizationAddressGroupClient) GetAddressGroup

GetAddressGroup gets details of a single address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetAddressGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetAddressGroupRequest.
	}
	resp, err := c.GetAddressGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationAddressGroupClient) GetIamPolicy

GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.GetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
	}
	resp, err := c.GetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationAddressGroupClient) GetLocation

GetLocation gets information about a location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(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 (*OrganizationAddressGroupClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.GetOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
	}
	resp, err := c.GetOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationAddressGroupClient) ListAddressGroupReferences

ListAddressGroupReferences lists references of an address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAddressGroupReferencesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupReferencesRequest.
	}
	it := c.ListAddressGroupReferences(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.(*networksecuritypb.ListAddressGroupReferencesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAddressGroupReferencesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupReferencesRequest.
	}
	for resp, err := range c.ListAddressGroupReferences(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*OrganizationAddressGroupClient) ListAddressGroups

ListAddressGroups lists address groups in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAddressGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupsRequest.
	}
	it := c.ListAddressGroups(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.(*networksecuritypb.ListAddressGroupsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListAddressGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupsRequest.
	}
	for resp, err := range c.ListAddressGroups(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*OrganizationAddressGroupClient) ListLocations

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(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)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(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 (*OrganizationAddressGroupClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	it := c.ListOperations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*longrunningpb.ListOperationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	for resp, err := range c.ListOperations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*OrganizationAddressGroupClient) RemoveAddressGroupItems

RemoveAddressGroupItems removes items from an address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.RemoveAddressGroupItemsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#RemoveAddressGroupItemsRequest.
	}
	op, err := c.RemoveAddressGroupItems(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationAddressGroupClient) RemoveAddressGroupItemsOperation

func (c *OrganizationAddressGroupClient) RemoveAddressGroupItemsOperation(name string) *RemoveAddressGroupItemsOperation

RemoveAddressGroupItemsOperation returns a new RemoveAddressGroupItemsOperation from a given name. The name must be that of a previously created RemoveAddressGroupItemsOperation, possibly from a different process.

func (*OrganizationAddressGroupClient) SetIamPolicy

SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.SetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
	}
	resp, err := c.SetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationAddressGroupClient) TestIamPermissions

TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.TestIamPermissionsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
	}
	resp, err := c.TestIamPermissions(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationAddressGroupClient) UpdateAddressGroup

UpdateAddressGroup updates parameters of an address group.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationAddressGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateAddressGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateAddressGroupRequest.
	}
	op, err := c.UpdateAddressGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationAddressGroupClient) UpdateAddressGroupOperation

func (c *OrganizationAddressGroupClient) UpdateAddressGroupOperation(name string) *UpdateAddressGroupOperation

UpdateAddressGroupOperation returns a new UpdateAddressGroupOperation from a given name. The name must be that of a previously created UpdateAddressGroupOperation, possibly from a different process.

type OrganizationSecurityProfileGroupCallOptions

type OrganizationSecurityProfileGroupCallOptions struct {
	ListSecurityProfileGroups  []gax.CallOption
	GetSecurityProfileGroup    []gax.CallOption
	CreateSecurityProfileGroup []gax.CallOption
	UpdateSecurityProfileGroup []gax.CallOption
	DeleteSecurityProfileGroup []gax.CallOption
	ListSecurityProfiles       []gax.CallOption
	GetSecurityProfile         []gax.CallOption
	CreateSecurityProfile      []gax.CallOption
	UpdateSecurityProfile      []gax.CallOption
	DeleteSecurityProfile      []gax.CallOption
	GetLocation                []gax.CallOption
	ListLocations              []gax.CallOption
	GetIamPolicy               []gax.CallOption
	SetIamPolicy               []gax.CallOption
	TestIamPermissions         []gax.CallOption
	CancelOperation            []gax.CallOption
	DeleteOperation            []gax.CallOption
	GetOperation               []gax.CallOption
	ListOperations             []gax.CallOption
}

OrganizationSecurityProfileGroupCallOptions contains the retry settings for each method of OrganizationSecurityProfileGroupClient.

type OrganizationSecurityProfileGroupClient

type OrganizationSecurityProfileGroupClient struct {

	// The call options for this service.
	CallOptions *OrganizationSecurityProfileGroupCallOptions

	// LROClient is used internally to handle long-running operations.
	// It is exposed so that its CallOptions can be modified if required.
	// Users should not Close this client.
	LROClient *lroauto.OperationsClient
	// contains filtered or unexported fields
}

OrganizationSecurityProfileGroupClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Organization SecurityProfileGroup is created under organization.

func NewOrganizationSecurityProfileGroupClient

func NewOrganizationSecurityProfileGroupClient(ctx context.Context, opts ...option.ClientOption) (*OrganizationSecurityProfileGroupClient, error)

NewOrganizationSecurityProfileGroupClient creates a new organization security profile group service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.

Organization SecurityProfileGroup is created under organization.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func NewOrganizationSecurityProfileGroupRESTClient

func NewOrganizationSecurityProfileGroupRESTClient(ctx context.Context, opts ...option.ClientOption) (*OrganizationSecurityProfileGroupClient, error)

NewOrganizationSecurityProfileGroupRESTClient creates a new organization security profile group service rest client.

Organization SecurityProfileGroup is created under organization.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupRESTClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func (*OrganizationSecurityProfileGroupClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.CancelOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
	}
	err = c.CancelOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*OrganizationSecurityProfileGroupClient) Close

Close closes the connection to the API service. **Always** call Close() when the client is no longer required.

func (*OrganizationSecurityProfileGroupClient) Connection deprecated

Connection returns a connection to the API service.

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

func (*OrganizationSecurityProfileGroupClient) CreateSecurityProfile

CreateSecurityProfile creates a new SecurityProfile in a given organization and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateSecurityProfileRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSecurityProfileRequest.
	}
	op, err := c.CreateSecurityProfile(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationSecurityProfileGroupClient) CreateSecurityProfileGroup

CreateSecurityProfileGroup creates a new SecurityProfileGroup in a given organization and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateSecurityProfileGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSecurityProfileGroupRequest.
	}
	op, err := c.CreateSecurityProfileGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationSecurityProfileGroupClient) CreateSecurityProfileGroupOperation

func (c *OrganizationSecurityProfileGroupClient) CreateSecurityProfileGroupOperation(name string) *CreateSecurityProfileGroupOperation

CreateSecurityProfileGroupOperation returns a new CreateSecurityProfileGroupOperation from a given name. The name must be that of a previously created CreateSecurityProfileGroupOperation, possibly from a different process.

func (*OrganizationSecurityProfileGroupClient) CreateSecurityProfileOperation

func (c *OrganizationSecurityProfileGroupClient) CreateSecurityProfileOperation(name string) *CreateSecurityProfileOperation

CreateSecurityProfileOperation returns a new CreateSecurityProfileOperation from a given name. The name must be that of a previously created CreateSecurityProfileOperation, possibly from a different process.

func (*OrganizationSecurityProfileGroupClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.DeleteOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
	}
	err = c.DeleteOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*OrganizationSecurityProfileGroupClient) DeleteSecurityProfile

DeleteSecurityProfile deletes a single SecurityProfile.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteSecurityProfileRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSecurityProfileRequest.
	}
	op, err := c.DeleteSecurityProfile(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*OrganizationSecurityProfileGroupClient) DeleteSecurityProfileGroup

DeleteSecurityProfileGroup deletes a single SecurityProfileGroup.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteSecurityProfileGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSecurityProfileGroupRequest.
	}
	op, err := c.DeleteSecurityProfileGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*OrganizationSecurityProfileGroupClient) DeleteSecurityProfileGroupOperation

func (c *OrganizationSecurityProfileGroupClient) DeleteSecurityProfileGroupOperation(name string) *DeleteSecurityProfileGroupOperation

DeleteSecurityProfileGroupOperation returns a new DeleteSecurityProfileGroupOperation from a given name. The name must be that of a previously created DeleteSecurityProfileGroupOperation, possibly from a different process.

func (*OrganizationSecurityProfileGroupClient) DeleteSecurityProfileOperation

func (c *OrganizationSecurityProfileGroupClient) DeleteSecurityProfileOperation(name string) *DeleteSecurityProfileOperation

DeleteSecurityProfileOperation returns a new DeleteSecurityProfileOperation from a given name. The name must be that of a previously created DeleteSecurityProfileOperation, possibly from a different process.

func (*OrganizationSecurityProfileGroupClient) GetIamPolicy

GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.GetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
	}
	resp, err := c.GetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationSecurityProfileGroupClient) GetLocation

GetLocation gets information about a location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(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 (*OrganizationSecurityProfileGroupClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.GetOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
	}
	resp, err := c.GetOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationSecurityProfileGroupClient) GetSecurityProfile

GetSecurityProfile gets details of a single SecurityProfile.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetSecurityProfileRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSecurityProfileRequest.
	}
	resp, err := c.GetSecurityProfile(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationSecurityProfileGroupClient) GetSecurityProfileGroup

GetSecurityProfileGroup gets details of a single SecurityProfileGroup.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetSecurityProfileGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSecurityProfileGroupRequest.
	}
	resp, err := c.GetSecurityProfileGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationSecurityProfileGroupClient) ListLocations

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(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)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(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 (*OrganizationSecurityProfileGroupClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	it := c.ListOperations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*longrunningpb.ListOperationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	for resp, err := range c.ListOperations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*OrganizationSecurityProfileGroupClient) ListSecurityProfileGroups

ListSecurityProfileGroups lists SecurityProfileGroups in a given organization and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSecurityProfileGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfileGroupsRequest.
	}
	it := c.ListSecurityProfileGroups(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.(*networksecuritypb.ListSecurityProfileGroupsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSecurityProfileGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfileGroupsRequest.
	}
	for resp, err := range c.ListSecurityProfileGroups(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*OrganizationSecurityProfileGroupClient) ListSecurityProfiles

ListSecurityProfiles lists SecurityProfiles in a given organization and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSecurityProfilesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfilesRequest.
	}
	it := c.ListSecurityProfiles(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.(*networksecuritypb.ListSecurityProfilesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSecurityProfilesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfilesRequest.
	}
	for resp, err := range c.ListSecurityProfiles(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*OrganizationSecurityProfileGroupClient) SetIamPolicy

SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.SetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
	}
	resp, err := c.SetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationSecurityProfileGroupClient) TestIamPermissions

TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.TestIamPermissionsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
	}
	resp, err := c.TestIamPermissions(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationSecurityProfileGroupClient) UpdateSecurityProfile

UpdateSecurityProfile updates the parameters of a single SecurityProfile.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateSecurityProfileRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateSecurityProfileRequest.
	}
	op, err := c.UpdateSecurityProfile(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationSecurityProfileGroupClient) UpdateSecurityProfileGroup

UpdateSecurityProfileGroup updates the parameters of a single SecurityProfileGroup.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateSecurityProfileGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateSecurityProfileGroupRequest.
	}
	op, err := c.UpdateSecurityProfileGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*OrganizationSecurityProfileGroupClient) UpdateSecurityProfileGroupOperation

func (c *OrganizationSecurityProfileGroupClient) UpdateSecurityProfileGroupOperation(name string) *UpdateSecurityProfileGroupOperation

UpdateSecurityProfileGroupOperation returns a new UpdateSecurityProfileGroupOperation from a given name. The name must be that of a previously created UpdateSecurityProfileGroupOperation, possibly from a different process.

func (*OrganizationSecurityProfileGroupClient) UpdateSecurityProfileOperation

func (c *OrganizationSecurityProfileGroupClient) UpdateSecurityProfileOperation(name string) *UpdateSecurityProfileOperation

UpdateSecurityProfileOperation returns a new UpdateSecurityProfileOperation from a given name. The name must be that of a previously created UpdateSecurityProfileOperation, possibly from a different process.

type RemoveAddressGroupItemsOperation

type RemoveAddressGroupItemsOperation struct {
	// contains filtered or unexported fields
}

RemoveAddressGroupItemsOperation manages a long-running operation from RemoveAddressGroupItems.

func (*RemoveAddressGroupItemsOperation) Done

Done reports whether the long-running operation has completed.

func (*RemoveAddressGroupItemsOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*RemoveAddressGroupItemsOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*RemoveAddressGroupItemsOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*RemoveAddressGroupItemsOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type SACAttachmentIterator

type SACAttachmentIterator 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 []*networksecuritypb.SACAttachment, nextPageToken string, err error)
	// contains filtered or unexported fields
}

SACAttachmentIterator manages a stream of *networksecuritypb.SACAttachment.

func (*SACAttachmentIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*SACAttachmentIterator) 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 (*SACAttachmentIterator) PageInfo

func (it *SACAttachmentIterator) PageInfo() *iterator.PageInfo

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

type SACRealmIterator

type SACRealmIterator 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 []*networksecuritypb.SACRealm, nextPageToken string, err error)
	// contains filtered or unexported fields
}

SACRealmIterator manages a stream of *networksecuritypb.SACRealm.

func (*SACRealmIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*SACRealmIterator) 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 (*SACRealmIterator) PageInfo

func (it *SACRealmIterator) PageInfo() *iterator.PageInfo

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

type SSERealmCallOptions

type SSERealmCallOptions struct {
	ListSACRealms       []gax.CallOption
	GetSACRealm         []gax.CallOption
	CreateSACRealm      []gax.CallOption
	DeleteSACRealm      []gax.CallOption
	ListSACAttachments  []gax.CallOption
	GetSACAttachment    []gax.CallOption
	CreateSACAttachment []gax.CallOption
	DeleteSACAttachment []gax.CallOption
	GetLocation         []gax.CallOption
	ListLocations       []gax.CallOption
	GetIamPolicy        []gax.CallOption
	SetIamPolicy        []gax.CallOption
	TestIamPermissions  []gax.CallOption
	CancelOperation     []gax.CallOption
	DeleteOperation     []gax.CallOption
	GetOperation        []gax.CallOption
	ListOperations      []gax.CallOption
}

SSERealmCallOptions contains the retry settings for each method of SSERealmClient.

type SSERealmClient

type SSERealmClient struct {

	// The call options for this service.
	CallOptions *SSERealmCallOptions

	// LROClient is used internally to handle long-running operations.
	// It is exposed so that its CallOptions can be modified if required.
	// Users should not Close this client.
	LROClient *lroauto.OperationsClient
	// contains filtered or unexported fields
}

SSERealmClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Service describing handlers for resources

func NewSSERealmClient

func NewSSERealmClient(ctx context.Context, opts ...option.ClientOption) (*SSERealmClient, error)

NewSSERealmClient creates a new sse realm service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.

Service describing handlers for resources

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func NewSSERealmRESTClient

func NewSSERealmRESTClient(ctx context.Context, opts ...option.ClientOption) (*SSERealmClient, error)

NewSSERealmRESTClient creates a new sse realm service rest client.

Service describing handlers for resources

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmRESTClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func (*SSERealmClient) CancelOperation

func (c *SSERealmClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error

CancelOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.CancelOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
	}
	err = c.CancelOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*SSERealmClient) Close

func (c *SSERealmClient) Close() error

Close closes the connection to the API service. **Always** call Close() when the client is no longer required.

func (*SSERealmClient) Connection deprecated

func (c *SSERealmClient) 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 (*SSERealmClient) CreateSACAttachment

CreateSACAttachment creates a new SACAttachment in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateSACAttachmentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSACAttachmentRequest.
	}
	op, err := c.CreateSACAttachment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SSERealmClient) CreateSACAttachmentOperation

func (c *SSERealmClient) CreateSACAttachmentOperation(name string) *CreateSACAttachmentOperation

CreateSACAttachmentOperation returns a new CreateSACAttachmentOperation from a given name. The name must be that of a previously created CreateSACAttachmentOperation, possibly from a different process.

func (*SSERealmClient) CreateSACRealm

CreateSACRealm creates a new SACRealm in a given project.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateSACRealmRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSACRealmRequest.
	}
	op, err := c.CreateSACRealm(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SSERealmClient) CreateSACRealmOperation

func (c *SSERealmClient) CreateSACRealmOperation(name string) *CreateSACRealmOperation

CreateSACRealmOperation returns a new CreateSACRealmOperation from a given name. The name must be that of a previously created CreateSACRealmOperation, possibly from a different process.

func (*SSERealmClient) DeleteOperation

func (c *SSERealmClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error

DeleteOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.DeleteOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
	}
	err = c.DeleteOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*SSERealmClient) DeleteSACAttachment

DeleteSACAttachment deletes the specified attachment.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteSACAttachmentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSACAttachmentRequest.
	}
	op, err := c.DeleteSACAttachment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*SSERealmClient) DeleteSACAttachmentOperation

func (c *SSERealmClient) DeleteSACAttachmentOperation(name string) *DeleteSACAttachmentOperation

DeleteSACAttachmentOperation returns a new DeleteSACAttachmentOperation from a given name. The name must be that of a previously created DeleteSACAttachmentOperation, possibly from a different process.

func (*SSERealmClient) DeleteSACRealm

DeleteSACRealm deletes the specified realm.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteSACRealmRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSACRealmRequest.
	}
	op, err := c.DeleteSACRealm(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*SSERealmClient) DeleteSACRealmOperation

func (c *SSERealmClient) DeleteSACRealmOperation(name string) *DeleteSACRealmOperation

DeleteSACRealmOperation returns a new DeleteSACRealmOperation from a given name. The name must be that of a previously created DeleteSACRealmOperation, possibly from a different process.

func (*SSERealmClient) GetIamPolicy

func (c *SSERealmClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)

GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.GetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
	}
	resp, err := c.GetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SSERealmClient) GetLocation

GetLocation gets information about a location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(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 (*SSERealmClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.GetOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
	}
	resp, err := c.GetOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SSERealmClient) GetSACAttachment

GetSACAttachment returns the specified attachment.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetSACAttachmentRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSACAttachmentRequest.
	}
	resp, err := c.GetSACAttachment(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SSERealmClient) GetSACRealm

GetSACRealm returns the specified realm.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetSACRealmRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSACRealmRequest.
	}
	resp, err := c.GetSACRealm(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SSERealmClient) ListLocations

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(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)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(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 (*SSERealmClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	it := c.ListOperations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*longrunningpb.ListOperationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	for resp, err := range c.ListOperations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*SSERealmClient) ListSACAttachments

ListSACAttachments lists SACAttachments in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSACAttachmentsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSACAttachmentsRequest.
	}
	it := c.ListSACAttachments(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.(*networksecuritypb.ListSACAttachmentsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSACAttachmentsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSACAttachmentsRequest.
	}
	for resp, err := range c.ListSACAttachments(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*SSERealmClient) ListSACRealms

ListSACRealms lists SACRealms in a given project.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSACRealmsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSACRealmsRequest.
	}
	it := c.ListSACRealms(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.(*networksecuritypb.ListSACRealmsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSACRealmsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSACRealmsRequest.
	}
	for resp, err := range c.ListSACRealms(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*SSERealmClient) SetIamPolicy

func (c *SSERealmClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)

SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.SetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
	}
	resp, err := c.SetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SSERealmClient) TestIamPermissions

TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSSERealmClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.TestIamPermissionsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
	}
	resp, err := c.TestIamPermissions(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

type SecurityProfileGroupCallOptions

type SecurityProfileGroupCallOptions struct {
	ListSecurityProfileGroups  []gax.CallOption
	GetSecurityProfileGroup    []gax.CallOption
	CreateSecurityProfileGroup []gax.CallOption
	UpdateSecurityProfileGroup []gax.CallOption
	DeleteSecurityProfileGroup []gax.CallOption
	ListSecurityProfiles       []gax.CallOption
	GetSecurityProfile         []gax.CallOption
	CreateSecurityProfile      []gax.CallOption
	UpdateSecurityProfile      []gax.CallOption
	DeleteSecurityProfile      []gax.CallOption
	GetLocation                []gax.CallOption
	ListLocations              []gax.CallOption
	GetIamPolicy               []gax.CallOption
	SetIamPolicy               []gax.CallOption
	TestIamPermissions         []gax.CallOption
	CancelOperation            []gax.CallOption
	DeleteOperation            []gax.CallOption
	GetOperation               []gax.CallOption
	ListOperations             []gax.CallOption
}

SecurityProfileGroupCallOptions contains the retry settings for each method of SecurityProfileGroupClient.

type SecurityProfileGroupClient

type SecurityProfileGroupClient struct {

	// The call options for this service.
	CallOptions *SecurityProfileGroupCallOptions

	// LROClient is used internally to handle long-running operations.
	// It is exposed so that its CallOptions can be modified if required.
	// Users should not Close this client.
	LROClient *lroauto.OperationsClient
	// contains filtered or unexported fields
}

SecurityProfileGroupClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

SecurityProfileGroup is a resource that defines an action for specific threat signatures or severity levels.

func NewSecurityProfileGroupClient

func NewSecurityProfileGroupClient(ctx context.Context, opts ...option.ClientOption) (*SecurityProfileGroupClient, error)

NewSecurityProfileGroupClient creates a new security profile group service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.

SecurityProfileGroup is a resource that defines an action for specific threat signatures or severity levels.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func NewSecurityProfileGroupRESTClient

func NewSecurityProfileGroupRESTClient(ctx context.Context, opts ...option.ClientOption) (*SecurityProfileGroupClient, error)

NewSecurityProfileGroupRESTClient creates a new security profile group service rest client.

SecurityProfileGroup is a resource that defines an action for specific threat signatures or severity levels.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupRESTClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	// TODO: Use client.
	_ = c
}

func (*SecurityProfileGroupClient) CancelOperation

CancelOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.CancelOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
	}
	err = c.CancelOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*SecurityProfileGroupClient) Close

func (c *SecurityProfileGroupClient) Close() error

Close closes the connection to the API service. **Always** call Close() when the client is no longer required.

func (*SecurityProfileGroupClient) Connection deprecated

func (c *SecurityProfileGroupClient) 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 (*SecurityProfileGroupClient) CreateSecurityProfile

CreateSecurityProfile creates a new SecurityProfile in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateSecurityProfileRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSecurityProfileRequest.
	}
	op, err := c.CreateSecurityProfile(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SecurityProfileGroupClient) CreateSecurityProfileGroup

CreateSecurityProfileGroup creates a new SecurityProfileGroup in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.CreateSecurityProfileGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSecurityProfileGroupRequest.
	}
	op, err := c.CreateSecurityProfileGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SecurityProfileGroupClient) CreateSecurityProfileGroupOperation

func (c *SecurityProfileGroupClient) CreateSecurityProfileGroupOperation(name string) *CreateSecurityProfileGroupOperation

CreateSecurityProfileGroupOperation returns a new CreateSecurityProfileGroupOperation from a given name. The name must be that of a previously created CreateSecurityProfileGroupOperation, possibly from a different process.

func (*SecurityProfileGroupClient) CreateSecurityProfileOperation

func (c *SecurityProfileGroupClient) CreateSecurityProfileOperation(name string) *CreateSecurityProfileOperation

CreateSecurityProfileOperation returns a new CreateSecurityProfileOperation from a given name. The name must be that of a previously created CreateSecurityProfileOperation, possibly from a different process.

func (*SecurityProfileGroupClient) DeleteOperation

DeleteOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.DeleteOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
	}
	err = c.DeleteOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*SecurityProfileGroupClient) DeleteSecurityProfile

DeleteSecurityProfile deletes a single SecurityProfile.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteSecurityProfileRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSecurityProfileRequest.
	}
	op, err := c.DeleteSecurityProfile(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*SecurityProfileGroupClient) DeleteSecurityProfileGroup

DeleteSecurityProfileGroup deletes a single SecurityProfileGroup.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.DeleteSecurityProfileGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSecurityProfileGroupRequest.
	}
	op, err := c.DeleteSecurityProfileGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	err = op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
}

func (*SecurityProfileGroupClient) DeleteSecurityProfileGroupOperation

func (c *SecurityProfileGroupClient) DeleteSecurityProfileGroupOperation(name string) *DeleteSecurityProfileGroupOperation

DeleteSecurityProfileGroupOperation returns a new DeleteSecurityProfileGroupOperation from a given name. The name must be that of a previously created DeleteSecurityProfileGroupOperation, possibly from a different process.

func (*SecurityProfileGroupClient) DeleteSecurityProfileOperation

func (c *SecurityProfileGroupClient) DeleteSecurityProfileOperation(name string) *DeleteSecurityProfileOperation

DeleteSecurityProfileOperation returns a new DeleteSecurityProfileOperation from a given name. The name must be that of a previously created DeleteSecurityProfileOperation, possibly from a different process.

func (*SecurityProfileGroupClient) GetIamPolicy

GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.GetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
	}
	resp, err := c.GetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SecurityProfileGroupClient) GetLocation

GetLocation gets information about a location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(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 (*SecurityProfileGroupClient) GetOperation

GetOperation is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.GetOperationRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
	}
	resp, err := c.GetOperation(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SecurityProfileGroupClient) GetSecurityProfile

GetSecurityProfile gets details of a single SecurityProfile.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetSecurityProfileRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSecurityProfileRequest.
	}
	resp, err := c.GetSecurityProfile(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SecurityProfileGroupClient) GetSecurityProfileGroup

GetSecurityProfileGroup gets details of a single SecurityProfileGroup.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.GetSecurityProfileGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSecurityProfileGroupRequest.
	}
	resp, err := c.GetSecurityProfileGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SecurityProfileGroupClient) ListLocations

ListLocations lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.

For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(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)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	locationpb "google.golang.org/genproto/googleapis/cloud/location"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(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 (*SecurityProfileGroupClient) ListOperations

ListOperations is a utility method from google.longrunning.Operations.

Example
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
	"google.golang.org/api/iterator"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	it := c.ListOperations(ctx, req)
	for {
		resp, err := it.Next()
		if err == iterator.Done {
			break
		}
		if err != nil {
			// TODO: Handle error.
		}
		// TODO: Use resp.
		_ = resp

		// If you need to access the underlying RPC response,
		// you can do so by casting the `Response` as below.
		// Otherwise, remove this line. Only populated after
		// first call to Next(). Not safe for concurrent access.
		_ = it.Response.(*longrunningpb.ListOperationsResponse)
	}
}
Example (All)
package main

import (
	"context"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &longrunningpb.ListOperationsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
	}
	for resp, err := range c.ListOperations(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*SecurityProfileGroupClient) ListSecurityProfileGroups

ListSecurityProfileGroups lists SecurityProfileGroups in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSecurityProfileGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfileGroupsRequest.
	}
	it := c.ListSecurityProfileGroups(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.(*networksecuritypb.ListSecurityProfileGroupsResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSecurityProfileGroupsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfileGroupsRequest.
	}
	for resp, err := range c.ListSecurityProfileGroups(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*SecurityProfileGroupClient) ListSecurityProfiles

ListSecurityProfiles lists SecurityProfiles in a given project and location.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
	"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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSecurityProfilesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfilesRequest.
	}
	it := c.ListSecurityProfiles(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.(*networksecuritypb.ListSecurityProfilesResponse)
	}
}
Example (All)
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.ListSecurityProfilesRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfilesRequest.
	}
	for resp, err := range c.ListSecurityProfiles(ctx, req).All() {
		if err != nil {
			// TODO: Handle error and break/return/continue. Iteration will stop after any error.
		}
		// TODO: Use resp.
		_ = resp
	}
}

func (*SecurityProfileGroupClient) SetIamPolicy

SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.SetIamPolicyRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
	}
	resp, err := c.SetIamPolicy(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SecurityProfileGroupClient) TestIamPermissions

TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.

Example
package main

import (
	"context"

	iampb "cloud.google.com/go/iam/apiv1/iampb"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"
)

func main() {
	ctx := context.Background()
	// This snippet has been automatically generated and should be regarded as a code template only.
	// It will require modifications to work:
	// - It may require correct/in-range values for request initialization.
	// - It may require specifying regional endpoints when creating the service client as shown in:
	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
	c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &iampb.TestIamPermissionsRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
	}
	resp, err := c.TestIamPermissions(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SecurityProfileGroupClient) UpdateSecurityProfile

UpdateSecurityProfile updates the parameters of a single SecurityProfile.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateSecurityProfileRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateSecurityProfileRequest.
	}
	op, err := c.UpdateSecurityProfile(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SecurityProfileGroupClient) UpdateSecurityProfileGroup

UpdateSecurityProfileGroup updates the parameters of a single SecurityProfileGroup.

Example
package main

import (
	"context"

	networksecurity "cloud.google.com/go/networksecurity/apiv1"

	networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)

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 := networksecurity.NewSecurityProfileGroupClient(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	defer c.Close()

	req := &networksecuritypb.UpdateSecurityProfileGroupRequest{
		// TODO: Fill request struct fields.
		// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateSecurityProfileGroupRequest.
	}
	op, err := c.UpdateSecurityProfileGroup(ctx, req)
	if err != nil {
		// TODO: Handle error.
	}

	resp, err := op.Wait(ctx)
	if err != nil {
		// TODO: Handle error.
	}
	// TODO: Use resp.
	_ = resp
}

func (*SecurityProfileGroupClient) UpdateSecurityProfileGroupOperation

func (c *SecurityProfileGroupClient) UpdateSecurityProfileGroupOperation(name string) *UpdateSecurityProfileGroupOperation

UpdateSecurityProfileGroupOperation returns a new UpdateSecurityProfileGroupOperation from a given name. The name must be that of a previously created UpdateSecurityProfileGroupOperation, possibly from a different process.

func (*SecurityProfileGroupClient) UpdateSecurityProfileOperation

func (c *SecurityProfileGroupClient) UpdateSecurityProfileOperation(name string) *UpdateSecurityProfileOperation

UpdateSecurityProfileOperation returns a new UpdateSecurityProfileOperation from a given name. The name must be that of a previously created UpdateSecurityProfileOperation, possibly from a different process.

type SecurityProfileGroupIterator

type SecurityProfileGroupIterator 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 []*networksecuritypb.SecurityProfileGroup, nextPageToken string, err error)
	// contains filtered or unexported fields
}

SecurityProfileGroupIterator manages a stream of *networksecuritypb.SecurityProfileGroup.

func (*SecurityProfileGroupIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*SecurityProfileGroupIterator) 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 (*SecurityProfileGroupIterator) PageInfo

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

type SecurityProfileIterator

type SecurityProfileIterator 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 []*networksecuritypb.SecurityProfile, nextPageToken string, err error)
	// contains filtered or unexported fields
}

SecurityProfileIterator manages a stream of *networksecuritypb.SecurityProfile.

func (*SecurityProfileIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*SecurityProfileIterator) 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 (*SecurityProfileIterator) PageInfo

func (it *SecurityProfileIterator) PageInfo() *iterator.PageInfo

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

type ServerTlsPolicyIterator

type ServerTlsPolicyIterator 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 []*networksecuritypb.ServerTlsPolicy, nextPageToken string, err error)
	// contains filtered or unexported fields
}

ServerTlsPolicyIterator manages a stream of *networksecuritypb.ServerTlsPolicy.

func (*ServerTlsPolicyIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*ServerTlsPolicyIterator) 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 (*ServerTlsPolicyIterator) PageInfo

func (it *ServerTlsPolicyIterator) PageInfo() *iterator.PageInfo

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

type TlsInspectionPolicyIterator

type TlsInspectionPolicyIterator 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 []*networksecuritypb.TlsInspectionPolicy, nextPageToken string, err error)
	// contains filtered or unexported fields
}

TlsInspectionPolicyIterator manages a stream of *networksecuritypb.TlsInspectionPolicy.

func (*TlsInspectionPolicyIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*TlsInspectionPolicyIterator) 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 (*TlsInspectionPolicyIterator) PageInfo

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

type UpdateAddressGroupOperation

type UpdateAddressGroupOperation struct {
	// contains filtered or unexported fields
}

UpdateAddressGroupOperation manages a long-running operation from UpdateAddressGroup.

func (*UpdateAddressGroupOperation) Done

func (op *UpdateAddressGroupOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*UpdateAddressGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateAddressGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateAddressGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateAddressGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateAuthorizationPolicyOperation

type UpdateAuthorizationPolicyOperation struct {
	// contains filtered or unexported fields
}

UpdateAuthorizationPolicyOperation manages a long-running operation from UpdateAuthorizationPolicy.

func (*UpdateAuthorizationPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateAuthorizationPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateAuthorizationPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateAuthorizationPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateAuthorizationPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateAuthzPolicyOperation

type UpdateAuthzPolicyOperation struct {
	// contains filtered or unexported fields
}

UpdateAuthzPolicyOperation manages a long-running operation from UpdateAuthzPolicy.

func (*UpdateAuthzPolicyOperation) Done

func (op *UpdateAuthzPolicyOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*UpdateAuthzPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateAuthzPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateAuthzPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateAuthzPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateBackendAuthenticationConfigOperation

type UpdateBackendAuthenticationConfigOperation struct {
	// contains filtered or unexported fields
}

UpdateBackendAuthenticationConfigOperation manages a long-running operation from UpdateBackendAuthenticationConfig.

func (*UpdateBackendAuthenticationConfigOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateBackendAuthenticationConfigOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateBackendAuthenticationConfigOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateBackendAuthenticationConfigOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateBackendAuthenticationConfigOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateClientTlsPolicyOperation

type UpdateClientTlsPolicyOperation struct {
	// contains filtered or unexported fields
}

UpdateClientTlsPolicyOperation manages a long-running operation from UpdateClientTlsPolicy.

func (*UpdateClientTlsPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateClientTlsPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateClientTlsPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateClientTlsPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateClientTlsPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateFirewallEndpointAssociationOperation

type UpdateFirewallEndpointAssociationOperation struct {
	// contains filtered or unexported fields
}

UpdateFirewallEndpointAssociationOperation manages a long-running operation from UpdateFirewallEndpointAssociation.

func (*UpdateFirewallEndpointAssociationOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateFirewallEndpointAssociationOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateFirewallEndpointAssociationOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateFirewallEndpointAssociationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateFirewallEndpointAssociationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateFirewallEndpointOperation

type UpdateFirewallEndpointOperation struct {
	// contains filtered or unexported fields
}

UpdateFirewallEndpointOperation manages a long-running operation from UpdateFirewallEndpoint.

func (*UpdateFirewallEndpointOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateFirewallEndpointOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateFirewallEndpointOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateFirewallEndpointOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateFirewallEndpointOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateGatewaySecurityPolicyOperation

type UpdateGatewaySecurityPolicyOperation struct {
	// contains filtered or unexported fields
}

UpdateGatewaySecurityPolicyOperation manages a long-running operation from UpdateGatewaySecurityPolicy.

func (*UpdateGatewaySecurityPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateGatewaySecurityPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateGatewaySecurityPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateGatewaySecurityPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateGatewaySecurityPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateGatewaySecurityPolicyRuleOperation

type UpdateGatewaySecurityPolicyRuleOperation struct {
	// contains filtered or unexported fields
}

UpdateGatewaySecurityPolicyRuleOperation manages a long-running operation from UpdateGatewaySecurityPolicyRule.

func (*UpdateGatewaySecurityPolicyRuleOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateGatewaySecurityPolicyRuleOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateGatewaySecurityPolicyRuleOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateGatewaySecurityPolicyRuleOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateGatewaySecurityPolicyRuleOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateInterceptDeploymentGroupOperation

type UpdateInterceptDeploymentGroupOperation struct {
	// contains filtered or unexported fields
}

UpdateInterceptDeploymentGroupOperation manages a long-running operation from UpdateInterceptDeploymentGroup.

func (*UpdateInterceptDeploymentGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateInterceptDeploymentGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateInterceptDeploymentGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateInterceptDeploymentGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateInterceptDeploymentGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateInterceptDeploymentOperation

type UpdateInterceptDeploymentOperation struct {
	// contains filtered or unexported fields
}

UpdateInterceptDeploymentOperation manages a long-running operation from UpdateInterceptDeployment.

func (*UpdateInterceptDeploymentOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateInterceptDeploymentOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateInterceptDeploymentOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateInterceptDeploymentOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateInterceptDeploymentOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateInterceptEndpointGroupAssociationOperation

type UpdateInterceptEndpointGroupAssociationOperation struct {
	// contains filtered or unexported fields
}

UpdateInterceptEndpointGroupAssociationOperation manages a long-running operation from UpdateInterceptEndpointGroupAssociation.

func (*UpdateInterceptEndpointGroupAssociationOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateInterceptEndpointGroupAssociationOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateInterceptEndpointGroupAssociationOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateInterceptEndpointGroupAssociationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateInterceptEndpointGroupAssociationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateInterceptEndpointGroupOperation

type UpdateInterceptEndpointGroupOperation struct {
	// contains filtered or unexported fields
}

UpdateInterceptEndpointGroupOperation manages a long-running operation from UpdateInterceptEndpointGroup.

func (*UpdateInterceptEndpointGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateInterceptEndpointGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateInterceptEndpointGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateInterceptEndpointGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateInterceptEndpointGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateMirroringDeploymentGroupOperation

type UpdateMirroringDeploymentGroupOperation struct {
	// contains filtered or unexported fields
}

UpdateMirroringDeploymentGroupOperation manages a long-running operation from UpdateMirroringDeploymentGroup.

func (*UpdateMirroringDeploymentGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateMirroringDeploymentGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateMirroringDeploymentGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateMirroringDeploymentGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateMirroringDeploymentGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateMirroringDeploymentOperation

type UpdateMirroringDeploymentOperation struct {
	// contains filtered or unexported fields
}

UpdateMirroringDeploymentOperation manages a long-running operation from UpdateMirroringDeployment.

func (*UpdateMirroringDeploymentOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateMirroringDeploymentOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateMirroringDeploymentOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateMirroringDeploymentOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateMirroringDeploymentOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateMirroringEndpointGroupAssociationOperation

type UpdateMirroringEndpointGroupAssociationOperation struct {
	// contains filtered or unexported fields
}

UpdateMirroringEndpointGroupAssociationOperation manages a long-running operation from UpdateMirroringEndpointGroupAssociation.

func (*UpdateMirroringEndpointGroupAssociationOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateMirroringEndpointGroupAssociationOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateMirroringEndpointGroupAssociationOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateMirroringEndpointGroupAssociationOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateMirroringEndpointGroupAssociationOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateMirroringEndpointGroupOperation

type UpdateMirroringEndpointGroupOperation struct {
	// contains filtered or unexported fields
}

UpdateMirroringEndpointGroupOperation manages a long-running operation from UpdateMirroringEndpointGroup.

func (*UpdateMirroringEndpointGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateMirroringEndpointGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateMirroringEndpointGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateMirroringEndpointGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateMirroringEndpointGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateProjectFirewallEndpointOperation

type UpdateProjectFirewallEndpointOperation struct {
	// contains filtered or unexported fields
}

UpdateProjectFirewallEndpointOperation manages a long-running operation from UpdateProjectFirewallEndpoint.

func (*UpdateProjectFirewallEndpointOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateProjectFirewallEndpointOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateProjectFirewallEndpointOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateProjectFirewallEndpointOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateProjectFirewallEndpointOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateSecurityProfileGroupOperation

type UpdateSecurityProfileGroupOperation struct {
	// contains filtered or unexported fields
}

UpdateSecurityProfileGroupOperation manages a long-running operation from UpdateSecurityProfileGroup.

func (*UpdateSecurityProfileGroupOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateSecurityProfileGroupOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateSecurityProfileGroupOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateSecurityProfileGroupOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateSecurityProfileGroupOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateSecurityProfileOperation

type UpdateSecurityProfileOperation struct {
	// contains filtered or unexported fields
}

UpdateSecurityProfileOperation manages a long-running operation from UpdateSecurityProfile.

func (*UpdateSecurityProfileOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateSecurityProfileOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateSecurityProfileOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateSecurityProfileOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateSecurityProfileOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateServerTlsPolicyOperation

type UpdateServerTlsPolicyOperation struct {
	// contains filtered or unexported fields
}

UpdateServerTlsPolicyOperation manages a long-running operation from UpdateServerTlsPolicy.

func (*UpdateServerTlsPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateServerTlsPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateServerTlsPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateServerTlsPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateServerTlsPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateTlsInspectionPolicyOperation

type UpdateTlsInspectionPolicyOperation struct {
	// contains filtered or unexported fields
}

UpdateTlsInspectionPolicyOperation manages a long-running operation from UpdateTlsInspectionPolicy.

func (*UpdateTlsInspectionPolicyOperation) Done

Done reports whether the long-running operation has completed.

func (*UpdateTlsInspectionPolicyOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateTlsInspectionPolicyOperation) Name

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateTlsInspectionPolicyOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateTlsInspectionPolicyOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UpdateUrlListOperation

type UpdateUrlListOperation struct {
	// contains filtered or unexported fields
}

UpdateUrlListOperation manages a long-running operation from UpdateUrlList.

func (*UpdateUrlListOperation) Done

func (op *UpdateUrlListOperation) Done() bool

Done reports whether the long-running operation has completed.

func (*UpdateUrlListOperation) Metadata

Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.

func (*UpdateUrlListOperation) Name

func (op *UpdateUrlListOperation) Name() string

Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.

func (*UpdateUrlListOperation) Poll

Poll fetches the latest state of the long-running operation.

Poll also fetches the latest metadata, which can be retrieved by Metadata.

If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.

func (*UpdateUrlListOperation) Wait

Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

See documentation of Poll for error-handling information.

type UrlListIterator

type UrlListIterator 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 []*networksecuritypb.UrlList, nextPageToken string, err error)
	// contains filtered or unexported fields
}

UrlListIterator manages a stream of *networksecuritypb.UrlList.

func (*UrlListIterator) All

All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.

func (*UrlListIterator) 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 (*UrlListIterator) PageInfo

func (it *UrlListIterator) PageInfo() *iterator.PageInfo

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL