1.12.1 (latest) 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.6 1.2.11 1.1.1 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

> [!NOTE]
> **Note:** To get more information about this package, such as access to older versions, view [this package on pkg.go.dev](https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2).

<br />

Package baremetalsolution is an auto-generated package for the
Bare Metal Solution API.

Provides ways to manage Bare Metal Solution hardware installed in a
regional extension located near a Google Cloud data center.

## General documentation

For information that is relevant for all client libraries please reference
<https://pkg.go.dev/cloud.google.com/go#pkg-overview>. Some information on this
page includes:

- [Authentication and Authorization](https://pkg.go.dev/cloud.google.com/go#hdr-Authentication_and_Authorization)
- [Timeouts and Cancellation](https://pkg.go.dev/cloud.google.com/go#hdr-Timeouts_and_Cancellation)
- [Testing against Client Libraries](https://pkg.go.dev/cloud.google.com/go#hdr-Testing)
- [Debugging Client Libraries](https://pkg.go.dev/cloud.google.com/go#hdr-Debugging)
- [Inspecting errors](https://pkg.go.dev/cloud.google.com/go#hdr-Inspecting_errors)

## Example usage

To get started with this package, create a client.

```go
// go get cloud.google.com/go/baremetalsolution/apiv2@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 := baremetalsolution.NewClient(ctx)
if err != nil {
    // TODO: Handle error.
}
defer c.Close()
```

<br />

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.

```go
req := &baremetalsolutionpb.CreateNfsShareRequest{
    // TODO: Fill request struct fields.
    // See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#CreateNfsShareRequest.
}
op, err := c.CreateNfsShare(ctx, req)
if err != nil {
    // TODO: Handle error.
}

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

<br />

## Use of Context

The ctx passed to NewClient is used for authentication requests and
for creating the underlying connection, but is not used for subsequent calls.
Individual methods on the client use the ctx given to them.

To close the open connection, use the Close() method.

## Functions

### func DefaultAuthScopes

    func DefaultAuthScopes() []https://pkg.go.dev/builtin#string

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

## CallOptions

    type CallOptions struct {
    	ListInstances                   []gax.CallOption
    	GetInstance                     []gax.CallOption
    	UpdateInstance                  []gax.CallOption
    	RenameInstance                  []gax.CallOption
    	ResetInstance                   []gax.CallOption
    	StartInstance                   []gax.CallOption
    	StopInstance                    []gax.CallOption
    	EnableInteractiveSerialConsole  []gax.CallOption
    	DisableInteractiveSerialConsole []gax.CallOption
    	DetachLun                       []gax.CallOption
    	ListSSHKeys                     []gax.CallOption
    	CreateSSHKey                    []gax.CallOption
    	DeleteSSHKey                    []gax.CallOption
    	ListVolumes                     []gax.CallOption
    	GetVolume                       []gax.CallOption
    	UpdateVolume                    []gax.CallOption
    	RenameVolume                    []gax.CallOption
    	EvictVolume                     []gax.CallOption
    	ResizeVolume                    []gax.CallOption
    	ListNetworks                    []gax.CallOption
    	ListNetworkUsage                []gax.CallOption
    	GetNetwork                      []gax.CallOption
    	UpdateNetwork                   []gax.CallOption
    	CreateVolumeSnapshot            []gax.CallOption
    	RestoreVolumeSnapshot           []gax.CallOption
    	DeleteVolumeSnapshot            []gax.CallOption
    	GetVolumeSnapshot               []gax.CallOption
    	ListVolumeSnapshots             []gax.CallOption
    	GetLun                          []gax.CallOption
    	ListLuns                        []gax.CallOption
    	EvictLun                        []gax.CallOption
    	GetNfsShare                     []gax.CallOption
    	ListNfsShares                   []gax.CallOption
    	UpdateNfsShare                  []gax.CallOption
    	CreateNfsShare                  []gax.CallOption
    	RenameNfsShare                  []gax.CallOption
    	DeleteNfsShare                  []gax.CallOption
    	ListProvisioningQuotas          []gax.CallOption
    	SubmitProvisioningConfig        []gax.CallOption
    	GetProvisioningConfig           []gax.CallOption
    	CreateProvisioningConfig        []gax.CallOption
    	UpdateProvisioningConfig        []gax.CallOption
    	RenameNetwork                   []gax.CallOption
    	ListOSImages                    []gax.CallOption
    	GetLocation                     []gax.CallOption
    	ListLocations                   []gax.CallOption
    }

CallOptions contains the retry settings for each method of Client.

## Client

    type Client struct {

    	// The call options for this service.
    	CallOptions *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_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 Bare Metal Solution API.
Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

Performs management operations on Bare Metal Solution servers.

The baremetalsolution.googleapis.com service provides management
capabilities for Bare Metal Solution servers. To access the API methods, you
must assign Bare Metal Solution IAM roles containing the desired permissions
to your staff in your Google Cloud project. You must also enable the Bare
Metal Solution API. Once enabled, the methods act
upon specific servers in your Bare Metal Solution environment.

### func NewClient

    func NewClient(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...option.ClientOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client, https://pkg.go.dev/builtin#error)

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

Performs management operations on Bare Metal Solution servers.

The baremetalsolution.googleapis.com service provides management
capabilities for Bare Metal Solution servers. To access the API methods, you
must assign Bare Metal Solution IAM roles containing the desired permissions
to your staff in your Google Cloud project. You must also enable the Bare
Metal Solution API. Once enabled, the methods act
upon specific servers in your Bare Metal Solution environment.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    )

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

    	// TODO: Use client.
    	_ = c
    }

### func NewRESTClient

    func NewRESTClient(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...option.ClientOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client, https://pkg.go.dev/builtin#error)

NewRESTClient creates a new bare metal solution rest client.

Performs management operations on Bare Metal Solution servers.

The baremetalsolution.googleapis.com service provides management
capabilities for Bare Metal Solution servers. To access the API methods, you
must assign Bare Metal Solution IAM roles containing the desired permissions
to your staff in your Google Cloud project. You must also enable the Bare
Metal Solution API. Once enabled, the methods act
upon specific servers in your Bare Metal Solution environment.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    )

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

    	// TODO: Use client.
    	_ = c
    }

### func (\*Client) Close

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) Close() https://pkg.go.dev/builtin#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 *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_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) CreateNfsShare

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) CreateNfsShare(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_CreateNfsShareRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_CreateNfsShareOperation, https://pkg.go.dev/builtin#error)

CreateNfsShare create an NFS share.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.CreateNfsShareRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#CreateNfsShareRequest.
    	}
    	op, err := c.CreateNfsShare(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) CreateNfsShareOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) CreateNfsShareOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_CreateNfsShareOperation

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

### func (\*Client) CreateProvisioningConfig

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) CreateProvisioningConfig(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_CreateProvisioningConfigRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ProvisioningConfig, https://pkg.go.dev/builtin#error)

CreateProvisioningConfig create new ProvisioningConfig.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.CreateProvisioningConfigRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#CreateProvisioningConfigRequest.
    	}
    	resp, err := c.CreateProvisioningConfig(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) CreateSSHKey

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) CreateSSHKey(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_CreateSSHKeyRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_SSHKey, https://pkg.go.dev/builtin#error)

CreateSSHKey register a public SSH key in the specified project for use with the
interactive serial console feature.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.CreateSSHKeyRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#CreateSSHKeyRequest.
    	}
    	resp, err := c.CreateSSHKey(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) CreateVolumeSnapshot

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) CreateVolumeSnapshot(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_CreateVolumeSnapshotRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_VolumeSnapshot, https://pkg.go.dev/builtin#error)

CreateVolumeSnapshot takes a snapshot of a boot volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.CreateVolumeSnapshotRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#CreateVolumeSnapshotRequest.
    	}
    	resp, err := c.CreateVolumeSnapshot(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) DeleteNfsShare

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) DeleteNfsShare(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_DeleteNfsShareRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DeleteNfsShareOperation, https://pkg.go.dev/builtin#error)

DeleteNfsShare delete an NFS share. The underlying volume is automatically deleted.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.DeleteNfsShareRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#DeleteNfsShareRequest.
    	}
    	op, err := c.DeleteNfsShare(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

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

### func (\*Client) DeleteNfsShareOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) DeleteNfsShareOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DeleteNfsShareOperation

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

### func (\*Client) DeleteSSHKey

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) DeleteSSHKey(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_DeleteSSHKeyRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#error

DeleteSSHKey deletes a public SSH key registered in the specified project.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.DeleteSSHKeyRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#DeleteSSHKeyRequest.
    	}
    	err = c.DeleteSSHKey(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    }

### func (\*Client) DeleteVolumeSnapshot

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) DeleteVolumeSnapshot(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_DeleteVolumeSnapshotRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#error

DeleteVolumeSnapshot deletes a volume snapshot.
Returns INVALID_ARGUMENT if called for a non-boot volume.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.DeleteVolumeSnapshotRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#DeleteVolumeSnapshotRequest.
    	}
    	err = c.DeleteVolumeSnapshot(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    }

### func (\*Client) DetachLun

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) DetachLun(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_DetachLunRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DetachLunOperation, https://pkg.go.dev/builtin#error)

DetachLun detach LUN from Instance.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.DetachLunRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#DetachLunRequest.
    	}
    	op, err := c.DetachLun(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) DetachLunOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) DetachLunOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DetachLunOperation

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

### func (\*Client) DisableInteractiveSerialConsole

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) DisableInteractiveSerialConsole(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_DisableInteractiveSerialConsoleRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DisableInteractiveSerialConsoleOperation, https://pkg.go.dev/builtin#error)

DisableInteractiveSerialConsole disable the interactive serial console feature on an instance.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.DisableInteractiveSerialConsoleRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#DisableInteractiveSerialConsoleRequest.
    	}
    	op, err := c.DisableInteractiveSerialConsole(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) DisableInteractiveSerialConsoleOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) DisableInteractiveSerialConsoleOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DisableInteractiveSerialConsoleOperation

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

### func (\*Client) EnableInteractiveSerialConsole

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) EnableInteractiveSerialConsole(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_EnableInteractiveSerialConsoleRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EnableInteractiveSerialConsoleOperation, https://pkg.go.dev/builtin#error)

EnableInteractiveSerialConsole enable the interactive serial console feature on an instance.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.EnableInteractiveSerialConsoleRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#EnableInteractiveSerialConsoleRequest.
    	}
    	op, err := c.EnableInteractiveSerialConsole(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) EnableInteractiveSerialConsoleOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) EnableInteractiveSerialConsoleOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EnableInteractiveSerialConsoleOperation

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

### func (\*Client) EvictLun

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) EvictLun(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_EvictLunRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictLunOperation, https://pkg.go.dev/builtin#error)

EvictLun skips lun's cooloff and deletes it now.
Lun must be in cooloff state.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.EvictLunRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#EvictLunRequest.
    	}
    	op, err := c.EvictLun(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

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

### func (\*Client) EvictLunOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) EvictLunOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictLunOperation

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

### func (\*Client) EvictVolume

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) EvictVolume(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_EvictVolumeRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictVolumeOperation, https://pkg.go.dev/builtin#error)

EvictVolume skips volume's cooloff and deletes it now.
Volume must be in cooloff state.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.EvictVolumeRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#EvictVolumeRequest.
    	}
    	op, err := c.EvictVolume(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

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

### func (\*Client) EvictVolumeOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) EvictVolumeOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictVolumeOperation

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

### func (\*Client) GetInstance

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) GetInstance(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_GetInstanceRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Instance, https://pkg.go.dev/builtin#error)

GetInstance get details about a single server.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.GetInstanceRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#GetInstanceRequest.
    	}
    	resp, err := c.GetInstance(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) GetLocation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) GetLocation(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location.https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location.https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#Location, https://pkg.go.dev/builtin#error)

GetLocation gets information about a location.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"

    	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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_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) GetLun

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) GetLun(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_GetLunRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Lun, https://pkg.go.dev/builtin#error)

GetLun get details of a single storage logical unit number(LUN).

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.GetLunRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#GetLunRequest.
    	}
    	resp, err := c.GetLun(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) GetNetwork

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) GetNetwork(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_GetNetworkRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Network, https://pkg.go.dev/builtin#error)

GetNetwork get details of a single network.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.GetNetworkRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#GetNetworkRequest.
    	}
    	resp, err := c.GetNetwork(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) GetNfsShare

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) GetNfsShare(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_GetNfsShareRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_NfsShare, https://pkg.go.dev/builtin#error)

GetNfsShare get details of a single NFS share.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.GetNfsShareRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#GetNfsShareRequest.
    	}
    	resp, err := c.GetNfsShare(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) GetProvisioningConfig

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) GetProvisioningConfig(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_GetProvisioningConfigRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ProvisioningConfig, https://pkg.go.dev/builtin#error)

GetProvisioningConfig get ProvisioningConfig by name.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.GetProvisioningConfigRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#GetProvisioningConfigRequest.
    	}
    	resp, err := c.GetProvisioningConfig(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) GetVolume

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) GetVolume(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_GetVolumeRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Volume, https://pkg.go.dev/builtin#error)

GetVolume get details of a single storage volume.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.GetVolumeRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#GetVolumeRequest.
    	}
    	resp, err := c.GetVolume(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) GetVolumeSnapshot

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) GetVolumeSnapshot(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_GetVolumeSnapshotRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_VolumeSnapshot, https://pkg.go.dev/builtin#error)

GetVolumeSnapshot returns the specified snapshot resource.
Returns INVALID_ARGUMENT if called for a non-boot volume.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.GetVolumeSnapshotRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#GetVolumeSnapshotRequest.
    	}
    	resp, err := c.GetVolumeSnapshot(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) ListInstances

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListInstances(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListInstancesRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_InstanceIterator

ListInstances list servers in a given project and location.

#### Examples

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    	"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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_Close()

    	req := &baremetalsolutionpb.ListInstancesRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListInstancesRequest.
    	}
    	it := c.ListInstances(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.(*baremetalsolutionpb.ListInstancesResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ListInstancesRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListInstancesRequest.
    	}
    	for resp, err := range c.ListInstances(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 *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListLocations(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location.https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_LocationIterator

ListLocations lists information about the supported locations for this service.

#### Examples

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	"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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_Close()

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

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

##### all

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"

    	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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_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.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_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) ListLuns

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListLuns(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListLunsRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_LunIterator

ListLuns list storage volume luns for given storage volume.

#### Examples

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    	"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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_Close()

    	req := &baremetalsolutionpb.ListLunsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListLunsRequest.
    	}
    	it := c.ListLuns(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.(*baremetalsolutionpb.ListLunsResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ListLunsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListLunsRequest.
    	}
    	for resp, err := range c.ListLuns(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) ListNetworkUsage

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListNetworkUsage(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListNetworkUsageRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListNetworkUsageResponse, https://pkg.go.dev/builtin#error)

ListNetworkUsage list all Networks (and used IPs for each Network) in the vendor account
associated with the specified project.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ListNetworkUsageRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListNetworkUsageRequest.
    	}
    	resp, err := c.ListNetworkUsage(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) ListNetworks

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListNetworks(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListNetworksRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_NetworkIterator

ListNetworks list network in a given project and location.

#### Examples

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    	"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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_Close()

    	req := &baremetalsolutionpb.ListNetworksRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListNetworksRequest.
    	}
    	it := c.ListNetworks(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.(*baremetalsolutionpb.ListNetworksResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ListNetworksRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListNetworksRequest.
    	}
    	for resp, err := range c.ListNetworks(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) ListNfsShares

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListNfsShares(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListNfsSharesRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_NfsShareIterator

ListNfsShares list NFS shares.

#### Examples

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    	"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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_Close()

    	req := &baremetalsolutionpb.ListNfsSharesRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListNfsSharesRequest.
    	}
    	it := c.ListNfsShares(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.(*baremetalsolutionpb.ListNfsSharesResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ListNfsSharesRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListNfsSharesRequest.
    	}
    	for resp, err := range c.ListNfsShares(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) ListOSImages

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListOSImages(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListOSImagesRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_OSImageIterator

ListOSImages retrieves the list of OS images which are currently approved.

#### Examples

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    	"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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_Close()

    	req := &baremetalsolutionpb.ListOSImagesRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListOSImagesRequest.
    	}
    	it := c.ListOSImages(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.(*baremetalsolutionpb.ListOSImagesResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ListOSImagesRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListOSImagesRequest.
    	}
    	for resp, err := range c.ListOSImages(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) ListProvisioningQuotas

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListProvisioningQuotas(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListProvisioningQuotasRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ProvisioningQuotaIterator

ListProvisioningQuotas list the budget details to provision resources on a given project.

#### Examples

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    	"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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_Close()

    	req := &baremetalsolutionpb.ListProvisioningQuotasRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListProvisioningQuotasRequest.
    	}
    	it := c.ListProvisioningQuotas(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.(*baremetalsolutionpb.ListProvisioningQuotasResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ListProvisioningQuotasRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListProvisioningQuotasRequest.
    	}
    	for resp, err := range c.ListProvisioningQuotas(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) ListSSHKeys

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListSSHKeys(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListSSHKeysRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_SSHKeyIterator

ListSSHKeys lists the public SSH keys registered for the specified project.
These SSH keys are used only for the interactive serial console feature.

#### Examples

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    	"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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_Close()

    	req := &baremetalsolutionpb.ListSSHKeysRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListSSHKeysRequest.
    	}
    	it := c.ListSSHKeys(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.(*baremetalsolutionpb.ListSSHKeysResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ListSSHKeysRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListSSHKeysRequest.
    	}
    	for resp, err := range c.ListSSHKeys(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) ListVolumeSnapshots

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListVolumeSnapshots(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListVolumeSnapshotsRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_VolumeSnapshotIterator

ListVolumeSnapshots retrieves the list of snapshots for the specified volume.
Returns a response with an empty list of snapshots if called
for a non-boot volume.

#### Examples

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    	"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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_Close()

    	req := &baremetalsolutionpb.ListVolumeSnapshotsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListVolumeSnapshotsRequest.
    	}
    	it := c.ListVolumeSnapshots(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.(*baremetalsolutionpb.ListVolumeSnapshotsResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ListVolumeSnapshotsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListVolumeSnapshotsRequest.
    	}
    	for resp, err := range c.ListVolumeSnapshots(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) ListVolumes

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ListVolumes(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ListVolumesRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_VolumeIterator

ListVolumes list storage volumes in a given project and location.

#### Examples

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    	"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 := baremetalsolution.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2.html#cloud_google_com_go_baremetalsolution_apiv2_Client_Close()

    	req := &baremetalsolutionpb.ListVolumesRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListVolumesRequest.
    	}
    	it := c.ListVolumes(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.(*baremetalsolutionpb.ListVolumesResponse)
    	}
    }

##### all

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ListVolumesRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListVolumesRequest.
    	}
    	for resp, err := range c.ListVolumes(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) RenameInstance

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) RenameInstance(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_RenameInstanceRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Instance, https://pkg.go.dev/builtin#error)

RenameInstance renameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.RenameInstanceRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#RenameInstanceRequest.
    	}
    	resp, err := c.RenameInstance(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) RenameNetwork

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) RenameNetwork(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_RenameNetworkRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Network, https://pkg.go.dev/builtin#error)

RenameNetwork renameNetwork sets a new name for a network.
Use with caution, previous names become immediately invalidated.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.RenameNetworkRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#RenameNetworkRequest.
    	}
    	resp, err := c.RenameNetwork(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) RenameNfsShare

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) RenameNfsShare(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_RenameNfsShareRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_NfsShare, https://pkg.go.dev/builtin#error)

RenameNfsShare renameNfsShare sets a new name for an nfsshare.
Use with caution, previous names become immediately invalidated.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.RenameNfsShareRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#RenameNfsShareRequest.
    	}
    	resp, err := c.RenameNfsShare(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) RenameVolume

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) RenameVolume(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_RenameVolumeRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Volume, https://pkg.go.dev/builtin#error)

RenameVolume renameVolume sets a new name for a volume.
Use with caution, previous names become immediately invalidated.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.RenameVolumeRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#RenameVolumeRequest.
    	}
    	resp, err := c.RenameVolume(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) ResetInstance

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ResetInstance(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ResetInstanceRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResetInstanceOperation, https://pkg.go.dev/builtin#error)

ResetInstance perform an ungraceful, hard reset on a server. Equivalent to shutting the
power off and then turning it back on.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ResetInstanceRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ResetInstanceRequest.
    	}
    	op, err := c.ResetInstance(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) ResetInstanceOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ResetInstanceOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResetInstanceOperation

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

### func (\*Client) ResizeVolume

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ResizeVolume(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ResizeVolumeRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResizeVolumeOperation, https://pkg.go.dev/builtin#error)

ResizeVolume emergency Volume resize.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.ResizeVolumeRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ResizeVolumeRequest.
    	}
    	op, err := c.ResizeVolume(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) ResizeVolumeOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) ResizeVolumeOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResizeVolumeOperation

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

### func (\*Client) RestoreVolumeSnapshot

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) RestoreVolumeSnapshot(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_RestoreVolumeSnapshotRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_RestoreVolumeSnapshotOperation, https://pkg.go.dev/builtin#error)

RestoreVolumeSnapshot uses the specified snapshot to restore its parent volume.
Returns INVALID_ARGUMENT if called for a non-boot volume.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.RestoreVolumeSnapshotRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#RestoreVolumeSnapshotRequest.
    	}
    	op, err := c.RestoreVolumeSnapshot(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) RestoreVolumeSnapshotOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) RestoreVolumeSnapshotOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_RestoreVolumeSnapshotOperation

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

### func (\*Client) StartInstance

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) StartInstance(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_StartInstanceRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StartInstanceOperation, https://pkg.go.dev/builtin#error)

StartInstance starts a server that was shutdown.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.StartInstanceRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#StartInstanceRequest.
    	}
    	op, err := c.StartInstance(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) StartInstanceOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) StartInstanceOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StartInstanceOperation

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

### func (\*Client) StopInstance

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) StopInstance(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_StopInstanceRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StopInstanceOperation, https://pkg.go.dev/builtin#error)

StopInstance stop a running server.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.StopInstanceRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#StopInstanceRequest.
    	}
    	op, err := c.StopInstance(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) StopInstanceOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) StopInstanceOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StopInstanceOperation

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

### func (\*Client) SubmitProvisioningConfig

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) SubmitProvisioningConfig(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_SubmitProvisioningConfigRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_SubmitProvisioningConfigResponse, https://pkg.go.dev/builtin#error)

SubmitProvisioningConfig submit a provisiong configuration for a given project.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.SubmitProvisioningConfigRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#SubmitProvisioningConfigRequest.
    	}
    	resp, err := c.SubmitProvisioningConfig(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) UpdateInstance

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) UpdateInstance(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_UpdateInstanceRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateInstanceOperation, https://pkg.go.dev/builtin#error)

UpdateInstance update details of a single server.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.UpdateInstanceRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#UpdateInstanceRequest.
    	}
    	op, err := c.UpdateInstance(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) UpdateInstanceOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) UpdateInstanceOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateInstanceOperation

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

### func (\*Client) UpdateNetwork

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) UpdateNetwork(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_UpdateNetworkRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNetworkOperation, https://pkg.go.dev/builtin#error)

UpdateNetwork update details of a single network.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.UpdateNetworkRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#UpdateNetworkRequest.
    	}
    	op, err := c.UpdateNetwork(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) UpdateNetworkOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) UpdateNetworkOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNetworkOperation

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

### func (\*Client) UpdateNfsShare

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) UpdateNfsShare(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_UpdateNfsShareRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNfsShareOperation, https://pkg.go.dev/builtin#error)

UpdateNfsShare update details of a single NFS share.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.UpdateNfsShareRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#UpdateNfsShareRequest.
    	}
    	op, err := c.UpdateNfsShare(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) UpdateNfsShareOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) UpdateNfsShareOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNfsShareOperation

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

### func (\*Client) UpdateProvisioningConfig

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) UpdateProvisioningConfig(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_UpdateProvisioningConfigRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ProvisioningConfig, https://pkg.go.dev/builtin#error)

UpdateProvisioningConfig update existing ProvisioningConfig.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.UpdateProvisioningConfigRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#UpdateProvisioningConfigRequest.
    	}
    	resp, err := c.UpdateProvisioningConfig(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

### func (\*Client) UpdateVolume

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) UpdateVolume(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, req *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_UpdateVolumeRequest, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateVolumeOperation, https://pkg.go.dev/builtin#error)

UpdateVolume update details of a single storage volume.

#### Example

    package main

    import (
    	"context"

    	baremetalsolution "cloud.google.com/go/baremetalsolution/apiv2"
    	baremetalsolutionpb "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb"
    )

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

    	req := &baremetalsolutionpb.UpdateVolumeRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#UpdateVolumeRequest.
    	}
    	op, err := c.UpdateVolume(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) UpdateVolumeOperation

    func (c *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_Client) UpdateVolumeOperation(name https://pkg.go.dev/builtin#string) *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateVolumeOperation

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

## CreateNfsShareOperation

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

CreateNfsShareOperation manages a long-running operation from CreateNfsShare.

### func (\*CreateNfsShareOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_CreateNfsShareOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*CreateNfsShareOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_CreateNfsShareOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*CreateNfsShareOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_CreateNfsShareOperation) Name() https://pkg.go.dev/builtin#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 (\*CreateNfsShareOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_CreateNfsShareOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_NfsShare, https://pkg.go.dev/builtin#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 (\*CreateNfsShareOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_CreateNfsShareOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_NfsShare, https://pkg.go.dev/builtin#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.

## DeleteNfsShareOperation

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

DeleteNfsShareOperation manages a long-running operation from DeleteNfsShare.

### func (\*DeleteNfsShareOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DeleteNfsShareOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*DeleteNfsShareOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DeleteNfsShareOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*DeleteNfsShareOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DeleteNfsShareOperation) Name() https://pkg.go.dev/builtin#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 (\*DeleteNfsShareOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DeleteNfsShareOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#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 (\*DeleteNfsShareOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DeleteNfsShareOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#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.

## DetachLunOperation

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

DetachLunOperation manages a long-running operation from DetachLun.

### func (\*DetachLunOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DetachLunOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*DetachLunOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DetachLunOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*DetachLunOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DetachLunOperation) Name() https://pkg.go.dev/builtin#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 (\*DetachLunOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DetachLunOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Instance, https://pkg.go.dev/builtin#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 (\*DetachLunOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DetachLunOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Instance, https://pkg.go.dev/builtin#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.

## DisableInteractiveSerialConsoleOperation

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

DisableInteractiveSerialConsoleOperation manages a long-running operation from DisableInteractiveSerialConsole.

### func (\*DisableInteractiveSerialConsoleOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DisableInteractiveSerialConsoleOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*DisableInteractiveSerialConsoleOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DisableInteractiveSerialConsoleOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*DisableInteractiveSerialConsoleOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DisableInteractiveSerialConsoleOperation) Name() https://pkg.go.dev/builtin#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 (\*DisableInteractiveSerialConsoleOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DisableInteractiveSerialConsoleOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_DisableInteractiveSerialConsoleResponse, https://pkg.go.dev/builtin#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 (\*DisableInteractiveSerialConsoleOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_DisableInteractiveSerialConsoleOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_DisableInteractiveSerialConsoleResponse, https://pkg.go.dev/builtin#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.

## EnableInteractiveSerialConsoleOperation

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

EnableInteractiveSerialConsoleOperation manages a long-running operation from EnableInteractiveSerialConsole.

### func (\*EnableInteractiveSerialConsoleOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EnableInteractiveSerialConsoleOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*EnableInteractiveSerialConsoleOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EnableInteractiveSerialConsoleOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*EnableInteractiveSerialConsoleOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EnableInteractiveSerialConsoleOperation) Name() https://pkg.go.dev/builtin#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 (\*EnableInteractiveSerialConsoleOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EnableInteractiveSerialConsoleOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_EnableInteractiveSerialConsoleResponse, https://pkg.go.dev/builtin#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 (\*EnableInteractiveSerialConsoleOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EnableInteractiveSerialConsoleOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_EnableInteractiveSerialConsoleResponse, https://pkg.go.dev/builtin#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.

## EvictLunOperation

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

EvictLunOperation manages a long-running operation from EvictLun.

### func (\*EvictLunOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictLunOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*EvictLunOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictLunOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*EvictLunOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictLunOperation) Name() https://pkg.go.dev/builtin#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 (\*EvictLunOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictLunOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#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 (\*EvictLunOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictLunOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#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.

## EvictVolumeOperation

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

EvictVolumeOperation manages a long-running operation from EvictVolume.

### func (\*EvictVolumeOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictVolumeOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*EvictVolumeOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictVolumeOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*EvictVolumeOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictVolumeOperation) Name() https://pkg.go.dev/builtin#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 (\*EvictVolumeOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictVolumeOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#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 (\*EvictVolumeOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_EvictVolumeOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) https://pkg.go.dev/builtin#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.

## InstanceIterator

    type InstanceIterator 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 https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*baremetalsolutionpb.Instance, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

InstanceIterator manages a stream of \*baremetalsolutionpb.Instance.

### func (\*InstanceIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_InstanceIterator) All() iter.Seq2[*baremetalsolutionpb.Instance, error]

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

### func (\*InstanceIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_InstanceIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Instance, https://pkg.go.dev/builtin#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 (\*InstanceIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_InstanceIterator) PageInfo() *iterator.PageInfo

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

## LocationIterator

    type LocationIterator struct {

    	// Response is the raw response for the current page.
    	// It must be cast to the RPC response type.
    	// Calling Next() or InternalFetch() updates this value.
    	Response interface{}

    	// InternalFetch is for use by the Google Cloud Libraries only.
    	// It is not part of the stable interface of this package.
    	//
    	// InternalFetch returns results from a single call to the underlying RPC.
    	// The number of results is no greater than pageSize.
    	// If there are no more results, nextPageToken is empty and err is nil.
    	InternalFetch func(pageSize https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*locationpb.Location, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

LocationIterator manages a stream of \*locationpb.Location.

### func (\*LocationIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_LocationIterator) All() iter.Seq2[*locationpb.Location, error]

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

### func (\*LocationIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_LocationIterator) Next() (*https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location.https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#Location, https://pkg.go.dev/builtin#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 *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_LocationIterator) PageInfo() *iterator.PageInfo

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

## LunIterator

    type LunIterator 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 https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*baremetalsolutionpb.Lun, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

LunIterator manages a stream of \*baremetalsolutionpb.Lun.

### func (\*LunIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_LunIterator) All() iter.Seq2[*baremetalsolutionpb.Lun, error]

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

### func (\*LunIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_LunIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Lun, https://pkg.go.dev/builtin#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 (\*LunIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_LunIterator) PageInfo() *iterator.PageInfo

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

## NetworkIterator

    type NetworkIterator 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 https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*baremetalsolutionpb.Network, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

NetworkIterator manages a stream of \*baremetalsolutionpb.Network.

### func (\*NetworkIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_NetworkIterator) All() iter.Seq2[*baremetalsolutionpb.Network, error]

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

### func (\*NetworkIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_NetworkIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Network, https://pkg.go.dev/builtin#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 (\*NetworkIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_NetworkIterator) PageInfo() *iterator.PageInfo

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

## NfsShareIterator

    type NfsShareIterator 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 https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*baremetalsolutionpb.NfsShare, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

NfsShareIterator manages a stream of \*baremetalsolutionpb.NfsShare.

### func (\*NfsShareIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_NfsShareIterator) All() iter.Seq2[*baremetalsolutionpb.NfsShare, error]

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

### func (\*NfsShareIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_NfsShareIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_NfsShare, https://pkg.go.dev/builtin#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 (\*NfsShareIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_NfsShareIterator) PageInfo() *iterator.PageInfo

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

## OSImageIterator

    type OSImageIterator 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 https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*baremetalsolutionpb.OSImage, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

OSImageIterator manages a stream of \*baremetalsolutionpb.OSImage.

### func (\*OSImageIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_OSImageIterator) All() iter.Seq2[*baremetalsolutionpb.OSImage, error]

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

### func (\*OSImageIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_OSImageIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OSImage, https://pkg.go.dev/builtin#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 (\*OSImageIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_OSImageIterator) PageInfo() *iterator.PageInfo

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

## ProvisioningQuotaIterator

    type ProvisioningQuotaIterator 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 https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*baremetalsolutionpb.ProvisioningQuota, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

ProvisioningQuotaIterator manages a stream of \*baremetalsolutionpb.ProvisioningQuota.

### func (\*ProvisioningQuotaIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ProvisioningQuotaIterator) All() iter.Seq2[*baremetalsolutionpb.ProvisioningQuota, error]

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

### func (\*ProvisioningQuotaIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ProvisioningQuotaIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ProvisioningQuota, https://pkg.go.dev/builtin#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 (\*ProvisioningQuotaIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ProvisioningQuotaIterator) PageInfo() *iterator.PageInfo

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

## ResetInstanceOperation

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

ResetInstanceOperation manages a long-running operation from ResetInstance.

### func (\*ResetInstanceOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResetInstanceOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*ResetInstanceOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResetInstanceOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*ResetInstanceOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResetInstanceOperation) Name() https://pkg.go.dev/builtin#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 (\*ResetInstanceOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResetInstanceOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ResetInstanceResponse, https://pkg.go.dev/builtin#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 (\*ResetInstanceOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResetInstanceOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_ResetInstanceResponse, https://pkg.go.dev/builtin#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.

## ResizeVolumeOperation

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

ResizeVolumeOperation manages a long-running operation from ResizeVolume.

### func (\*ResizeVolumeOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResizeVolumeOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*ResizeVolumeOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResizeVolumeOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*ResizeVolumeOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResizeVolumeOperation) Name() https://pkg.go.dev/builtin#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 (\*ResizeVolumeOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResizeVolumeOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Volume, https://pkg.go.dev/builtin#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 (\*ResizeVolumeOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_ResizeVolumeOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Volume, https://pkg.go.dev/builtin#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.

## RestoreVolumeSnapshotOperation

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

RestoreVolumeSnapshotOperation manages a long-running operation from RestoreVolumeSnapshot.

### func (\*RestoreVolumeSnapshotOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_RestoreVolumeSnapshotOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*RestoreVolumeSnapshotOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_RestoreVolumeSnapshotOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*RestoreVolumeSnapshotOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_RestoreVolumeSnapshotOperation) Name() https://pkg.go.dev/builtin#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 (\*RestoreVolumeSnapshotOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_RestoreVolumeSnapshotOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_VolumeSnapshot, https://pkg.go.dev/builtin#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 (\*RestoreVolumeSnapshotOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_RestoreVolumeSnapshotOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_VolumeSnapshot, https://pkg.go.dev/builtin#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.

## SSHKeyIterator

    type SSHKeyIterator 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 https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*baremetalsolutionpb.SSHKey, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

SSHKeyIterator manages a stream of \*baremetalsolutionpb.SSHKey.

### func (\*SSHKeyIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_SSHKeyIterator) All() iter.Seq2[*baremetalsolutionpb.SSHKey, error]

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

### func (\*SSHKeyIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_SSHKeyIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_SSHKey, https://pkg.go.dev/builtin#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 (\*SSHKeyIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_SSHKeyIterator) PageInfo() *iterator.PageInfo

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

## StartInstanceOperation

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

StartInstanceOperation manages a long-running operation from StartInstance.

### func (\*StartInstanceOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StartInstanceOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*StartInstanceOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StartInstanceOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*StartInstanceOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StartInstanceOperation) Name() https://pkg.go.dev/builtin#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 (\*StartInstanceOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StartInstanceOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_StartInstanceResponse, https://pkg.go.dev/builtin#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 (\*StartInstanceOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StartInstanceOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_StartInstanceResponse, https://pkg.go.dev/builtin#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.

## StopInstanceOperation

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

StopInstanceOperation manages a long-running operation from StopInstance.

### func (\*StopInstanceOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StopInstanceOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*StopInstanceOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StopInstanceOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*StopInstanceOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StopInstanceOperation) Name() https://pkg.go.dev/builtin#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 (\*StopInstanceOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StopInstanceOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_StopInstanceResponse, https://pkg.go.dev/builtin#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 (\*StopInstanceOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_StopInstanceOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_StopInstanceResponse, https://pkg.go.dev/builtin#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.

## UpdateInstanceOperation

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

UpdateInstanceOperation manages a long-running operation from UpdateInstance.

### func (\*UpdateInstanceOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateInstanceOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*UpdateInstanceOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateInstanceOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*UpdateInstanceOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateInstanceOperation) Name() https://pkg.go.dev/builtin#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 (\*UpdateInstanceOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateInstanceOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Instance, https://pkg.go.dev/builtin#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 (\*UpdateInstanceOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateInstanceOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Instance, https://pkg.go.dev/builtin#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.

## UpdateNetworkOperation

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

UpdateNetworkOperation manages a long-running operation from UpdateNetwork.

### func (\*UpdateNetworkOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNetworkOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*UpdateNetworkOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNetworkOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*UpdateNetworkOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNetworkOperation) Name() https://pkg.go.dev/builtin#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 (\*UpdateNetworkOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNetworkOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Network, https://pkg.go.dev/builtin#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 (\*UpdateNetworkOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNetworkOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Network, https://pkg.go.dev/builtin#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.

## UpdateNfsShareOperation

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

UpdateNfsShareOperation manages a long-running operation from UpdateNfsShare.

### func (\*UpdateNfsShareOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNfsShareOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*UpdateNfsShareOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNfsShareOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*UpdateNfsShareOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNfsShareOperation) Name() https://pkg.go.dev/builtin#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 (\*UpdateNfsShareOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNfsShareOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_NfsShare, https://pkg.go.dev/builtin#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 (\*UpdateNfsShareOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateNfsShareOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_NfsShare, https://pkg.go.dev/builtin#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.

## UpdateVolumeOperation

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

UpdateVolumeOperation manages a long-running operation from UpdateVolume.

### func (\*UpdateVolumeOperation) Done

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateVolumeOperation) Done() https://pkg.go.dev/builtin#bool

Done reports whether the long-running operation has completed.

### func (\*UpdateVolumeOperation) Metadata

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateVolumeOperation) Metadata() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_OperationMetadata, https://pkg.go.dev/builtin#error)

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

### func (\*UpdateVolumeOperation) Name

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateVolumeOperation) Name() https://pkg.go.dev/builtin#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 (\*UpdateVolumeOperation) Poll

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateVolumeOperation) Poll(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Volume, https://pkg.go.dev/builtin#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 (\*UpdateVolumeOperation) Wait

    func (op *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_UpdateVolumeOperation) Wait(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, opts ...https://pkg.go.dev/github.com/googleapis/gax-go/v2.https://pkg.go.dev/github.com/googleapis/gax-go/v2#CallOption) (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Volume, https://pkg.go.dev/builtin#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.

## VolumeIterator

    type VolumeIterator 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 https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*baremetalsolutionpb.Volume, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

VolumeIterator manages a stream of \*baremetalsolutionpb.Volume.

### func (\*VolumeIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_VolumeIterator) All() iter.Seq2[*baremetalsolutionpb.Volume, error]

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

### func (\*VolumeIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_VolumeIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_Volume, https://pkg.go.dev/builtin#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 (\*VolumeIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_VolumeIterator) PageInfo() *iterator.PageInfo

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

## VolumeSnapshotIterator

    type VolumeSnapshotIterator 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 https://pkg.go.dev/builtin#int, pageToken https://pkg.go.dev/builtin#string) (results []*baremetalsolutionpb.VolumeSnapshot, nextPageToken https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)
    	// contains filtered or unexported fields
    }

VolumeSnapshotIterator manages a stream of \*baremetalsolutionpb.VolumeSnapshot.

### func (\*VolumeSnapshotIterator) All

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_VolumeSnapshotIterator) All() iter.Seq2[*baremetalsolutionpb.VolumeSnapshot, error]

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

### func (\*VolumeSnapshotIterator) Next

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_VolumeSnapshotIterator) Next() (*https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2/baremetalsolutionpb#cloud_google_com_go_baremetalsolution_apiv2_baremetalsolutionpb_VolumeSnapshot, https://pkg.go.dev/builtin#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 (\*VolumeSnapshotIterator) PageInfo

    func (it *https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/baremetalsolution/latest/apiv2#cloud_google_com_go_baremetalsolution_apiv2_VolumeSnapshotIterator) PageInfo() *iterator.PageInfo

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