Package cloud.google.com/go/baremetalsolution/apiv2 (v1.4.0) Stay organized with collections Save and categorize content based on your preferences.
Package baremetalsolution is an auto-generated package for theBare Metal Solution API.
Provides ways to manage Bare Metal Solution hardware installed in aregional extension located near a Google Cloud data center.
General documentation
For information that is relevant for all client libraries please referencehttps://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on thispage includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage
To get started with this package, create a client.
// go get cloud.google.com/go/baremetalsolution/apiv2@latestctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed.The methods of Client are safe for concurrent use by multiple goroutines.The returned client must be Closed when it is done being used.
Using the Client
The following is an example of making an API call with the newly created client, mentioned above.
req:=&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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp
Use of Context
The ctx passed to NewClient is used for authentication requests andfor 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
funcDefaultAuthScopes()[]stringDefaultAuthScopes reports the default set of authentication scopes to use with this package.
CallOptions
typeCallOptionsstruct{ListInstances[]gax.CallOptionGetInstance[]gax.CallOptionUpdateInstance[]gax.CallOptionRenameInstance[]gax.CallOptionResetInstance[]gax.CallOptionStartInstance[]gax.CallOptionStopInstance[]gax.CallOptionEnableInteractiveSerialConsole[]gax.CallOptionDisableInteractiveSerialConsole[]gax.CallOptionDetachLun[]gax.CallOptionListSSHKeys[]gax.CallOptionCreateSSHKey[]gax.CallOptionDeleteSSHKey[]gax.CallOptionListVolumes[]gax.CallOptionGetVolume[]gax.CallOptionUpdateVolume[]gax.CallOptionRenameVolume[]gax.CallOptionEvictVolume[]gax.CallOptionResizeVolume[]gax.CallOptionListNetworks[]gax.CallOptionListNetworkUsage[]gax.CallOptionGetNetwork[]gax.CallOptionUpdateNetwork[]gax.CallOptionCreateVolumeSnapshot[]gax.CallOptionRestoreVolumeSnapshot[]gax.CallOptionDeleteVolumeSnapshot[]gax.CallOptionGetVolumeSnapshot[]gax.CallOptionListVolumeSnapshots[]gax.CallOptionGetLun[]gax.CallOptionListLuns[]gax.CallOptionEvictLun[]gax.CallOptionGetNfsShare[]gax.CallOptionListNfsShares[]gax.CallOptionUpdateNfsShare[]gax.CallOptionCreateNfsShare[]gax.CallOptionRenameNfsShare[]gax.CallOptionDeleteNfsShare[]gax.CallOptionListProvisioningQuotas[]gax.CallOptionSubmitProvisioningConfig[]gax.CallOptionGetProvisioningConfig[]gax.CallOptionCreateProvisioningConfig[]gax.CallOptionUpdateProvisioningConfig[]gax.CallOptionRenameNetwork[]gax.CallOptionListOSImages[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOption}CallOptions contains the retry settings for each method of Client.
Client
typeClientstruct{// The call options for this service.CallOptions*CallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}Client is a client for interacting with 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 managementcapabilities for Bare Metal Solution servers. To access the API methods, youmust assign Bare Metal Solution IAM roles containing the desired permissionsto your staff in your Google Cloud project. You must also enable the BareMetal Solution API. Once enabled, the methods actupon specific servers in your Bare Metal Solution environment.
func NewClient
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 managementcapabilities for Bare Metal Solution servers. To access the API methods, youmust assign Bare Metal Solution IAM roles containing the desired permissionsto your staff in your Google Cloud project. You must also enable the BareMetal Solution API. Once enabled, the methods actupon specific servers in your Bare Metal Solution environment.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewRESTClient
NewRESTClient creates a new bare metal solution rest client.
Performs management operations on Bare Metal Solution servers.
The baremetalsolution.googleapis.com service provides managementcapabilities for Bare Metal Solution servers. To access the API methods, youmust assign Bare Metal Solution IAM roles containing the desired permissionsto your staff in your Google Cloud project. You must also enable the BareMetal Solution API. Once enabled, the methods actupon specific servers in your Bare Metal Solution environment.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*Client) Close
Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*Client) Connection (deprecated)
func(c*Client)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*Client) CreateNfsShare
func(c*Client)CreateNfsShare(ctxcontext.Context,req*baremetalsolutionpb.CreateNfsShareRequest,opts...gax.CallOption)(*CreateNfsShareOperation,error)CreateNfsShare create an NFS share.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateNfsShareOperation
func(c*Client)CreateNfsShareOperation(namestring)*CreateNfsShareOperationCreateNfsShareOperation 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*Client)CreateProvisioningConfig(ctxcontext.Context,req*baremetalsolutionpb.CreateProvisioningConfigRequest,opts...gax.CallOption)(*baremetalsolutionpb.ProvisioningConfig,error)CreateProvisioningConfig create new ProvisioningConfig.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateSSHKey
func(c*Client)CreateSSHKey(ctxcontext.Context,req*baremetalsolutionpb.CreateSSHKeyRequest,opts...gax.CallOption)(*baremetalsolutionpb.SSHKey,error)CreateSSHKey register a public SSH key in the specified project for use with theinteractive serial console feature.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateVolumeSnapshot
func(c*Client)CreateVolumeSnapshot(ctxcontext.Context,req*baremetalsolutionpb.CreateVolumeSnapshotRequest,opts...gax.CallOption)(*baremetalsolutionpb.VolumeSnapshot,error)CreateVolumeSnapshot takes a snapshot of a boot volume.Returns INVALID_ARGUMENT if called for a non-boot volume.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) DeleteNfsShare
func(c*Client)DeleteNfsShare(ctxcontext.Context,req*baremetalsolutionpb.DeleteNfsShareRequest,opts...gax.CallOption)(*DeleteNfsShareOperation,error)DeleteNfsShare delete an NFS share. The underlying volume is automatically deleted.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteNfsShareOperation
func(c*Client)DeleteNfsShareOperation(namestring)*DeleteNfsShareOperationDeleteNfsShareOperation 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*Client)DeleteSSHKey(ctxcontext.Context,req*baremetalsolutionpb.DeleteSSHKeyRequest,opts...gax.CallOption)errorDeleteSSHKey deletes a public SSH key registered in the specified project.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteVolumeSnapshot
func(c*Client)DeleteVolumeSnapshot(ctxcontext.Context,req*baremetalsolutionpb.DeleteVolumeSnapshotRequest,opts...gax.CallOption)errorDeleteVolumeSnapshot deletes a volume snapshot.Returns INVALID_ARGUMENT if called for a non-boot volume.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}}func (*Client) DetachLun
func(c*Client)DetachLun(ctxcontext.Context,req*baremetalsolutionpb.DetachLunRequest,opts...gax.CallOption)(*DetachLunOperation,error)DetachLun detach LUN from Instance.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) DetachLunOperation
func(c*Client)DetachLunOperation(namestring)*DetachLunOperationDetachLunOperation 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*Client)DisableInteractiveSerialConsole(ctxcontext.Context,req*baremetalsolutionpb.DisableInteractiveSerialConsoleRequest,opts...gax.CallOption)(*DisableInteractiveSerialConsoleOperation,error)DisableInteractiveSerialConsole disable the interactive serial console feature on an instance.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) DisableInteractiveSerialConsoleOperation
func(c*Client)DisableInteractiveSerialConsoleOperation(namestring)*DisableInteractiveSerialConsoleOperationDisableInteractiveSerialConsoleOperation 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*Client)EnableInteractiveSerialConsole(ctxcontext.Context,req*baremetalsolutionpb.EnableInteractiveSerialConsoleRequest,opts...gax.CallOption)(*EnableInteractiveSerialConsoleOperation,error)EnableInteractiveSerialConsole enable the interactive serial console feature on an instance.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) EnableInteractiveSerialConsoleOperation
func(c*Client)EnableInteractiveSerialConsoleOperation(namestring)*EnableInteractiveSerialConsoleOperationEnableInteractiveSerialConsoleOperation 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*Client)EvictLun(ctxcontext.Context,req*baremetalsolutionpb.EvictLunRequest,opts...gax.CallOption)(*EvictLunOperation,error)EvictLun skips lun’s cooloff and deletes it now.Lun must be in cooloff state.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) EvictLunOperation
func(c*Client)EvictLunOperation(namestring)*EvictLunOperationEvictLunOperation 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*Client)EvictVolume(ctxcontext.Context,req*baremetalsolutionpb.EvictVolumeRequest,opts...gax.CallOption)(*EvictVolumeOperation,error)EvictVolume skips volume’s cooloff and deletes it now.Volume must be in cooloff state.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) EvictVolumeOperation
func(c*Client)EvictVolumeOperation(namestring)*EvictVolumeOperationEvictVolumeOperation 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*Client)GetInstance(ctxcontext.Context,req*baremetalsolutionpb.GetInstanceRequest,opts...gax.CallOption)(*baremetalsolutionpb.Instance,error)GetInstance get details about a single server.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetLocation
func(c*Client)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetLun
func(c*Client)GetLun(ctxcontext.Context,req*baremetalsolutionpb.GetLunRequest,opts...gax.CallOption)(*baremetalsolutionpb.Lun,error)GetLun get details of a single storage logical unit number(LUN).
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetNetwork
func(c*Client)GetNetwork(ctxcontext.Context,req*baremetalsolutionpb.GetNetworkRequest,opts...gax.CallOption)(*baremetalsolutionpb.Network,error)GetNetwork get details of a single network.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetNfsShare
func(c*Client)GetNfsShare(ctxcontext.Context,req*baremetalsolutionpb.GetNfsShareRequest,opts...gax.CallOption)(*baremetalsolutionpb.NfsShare,error)GetNfsShare get details of a single NFS share.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetProvisioningConfig
func(c*Client)GetProvisioningConfig(ctxcontext.Context,req*baremetalsolutionpb.GetProvisioningConfigRequest,opts...gax.CallOption)(*baremetalsolutionpb.ProvisioningConfig,error)GetProvisioningConfig get ProvisioningConfig by name.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetVolume
func(c*Client)GetVolume(ctxcontext.Context,req*baremetalsolutionpb.GetVolumeRequest,opts...gax.CallOption)(*baremetalsolutionpb.Volume,error)GetVolume get details of a single storage volume.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetVolumeSnapshot
func(c*Client)GetVolumeSnapshot(ctxcontext.Context,req*baremetalsolutionpb.GetVolumeSnapshotRequest,opts...gax.CallOption)(*baremetalsolutionpb.VolumeSnapshot,error)GetVolumeSnapshot returns the specified snapshot resource.Returns INVALID_ARGUMENT if called for a non-boot volume.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ListInstances
func(c*Client)ListInstances(ctxcontext.Context,req*baremetalsolutionpb.ListInstancesRequest,opts...gax.CallOption)*InstanceIteratorListInstances list servers in a given project and location.
Examples
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=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
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&baremetalsolutionpb.ListInstancesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListInstancesRequest.}forresp,err:=rangec.ListInstances(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListLocations
func(c*Client)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}it:=c.ListLocations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=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
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListLuns
func(c*Client)ListLuns(ctxcontext.Context,req*baremetalsolutionpb.ListLunsRequest,opts...gax.CallOption)*LunIteratorListLuns list storage volume luns for given storage volume.
Examples
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=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
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&baremetalsolutionpb.ListLunsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListLunsRequest.}forresp,err:=rangec.ListLuns(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListNetworkUsage
func(c*Client)ListNetworkUsage(ctxcontext.Context,req*baremetalsolutionpb.ListNetworkUsageRequest,opts...gax.CallOption)(*baremetalsolutionpb.ListNetworkUsageResponse,error)ListNetworkUsage list all Networks (and used IPs for each Network) in the vendor accountassociated with the specified project.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ListNetworks
func(c*Client)ListNetworks(ctxcontext.Context,req*baremetalsolutionpb.ListNetworksRequest,opts...gax.CallOption)*NetworkIteratorListNetworks list network in a given project and location.
Examples
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=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
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&baremetalsolutionpb.ListNetworksRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListNetworksRequest.}forresp,err:=rangec.ListNetworks(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListNfsShares
func(c*Client)ListNfsShares(ctxcontext.Context,req*baremetalsolutionpb.ListNfsSharesRequest,opts...gax.CallOption)*NfsShareIteratorListNfsShares list NFS shares.
Examples
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=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
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&baremetalsolutionpb.ListNfsSharesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListNfsSharesRequest.}forresp,err:=rangec.ListNfsShares(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListOSImages
func(c*Client)ListOSImages(ctxcontext.Context,req*baremetalsolutionpb.ListOSImagesRequest,opts...gax.CallOption)*OSImageIteratorListOSImages retrieves the list of OS images which are currently approved.
Examples
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=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
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&baremetalsolutionpb.ListOSImagesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListOSImagesRequest.}forresp,err:=rangec.ListOSImages(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListProvisioningQuotas
func(c*Client)ListProvisioningQuotas(ctxcontext.Context,req*baremetalsolutionpb.ListProvisioningQuotasRequest,opts...gax.CallOption)*ProvisioningQuotaIteratorListProvisioningQuotas list the budget details to provision resources on a given project.
Examples
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=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
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&baremetalsolutionpb.ListProvisioningQuotasRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListProvisioningQuotasRequest.}forresp,err:=rangec.ListProvisioningQuotas(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListSSHKeys
func(c*Client)ListSSHKeys(ctxcontext.Context,req*baremetalsolutionpb.ListSSHKeysRequest,opts...gax.CallOption)*SSHKeyIteratorListSSHKeys lists the public SSH keys registered for the specified project.These SSH keys are used only for the interactive serial console feature.
Examples
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=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
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&baremetalsolutionpb.ListSSHKeysRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListSSHKeysRequest.}forresp,err:=rangec.ListSSHKeys(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListVolumeSnapshots
func(c*Client)ListVolumeSnapshots(ctxcontext.Context,req*baremetalsolutionpb.ListVolumeSnapshotsRequest,opts...gax.CallOption)*VolumeSnapshotIteratorListVolumeSnapshots retrieves the list of snapshots for the specified volume.Returns a response with an empty list of snapshots if calledfor a non-boot volume.
Examples
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=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
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&baremetalsolutionpb.ListVolumeSnapshotsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListVolumeSnapshotsRequest.}forresp,err:=rangec.ListVolumeSnapshots(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListVolumes
func(c*Client)ListVolumes(ctxcontext.Context,req*baremetalsolutionpb.ListVolumesRequest,opts...gax.CallOption)*VolumeIteratorListVolumes list storage volumes in a given project and location.
Examples
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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()iferr==iterator.Done{break}iferr!=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
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&baremetalsolutionpb.ListVolumesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb#ListVolumesRequest.}forresp,err:=rangec.ListVolumes(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) RenameInstance
func(c*Client)RenameInstance(ctxcontext.Context,req*baremetalsolutionpb.RenameInstanceRequest,opts...gax.CallOption)(*baremetalsolutionpb.Instance,error)RenameInstance renameInstance sets a new name for an instance.Use with caution, previous names become immediately invalidated.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) RenameNetwork
func(c*Client)RenameNetwork(ctxcontext.Context,req*baremetalsolutionpb.RenameNetworkRequest,opts...gax.CallOption)(*baremetalsolutionpb.Network,error)RenameNetwork renameNetwork sets a new name for a network.Use with caution, previous names become immediately invalidated.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) RenameNfsShare
func(c*Client)RenameNfsShare(ctxcontext.Context,req*baremetalsolutionpb.RenameNfsShareRequest,opts...gax.CallOption)(*baremetalsolutionpb.NfsShare,error)RenameNfsShare renameNfsShare sets a new name for an nfsshare.Use with caution, previous names become immediately invalidated.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) RenameVolume
func(c*Client)RenameVolume(ctxcontext.Context,req*baremetalsolutionpb.RenameVolumeRequest,opts...gax.CallOption)(*baremetalsolutionpb.Volume,error)RenameVolume renameVolume sets a new name for a volume.Use with caution, previous names become immediately invalidated.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ResetInstance
func(c*Client)ResetInstance(ctxcontext.Context,req*baremetalsolutionpb.ResetInstanceRequest,opts...gax.CallOption)(*ResetInstanceOperation,error)ResetInstance perform an ungraceful, hard reset on a server. Equivalent to shutting thepower off and then turning it back on.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ResetInstanceOperation
func(c*Client)ResetInstanceOperation(namestring)*ResetInstanceOperationResetInstanceOperation 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*Client)ResizeVolume(ctxcontext.Context,req*baremetalsolutionpb.ResizeVolumeRequest,opts...gax.CallOption)(*ResizeVolumeOperation,error)ResizeVolume emergency Volume resize.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ResizeVolumeOperation
func(c*Client)ResizeVolumeOperation(namestring)*ResizeVolumeOperationResizeVolumeOperation 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*Client)RestoreVolumeSnapshot(ctxcontext.Context,req*baremetalsolutionpb.RestoreVolumeSnapshotRequest,opts...gax.CallOption)(*RestoreVolumeSnapshotOperation,error)RestoreVolumeSnapshot uses the specified snapshot to restore its parent volume.Returns INVALID_ARGUMENT if called for a non-boot volume.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) RestoreVolumeSnapshotOperation
func(c*Client)RestoreVolumeSnapshotOperation(namestring)*RestoreVolumeSnapshotOperationRestoreVolumeSnapshotOperation 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*Client)StartInstance(ctxcontext.Context,req*baremetalsolutionpb.StartInstanceRequest,opts...gax.CallOption)(*StartInstanceOperation,error)StartInstance starts a server that was shutdown.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) StartInstanceOperation
func(c*Client)StartInstanceOperation(namestring)*StartInstanceOperationStartInstanceOperation 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*Client)StopInstance(ctxcontext.Context,req*baremetalsolutionpb.StopInstanceRequest,opts...gax.CallOption)(*StopInstanceOperation,error)StopInstance stop a running server.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) StopInstanceOperation
func(c*Client)StopInstanceOperation(namestring)*StopInstanceOperationStopInstanceOperation 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*Client)SubmitProvisioningConfig(ctxcontext.Context,req*baremetalsolutionpb.SubmitProvisioningConfigRequest,opts...gax.CallOption)(*baremetalsolutionpb.SubmitProvisioningConfigResponse,error)SubmitProvisioningConfig submit a provisiong configuration for a given project.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateInstance
func(c*Client)UpdateInstance(ctxcontext.Context,req*baremetalsolutionpb.UpdateInstanceRequest,opts...gax.CallOption)(*UpdateInstanceOperation,error)UpdateInstance update details of a single server.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateInstanceOperation
func(c*Client)UpdateInstanceOperation(namestring)*UpdateInstanceOperationUpdateInstanceOperation 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*Client)UpdateNetwork(ctxcontext.Context,req*baremetalsolutionpb.UpdateNetworkRequest,opts...gax.CallOption)(*UpdateNetworkOperation,error)UpdateNetwork update details of a single network.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateNetworkOperation
func(c*Client)UpdateNetworkOperation(namestring)*UpdateNetworkOperationUpdateNetworkOperation 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*Client)UpdateNfsShare(ctxcontext.Context,req*baremetalsolutionpb.UpdateNfsShareRequest,opts...gax.CallOption)(*UpdateNfsShareOperation,error)UpdateNfsShare update details of a single NFS share.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateNfsShareOperation
func(c*Client)UpdateNfsShareOperation(namestring)*UpdateNfsShareOperationUpdateNfsShareOperation 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*Client)UpdateProvisioningConfig(ctxcontext.Context,req*baremetalsolutionpb.UpdateProvisioningConfigRequest,opts...gax.CallOption)(*baremetalsolutionpb.ProvisioningConfig,error)UpdateProvisioningConfig update existing ProvisioningConfig.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateVolume
func(c*Client)UpdateVolume(ctxcontext.Context,req*baremetalsolutionpb.UpdateVolumeRequest,opts...gax.CallOption)(*UpdateVolumeOperation,error)UpdateVolume update details of a single storage volume.
Example
packagemainimport("context"baremetalsolution"cloud.google.com/go/baremetalsolution/apiv2"baremetalsolutionpb"cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=baremetalsolution.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.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)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateVolumeOperation
func(c*Client)UpdateVolumeOperation(namestring)*UpdateVolumeOperationUpdateVolumeOperation returns a new UpdateVolumeOperation from a given name.The name must be that of a previously created UpdateVolumeOperation, possibly from a different process.
CreateNfsShareOperation
typeCreateNfsShareOperationstruct{// contains filtered or unexported fields}CreateNfsShareOperation manages a long-running operation from CreateNfsShare.
func (*CreateNfsShareOperation) Done
func(op*CreateNfsShareOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateNfsShareOperation) Metadata
func(op*CreateNfsShareOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateNfsShareOperation) Name
func(op*CreateNfsShareOperation)Name()stringName 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*CreateNfsShareOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.NfsShare,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 andthe 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*CreateNfsShareOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.NfsShare,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
typeDeleteNfsShareOperationstruct{// contains filtered or unexported fields}DeleteNfsShareOperation manages a long-running operation from DeleteNfsShare.
func (*DeleteNfsShareOperation) Done
func(op*DeleteNfsShareOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteNfsShareOperation) Metadata
func(op*DeleteNfsShareOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteNfsShareOperation) Name
func(op*DeleteNfsShareOperation)Name()stringName 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*DeleteNfsShareOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll 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 andthe 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*DeleteNfsShareOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DetachLunOperation
typeDetachLunOperationstruct{// contains filtered or unexported fields}DetachLunOperation manages a long-running operation from DetachLun.
func (*DetachLunOperation) Done
func(op*DetachLunOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DetachLunOperation) Metadata
func(op*DetachLunOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DetachLunOperation) Name
func(op*DetachLunOperation)Name()stringName 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*DetachLunOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.Instance,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 andthe 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*DetachLunOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.Instance,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
typeDisableInteractiveSerialConsoleOperationstruct{// contains filtered or unexported fields}DisableInteractiveSerialConsoleOperation manages a long-running operation from DisableInteractiveSerialConsole.
func (*DisableInteractiveSerialConsoleOperation) Done
func(op*DisableInteractiveSerialConsoleOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DisableInteractiveSerialConsoleOperation) Metadata
func(op*DisableInteractiveSerialConsoleOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DisableInteractiveSerialConsoleOperation) Name
func(op*DisableInteractiveSerialConsoleOperation)Name()stringName 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*DisableInteractiveSerialConsoleOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.DisableInteractiveSerialConsoleResponse,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 andthe 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*DisableInteractiveSerialConsoleOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.DisableInteractiveSerialConsoleResponse,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
typeEnableInteractiveSerialConsoleOperationstruct{// contains filtered or unexported fields}EnableInteractiveSerialConsoleOperation manages a long-running operation from EnableInteractiveSerialConsole.
func (*EnableInteractiveSerialConsoleOperation) Done
func(op*EnableInteractiveSerialConsoleOperation)Done()boolDone reports whether the long-running operation has completed.
func (*EnableInteractiveSerialConsoleOperation) Metadata
func(op*EnableInteractiveSerialConsoleOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*EnableInteractiveSerialConsoleOperation) Name
func(op*EnableInteractiveSerialConsoleOperation)Name()stringName 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*EnableInteractiveSerialConsoleOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.EnableInteractiveSerialConsoleResponse,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 andthe 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*EnableInteractiveSerialConsoleOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.EnableInteractiveSerialConsoleResponse,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
typeEvictLunOperationstruct{// contains filtered or unexported fields}EvictLunOperation manages a long-running operation from EvictLun.
func (*EvictLunOperation) Done
func(op*EvictLunOperation)Done()boolDone reports whether the long-running operation has completed.
func (*EvictLunOperation) Metadata
func(op*EvictLunOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*EvictLunOperation) Name
func(op*EvictLunOperation)Name()stringName 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*EvictLunOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll 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 andthe 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*EvictLunOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
EvictVolumeOperation
typeEvictVolumeOperationstruct{// contains filtered or unexported fields}EvictVolumeOperation manages a long-running operation from EvictVolume.
func (*EvictVolumeOperation) Done
func(op*EvictVolumeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*EvictVolumeOperation) Metadata
func(op*EvictVolumeOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*EvictVolumeOperation) Name
func(op*EvictVolumeOperation)Name()stringName 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*EvictVolumeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll 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 andthe 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*EvictVolumeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
InstanceIterator
typeInstanceIteratorstruct{// 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.Responseinterface{}// 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.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*baremetalsolutionpb.Instance,nextPageTokenstring,errerror)// contains filtered or unexported fields}InstanceIterator manages a stream of *baremetalsolutionpb.Instance.
func (*InstanceIterator) All
func(it*InstanceIterator)All()iter.Seq2[*baremetalsolutionpb.Instance,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*InstanceIterator) Next
func(it*InstanceIterator)Next()(*baremetalsolutionpb.Instance,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*InstanceIterator) PageInfo
func(it*InstanceIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
LocationIterator
typeLocationIteratorstruct{// 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.Responseinterface{}// 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.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*locationpb.Location,nextPageTokenstring,errerror)// contains filtered or unexported fields}LocationIterator manages a stream of *locationpb.Location.
func (*LocationIterator) All
func(it*LocationIterator)All()iter.Seq2[*locationpb.Location,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*LocationIterator) Next
func(it*LocationIterator)Next()(*locationpb.Location,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*LocationIterator) PageInfo
func(it*LocationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
LunIterator
typeLunIteratorstruct{// 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.Responseinterface{}// 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.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*baremetalsolutionpb.Lun,nextPageTokenstring,errerror)// contains filtered or unexported fields}LunIterator manages a stream of *baremetalsolutionpb.Lun.
func (*LunIterator) All
func(it*LunIterator)All()iter.Seq2[*baremetalsolutionpb.Lun,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*LunIterator) Next
func(it*LunIterator)Next()(*baremetalsolutionpb.Lun,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*LunIterator) PageInfo
func(it*LunIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
NetworkIterator
typeNetworkIteratorstruct{// 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.Responseinterface{}// 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.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*baremetalsolutionpb.Network,nextPageTokenstring,errerror)// contains filtered or unexported fields}NetworkIterator manages a stream of *baremetalsolutionpb.Network.
func (*NetworkIterator) All
func(it*NetworkIterator)All()iter.Seq2[*baremetalsolutionpb.Network,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*NetworkIterator) Next
func(it*NetworkIterator)Next()(*baremetalsolutionpb.Network,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*NetworkIterator) PageInfo
func(it*NetworkIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
NfsShareIterator
typeNfsShareIteratorstruct{// 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.Responseinterface{}// 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.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*baremetalsolutionpb.NfsShare,nextPageTokenstring,errerror)// contains filtered or unexported fields}NfsShareIterator manages a stream of *baremetalsolutionpb.NfsShare.
func (*NfsShareIterator) All
func(it*NfsShareIterator)All()iter.Seq2[*baremetalsolutionpb.NfsShare,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*NfsShareIterator) Next
func(it*NfsShareIterator)Next()(*baremetalsolutionpb.NfsShare,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*NfsShareIterator) PageInfo
func(it*NfsShareIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
OSImageIterator
typeOSImageIteratorstruct{// 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.Responseinterface{}// 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.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*baremetalsolutionpb.OSImage,nextPageTokenstring,errerror)// contains filtered or unexported fields}OSImageIterator manages a stream of *baremetalsolutionpb.OSImage.
func (*OSImageIterator) All
func(it*OSImageIterator)All()iter.Seq2[*baremetalsolutionpb.OSImage,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*OSImageIterator) Next
func(it*OSImageIterator)Next()(*baremetalsolutionpb.OSImage,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*OSImageIterator) PageInfo
func(it*OSImageIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
ProvisioningQuotaIterator
typeProvisioningQuotaIteratorstruct{// 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.Responseinterface{}// 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.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*baremetalsolutionpb.ProvisioningQuota,nextPageTokenstring,errerror)// contains filtered or unexported fields}ProvisioningQuotaIterator manages a stream of *baremetalsolutionpb.ProvisioningQuota.
func (*ProvisioningQuotaIterator) All
func(it*ProvisioningQuotaIterator)All()iter.Seq2[*baremetalsolutionpb.ProvisioningQuota,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*ProvisioningQuotaIterator) Next
func(it*ProvisioningQuotaIterator)Next()(*baremetalsolutionpb.ProvisioningQuota,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*ProvisioningQuotaIterator) PageInfo
func(it*ProvisioningQuotaIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
ResetInstanceOperation
typeResetInstanceOperationstruct{// contains filtered or unexported fields}ResetInstanceOperation manages a long-running operation from ResetInstance.
func (*ResetInstanceOperation) Done
func(op*ResetInstanceOperation)Done()boolDone reports whether the long-running operation has completed.
func (*ResetInstanceOperation) Metadata
func(op*ResetInstanceOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*ResetInstanceOperation) Name
func(op*ResetInstanceOperation)Name()stringName 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*ResetInstanceOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.ResetInstanceResponse,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 andthe 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*ResetInstanceOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.ResetInstanceResponse,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
typeResizeVolumeOperationstruct{// contains filtered or unexported fields}ResizeVolumeOperation manages a long-running operation from ResizeVolume.
func (*ResizeVolumeOperation) Done
func(op*ResizeVolumeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*ResizeVolumeOperation) Metadata
func(op*ResizeVolumeOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*ResizeVolumeOperation) Name
func(op*ResizeVolumeOperation)Name()stringName 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*ResizeVolumeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.Volume,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 andthe 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*ResizeVolumeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.Volume,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
typeRestoreVolumeSnapshotOperationstruct{// contains filtered or unexported fields}RestoreVolumeSnapshotOperation manages a long-running operation from RestoreVolumeSnapshot.
func (*RestoreVolumeSnapshotOperation) Done
func(op*RestoreVolumeSnapshotOperation)Done()boolDone reports whether the long-running operation has completed.
func (*RestoreVolumeSnapshotOperation) Metadata
func(op*RestoreVolumeSnapshotOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*RestoreVolumeSnapshotOperation) Name
func(op*RestoreVolumeSnapshotOperation)Name()stringName 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*RestoreVolumeSnapshotOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.VolumeSnapshot,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 andthe 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*RestoreVolumeSnapshotOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.VolumeSnapshot,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
typeSSHKeyIteratorstruct{// 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.Responseinterface{}// 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.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*baremetalsolutionpb.SSHKey,nextPageTokenstring,errerror)// contains filtered or unexported fields}SSHKeyIterator manages a stream of *baremetalsolutionpb.SSHKey.
func (*SSHKeyIterator) All
func(it*SSHKeyIterator)All()iter.Seq2[*baremetalsolutionpb.SSHKey,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*SSHKeyIterator) Next
func(it*SSHKeyIterator)Next()(*baremetalsolutionpb.SSHKey,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*SSHKeyIterator) PageInfo
func(it*SSHKeyIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
StartInstanceOperation
typeStartInstanceOperationstruct{// contains filtered or unexported fields}StartInstanceOperation manages a long-running operation from StartInstance.
func (*StartInstanceOperation) Done
func(op*StartInstanceOperation)Done()boolDone reports whether the long-running operation has completed.
func (*StartInstanceOperation) Metadata
func(op*StartInstanceOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*StartInstanceOperation) Name
func(op*StartInstanceOperation)Name()stringName 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*StartInstanceOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.StartInstanceResponse,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 andthe 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*StartInstanceOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.StartInstanceResponse,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
typeStopInstanceOperationstruct{// contains filtered or unexported fields}StopInstanceOperation manages a long-running operation from StopInstance.
func (*StopInstanceOperation) Done
func(op*StopInstanceOperation)Done()boolDone reports whether the long-running operation has completed.
func (*StopInstanceOperation) Metadata
func(op*StopInstanceOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*StopInstanceOperation) Name
func(op*StopInstanceOperation)Name()stringName 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*StopInstanceOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.StopInstanceResponse,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 andthe 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*StopInstanceOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.StopInstanceResponse,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
typeUpdateInstanceOperationstruct{// contains filtered or unexported fields}UpdateInstanceOperation manages a long-running operation from UpdateInstance.
func (*UpdateInstanceOperation) Done
func(op*UpdateInstanceOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateInstanceOperation) Metadata
func(op*UpdateInstanceOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateInstanceOperation) Name
func(op*UpdateInstanceOperation)Name()stringName 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*UpdateInstanceOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.Instance,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 andthe 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*UpdateInstanceOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.Instance,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
typeUpdateNetworkOperationstruct{// contains filtered or unexported fields}UpdateNetworkOperation manages a long-running operation from UpdateNetwork.
func (*UpdateNetworkOperation) Done
func(op*UpdateNetworkOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateNetworkOperation) Metadata
func(op*UpdateNetworkOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateNetworkOperation) Name
func(op*UpdateNetworkOperation)Name()stringName 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*UpdateNetworkOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.Network,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 andthe 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*UpdateNetworkOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.Network,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
typeUpdateNfsShareOperationstruct{// contains filtered or unexported fields}UpdateNfsShareOperation manages a long-running operation from UpdateNfsShare.
func (*UpdateNfsShareOperation) Done
func(op*UpdateNfsShareOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateNfsShareOperation) Metadata
func(op*UpdateNfsShareOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateNfsShareOperation) Name
func(op*UpdateNfsShareOperation)Name()stringName 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*UpdateNfsShareOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.NfsShare,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 andthe 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*UpdateNfsShareOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.NfsShare,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
typeUpdateVolumeOperationstruct{// contains filtered or unexported fields}UpdateVolumeOperation manages a long-running operation from UpdateVolume.
func (*UpdateVolumeOperation) Done
func(op*UpdateVolumeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateVolumeOperation) Metadata
func(op*UpdateVolumeOperation)Metadata()(*baremetalsolutionpb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateVolumeOperation) Name
func(op*UpdateVolumeOperation)Name()stringName 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*UpdateVolumeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.Volume,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 andthe 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*UpdateVolumeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*baremetalsolutionpb.Volume,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
typeVolumeIteratorstruct{// 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.Responseinterface{}// 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.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*baremetalsolutionpb.Volume,nextPageTokenstring,errerror)// contains filtered or unexported fields}VolumeIterator manages a stream of *baremetalsolutionpb.Volume.
func (*VolumeIterator) All
func(it*VolumeIterator)All()iter.Seq2[*baremetalsolutionpb.Volume,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*VolumeIterator) Next
func(it*VolumeIterator)Next()(*baremetalsolutionpb.Volume,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*VolumeIterator) PageInfo
func(it*VolumeIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
VolumeSnapshotIterator
typeVolumeSnapshotIteratorstruct{// 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.Responseinterface{}// 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.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*baremetalsolutionpb.VolumeSnapshot,nextPageTokenstring,errerror)// contains filtered or unexported fields}VolumeSnapshotIterator manages a stream of *baremetalsolutionpb.VolumeSnapshot.
func (*VolumeSnapshotIterator) All
func(it*VolumeSnapshotIterator)All()iter.Seq2[*baremetalsolutionpb.VolumeSnapshot,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*VolumeSnapshotIterator) Next
func(it*VolumeSnapshotIterator)Next()(*baremetalsolutionpb.VolumeSnapshot,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*VolumeSnapshotIterator) PageInfo
func(it*VolumeSnapshotIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.