baremetalsolution
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package baremetalsolution provides access to the Bare Metal Solution API.
For product documentation, see:https://cloud.google.com/bare-metal
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/baremetalsolution/v2"...ctx := context.Background()baremetalsolutionService, err := baremetalsolution.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
baremetalsolutionService, err := baremetalsolution.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)baremetalsolutionService, err := baremetalsolution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type AllowedClient
- type DetachLunRequest
- type DisableHyperthreadingRequest
- type DisableInteractiveSerialConsoleRequest
- type DisableInteractiveSerialConsoleResponse
- type Empty
- type EnableHyperthreadingRequest
- type EnableInteractiveSerialConsoleRequest
- type EnableInteractiveSerialConsoleResponse
- type EvictLunRequest
- type EvictVolumeRequest
- type GoogleCloudBaremetalsolutionV2LogicalInterface
- type GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
- type Instance
- type InstanceConfig
- type InstanceQuota
- type IntakeVlanAttachment
- type ListInstancesResponse
- type ListLocationsResponse
- type ListLunsResponse
- type ListNetworkUsageResponse
- type ListNetworksResponse
- type ListNfsSharesResponse
- type ListOSImagesResponse
- type ListProvisioningQuotasResponse
- type ListSSHKeysResponse
- type ListVolumeSnapshotsResponse
- type ListVolumesResponse
- type LoadInstanceAuthInfoResponse
- type Location
- type LogicalNetworkInterface
- type Lun
- type LunRange
- type Network
- type NetworkAddress
- type NetworkAddressReservation
- type NetworkConfig
- type NetworkMountPoint
- type NetworkUsage
- type NfsExport
- type NfsShare
- type OSImage
- type Operation
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsInstancesDetachLunCall
- func (c *ProjectsLocationsInstancesDetachLunCall) Context(ctx context.Context) *ProjectsLocationsInstancesDetachLunCall
- func (c *ProjectsLocationsInstancesDetachLunCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesDetachLunCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDetachLunCall
- func (c *ProjectsLocationsInstancesDetachLunCall) Header() http.Header
- type ProjectsLocationsInstancesDisableHyperthreadingCall
- func (c *ProjectsLocationsInstancesDisableHyperthreadingCall) Context(ctx context.Context) *ProjectsLocationsInstancesDisableHyperthreadingCall
- func (c *ProjectsLocationsInstancesDisableHyperthreadingCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesDisableHyperthreadingCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDisableHyperthreadingCall
- func (c *ProjectsLocationsInstancesDisableHyperthreadingCall) Header() http.Header
- type ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Context(ctx context.Context) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Header() http.Header
- type ProjectsLocationsInstancesEnableHyperthreadingCall
- func (c *ProjectsLocationsInstancesEnableHyperthreadingCall) Context(ctx context.Context) *ProjectsLocationsInstancesEnableHyperthreadingCall
- func (c *ProjectsLocationsInstancesEnableHyperthreadingCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesEnableHyperthreadingCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesEnableHyperthreadingCall
- func (c *ProjectsLocationsInstancesEnableHyperthreadingCall) Header() http.Header
- type ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Context(ctx context.Context) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Header() http.Header
- type ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error)
- func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Header() http.Header
- func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall
- type ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Context(ctx context.Context) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error)
- func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Filter(filter string) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Header() http.Header
- func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.Context, f func(*ListInstancesResponse) error) error
- type ProjectsLocationsInstancesLoadAuthInfoCall
- func (c *ProjectsLocationsInstancesLoadAuthInfoCall) Context(ctx context.Context) *ProjectsLocationsInstancesLoadAuthInfoCall
- func (c *ProjectsLocationsInstancesLoadAuthInfoCall) Do(opts ...googleapi.CallOption) (*LoadInstanceAuthInfoResponse, error)
- func (c *ProjectsLocationsInstancesLoadAuthInfoCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesLoadAuthInfoCall
- func (c *ProjectsLocationsInstancesLoadAuthInfoCall) Header() http.Header
- func (c *ProjectsLocationsInstancesLoadAuthInfoCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesLoadAuthInfoCall
- type ProjectsLocationsInstancesPatchCall
- func (c *ProjectsLocationsInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsInstancesPatchCall
- func (c *ProjectsLocationsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesPatchCall
- func (c *ProjectsLocationsInstancesPatchCall) Header() http.Header
- func (c *ProjectsLocationsInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsInstancesPatchCall
- type ProjectsLocationsInstancesReimageCall
- func (c *ProjectsLocationsInstancesReimageCall) Context(ctx context.Context) *ProjectsLocationsInstancesReimageCall
- func (c *ProjectsLocationsInstancesReimageCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesReimageCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesReimageCall
- func (c *ProjectsLocationsInstancesReimageCall) Header() http.Header
- type ProjectsLocationsInstancesRenameCall
- func (c *ProjectsLocationsInstancesRenameCall) Context(ctx context.Context) *ProjectsLocationsInstancesRenameCall
- func (c *ProjectsLocationsInstancesRenameCall) Do(opts ...googleapi.CallOption) (*Instance, error)
- func (c *ProjectsLocationsInstancesRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesRenameCall
- func (c *ProjectsLocationsInstancesRenameCall) Header() http.Header
- type ProjectsLocationsInstancesResetCall
- func (c *ProjectsLocationsInstancesResetCall) Context(ctx context.Context) *ProjectsLocationsInstancesResetCall
- func (c *ProjectsLocationsInstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesResetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesResetCall
- func (c *ProjectsLocationsInstancesResetCall) Header() http.Header
- type ProjectsLocationsInstancesService
- func (r *ProjectsLocationsInstancesService) DetachLun(instance string, detachlunrequest *DetachLunRequest) *ProjectsLocationsInstancesDetachLunCall
- func (r *ProjectsLocationsInstancesService) DisableHyperthreading(name string, disablehyperthreadingrequest *DisableHyperthreadingRequest) *ProjectsLocationsInstancesDisableHyperthreadingCall
- func (r *ProjectsLocationsInstancesService) DisableInteractiveSerialConsole(name string, ...) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
- func (r *ProjectsLocationsInstancesService) EnableHyperthreading(name string, enablehyperthreadingrequest *EnableHyperthreadingRequest) *ProjectsLocationsInstancesEnableHyperthreadingCall
- func (r *ProjectsLocationsInstancesService) EnableInteractiveSerialConsole(name string, ...) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
- func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall
- func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall
- func (r *ProjectsLocationsInstancesService) LoadAuthInfo(name string) *ProjectsLocationsInstancesLoadAuthInfoCall
- func (r *ProjectsLocationsInstancesService) Patch(name string, instance *Instance) *ProjectsLocationsInstancesPatchCall
- func (r *ProjectsLocationsInstancesService) Reimage(name string, reimageinstancerequest *ReimageInstanceRequest) *ProjectsLocationsInstancesReimageCall
- func (r *ProjectsLocationsInstancesService) Rename(name string, renameinstancerequest *RenameInstanceRequest) *ProjectsLocationsInstancesRenameCall
- func (r *ProjectsLocationsInstancesService) Reset(name string, resetinstancerequest *ResetInstanceRequest) *ProjectsLocationsInstancesResetCall
- func (r *ProjectsLocationsInstancesService) Start(name string, startinstancerequest *StartInstanceRequest) *ProjectsLocationsInstancesStartCall
- func (r *ProjectsLocationsInstancesService) Stop(name string, stopinstancerequest *StopInstanceRequest) *ProjectsLocationsInstancesStopCall
- type ProjectsLocationsInstancesStartCall
- func (c *ProjectsLocationsInstancesStartCall) Context(ctx context.Context) *ProjectsLocationsInstancesStartCall
- func (c *ProjectsLocationsInstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesStartCall
- func (c *ProjectsLocationsInstancesStartCall) Header() http.Header
- type ProjectsLocationsInstancesStopCall
- func (c *ProjectsLocationsInstancesStopCall) Context(ctx context.Context) *ProjectsLocationsInstancesStopCall
- func (c *ProjectsLocationsInstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesStopCall
- func (c *ProjectsLocationsInstancesStopCall) Header() http.Header
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsNetworksGetCall
- func (c *ProjectsLocationsNetworksGetCall) Context(ctx context.Context) *ProjectsLocationsNetworksGetCall
- func (c *ProjectsLocationsNetworksGetCall) Do(opts ...googleapi.CallOption) (*Network, error)
- func (c *ProjectsLocationsNetworksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksGetCall
- func (c *ProjectsLocationsNetworksGetCall) Header() http.Header
- func (c *ProjectsLocationsNetworksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworksGetCall
- type ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) Context(ctx context.Context) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) Do(opts ...googleapi.CallOption) (*ListNetworksResponse, error)
- func (c *ProjectsLocationsNetworksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) Filter(filter string) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) Header() http.Header
- func (c *ProjectsLocationsNetworksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) PageSize(pageSize int64) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) PageToken(pageToken string) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) Pages(ctx context.Context, f func(*ListNetworksResponse) error) error
- type ProjectsLocationsNetworksListNetworkUsageCall
- func (c *ProjectsLocationsNetworksListNetworkUsageCall) Context(ctx context.Context) *ProjectsLocationsNetworksListNetworkUsageCall
- func (c *ProjectsLocationsNetworksListNetworkUsageCall) Do(opts ...googleapi.CallOption) (*ListNetworkUsageResponse, error)
- func (c *ProjectsLocationsNetworksListNetworkUsageCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksListNetworkUsageCall
- func (c *ProjectsLocationsNetworksListNetworkUsageCall) Header() http.Header
- func (c *ProjectsLocationsNetworksListNetworkUsageCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworksListNetworkUsageCall
- type ProjectsLocationsNetworksPatchCall
- func (c *ProjectsLocationsNetworksPatchCall) Context(ctx context.Context) *ProjectsLocationsNetworksPatchCall
- func (c *ProjectsLocationsNetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsNetworksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksPatchCall
- func (c *ProjectsLocationsNetworksPatchCall) Header() http.Header
- func (c *ProjectsLocationsNetworksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsNetworksPatchCall
- type ProjectsLocationsNetworksRenameCall
- func (c *ProjectsLocationsNetworksRenameCall) Context(ctx context.Context) *ProjectsLocationsNetworksRenameCall
- func (c *ProjectsLocationsNetworksRenameCall) Do(opts ...googleapi.CallOption) (*Network, error)
- func (c *ProjectsLocationsNetworksRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksRenameCall
- func (c *ProjectsLocationsNetworksRenameCall) Header() http.Header
- type ProjectsLocationsNetworksService
- func (r *ProjectsLocationsNetworksService) Get(name string) *ProjectsLocationsNetworksGetCall
- func (r *ProjectsLocationsNetworksService) List(parent string) *ProjectsLocationsNetworksListCall
- func (r *ProjectsLocationsNetworksService) ListNetworkUsage(location string) *ProjectsLocationsNetworksListNetworkUsageCall
- func (r *ProjectsLocationsNetworksService) Patch(name string, network *Network) *ProjectsLocationsNetworksPatchCall
- func (r *ProjectsLocationsNetworksService) Rename(name string, renamenetworkrequest *RenameNetworkRequest) *ProjectsLocationsNetworksRenameCall
- type ProjectsLocationsNfsSharesCreateCall
- func (c *ProjectsLocationsNfsSharesCreateCall) Context(ctx context.Context) *ProjectsLocationsNfsSharesCreateCall
- func (c *ProjectsLocationsNfsSharesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsNfsSharesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesCreateCall
- func (c *ProjectsLocationsNfsSharesCreateCall) Header() http.Header
- type ProjectsLocationsNfsSharesDeleteCall
- func (c *ProjectsLocationsNfsSharesDeleteCall) Context(ctx context.Context) *ProjectsLocationsNfsSharesDeleteCall
- func (c *ProjectsLocationsNfsSharesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsNfsSharesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesDeleteCall
- func (c *ProjectsLocationsNfsSharesDeleteCall) Header() http.Header
- type ProjectsLocationsNfsSharesGetCall
- func (c *ProjectsLocationsNfsSharesGetCall) Context(ctx context.Context) *ProjectsLocationsNfsSharesGetCall
- func (c *ProjectsLocationsNfsSharesGetCall) Do(opts ...googleapi.CallOption) (*NfsShare, error)
- func (c *ProjectsLocationsNfsSharesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesGetCall
- func (c *ProjectsLocationsNfsSharesGetCall) Header() http.Header
- func (c *ProjectsLocationsNfsSharesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNfsSharesGetCall
- type ProjectsLocationsNfsSharesListCall
- func (c *ProjectsLocationsNfsSharesListCall) Context(ctx context.Context) *ProjectsLocationsNfsSharesListCall
- func (c *ProjectsLocationsNfsSharesListCall) Do(opts ...googleapi.CallOption) (*ListNfsSharesResponse, error)
- func (c *ProjectsLocationsNfsSharesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesListCall
- func (c *ProjectsLocationsNfsSharesListCall) Filter(filter string) *ProjectsLocationsNfsSharesListCall
- func (c *ProjectsLocationsNfsSharesListCall) Header() http.Header
- func (c *ProjectsLocationsNfsSharesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNfsSharesListCall
- func (c *ProjectsLocationsNfsSharesListCall) PageSize(pageSize int64) *ProjectsLocationsNfsSharesListCall
- func (c *ProjectsLocationsNfsSharesListCall) PageToken(pageToken string) *ProjectsLocationsNfsSharesListCall
- func (c *ProjectsLocationsNfsSharesListCall) Pages(ctx context.Context, f func(*ListNfsSharesResponse) error) error
- type ProjectsLocationsNfsSharesPatchCall
- func (c *ProjectsLocationsNfsSharesPatchCall) Context(ctx context.Context) *ProjectsLocationsNfsSharesPatchCall
- func (c *ProjectsLocationsNfsSharesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsNfsSharesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesPatchCall
- func (c *ProjectsLocationsNfsSharesPatchCall) Header() http.Header
- func (c *ProjectsLocationsNfsSharesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsNfsSharesPatchCall
- type ProjectsLocationsNfsSharesRenameCall
- func (c *ProjectsLocationsNfsSharesRenameCall) Context(ctx context.Context) *ProjectsLocationsNfsSharesRenameCall
- func (c *ProjectsLocationsNfsSharesRenameCall) Do(opts ...googleapi.CallOption) (*NfsShare, error)
- func (c *ProjectsLocationsNfsSharesRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesRenameCall
- func (c *ProjectsLocationsNfsSharesRenameCall) Header() http.Header
- type ProjectsLocationsNfsSharesService
- func (r *ProjectsLocationsNfsSharesService) Create(parent string, nfsshare *NfsShare) *ProjectsLocationsNfsSharesCreateCall
- func (r *ProjectsLocationsNfsSharesService) Delete(name string) *ProjectsLocationsNfsSharesDeleteCall
- func (r *ProjectsLocationsNfsSharesService) Get(name string) *ProjectsLocationsNfsSharesGetCall
- func (r *ProjectsLocationsNfsSharesService) List(parent string) *ProjectsLocationsNfsSharesListCall
- func (r *ProjectsLocationsNfsSharesService) Patch(name string, nfsshare *NfsShare) *ProjectsLocationsNfsSharesPatchCall
- func (r *ProjectsLocationsNfsSharesService) Rename(name string, renamenfssharerequest *RenameNfsShareRequest) *ProjectsLocationsNfsSharesRenameCall
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsService
- type ProjectsLocationsOsImagesGetCall
- func (c *ProjectsLocationsOsImagesGetCall) Context(ctx context.Context) *ProjectsLocationsOsImagesGetCall
- func (c *ProjectsLocationsOsImagesGetCall) Do(opts ...googleapi.CallOption) (*OSImage, error)
- func (c *ProjectsLocationsOsImagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOsImagesGetCall
- func (c *ProjectsLocationsOsImagesGetCall) Header() http.Header
- func (c *ProjectsLocationsOsImagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOsImagesGetCall
- type ProjectsLocationsOsImagesListCall
- func (c *ProjectsLocationsOsImagesListCall) Context(ctx context.Context) *ProjectsLocationsOsImagesListCall
- func (c *ProjectsLocationsOsImagesListCall) Do(opts ...googleapi.CallOption) (*ListOSImagesResponse, error)
- func (c *ProjectsLocationsOsImagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOsImagesListCall
- func (c *ProjectsLocationsOsImagesListCall) Header() http.Header
- func (c *ProjectsLocationsOsImagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOsImagesListCall
- func (c *ProjectsLocationsOsImagesListCall) PageSize(pageSize int64) *ProjectsLocationsOsImagesListCall
- func (c *ProjectsLocationsOsImagesListCall) PageToken(pageToken string) *ProjectsLocationsOsImagesListCall
- func (c *ProjectsLocationsOsImagesListCall) Pages(ctx context.Context, f func(*ListOSImagesResponse) error) error
- type ProjectsLocationsOsImagesService
- type ProjectsLocationsProvisioningConfigsCreateCall
- func (c *ProjectsLocationsProvisioningConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsProvisioningConfigsCreateCall
- func (c *ProjectsLocationsProvisioningConfigsCreateCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig, error)
- func (c *ProjectsLocationsProvisioningConfigsCreateCall) Email(email string) *ProjectsLocationsProvisioningConfigsCreateCall
- func (c *ProjectsLocationsProvisioningConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsCreateCall
- func (c *ProjectsLocationsProvisioningConfigsCreateCall) Header() http.Header
- type ProjectsLocationsProvisioningConfigsGetCall
- func (c *ProjectsLocationsProvisioningConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsProvisioningConfigsGetCall
- func (c *ProjectsLocationsProvisioningConfigsGetCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig, error)
- func (c *ProjectsLocationsProvisioningConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsGetCall
- func (c *ProjectsLocationsProvisioningConfigsGetCall) Header() http.Header
- func (c *ProjectsLocationsProvisioningConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvisioningConfigsGetCall
- type ProjectsLocationsProvisioningConfigsPatchCall
- func (c *ProjectsLocationsProvisioningConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsProvisioningConfigsPatchCall
- func (c *ProjectsLocationsProvisioningConfigsPatchCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig, error)
- func (c *ProjectsLocationsProvisioningConfigsPatchCall) Email(email string) *ProjectsLocationsProvisioningConfigsPatchCall
- func (c *ProjectsLocationsProvisioningConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsPatchCall
- func (c *ProjectsLocationsProvisioningConfigsPatchCall) Header() http.Header
- func (c *ProjectsLocationsProvisioningConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProvisioningConfigsPatchCall
- type ProjectsLocationsProvisioningConfigsService
- func (r *ProjectsLocationsProvisioningConfigsService) Create(parent string, provisioningconfig *ProvisioningConfig) *ProjectsLocationsProvisioningConfigsCreateCall
- func (r *ProjectsLocationsProvisioningConfigsService) Get(name string) *ProjectsLocationsProvisioningConfigsGetCall
- func (r *ProjectsLocationsProvisioningConfigsService) Patch(name string, provisioningconfig *ProvisioningConfig) *ProjectsLocationsProvisioningConfigsPatchCall
- func (r *ProjectsLocationsProvisioningConfigsService) Submit(parent string, ...) *ProjectsLocationsProvisioningConfigsSubmitCall
- type ProjectsLocationsProvisioningConfigsSubmitCall
- func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Context(ctx context.Context) *ProjectsLocationsProvisioningConfigsSubmitCall
- func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Do(opts ...googleapi.CallOption) (*SubmitProvisioningConfigResponse, error)
- func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsSubmitCall
- func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Header() http.Header
- type ProjectsLocationsProvisioningQuotasListCall
- func (c *ProjectsLocationsProvisioningQuotasListCall) Context(ctx context.Context) *ProjectsLocationsProvisioningQuotasListCall
- func (c *ProjectsLocationsProvisioningQuotasListCall) Do(opts ...googleapi.CallOption) (*ListProvisioningQuotasResponse, error)
- func (c *ProjectsLocationsProvisioningQuotasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningQuotasListCall
- func (c *ProjectsLocationsProvisioningQuotasListCall) Header() http.Header
- func (c *ProjectsLocationsProvisioningQuotasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvisioningQuotasListCall
- func (c *ProjectsLocationsProvisioningQuotasListCall) PageSize(pageSize int64) *ProjectsLocationsProvisioningQuotasListCall
- func (c *ProjectsLocationsProvisioningQuotasListCall) PageToken(pageToken string) *ProjectsLocationsProvisioningQuotasListCall
- func (c *ProjectsLocationsProvisioningQuotasListCall) Pages(ctx context.Context, f func(*ListProvisioningQuotasResponse) error) error
- type ProjectsLocationsProvisioningQuotasService
- type ProjectsLocationsService
- type ProjectsLocationsSshKeysCreateCall
- func (c *ProjectsLocationsSshKeysCreateCall) Context(ctx context.Context) *ProjectsLocationsSshKeysCreateCall
- func (c *ProjectsLocationsSshKeysCreateCall) Do(opts ...googleapi.CallOption) (*SSHKey, error)
- func (c *ProjectsLocationsSshKeysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSshKeysCreateCall
- func (c *ProjectsLocationsSshKeysCreateCall) Header() http.Header
- func (c *ProjectsLocationsSshKeysCreateCall) SshKeyId(sshKeyId string) *ProjectsLocationsSshKeysCreateCall
- type ProjectsLocationsSshKeysDeleteCall
- func (c *ProjectsLocationsSshKeysDeleteCall) Context(ctx context.Context) *ProjectsLocationsSshKeysDeleteCall
- func (c *ProjectsLocationsSshKeysDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsSshKeysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSshKeysDeleteCall
- func (c *ProjectsLocationsSshKeysDeleteCall) Header() http.Header
- type ProjectsLocationsSshKeysListCall
- func (c *ProjectsLocationsSshKeysListCall) Context(ctx context.Context) *ProjectsLocationsSshKeysListCall
- func (c *ProjectsLocationsSshKeysListCall) Do(opts ...googleapi.CallOption) (*ListSSHKeysResponse, error)
- func (c *ProjectsLocationsSshKeysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSshKeysListCall
- func (c *ProjectsLocationsSshKeysListCall) Header() http.Header
- func (c *ProjectsLocationsSshKeysListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSshKeysListCall
- func (c *ProjectsLocationsSshKeysListCall) PageSize(pageSize int64) *ProjectsLocationsSshKeysListCall
- func (c *ProjectsLocationsSshKeysListCall) PageToken(pageToken string) *ProjectsLocationsSshKeysListCall
- func (c *ProjectsLocationsSshKeysListCall) Pages(ctx context.Context, f func(*ListSSHKeysResponse) error) error
- type ProjectsLocationsSshKeysService
- func (r *ProjectsLocationsSshKeysService) Create(parent string, sshkey *SSHKey) *ProjectsLocationsSshKeysCreateCall
- func (r *ProjectsLocationsSshKeysService) Delete(name string) *ProjectsLocationsSshKeysDeleteCall
- func (r *ProjectsLocationsSshKeysService) List(parent string) *ProjectsLocationsSshKeysListCall
- type ProjectsLocationsVolumesEvictCall
- func (c *ProjectsLocationsVolumesEvictCall) Context(ctx context.Context) *ProjectsLocationsVolumesEvictCall
- func (c *ProjectsLocationsVolumesEvictCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsVolumesEvictCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesEvictCall
- func (c *ProjectsLocationsVolumesEvictCall) Header() http.Header
- type ProjectsLocationsVolumesGetCall
- func (c *ProjectsLocationsVolumesGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesGetCall
- func (c *ProjectsLocationsVolumesGetCall) Do(opts ...googleapi.CallOption) (*Volume, error)
- func (c *ProjectsLocationsVolumesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesGetCall
- func (c *ProjectsLocationsVolumesGetCall) Header() http.Header
- func (c *ProjectsLocationsVolumesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesGetCall
- type ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Context(ctx context.Context) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Do(opts ...googleapi.CallOption) (*ListVolumesResponse, error)
- func (c *ProjectsLocationsVolumesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Filter(filter string) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Header() http.Header
- func (c *ProjectsLocationsVolumesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) PageToken(pageToken string) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Pages(ctx context.Context, f func(*ListVolumesResponse) error) error
- type ProjectsLocationsVolumesLunsEvictCall
- func (c *ProjectsLocationsVolumesLunsEvictCall) Context(ctx context.Context) *ProjectsLocationsVolumesLunsEvictCall
- func (c *ProjectsLocationsVolumesLunsEvictCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsVolumesLunsEvictCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsEvictCall
- func (c *ProjectsLocationsVolumesLunsEvictCall) Header() http.Header
- type ProjectsLocationsVolumesLunsGetCall
- func (c *ProjectsLocationsVolumesLunsGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesLunsGetCall
- func (c *ProjectsLocationsVolumesLunsGetCall) Do(opts ...googleapi.CallOption) (*Lun, error)
- func (c *ProjectsLocationsVolumesLunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsGetCall
- func (c *ProjectsLocationsVolumesLunsGetCall) Header() http.Header
- func (c *ProjectsLocationsVolumesLunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesLunsGetCall
- type ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) Context(ctx context.Context) *ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) Do(opts ...googleapi.CallOption) (*ListLunsResponse, error)
- func (c *ProjectsLocationsVolumesLunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) Header() http.Header
- func (c *ProjectsLocationsVolumesLunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) PageToken(pageToken string) *ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) Pages(ctx context.Context, f func(*ListLunsResponse) error) error
- type ProjectsLocationsVolumesLunsService
- func (r *ProjectsLocationsVolumesLunsService) Evict(name string, evictlunrequest *EvictLunRequest) *ProjectsLocationsVolumesLunsEvictCall
- func (r *ProjectsLocationsVolumesLunsService) Get(name string) *ProjectsLocationsVolumesLunsGetCall
- func (r *ProjectsLocationsVolumesLunsService) List(parent string) *ProjectsLocationsVolumesLunsListCall
- type ProjectsLocationsVolumesPatchCall
- func (c *ProjectsLocationsVolumesPatchCall) Context(ctx context.Context) *ProjectsLocationsVolumesPatchCall
- func (c *ProjectsLocationsVolumesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsVolumesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesPatchCall
- func (c *ProjectsLocationsVolumesPatchCall) Header() http.Header
- func (c *ProjectsLocationsVolumesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsVolumesPatchCall
- type ProjectsLocationsVolumesRenameCall
- func (c *ProjectsLocationsVolumesRenameCall) Context(ctx context.Context) *ProjectsLocationsVolumesRenameCall
- func (c *ProjectsLocationsVolumesRenameCall) Do(opts ...googleapi.CallOption) (*Volume, error)
- func (c *ProjectsLocationsVolumesRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesRenameCall
- func (c *ProjectsLocationsVolumesRenameCall) Header() http.Header
- type ProjectsLocationsVolumesResizeCall
- func (c *ProjectsLocationsVolumesResizeCall) Context(ctx context.Context) *ProjectsLocationsVolumesResizeCall
- func (c *ProjectsLocationsVolumesResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsVolumesResizeCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesResizeCall
- func (c *ProjectsLocationsVolumesResizeCall) Header() http.Header
- type ProjectsLocationsVolumesService
- func (r *ProjectsLocationsVolumesService) Evict(name string, evictvolumerequest *EvictVolumeRequest) *ProjectsLocationsVolumesEvictCall
- func (r *ProjectsLocationsVolumesService) Get(name string) *ProjectsLocationsVolumesGetCall
- func (r *ProjectsLocationsVolumesService) List(parent string) *ProjectsLocationsVolumesListCall
- func (r *ProjectsLocationsVolumesService) Patch(name string, volume *Volume) *ProjectsLocationsVolumesPatchCall
- func (r *ProjectsLocationsVolumesService) Rename(name string, renamevolumerequest *RenameVolumeRequest) *ProjectsLocationsVolumesRenameCall
- func (r *ProjectsLocationsVolumesService) Resize(volume string, resizevolumerequest *ResizeVolumeRequest) *ProjectsLocationsVolumesResizeCall
- type ProjectsLocationsVolumesSnapshotsCreateCall
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsCreateCall
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, error)
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsCreateCall
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Header() http.Header
- type ProjectsLocationsVolumesSnapshotsDeleteCall
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsDeleteCall
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsDeleteCall
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Header() http.Header
- type ProjectsLocationsVolumesSnapshotsGetCall
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsGetCall
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, error)
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsGetCall
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Header() http.Header
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsGetCall
- type ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Do(opts ...googleapi.CallOption) (*ListVolumeSnapshotsResponse, error)
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Header() http.Header
- func (c *ProjectsLocationsVolumesSnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) PageToken(pageToken string) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Pages(ctx context.Context, f func(*ListVolumeSnapshotsResponse) error) error
- type ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
- func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
- func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
- func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Header() http.Header
- type ProjectsLocationsVolumesSnapshotsService
- func (r *ProjectsLocationsVolumesSnapshotsService) Create(parent string, volumesnapshot *VolumeSnapshot) *ProjectsLocationsVolumesSnapshotsCreateCall
- func (r *ProjectsLocationsVolumesSnapshotsService) Delete(name string) *ProjectsLocationsVolumesSnapshotsDeleteCall
- func (r *ProjectsLocationsVolumesSnapshotsService) Get(name string) *ProjectsLocationsVolumesSnapshotsGetCall
- func (r *ProjectsLocationsVolumesSnapshotsService) List(parent string) *ProjectsLocationsVolumesSnapshotsListCall
- func (r *ProjectsLocationsVolumesSnapshotsService) RestoreVolumeSnapshot(volumeSnapshot string, ...) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
- type ProjectsService
- type ProvisioningConfig
- type ProvisioningQuota
- type QosPolicy
- type ReimageInstanceRequest
- type RenameInstanceRequest
- type RenameNetworkRequest
- type RenameNfsShareRequest
- type RenameVolumeRequest
- type ResetInstanceRequest
- type ResetInstanceResponse
- type ResizeVolumeRequest
- type RestoreVolumeSnapshotRequest
- type SSHKey
- type ServerNetworkTemplate
- type Service
- type SnapshotReservationDetail
- type StartInstanceRequest
- type StartInstanceResponse
- type Status
- type StopInstanceRequest
- type StopInstanceResponse
- type SubmitProvisioningConfigRequest
- type SubmitProvisioningConfigResponse
- type UserAccount
- type VRF
- type VlanAttachment
- type Volume
- type VolumeConfig
- type VolumeSnapshot
Constants¶
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAllowedClient¶added inv0.69.0
type AllowedClient struct {// AllowDev: Allow dev flag. Which controls whether to allow creation of// devices.AllowDevbool `json:"allowDev,omitempty"`// AllowSuid: Allow the setuid flag.AllowSuidbool `json:"allowSuid,omitempty"`// AllowedClientsCidr: The subnet of IP addresses permitted to access the// share.AllowedClientsCidrstring `json:"allowedClientsCidr,omitempty"`// MountPermissions: Mount permissions.//// Possible values:// "MOUNT_PERMISSIONS_UNSPECIFIED" - Permissions were not specified.// "READ" - NFS share can be mount with read-only permissions.// "READ_WRITE" - NFS share can be mount with read-write permissions.MountPermissionsstring `json:"mountPermissions,omitempty"`// Network: The network the access point sits on.Networkstring `json:"network,omitempty"`// NfsPath: Output only. The path to access NFS, in format shareIP:/InstanceID// InstanceID is the generated ID instead of customer provided name. example// like "10.0.0.0:/g123456789-nfs001"NfsPathstring `json:"nfsPath,omitempty"`// NoRootSquash: Disable root squashing, which is a feature of NFS. Root squash// is a special mapping of the remote superuser (root) identity when using// identity authentication.NoRootSquashbool `json:"noRootSquash,omitempty"`// ShareIp: Output only. The IP address of the share on this network. Assigned// automatically during provisioning based on the network's services_cidr.ShareIpstring `json:"shareIp,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowDev") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowDev") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AllowedClient: Represents an 'access point' for the share.
func (AllowedClient)MarshalJSON¶added inv0.69.0
func (sAllowedClient) MarshalJSON() ([]byte,error)
typeDetachLunRequest¶added inv0.79.0
type DetachLunRequest struct {// Lun: Required. Name of the Lun to detach.Lunstring `json:"lun,omitempty"`// SkipReboot: If true, performs lun unmapping without instance reboot.SkipRebootbool `json:"skipReboot,omitempty"`// ForceSendFields is a list of field names (e.g. "Lun") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Lun") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DetachLunRequest: Message for detach specific LUN from an Instance.
func (DetachLunRequest)MarshalJSON¶added inv0.79.0
func (sDetachLunRequest) MarshalJSON() ([]byte,error)
typeDisableHyperthreadingRequest¶added inv0.178.0
type DisableHyperthreadingRequest struct {}DisableHyperthreadingRequest: Message requesting to perform disablehyperthreading operation on a server.
typeDisableInteractiveSerialConsoleRequest¶added inv0.98.0
type DisableInteractiveSerialConsoleRequest struct {}DisableInteractiveSerialConsoleRequest: Message for disabling theinteractive serial console on an instance.
typeDisableInteractiveSerialConsoleResponse¶added inv0.137.0
type DisableInteractiveSerialConsoleResponse struct {}DisableInteractiveSerialConsoleResponse: Message for response ofDisableInteractiveSerialConsole.
typeEmpty¶
type Empty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
typeEnableHyperthreadingRequest¶added inv0.178.0
type EnableHyperthreadingRequest struct {}EnableHyperthreadingRequest: Message requesting to perform enablehyperthreading operation on a server.
typeEnableInteractiveSerialConsoleRequest¶added inv0.98.0
type EnableInteractiveSerialConsoleRequest struct {}EnableInteractiveSerialConsoleRequest: Message for enabling the interactiveserial console on an instance.
typeEnableInteractiveSerialConsoleResponse¶added inv0.137.0
type EnableInteractiveSerialConsoleResponse struct {}EnableInteractiveSerialConsoleResponse: Message for response ofEnableInteractiveSerialConsole.
typeEvictLunRequest¶added inv0.111.0
type EvictLunRequest struct {}EvictLunRequest: Request for skip lun cooloff and delete it.
typeEvictVolumeRequest¶added inv0.111.0
type EvictVolumeRequest struct {}EvictVolumeRequest: Request for skip volume cooloff and delete it.
typeGoogleCloudBaremetalsolutionV2LogicalInterface¶added inv0.82.0
type GoogleCloudBaremetalsolutionV2LogicalInterface struct {// InterfaceIndex: The index of the logical interface mapping to the index of// the hardware bond or nic on the chosen network template. This field is// deprecated.InterfaceIndexint64 `json:"interfaceIndex,omitempty"`// LogicalNetworkInterfaces: List of logical network interfaces within a// logical interface.LogicalNetworkInterfaces []*LogicalNetworkInterface `json:"logicalNetworkInterfaces,omitempty"`// Name: Interface name. This is of syntax or and forms part of the network// template name.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "InterfaceIndex") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InterfaceIndex") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudBaremetalsolutionV2LogicalInterface: Each logical interfacerepresents a logical abstraction of the underlying physical interface (foreg. bond, nic) of the instance. Each logical interface can effectively mapto multiple network-IP pairs and still be mapped to one underlying physicalinterface.
func (GoogleCloudBaremetalsolutionV2LogicalInterface)MarshalJSON¶added inv0.82.0
func (sGoogleCloudBaremetalsolutionV2LogicalInterface) MarshalJSON() ([]byte,error)
typeGoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface¶added inv0.82.0
type GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface struct {// Name: Interface name. This is not a globally unique identifier. Name is// unique only inside the ServerNetworkTemplate. This is of syntax or and forms// part of the network template name.Namestring `json:"name,omitempty"`// Required: If true, interface must have network connected.Requiredbool `json:"required,omitempty"`// Type: Interface type.//// Possible values:// "INTERFACE_TYPE_UNSPECIFIED" - Unspecified value.// "BOND" - Bond interface type.// "NIC" - NIC interface type.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface: Logicalinterface.
func (GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface)MarshalJSON¶added inv0.82.0
func (sGoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface) MarshalJSON() ([]byte,error)
typeInstance¶
type Instance struct {// CreateTime: Output only. Create a time stamp.CreateTimestring `json:"createTime,omitempty"`// FirmwareVersion: Output only. The firmware version for the instance.FirmwareVersionstring `json:"firmwareVersion,omitempty"`// HyperthreadingEnabled: True if you enable hyperthreading for the server,// otherwise false. The default value is false.HyperthreadingEnabledbool `json:"hyperthreadingEnabled,omitempty"`// Id: Output only. An identifier for the `Instance`, generated by the backend.Idstring `json:"id,omitempty"`// InteractiveSerialConsoleEnabled: Output only. True if the interactive serial// console feature is enabled for the instance, false otherwise. The default// value is false.InteractiveSerialConsoleEnabledbool `json:"interactiveSerialConsoleEnabled,omitempty"`// KmsKeyVersion: Optional. Name of the KMS crypto key version used to encrypt// the initial passwords. The key has to have ASYMMETRIC_DECRYPT purpose.// Format is// `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/// cryptoKeyVersions/{version}`.KmsKeyVersionstring `json:"kmsKeyVersion,omitempty"`// Labels: Labels as key value pairs.Labels map[string]string `json:"labels,omitempty"`// LogicalInterfaces: List of logical interfaces for the instance. The number// of logical interfaces will be the same as number of hardware bond/nic on the// chosen network template. For the non-multivlan configurations (for eg,// existing servers) that use existing default network template// (bondaa-bondaa), both the Instance.networks field and the// Instance.logical_interfaces fields will be filled to ensure backward// compatibility. For the others, only Instance.logical_interfaces will be// filled.LogicalInterfaces []*GoogleCloudBaremetalsolutionV2LogicalInterface `json:"logicalInterfaces,omitempty"`// LoginInfo: Output only. Text field about info for logging in.LoginInfostring `json:"loginInfo,omitempty"`// Luns: Immutable. List of LUNs associated with this server.Luns []*Lun `json:"luns,omitempty"`// MachineType: Immutable. The server type. Available server types// (https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)MachineTypestring `json:"machineType,omitempty"`// Name: Immutable. The resource name of this `Instance`. Resource names are// schemeless URIs that follow the conventions in//https://cloud.google.com/apis/design/resource_names. Format:// `projects/{project}/locations/{location}/instances/{instance}`Namestring `json:"name,omitempty"`// NetworkTemplate: Instance network template name. For eg, bondaa-bondaa,// bondab-nic, etc. Generally, the template name follows the syntax of "bond"// or "nic".NetworkTemplatestring `json:"networkTemplate,omitempty"`// Networks: Output only. List of networks associated with this server.Networks []*Network `json:"networks,omitempty"`// OsImage: The OS image currently installed on the server.OsImagestring `json:"osImage,omitempty"`// Pod: Immutable. Pod name. Pod is an independent part of infrastructure.// Instance can only be connected to the assets (networks, volumes) allocated// in the same pod.Podstring `json:"pod,omitempty"`// SshKeys: Optional. List of SSH Keys used during instance provisioning.SshKeys []string `json:"sshKeys,omitempty"`// State: Output only. The state of the server.//// Possible values:// "STATE_UNSPECIFIED" - The server is in an unknown state.// "PROVISIONING" - The server is being provisioned.// "RUNNING" - The server is running.// "DELETED" - The server has been deleted.// "UPDATING" - The server is being updated.// "STARTING" - The server is starting.// "STOPPING" - The server is stopping.// "SHUTDOWN" - The server is shutdown.Statestring `json:"state,omitempty"`// UpdateTime: Output only. Update a time stamp.UpdateTimestring `json:"updateTime,omitempty"`// Volumes: Input only. List of Volumes to attach to this Instance on creation.// This field won't be populated in Get/List responses.Volumes []*Volume `json:"volumes,omitempty"`// WorkloadProfile: The workload profile for the instance.//// Possible values:// "WORKLOAD_PROFILE_UNSPECIFIED" - The workload profile is in an unknown// state.// "WORKLOAD_PROFILE_GENERIC" - The workload profile is generic.// "WORKLOAD_PROFILE_HANA" - The workload profile is hana.WorkloadProfilestring `json:"workloadProfile,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Instance: A server.
func (Instance)MarshalJSON¶
typeInstanceConfig¶added inv0.69.0
type InstanceConfig struct {// AccountNetworksEnabled: If true networks can be from different projects of// the same vendor account.AccountNetworksEnabledbool `json:"accountNetworksEnabled,omitempty"`// ClientNetwork: Client network address. Filled if// InstanceConfig.multivlan_config is false.ClientNetwork *NetworkAddress `json:"clientNetwork,omitempty"`// Hyperthreading: Whether the instance should be provisioned with// Hyperthreading enabled.Hyperthreadingbool `json:"hyperthreading,omitempty"`// Id: A transient unique identifier to identify an instance within an// ProvisioningConfig request.Idstring `json:"id,omitempty"`// InstanceType: Instance type. Available types// (https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)InstanceTypestring `json:"instanceType,omitempty"`// KmsKeyVersion: Name of the KMS crypto key version used to encrypt the// initial passwords. The key has to have ASYMMETRIC_DECRYPT purpose.KmsKeyVersionstring `json:"kmsKeyVersion,omitempty"`// LogicalInterfaces: List of logical interfaces for the instance. The number// of logical interfaces will be the same as number of hardware bond/nic on the// chosen network template. Filled if InstanceConfig.multivlan_config is true.LogicalInterfaces []*GoogleCloudBaremetalsolutionV2LogicalInterface `json:"logicalInterfaces,omitempty"`// Name: The name of the instance config.Namestring `json:"name,omitempty"`// NetworkConfig: The type of network configuration on the instance.//// Possible values:// "NETWORKCONFIG_UNSPECIFIED" - The unspecified network configuration.// "SINGLE_VLAN" - Instance part of single client network and single private// network.// "MULTI_VLAN" - Instance part of multiple (or single) client networks and// private networks.NetworkConfigstring `json:"networkConfig,omitempty"`// NetworkTemplate: Server network template name. Filled if// InstanceConfig.multivlan_config is true.NetworkTemplatestring `json:"networkTemplate,omitempty"`// OsImage: OS image to initialize the instance. Available images// (https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)OsImagestring `json:"osImage,omitempty"`// PrivateNetwork: Private network address, if any. Filled if// InstanceConfig.multivlan_config is false.PrivateNetwork *NetworkAddress `json:"privateNetwork,omitempty"`// SshKeyNames: Optional. List of names of ssh keys used to provision the// instance.SshKeyNames []string `json:"sshKeyNames,omitempty"`// UserNote: User note field, it can be used by customers to add additional// information for the BMS Ops team .UserNotestring `json:"userNote,omitempty"`// ForceSendFields is a list of field names (e.g. "AccountNetworksEnabled") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountNetworksEnabled") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}InstanceConfig: Configuration parameters for a new instance.
func (InstanceConfig)MarshalJSON¶added inv0.69.0
func (sInstanceConfig) MarshalJSON() ([]byte,error)
typeInstanceQuota¶added inv0.69.0
type InstanceQuota struct {// AvailableMachineCount: Number of machines than can be created for the given// location and instance_type.AvailableMachineCountint64 `json:"availableMachineCount,omitempty"`// GcpService: The gcp service of the provisioning quota.GcpServicestring `json:"gcpService,omitempty"`// InstanceType: Instance type. Deprecated: use gcp_service.InstanceTypestring `json:"instanceType,omitempty"`// Location: Location where the quota applies.Locationstring `json:"location,omitempty"`// Name: Output only. The name of the instance quota.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "AvailableMachineCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AvailableMachineCount") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}InstanceQuota: A resource budget.
func (InstanceQuota)MarshalJSON¶added inv0.69.0
func (sInstanceQuota) MarshalJSON() ([]byte,error)
typeIntakeVlanAttachment¶added inv0.69.0
type IntakeVlanAttachment struct {// Id: Identifier of the VLAN attachment.Idstring `json:"id,omitempty"`// PairingKey: Attachment pairing key.PairingKeystring `json:"pairingKey,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}IntakeVlanAttachment: A GCP vlan attachment.
func (IntakeVlanAttachment)MarshalJSON¶added inv0.69.0
func (sIntakeVlanAttachment) MarshalJSON() ([]byte,error)
typeListInstancesResponse¶
type ListInstancesResponse struct {// Instances: The list of servers.Instances []*Instance `json:"instances,omitempty"`// NextPageToken: A token identifying a page of results from the server.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Instances") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Instances") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListInstancesResponse: Response message for the list of servers.
func (ListInstancesResponse)MarshalJSON¶
func (sListInstancesResponse) MarshalJSON() ([]byte,error)
typeListLocationsResponse¶
type ListLocationsResponse struct {// Locations: A list of locations that matches the specified filter in the// request.Locations []*Location `json:"locations,omitempty"`// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Locations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListLocationsResponse: The response message for Locations.ListLocations.
func (ListLocationsResponse)MarshalJSON¶
func (sListLocationsResponse) MarshalJSON() ([]byte,error)
typeListLunsResponse¶added inv0.60.0
type ListLunsResponse struct {// Luns: The list of luns.Luns []*Lun `json:"luns,omitempty"`// NextPageToken: A token identifying a page of results from the server.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Luns") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Luns") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListLunsResponse: Response message containing the list of storage volumeluns.
func (ListLunsResponse)MarshalJSON¶added inv0.60.0
func (sListLunsResponse) MarshalJSON() ([]byte,error)
typeListNetworkUsageResponse¶added inv0.69.0
type ListNetworkUsageResponse struct {// Networks: Networks with IPs.Networks []*NetworkUsage `json:"networks,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Networks") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Networks") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListNetworkUsageResponse: Response with Networks with IPs
func (ListNetworkUsageResponse)MarshalJSON¶added inv0.69.0
func (sListNetworkUsageResponse) MarshalJSON() ([]byte,error)
typeListNetworksResponse¶added inv0.62.0
type ListNetworksResponse struct {// Networks: The list of networks.Networks []*Network `json:"networks,omitempty"`// NextPageToken: A token identifying a page of results from the server.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Networks") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Networks") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListNetworksResponse: Response message containing the list of networks.
func (ListNetworksResponse)MarshalJSON¶added inv0.62.0
func (sListNetworksResponse) MarshalJSON() ([]byte,error)
typeListNfsSharesResponse¶added inv0.69.0
type ListNfsSharesResponse struct {// NextPageToken: A token identifying a page of results from the server.NextPageTokenstring `json:"nextPageToken,omitempty"`// NfsShares: The list of NFS shares.NfsShares []*NfsShare `json:"nfsShares,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListNfsSharesResponse: Response message containing the list of NFS shares.
func (ListNfsSharesResponse)MarshalJSON¶added inv0.69.0
func (sListNfsSharesResponse) MarshalJSON() ([]byte,error)
typeListOSImagesResponse¶added inv0.137.0
type ListOSImagesResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// OsImages: The OS images available.OsImages []*OSImage `json:"osImages,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListOSImagesResponse: Request for getting all available OS images.
func (ListOSImagesResponse)MarshalJSON¶added inv0.137.0
func (sListOSImagesResponse) MarshalJSON() ([]byte,error)
typeListProvisioningQuotasResponse¶added inv0.69.0
type ListProvisioningQuotasResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// ProvisioningQuotas: The provisioning quotas registered in this project.ProvisioningQuotas []*ProvisioningQuota `json:"provisioningQuotas,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListProvisioningQuotasResponse: Response message for the list ofprovisioning quotas.
func (ListProvisioningQuotasResponse)MarshalJSON¶added inv0.69.0
func (sListProvisioningQuotasResponse) MarshalJSON() ([]byte,error)
typeListSSHKeysResponse¶added inv0.98.0
type ListSSHKeysResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// SshKeys: The SSH keys registered in the project.SshKeys []*SSHKey `json:"sshKeys,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListSSHKeysResponse: Message for response of ListSSHKeys.
func (ListSSHKeysResponse)MarshalJSON¶added inv0.98.0
func (sListSSHKeysResponse) MarshalJSON() ([]byte,error)
typeListVolumeSnapshotsResponse¶added inv0.62.0
type ListVolumeSnapshotsResponse struct {// NextPageToken: A token identifying a page of results from the server.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// VolumeSnapshots: The list of snapshots.VolumeSnapshots []*VolumeSnapshot `json:"volumeSnapshots,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListVolumeSnapshotsResponse: Response message containing the list of volumesnapshots.
func (ListVolumeSnapshotsResponse)MarshalJSON¶added inv0.62.0
func (sListVolumeSnapshotsResponse) MarshalJSON() ([]byte,error)
typeListVolumesResponse¶added inv0.55.0
type ListVolumesResponse struct {// NextPageToken: A token identifying a page of results from the server.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// Volumes: The list of storage volumes.Volumes []*Volume `json:"volumes,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListVolumesResponse: Response message containing the list of storagevolumes.
func (ListVolumesResponse)MarshalJSON¶added inv0.55.0
func (sListVolumesResponse) MarshalJSON() ([]byte,error)
typeLoadInstanceAuthInfoResponse¶added inv0.154.0
type LoadInstanceAuthInfoResponse struct {// SshKeys: List of ssh keys.SshKeys []*SSHKey `json:"sshKeys,omitempty"`// UserAccounts: Map of username to the user account info.UserAccounts map[string]UserAccount `json:"userAccounts,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "SshKeys") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SshKeys") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LoadInstanceAuthInfoResponse: Response for LoadInstanceAuthInfo.
func (LoadInstanceAuthInfoResponse)MarshalJSON¶added inv0.154.0
func (sLoadInstanceAuthInfoResponse) MarshalJSON() ([]byte,error)
typeLocation¶
type Location struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `json:"displayName,omitempty"`// Labels: Cross-service attributes for the location. For example// {"cloud.googleapis.com/region": "us-east1"}Labels map[string]string `json:"labels,omitempty"`// LocationId: The canonical id for this location. For example: "us-east1".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DisplayName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Location: A resource that represents a Google Cloud location.
func (Location)MarshalJSON¶
typeLogicalNetworkInterface¶added inv0.82.0
type LogicalNetworkInterface struct {// DefaultGateway: Whether this interface is the default gateway for the// instance. Only one interface can be the default gateway for the instance.DefaultGatewaybool `json:"defaultGateway,omitempty"`// Id: An identifier for the `Network`, generated by the backend.Idstring `json:"id,omitempty"`// IpAddress: IP address in the networkIpAddressstring `json:"ipAddress,omitempty"`// Network: Name of the networkNetworkstring `json:"network,omitempty"`// NetworkType: Type of network.//// Possible values:// "TYPE_UNSPECIFIED" - Unspecified value.// "CLIENT" - Client network, a network peered to a Google Cloud VPC.// "PRIVATE" - Private network, a network local to the Bare Metal Solution// environment.NetworkTypestring `json:"networkType,omitempty"`// ForceSendFields is a list of field names (e.g. "DefaultGateway") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DefaultGateway") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LogicalNetworkInterface: Each logical network interface is effectively anetwork and IP pair.
func (LogicalNetworkInterface)MarshalJSON¶added inv0.82.0
func (sLogicalNetworkInterface) MarshalJSON() ([]byte,error)
typeLun¶
type Lun struct {// BootLun: Display if this LUN is a boot LUN.BootLunbool `json:"bootLun,omitempty"`// ExpireTime: Output only. Time after which LUN will be fully deleted. It is// filled only for LUNs in COOL_OFF state.ExpireTimestring `json:"expireTime,omitempty"`// Id: An identifier for the LUN, generated by the backend.Idstring `json:"id,omitempty"`// Instances: Output only. Instances this Lun is attached to.Instances []string `json:"instances,omitempty"`// MultiprotocolType: The LUN multiprotocol type ensures the characteristics of// the LUN are optimized for each operating system.//// Possible values:// "MULTIPROTOCOL_TYPE_UNSPECIFIED" - Server has no OS specified.// "LINUX" - Server with Linux OS.MultiprotocolTypestring `json:"multiprotocolType,omitempty"`// Name: Output only. The name of the LUN.Namestring `json:"name,omitempty"`// Shareable: Display if this LUN can be shared between multiple physical// servers.Shareablebool `json:"shareable,omitempty"`// SizeGb: The size of this LUN, in GiB.SizeGbint64 `json:"sizeGb,omitempty,string"`// State: The state of this storage volume.//// Possible values:// "STATE_UNSPECIFIED" - The LUN is in an unknown state.// "CREATING" - The LUN is being created.// "UPDATING" - The LUN is being updated.// "READY" - The LUN is ready for use.// "DELETING" - The LUN has been requested to be deleted.// "COOL_OFF" - The LUN is in cool off state. It will be deleted after// `expire_time`.Statestring `json:"state,omitempty"`// StorageType: The storage type for this LUN.//// Possible values:// "STORAGE_TYPE_UNSPECIFIED" - The storage type for this LUN is unknown.// "SSD" - This storage type for this LUN is SSD.// "HDD" - This storage type for this LUN is HDD.StorageTypestring `json:"storageType,omitempty"`// StorageVolume: Display the storage volume for this LUN.StorageVolumestring `json:"storageVolume,omitempty"`// Wwid: The WWID for this LUN.Wwidstring `json:"wwid,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "BootLun") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BootLun") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Lun: A storage volume logical unit number (LUN).
func (Lun)MarshalJSON¶
typeLunRange¶added inv0.69.0
type LunRange struct {// Quantity: Number of LUNs to create.Quantityint64 `json:"quantity,omitempty"`// SizeGb: The requested size of each LUN, in GB.SizeGbint64 `json:"sizeGb,omitempty"`// ForceSendFields is a list of field names (e.g. "Quantity") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Quantity") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LunRange: A LUN(Logical Unit Number) range.
func (LunRange)MarshalJSON¶added inv0.69.0
typeNetwork¶
type Network struct {// Cidr: The cidr of the Network.Cidrstring `json:"cidr,omitempty"`// GatewayIp: Output only. Gateway ip address.GatewayIpstring `json:"gatewayIp,omitempty"`// Id: An identifier for the `Network`, generated by the backend.Idstring `json:"id,omitempty"`// IpAddress: IP address configured.IpAddressstring `json:"ipAddress,omitempty"`// JumboFramesEnabled: Whether network uses standard frames or jumbo ones.JumboFramesEnabledbool `json:"jumboFramesEnabled,omitempty"`// Labels: Labels as key value pairs.Labels map[string]string `json:"labels,omitempty"`// MacAddress: List of physical interfaces.MacAddress []string `json:"macAddress,omitempty"`// MountPoints: Input only. List of mount points to attach the network to.MountPoints []*NetworkMountPoint `json:"mountPoints,omitempty"`// Name: Output only. The resource name of this `Network`. Resource names are// schemeless URIs that follow the conventions in//https://cloud.google.com/apis/design/resource_names. Format:// `projects/{project}/locations/{location}/networks/{network}`Namestring `json:"name,omitempty"`// Pod: Immutable. Pod name. Pod is an independent part of infrastructure.// Network can only be connected to the assets (instances, nfsshares) allocated// in the same pod.Podstring `json:"pod,omitempty"`// Reservations: List of IP address reservations in this network. When updating// this field, an error will be generated if a reservation conflicts with an IP// address already allocated to a physical server.Reservations []*NetworkAddressReservation `json:"reservations,omitempty"`// ServicesCidr: IP range for reserved for services (e.g. NFS).ServicesCidrstring `json:"servicesCidr,omitempty"`// State: The Network state.//// Possible values:// "STATE_UNSPECIFIED" - The Network is in an unknown state.// "PROVISIONING" - The Network is provisioning.// "PROVISIONED" - The Network has been provisioned.// "DEPROVISIONING" - The Network is being deprovisioned.// "UPDATING" - The Network is being updated.Statestring `json:"state,omitempty"`// Type: The type of this network.//// Possible values:// "TYPE_UNSPECIFIED" - Unspecified value.// "CLIENT" - Client network, a network peered to a Google Cloud VPC.// "PRIVATE" - Private network, a network local to the Bare Metal Solution// environment.Typestring `json:"type,omitempty"`// VlanId: The vlan id of the Network.VlanIdstring `json:"vlanId,omitempty"`// Vrf: The Vrf for the Network. Use this only if a new Vrf needs to be// created.Vrf *VRF `json:"vrf,omitempty"`// VrfAttachment: Optional. The name of a pre-existing Vrf that the network// should be attached to. Format is `vrfs/{vrf}`.VrfAttachmentstring `json:"vrfAttachment,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Cidr") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cidr") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Network: A Network.
func (Network)MarshalJSON¶
typeNetworkAddress¶added inv0.69.0
type NetworkAddress struct {// Address: IPv4 address to be assigned to the server.Addressstring `json:"address,omitempty"`// ExistingNetworkId: Name of the existing network to use.ExistingNetworkIdstring `json:"existingNetworkId,omitempty"`// NetworkId: Id of the network to use, within the same ProvisioningConfig// request.NetworkIdstring `json:"networkId,omitempty"`// ForceSendFields is a list of field names (e.g. "Address") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Address") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NetworkAddress: A network.
func (NetworkAddress)MarshalJSON¶added inv0.69.0
func (sNetworkAddress) MarshalJSON() ([]byte,error)
typeNetworkAddressReservation¶added inv0.79.0
type NetworkAddressReservation struct {// EndAddress: The last address of this reservation block, inclusive. I.e., for// cases when reservations are only single addresses, end_address and// start_address will be the same. Must be specified as a single IPv4 address,// e.g. 10.1.2.2.EndAddressstring `json:"endAddress,omitempty"`// Note: A note about this reservation, intended for human consumption.Notestring `json:"note,omitempty"`// StartAddress: The first address of this reservation block. Must be specified// as a single IPv4 address, e.g. 10.1.2.2.StartAddressstring `json:"startAddress,omitempty"`// ForceSendFields is a list of field names (e.g. "EndAddress") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndAddress") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NetworkAddressReservation: A reservation of one or more addresses in anetwork.
func (NetworkAddressReservation)MarshalJSON¶added inv0.79.0
func (sNetworkAddressReservation) MarshalJSON() ([]byte,error)
typeNetworkConfig¶added inv0.69.0
type NetworkConfig struct {// Bandwidth: Interconnect bandwidth. Set only when type is CLIENT.//// Possible values:// "BANDWIDTH_UNSPECIFIED" - Unspecified value.// "BW_1_GBPS" - 1 Gbps.// "BW_2_GBPS" - 2 Gbps.// "BW_5_GBPS" - 5 Gbps.// "BW_10_GBPS" - 10 Gbps.Bandwidthstring `json:"bandwidth,omitempty"`// Cidr: CIDR range of the network.Cidrstring `json:"cidr,omitempty"`// GcpService: The GCP service of the network. Available gcp_service are in//https://cloud.google.com/bare-metal/docs/bms-planning.GcpServicestring `json:"gcpService,omitempty"`// Id: A transient unique identifier to identify a volume within an// ProvisioningConfig request.Idstring `json:"id,omitempty"`// JumboFramesEnabled: The JumboFramesEnabled option for customer to set.JumboFramesEnabledbool `json:"jumboFramesEnabled,omitempty"`// Name: Output only. The name of the network config.Namestring `json:"name,omitempty"`// ServiceCidr: Service CIDR, if any.//// Possible values:// "SERVICE_CIDR_UNSPECIFIED" - Unspecified value.// "DISABLED" - Services are disabled for the given network.// "HIGH_26" - Use the highest /26 block of the network to host services.// "HIGH_27" - Use the highest /27 block of the network to host services.// "HIGH_28" - Use the highest /28 block of the network to host services.ServiceCidrstring `json:"serviceCidr,omitempty"`// Type: The type of this network, either Client or Private.//// Possible values:// "TYPE_UNSPECIFIED" - Unspecified value.// "CLIENT" - Client network, that is a network peered to a GCP VPC.// "PRIVATE" - Private network, that is a network local to the BMS POD.Typestring `json:"type,omitempty"`// UserNote: User note field, it can be used by customers to add additional// information for the BMS Ops team .UserNotestring `json:"userNote,omitempty"`// VlanAttachments: List of VLAN attachments. As of now there are always 2// attachments, but it is going to change in the future (multi vlan). Use only// one of vlan_attachments or vrfVlanAttachments []*IntakeVlanAttachment `json:"vlanAttachments,omitempty"`// VlanSameProject: Whether the VLAN attachment pair is located in the same// project.VlanSameProjectbool `json:"vlanSameProject,omitempty"`// Vrf: Optional. The name of a pre-existing Vrf that the network should be// attached to. Format is `vrfs/{vrf}`. If vrf is specified, vlan_attachments// must be empty.Vrfstring `json:"vrf,omitempty"`// ForceSendFields is a list of field names (e.g. "Bandwidth") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Bandwidth") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NetworkConfig: Configuration parameters for a new network.
func (NetworkConfig)MarshalJSON¶added inv0.69.0
func (sNetworkConfig) MarshalJSON() ([]byte,error)
typeNetworkMountPoint¶added inv0.95.0
type NetworkMountPoint struct {// DefaultGateway: Network should be a default gateway.DefaultGatewaybool `json:"defaultGateway,omitempty"`// Instance: Instance to attach network to.Instancestring `json:"instance,omitempty"`// IpAddress: Ip address of the server.IpAddressstring `json:"ipAddress,omitempty"`// LogicalInterface: Logical interface to detach from.LogicalInterfacestring `json:"logicalInterface,omitempty"`// ForceSendFields is a list of field names (e.g. "DefaultGateway") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DefaultGateway") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NetworkMountPoint: Mount point for a network.
func (NetworkMountPoint)MarshalJSON¶added inv0.95.0
func (sNetworkMountPoint) MarshalJSON() ([]byte,error)
typeNetworkUsage¶added inv0.69.0
type NetworkUsage struct {// Network: Network.Network *Network `json:"network,omitempty"`// UsedIps: All used IP addresses in this network.UsedIps []string `json:"usedIps,omitempty"`// ForceSendFields is a list of field names (e.g. "Network") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Network") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NetworkUsage: Network with all used IP addresses.
func (NetworkUsage)MarshalJSON¶added inv0.69.0
func (sNetworkUsage) MarshalJSON() ([]byte,error)
typeNfsExport¶added inv0.69.0
type NfsExport struct {// AllowDev: Allow dev flag in NfsShare AllowedClientsRequest.AllowDevbool `json:"allowDev,omitempty"`// AllowSuid: Allow the setuid flag.AllowSuidbool `json:"allowSuid,omitempty"`// Cidr: A CIDR range.Cidrstring `json:"cidr,omitempty"`// MachineId: Either a single machine, identified by an ID, or a// comma-separated list of machine IDs.MachineIdstring `json:"machineId,omitempty"`// NetworkId: Network to use to publish the export.NetworkIdstring `json:"networkId,omitempty"`// NoRootSquash: Disable root squashing, which is a feature of NFS. Root squash// is a special mapping of the remote superuser (root) identity when using// identity authentication.NoRootSquashbool `json:"noRootSquash,omitempty"`// Permissions: Export permissions.//// Possible values:// "PERMISSIONS_UNSPECIFIED" - Unspecified value.// "READ_ONLY" - Read-only permission.// "READ_WRITE" - Read-write permission.Permissionsstring `json:"permissions,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowDev") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowDev") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NfsExport: A NFS export entry.
func (NfsExport)MarshalJSON¶added inv0.69.0
typeNfsShare¶added inv0.69.0
type NfsShare struct {// AllowedClients: List of allowed access points.AllowedClients []*AllowedClient `json:"allowedClients,omitempty"`// Id: Output only. An identifier for the NFS share, generated by the backend.// This is the same value as nfs_share_id and will replace it in the future.Idstring `json:"id,omitempty"`// Labels: Labels as key value pairs.Labels map[string]string `json:"labels,omitempty"`// Name: Immutable. The name of the NFS share.Namestring `json:"name,omitempty"`// NfsShareId: Output only. An identifier for the NFS share, generated by the// backend. This field will be deprecated in the future, use `id` instead.NfsShareIdstring `json:"nfsShareId,omitempty"`// Pod: Immutable. Pod name. Pod is an independent part of infrastructure.// NFSShare can only be connected to the assets (networks, instances) allocated// in the same pod.Podstring `json:"pod,omitempty"`// RequestedSizeGib: The requested size, in GiB.RequestedSizeGibint64 `json:"requestedSizeGib,omitempty,string"`// State: Output only. The state of the NFS share.//// Possible values:// "STATE_UNSPECIFIED" - The share is in an unknown state.// "PROVISIONED" - The share has been provisioned.// "CREATING" - The NFS Share is being created.// "UPDATING" - The NFS Share is being updated.// "DELETING" - The NFS Share has been requested to be deleted.Statestring `json:"state,omitempty"`// StorageType: Immutable. The storage type of the underlying volume.//// Possible values:// "STORAGE_TYPE_UNSPECIFIED" - The storage type for this volume is unknown.// "SSD" - The storage type for this volume is SSD.// "HDD" - This storage type for this volume is HDD.StorageTypestring `json:"storageType,omitempty"`// Volume: Output only. The underlying volume of the share. Created// automatically during provisioning.Volumestring `json:"volume,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AllowedClients") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowedClients") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NfsShare: An NFS share.
func (NfsShare)MarshalJSON¶added inv0.69.0
typeOSImage¶added inv0.75.0
type OSImage struct {// ApplicableInstanceTypes: Instance types this image is applicable to.// Available types// (https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)ApplicableInstanceTypes []string `json:"applicableInstanceTypes,omitempty"`// Code: OS Image code.Codestring `json:"code,omitempty"`// Description: OS Image description.Descriptionstring `json:"description,omitempty"`// Name: Output only. OS Image's unique name.Namestring `json:"name,omitempty"`// SupportedNetworkTemplates: Network templates that can be used with this OS// Image.SupportedNetworkTemplates []string `json:"supportedNetworkTemplates,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ApplicableInstanceTypes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApplicableInstanceTypes") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}OSImage: Operation System image.
func (OSImage)MarshalJSON¶added inv0.75.0
typeOperation¶
type Operation struct {// Done: If the value is `false`, it means the operation is still in progress.// If `true`, the operation is completed, and either `error` or `response` is// available.Donebool `json:"done,omitempty"`// Error: The error result of the operation in case of failure or cancellation.Error *Status `json:"error,omitempty"`// Metadata: Service-specific metadata associated with the operation. It// typically contains progress information and common metadata such as create// time. Some services might not provide such metadata. Any method that returns// a long-running operation should document the metadata type, if any.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: The server-assigned name, which is only unique within the same service// that originally returns it. If you use the default HTTP mapping, the `name`// should be a resource name ending with `operations/{unique_id}`.Namestring `json:"name,omitempty"`// Response: The normal, successful response of the operation. If the original// method returns no data on success, such as `Delete`, the response is// `google.protobuf.Empty`. If the original method is standard// `Get`/`Create`/`Update`, the response should be the resource. For other// methods, the response should have the type `XxxResponse`, where `Xxx` is the// original method name. For example, if the original method name is// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.Responsegoogleapi.RawMessage `json:"response,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Done") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Done") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Operation: This resource represents a long-running operation that is theresult of a network API call.
func (Operation)MarshalJSON¶
typeProjectsLocationsGetCall¶
type ProjectsLocationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsGetCall)Context¶
func (c *ProjectsLocationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGetCall)Do¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,error)
Do executes the "baremetalsolution.projects.locations.get" call.Any non-2xx status code is an error. Response headers are in either*Location.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall)Fields¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsGetCall)Header¶
func (c *ProjectsLocationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsInstancesDetachLunCall¶added inv0.79.0
type ProjectsLocationsInstancesDetachLunCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesDetachLunCall)Context¶added inv0.79.0
func (c *ProjectsLocationsInstancesDetachLunCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesDetachLunCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesDetachLunCall)Do¶added inv0.79.0
func (c *ProjectsLocationsInstancesDetachLunCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.instances.detachLun" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesDetachLunCall)Fields¶added inv0.79.0
func (c *ProjectsLocationsInstancesDetachLunCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDetachLunCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesDetachLunCall)Header¶added inv0.79.0
func (c *ProjectsLocationsInstancesDetachLunCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInstancesDisableHyperthreadingCall¶added inv0.178.0
type ProjectsLocationsInstancesDisableHyperthreadingCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesDisableHyperthreadingCall)Context¶added inv0.178.0
func (c *ProjectsLocationsInstancesDisableHyperthreadingCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesDisableHyperthreadingCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesDisableHyperthreadingCall)Do¶added inv0.178.0
func (c *ProjectsLocationsInstancesDisableHyperthreadingCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.instances.disableHyperthreading" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesDisableHyperthreadingCall)Fields¶added inv0.178.0
func (c *ProjectsLocationsInstancesDisableHyperthreadingCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDisableHyperthreadingCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesDisableHyperthreadingCall)Header¶added inv0.178.0
func (c *ProjectsLocationsInstancesDisableHyperthreadingCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInstancesDisableInteractiveSerialConsoleCall¶added inv0.98.0
type ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall)Context¶added inv0.98.0
func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall)Do¶added inv0.98.0
func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.instances.disableInteractiveSerialConsole" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall)Fields¶added inv0.98.0
func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall)Header¶added inv0.98.0
func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInstancesEnableHyperthreadingCall¶added inv0.178.0
type ProjectsLocationsInstancesEnableHyperthreadingCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesEnableHyperthreadingCall)Context¶added inv0.178.0
func (c *ProjectsLocationsInstancesEnableHyperthreadingCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesEnableHyperthreadingCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesEnableHyperthreadingCall)Do¶added inv0.178.0
func (c *ProjectsLocationsInstancesEnableHyperthreadingCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.instances.enableHyperthreading" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesEnableHyperthreadingCall)Fields¶added inv0.178.0
func (c *ProjectsLocationsInstancesEnableHyperthreadingCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesEnableHyperthreadingCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesEnableHyperthreadingCall)Header¶added inv0.178.0
func (c *ProjectsLocationsInstancesEnableHyperthreadingCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInstancesEnableInteractiveSerialConsoleCall¶added inv0.98.0
type ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall)Context¶added inv0.98.0
func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall)Do¶added inv0.98.0
func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.instances.enableInteractiveSerialConsole" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall)Fields¶added inv0.98.0
func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall)Header¶added inv0.98.0
func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInstancesGetCall¶
type ProjectsLocationsInstancesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesGetCall)Context¶
func (c *ProjectsLocationsInstancesGetCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesGetCall)Do¶
func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance,error)
Do executes the "baremetalsolution.projects.locations.instances.get" call.Any non-2xx status code is an error. Response headers are in either*Instance.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesGetCall)Fields¶
func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesGetCall)Header¶
func (c *ProjectsLocationsInstancesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInstancesGetCall)IfNoneMatch¶
func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsInstancesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsInstancesListCall¶
type ProjectsLocationsInstancesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesListCall)Context¶
func (c *ProjectsLocationsInstancesListCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesListCall)Do¶
func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse,error)
Do executes the "baremetalsolution.projects.locations.instances.list" call.Any non-2xx status code is an error. Response headers are in either*ListInstancesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsInstancesListCall)Fields¶
func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesListCall)Filter¶
func (c *ProjectsLocationsInstancesListCall) Filter(filterstring) *ProjectsLocationsInstancesListCall
Filter sets the optional parameter "filter": List filter.
func (*ProjectsLocationsInstancesListCall)Header¶
func (c *ProjectsLocationsInstancesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInstancesListCall)IfNoneMatch¶
func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsInstancesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsInstancesListCall)PageSize¶
func (c *ProjectsLocationsInstancesListCall) PageSize(pageSizeint64) *ProjectsLocationsInstancesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, the server will pickan appropriate default.
func (*ProjectsLocationsInstancesListCall)PageToken¶
func (c *ProjectsLocationsInstancesListCall) PageToken(pageTokenstring) *ProjectsLocationsInstancesListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results from the server.
func (*ProjectsLocationsInstancesListCall)Pages¶
func (c *ProjectsLocationsInstancesListCall) Pages(ctxcontext.Context, f func(*ListInstancesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsInstancesLoadAuthInfoCall¶added inv0.154.0
type ProjectsLocationsInstancesLoadAuthInfoCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesLoadAuthInfoCall)Context¶added inv0.154.0
func (c *ProjectsLocationsInstancesLoadAuthInfoCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesLoadAuthInfoCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesLoadAuthInfoCall)Do¶added inv0.154.0
func (c *ProjectsLocationsInstancesLoadAuthInfoCall) Do(opts ...googleapi.CallOption) (*LoadInstanceAuthInfoResponse,error)
Do executes the "baremetalsolution.projects.locations.instances.loadAuthInfo" call.Any non-2xx status code is an error. Response headers are in either*LoadInstanceAuthInfoResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsInstancesLoadAuthInfoCall)Fields¶added inv0.154.0
func (c *ProjectsLocationsInstancesLoadAuthInfoCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesLoadAuthInfoCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesLoadAuthInfoCall)Header¶added inv0.154.0
func (c *ProjectsLocationsInstancesLoadAuthInfoCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInstancesLoadAuthInfoCall)IfNoneMatch¶added inv0.154.0
func (c *ProjectsLocationsInstancesLoadAuthInfoCall) IfNoneMatch(entityTagstring) *ProjectsLocationsInstancesLoadAuthInfoCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsInstancesPatchCall¶added inv0.69.0
type ProjectsLocationsInstancesPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesPatchCall)Context¶added inv0.69.0
func (c *ProjectsLocationsInstancesPatchCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesPatchCall)Do¶added inv0.69.0
func (c *ProjectsLocationsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.instances.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesPatchCall)Fields¶added inv0.69.0
func (c *ProjectsLocationsInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesPatchCall)Header¶added inv0.69.0
func (c *ProjectsLocationsInstancesPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInstancesPatchCall)UpdateMask¶added inv0.69.0
func (c *ProjectsLocationsInstancesPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsInstancesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields toupdate. The currently supported fields are: `labels``hyperthreading_enabled` `os_image` `ssh_keys` `kms_key_version`
typeProjectsLocationsInstancesReimageCall¶added inv0.178.0
type ProjectsLocationsInstancesReimageCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesReimageCall)Context¶added inv0.178.0
func (c *ProjectsLocationsInstancesReimageCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesReimageCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesReimageCall)Do¶added inv0.178.0
func (c *ProjectsLocationsInstancesReimageCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.instances.reimage" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesReimageCall)Fields¶added inv0.178.0
func (c *ProjectsLocationsInstancesReimageCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesReimageCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesReimageCall)Header¶added inv0.178.0
func (c *ProjectsLocationsInstancesReimageCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInstancesRenameCall¶added inv0.111.0
type ProjectsLocationsInstancesRenameCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesRenameCall)Context¶added inv0.111.0
func (c *ProjectsLocationsInstancesRenameCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesRenameCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesRenameCall)Do¶added inv0.111.0
func (c *ProjectsLocationsInstancesRenameCall) Do(opts ...googleapi.CallOption) (*Instance,error)
Do executes the "baremetalsolution.projects.locations.instances.rename" call.Any non-2xx status code is an error. Response headers are in either*Instance.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesRenameCall)Fields¶added inv0.111.0
func (c *ProjectsLocationsInstancesRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesRenameCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesRenameCall)Header¶added inv0.111.0
func (c *ProjectsLocationsInstancesRenameCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInstancesResetCall¶added inv0.62.0
type ProjectsLocationsInstancesResetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesResetCall)Context¶added inv0.62.0
func (c *ProjectsLocationsInstancesResetCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesResetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesResetCall)Do¶added inv0.62.0
func (c *ProjectsLocationsInstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.instances.reset" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesResetCall)Fields¶added inv0.62.0
func (c *ProjectsLocationsInstancesResetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesResetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesResetCall)Header¶added inv0.62.0
func (c *ProjectsLocationsInstancesResetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInstancesService¶
type ProjectsLocationsInstancesService struct {// contains filtered or unexported fields}funcNewProjectsLocationsInstancesService¶
func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService
func (*ProjectsLocationsInstancesService)DetachLun¶added inv0.79.0
func (r *ProjectsLocationsInstancesService) DetachLun(instancestring, detachlunrequest *DetachLunRequest) *ProjectsLocationsInstancesDetachLunCall
DetachLun: Detach LUN from Instance.
- instance: Name of the instance.
func (*ProjectsLocationsInstancesService)DisableHyperthreading¶added inv0.178.0
func (r *ProjectsLocationsInstancesService) DisableHyperthreading(namestring, disablehyperthreadingrequest *DisableHyperthreadingRequest) *ProjectsLocationsInstancesDisableHyperthreadingCall
DisableHyperthreading: Perform disable hyperthreading operation on a singleserver.
- name: The `name` field is used to identify the instance. Format:projects/{project}/locations/{location}/instances/{instance}.
func (*ProjectsLocationsInstancesService)DisableInteractiveSerialConsole¶added inv0.98.0
func (r *ProjectsLocationsInstancesService) DisableInteractiveSerialConsole(namestring, disableinteractiveserialconsolerequest *DisableInteractiveSerialConsoleRequest) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
DisableInteractiveSerialConsole: Disable the interactive serial consolefeature on an instance.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService)EnableHyperthreading¶added inv0.178.0
func (r *ProjectsLocationsInstancesService) EnableHyperthreading(namestring, enablehyperthreadingrequest *EnableHyperthreadingRequest) *ProjectsLocationsInstancesEnableHyperthreadingCall
EnableHyperthreading: Perform enable hyperthreading operation on a singleserver.
- name: The `name` field is used to identify the instance. Format:projects/{project}/locations/{location}/instances/{instance}.
func (*ProjectsLocationsInstancesService)EnableInteractiveSerialConsole¶added inv0.98.0
func (r *ProjectsLocationsInstancesService) EnableInteractiveSerialConsole(namestring, enableinteractiveserialconsolerequest *EnableInteractiveSerialConsoleRequest) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
EnableInteractiveSerialConsole: Enable the interactive serial consolefeature on an instance.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService)Get¶
func (r *ProjectsLocationsInstancesService) Get(namestring) *ProjectsLocationsInstancesGetCall
Get: Get details about a single server.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService)List¶
func (r *ProjectsLocationsInstancesService) List(parentstring) *ProjectsLocationsInstancesListCall
List: List servers in a given project and location.
- parent: Parent value for ListInstancesRequest.
func (*ProjectsLocationsInstancesService)LoadAuthInfo¶added inv0.154.0
func (r *ProjectsLocationsInstancesService) LoadAuthInfo(namestring) *ProjectsLocationsInstancesLoadAuthInfoCall
LoadAuthInfo: Load auth info for a server.
- name: Name of the server.
func (*ProjectsLocationsInstancesService)Patch¶added inv0.69.0
func (r *ProjectsLocationsInstancesService) Patch(namestring, instance *Instance) *ProjectsLocationsInstancesPatchCall
Patch: Update details of a single server.
- name: Immutable. The resource name of this `Instance`. Resource names areschemeless URIs that follow the conventions inhttps://cloud.google.com/apis/design/resource_names. Format:`projects/{project}/locations/{location}/instances/{instance}`.
func (*ProjectsLocationsInstancesService)Reimage¶added inv0.178.0
func (r *ProjectsLocationsInstancesService) Reimage(namestring, reimageinstancerequest *ReimageInstanceRequest) *ProjectsLocationsInstancesReimageCall
Reimage: Perform reimage operation on a single server.
- name: The `name` field is used to identify the instance. Format:projects/{project}/locations/{location}/instances/{instance}.
func (*ProjectsLocationsInstancesService)Rename¶added inv0.111.0
func (r *ProjectsLocationsInstancesService) Rename(namestring, renameinstancerequest *RenameInstanceRequest) *ProjectsLocationsInstancesRenameCall
Rename: RenameInstance sets a new name for an instance. Use with caution,previous names become immediately invalidated.
- name: The `name` field is used to identify the instance. Format:projects/{project}/locations/{location}/instances/{instance}.
func (*ProjectsLocationsInstancesService)Reset¶added inv0.62.0
func (r *ProjectsLocationsInstancesService) Reset(namestring, resetinstancerequest *ResetInstanceRequest) *ProjectsLocationsInstancesResetCall
Reset: Perform an ungraceful, hard reset on a server. Equivalent to shuttingthe power off and then turning it back on.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService)Start¶added inv0.69.0
func (r *ProjectsLocationsInstancesService) Start(namestring, startinstancerequest *StartInstanceRequest) *ProjectsLocationsInstancesStartCall
Start: Starts a server that was shutdown.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService)Stop¶added inv0.76.0
func (r *ProjectsLocationsInstancesService) Stop(namestring, stopinstancerequest *StopInstanceRequest) *ProjectsLocationsInstancesStopCall
Stop: Stop a running server.
- name: Name of the resource.
typeProjectsLocationsInstancesStartCall¶added inv0.69.0
type ProjectsLocationsInstancesStartCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesStartCall)Context¶added inv0.69.0
func (c *ProjectsLocationsInstancesStartCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesStartCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesStartCall)Do¶added inv0.69.0
func (c *ProjectsLocationsInstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.instances.start" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesStartCall)Fields¶added inv0.69.0
func (c *ProjectsLocationsInstancesStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesStartCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesStartCall)Header¶added inv0.69.0
func (c *ProjectsLocationsInstancesStartCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInstancesStopCall¶added inv0.76.0
type ProjectsLocationsInstancesStopCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesStopCall)Context¶added inv0.76.0
func (c *ProjectsLocationsInstancesStopCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesStopCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesStopCall)Do¶added inv0.76.0
func (c *ProjectsLocationsInstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.instances.stop" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesStopCall)Fields¶added inv0.76.0
func (c *ProjectsLocationsInstancesStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesStopCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesStopCall)Header¶added inv0.76.0
func (c *ProjectsLocationsInstancesStopCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsListCall¶
type ProjectsLocationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsListCall)Context¶
func (c *ProjectsLocationsListCall) Context(ctxcontext.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsListCall)Do¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse,error)
Do executes the "baremetalsolution.projects.locations.list" call.Any non-2xx status code is an error. Response headers are in either*ListLocationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsListCall)ExtraLocationTypes¶added inv0.230.0
func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unlessexplicitly documented otherwise, don't use this unsupported field which isprimarily intended for internal usage.
func (*ProjectsLocationsListCall)Fields¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsListCall)Filter¶
func (c *ProjectsLocationsListCall) Filter(filterstring) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).
func (*ProjectsLocationsListCall)Header¶
func (c *ProjectsLocationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsListCall)PageSize¶
func (c *ProjectsLocationsListCall) PageSize(pageSizeint64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall)PageToken¶
func (c *ProjectsLocationsListCall) PageToken(pageTokenstring) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.
func (*ProjectsLocationsListCall)Pages¶
func (c *ProjectsLocationsListCall) Pages(ctxcontext.Context, f func(*ListLocationsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsNetworksGetCall¶added inv0.62.0
type ProjectsLocationsNetworksGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNetworksGetCall)Context¶added inv0.62.0
func (c *ProjectsLocationsNetworksGetCall) Context(ctxcontext.Context) *ProjectsLocationsNetworksGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNetworksGetCall)Do¶added inv0.62.0
func (c *ProjectsLocationsNetworksGetCall) Do(opts ...googleapi.CallOption) (*Network,error)
Do executes the "baremetalsolution.projects.locations.networks.get" call.Any non-2xx status code is an error. Response headers are in either*Network.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNetworksGetCall)Fields¶added inv0.62.0
func (c *ProjectsLocationsNetworksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNetworksGetCall)Header¶added inv0.62.0
func (c *ProjectsLocationsNetworksGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNetworksGetCall)IfNoneMatch¶added inv0.62.0
func (c *ProjectsLocationsNetworksGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNetworksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsNetworksListCall¶added inv0.62.0
type ProjectsLocationsNetworksListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNetworksListCall)Context¶added inv0.62.0
func (c *ProjectsLocationsNetworksListCall) Context(ctxcontext.Context) *ProjectsLocationsNetworksListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNetworksListCall)Do¶added inv0.62.0
func (c *ProjectsLocationsNetworksListCall) Do(opts ...googleapi.CallOption) (*ListNetworksResponse,error)
Do executes the "baremetalsolution.projects.locations.networks.list" call.Any non-2xx status code is an error. Response headers are in either*ListNetworksResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsNetworksListCall)Fields¶added inv0.62.0
func (c *ProjectsLocationsNetworksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNetworksListCall)Filter¶added inv0.69.0
func (c *ProjectsLocationsNetworksListCall) Filter(filterstring) *ProjectsLocationsNetworksListCall
Filter sets the optional parameter "filter": List filter.
func (*ProjectsLocationsNetworksListCall)Header¶added inv0.62.0
func (c *ProjectsLocationsNetworksListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNetworksListCall)IfNoneMatch¶added inv0.62.0
func (c *ProjectsLocationsNetworksListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNetworksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsNetworksListCall)PageSize¶added inv0.62.0
func (c *ProjectsLocationsNetworksListCall) PageSize(pageSizeint64) *ProjectsLocationsNetworksListCall
PageSize sets the optional parameter "pageSize": Requested page size. Theserver might return fewer items than requested. If unspecified, server willpick an appropriate default.
func (*ProjectsLocationsNetworksListCall)PageToken¶added inv0.62.0
func (c *ProjectsLocationsNetworksListCall) PageToken(pageTokenstring) *ProjectsLocationsNetworksListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results from the server.
func (*ProjectsLocationsNetworksListCall)Pages¶added inv0.62.0
func (c *ProjectsLocationsNetworksListCall) Pages(ctxcontext.Context, f func(*ListNetworksResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsNetworksListNetworkUsageCall¶added inv0.69.0
type ProjectsLocationsNetworksListNetworkUsageCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNetworksListNetworkUsageCall)Context¶added inv0.69.0
func (c *ProjectsLocationsNetworksListNetworkUsageCall) Context(ctxcontext.Context) *ProjectsLocationsNetworksListNetworkUsageCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNetworksListNetworkUsageCall)Do¶added inv0.69.0
func (c *ProjectsLocationsNetworksListNetworkUsageCall) Do(opts ...googleapi.CallOption) (*ListNetworkUsageResponse,error)
Do executes the "baremetalsolution.projects.locations.networks.listNetworkUsage" call.Any non-2xx status code is an error. Response headers are in either*ListNetworkUsageResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsNetworksListNetworkUsageCall)Fields¶added inv0.69.0
func (c *ProjectsLocationsNetworksListNetworkUsageCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksListNetworkUsageCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNetworksListNetworkUsageCall)Header¶added inv0.69.0
func (c *ProjectsLocationsNetworksListNetworkUsageCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNetworksListNetworkUsageCall)IfNoneMatch¶added inv0.69.0
func (c *ProjectsLocationsNetworksListNetworkUsageCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNetworksListNetworkUsageCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsNetworksPatchCall¶added inv0.69.0
type ProjectsLocationsNetworksPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNetworksPatchCall)Context¶added inv0.69.0
func (c *ProjectsLocationsNetworksPatchCall) Context(ctxcontext.Context) *ProjectsLocationsNetworksPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNetworksPatchCall)Do¶added inv0.69.0
func (c *ProjectsLocationsNetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.networks.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNetworksPatchCall)Fields¶added inv0.69.0
func (c *ProjectsLocationsNetworksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNetworksPatchCall)Header¶added inv0.69.0
func (c *ProjectsLocationsNetworksPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNetworksPatchCall)UpdateMask¶added inv0.69.0
func (c *ProjectsLocationsNetworksPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsNetworksPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields toupdate. The only currently supported fields are: `labels`, `reservations`,`vrf.vlan_attachments`
typeProjectsLocationsNetworksRenameCall¶added inv0.114.0
type ProjectsLocationsNetworksRenameCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNetworksRenameCall)Context¶added inv0.114.0
func (c *ProjectsLocationsNetworksRenameCall) Context(ctxcontext.Context) *ProjectsLocationsNetworksRenameCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNetworksRenameCall)Do¶added inv0.114.0
func (c *ProjectsLocationsNetworksRenameCall) Do(opts ...googleapi.CallOption) (*Network,error)
Do executes the "baremetalsolution.projects.locations.networks.rename" call.Any non-2xx status code is an error. Response headers are in either*Network.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNetworksRenameCall)Fields¶added inv0.114.0
func (c *ProjectsLocationsNetworksRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksRenameCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNetworksRenameCall)Header¶added inv0.114.0
func (c *ProjectsLocationsNetworksRenameCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNetworksService¶added inv0.62.0
type ProjectsLocationsNetworksService struct {// contains filtered or unexported fields}funcNewProjectsLocationsNetworksService¶added inv0.62.0
func NewProjectsLocationsNetworksService(s *Service) *ProjectsLocationsNetworksService
func (*ProjectsLocationsNetworksService)Get¶added inv0.62.0
func (r *ProjectsLocationsNetworksService) Get(namestring) *ProjectsLocationsNetworksGetCall
Get: Get details of a single network.
- name: Name of the resource.
func (*ProjectsLocationsNetworksService)List¶added inv0.62.0
func (r *ProjectsLocationsNetworksService) List(parentstring) *ProjectsLocationsNetworksListCall
List: List network in a given project and location.
- parent: Parent value for ListNetworksRequest.
func (*ProjectsLocationsNetworksService)ListNetworkUsage¶added inv0.69.0
func (r *ProjectsLocationsNetworksService) ListNetworkUsage(locationstring) *ProjectsLocationsNetworksListNetworkUsageCall
ListNetworkUsage: List all Networks (and used IPs for each Network) in thevendor account associated with the specified project.
- location: Parent value (project and location).
func (*ProjectsLocationsNetworksService)Patch¶added inv0.69.0
func (r *ProjectsLocationsNetworksService) Patch(namestring, network *Network) *ProjectsLocationsNetworksPatchCall
Patch: Update details of a single network.
- name: Output only. The resource name of this `Network`. Resource names areschemeless URIs that follow the conventions inhttps://cloud.google.com/apis/design/resource_names. Format:`projects/{project}/locations/{location}/networks/{network}`.
func (*ProjectsLocationsNetworksService)Rename¶added inv0.114.0
func (r *ProjectsLocationsNetworksService) Rename(namestring, renamenetworkrequest *RenameNetworkRequest) *ProjectsLocationsNetworksRenameCall
Rename: RenameNetwork sets a new name for a network. Use with caution,previous names become immediately invalidated.
- name: The `name` field is used to identify the network. Format:projects/{project}/locations/{location}/networks/{network}.
typeProjectsLocationsNfsSharesCreateCall¶added inv0.95.0
type ProjectsLocationsNfsSharesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNfsSharesCreateCall)Context¶added inv0.95.0
func (c *ProjectsLocationsNfsSharesCreateCall) Context(ctxcontext.Context) *ProjectsLocationsNfsSharesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNfsSharesCreateCall)Do¶added inv0.95.0
func (c *ProjectsLocationsNfsSharesCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.nfsShares.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNfsSharesCreateCall)Fields¶added inv0.95.0
func (c *ProjectsLocationsNfsSharesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNfsSharesCreateCall)Header¶added inv0.95.0
func (c *ProjectsLocationsNfsSharesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNfsSharesDeleteCall¶added inv0.95.0
type ProjectsLocationsNfsSharesDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNfsSharesDeleteCall)Context¶added inv0.95.0
func (c *ProjectsLocationsNfsSharesDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsNfsSharesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNfsSharesDeleteCall)Do¶added inv0.95.0
func (c *ProjectsLocationsNfsSharesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.nfsShares.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNfsSharesDeleteCall)Fields¶added inv0.95.0
func (c *ProjectsLocationsNfsSharesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNfsSharesDeleteCall)Header¶added inv0.95.0
func (c *ProjectsLocationsNfsSharesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNfsSharesGetCall¶added inv0.69.0
type ProjectsLocationsNfsSharesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNfsSharesGetCall)Context¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesGetCall) Context(ctxcontext.Context) *ProjectsLocationsNfsSharesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNfsSharesGetCall)Do¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesGetCall) Do(opts ...googleapi.CallOption) (*NfsShare,error)
Do executes the "baremetalsolution.projects.locations.nfsShares.get" call.Any non-2xx status code is an error. Response headers are in either*NfsShare.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNfsSharesGetCall)Fields¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNfsSharesGetCall)Header¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNfsSharesGetCall)IfNoneMatch¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNfsSharesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsNfsSharesListCall¶added inv0.69.0
type ProjectsLocationsNfsSharesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNfsSharesListCall)Context¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Context(ctxcontext.Context) *ProjectsLocationsNfsSharesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNfsSharesListCall)Do¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Do(opts ...googleapi.CallOption) (*ListNfsSharesResponse,error)
Do executes the "baremetalsolution.projects.locations.nfsShares.list" call.Any non-2xx status code is an error. Response headers are in either*ListNfsSharesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsNfsSharesListCall)Fields¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNfsSharesListCall)Filter¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Filter(filterstring) *ProjectsLocationsNfsSharesListCall
Filter sets the optional parameter "filter": List filter.
func (*ProjectsLocationsNfsSharesListCall)Header¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNfsSharesListCall)IfNoneMatch¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNfsSharesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsNfsSharesListCall)PageSize¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesListCall) PageSize(pageSizeint64) *ProjectsLocationsNfsSharesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Theserver might return fewer items than requested. If unspecified, server willpick an appropriate default.
func (*ProjectsLocationsNfsSharesListCall)PageToken¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesListCall) PageToken(pageTokenstring) *ProjectsLocationsNfsSharesListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results from the server.
func (*ProjectsLocationsNfsSharesListCall)Pages¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Pages(ctxcontext.Context, f func(*ListNfsSharesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsNfsSharesPatchCall¶added inv0.69.0
type ProjectsLocationsNfsSharesPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNfsSharesPatchCall)Context¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesPatchCall) Context(ctxcontext.Context) *ProjectsLocationsNfsSharesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNfsSharesPatchCall)Do¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.nfsShares.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNfsSharesPatchCall)Fields¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNfsSharesPatchCall)Header¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNfsSharesPatchCall)UpdateMask¶added inv0.69.0
func (c *ProjectsLocationsNfsSharesPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsNfsSharesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields toupdate. The only currently supported fields are: `labels` `allowed_clients`
typeProjectsLocationsNfsSharesRenameCall¶added inv0.115.0
type ProjectsLocationsNfsSharesRenameCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNfsSharesRenameCall)Context¶added inv0.115.0
func (c *ProjectsLocationsNfsSharesRenameCall) Context(ctxcontext.Context) *ProjectsLocationsNfsSharesRenameCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNfsSharesRenameCall)Do¶added inv0.115.0
func (c *ProjectsLocationsNfsSharesRenameCall) Do(opts ...googleapi.CallOption) (*NfsShare,error)
Do executes the "baremetalsolution.projects.locations.nfsShares.rename" call.Any non-2xx status code is an error. Response headers are in either*NfsShare.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNfsSharesRenameCall)Fields¶added inv0.115.0
func (c *ProjectsLocationsNfsSharesRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesRenameCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNfsSharesRenameCall)Header¶added inv0.115.0
func (c *ProjectsLocationsNfsSharesRenameCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNfsSharesService¶added inv0.69.0
type ProjectsLocationsNfsSharesService struct {// contains filtered or unexported fields}funcNewProjectsLocationsNfsSharesService¶added inv0.69.0
func NewProjectsLocationsNfsSharesService(s *Service) *ProjectsLocationsNfsSharesService
func (*ProjectsLocationsNfsSharesService)Create¶added inv0.95.0
func (r *ProjectsLocationsNfsSharesService) Create(parentstring, nfsshare *NfsShare) *ProjectsLocationsNfsSharesCreateCall
Create: Create an NFS share.
- parent: The parent project and location.
func (*ProjectsLocationsNfsSharesService)Delete¶added inv0.95.0
func (r *ProjectsLocationsNfsSharesService) Delete(namestring) *ProjectsLocationsNfsSharesDeleteCall
Delete: Delete an NFS share. The underlying volume is automatically deleted.
- name: The name of the NFS share to delete.
func (*ProjectsLocationsNfsSharesService)Get¶added inv0.69.0
func (r *ProjectsLocationsNfsSharesService) Get(namestring) *ProjectsLocationsNfsSharesGetCall
Get: Get details of a single NFS share.
- name: Name of the resource.
func (*ProjectsLocationsNfsSharesService)List¶added inv0.69.0
func (r *ProjectsLocationsNfsSharesService) List(parentstring) *ProjectsLocationsNfsSharesListCall
List: List NFS shares.
- parent: Parent value for ListNfsSharesRequest.
func (*ProjectsLocationsNfsSharesService)Patch¶added inv0.69.0
func (r *ProjectsLocationsNfsSharesService) Patch(namestring, nfsshare *NfsShare) *ProjectsLocationsNfsSharesPatchCall
Patch: Update details of a single NFS share.
- name: Immutable. The name of the NFS share.
func (*ProjectsLocationsNfsSharesService)Rename¶added inv0.115.0
func (r *ProjectsLocationsNfsSharesService) Rename(namestring, renamenfssharerequest *RenameNfsShareRequest) *ProjectsLocationsNfsSharesRenameCall
Rename: RenameNfsShare sets a new name for an nfsshare. Use with caution,previous names become immediately invalidated.
- name: The `name` field is used to identify the nfsshare. Format:projects/{project}/locations/{location}/nfsshares/{nfsshare}.
typeProjectsLocationsOperationsGetCall¶
type ProjectsLocationsOperationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsGetCall)Context¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsGetCall)Do¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall)Fields¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsGetCall)Header¶
func (c *ProjectsLocationsOperationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOperationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsOperationsService¶
type ProjectsLocationsOperationsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsOperationsService¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService)Get¶
func (r *ProjectsLocationsOperationsService) Get(namestring) *ProjectsLocationsOperationsGetCall
Get: Get details about an operation.
- name: The name of the operation resource.
typeProjectsLocationsOsImagesGetCall¶added inv0.144.0
type ProjectsLocationsOsImagesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOsImagesGetCall)Context¶added inv0.144.0
func (c *ProjectsLocationsOsImagesGetCall) Context(ctxcontext.Context) *ProjectsLocationsOsImagesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOsImagesGetCall)Do¶added inv0.144.0
func (c *ProjectsLocationsOsImagesGetCall) Do(opts ...googleapi.CallOption) (*OSImage,error)
Do executes the "baremetalsolution.projects.locations.osImages.get" call.Any non-2xx status code is an error. Response headers are in either*OSImage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOsImagesGetCall)Fields¶added inv0.144.0
func (c *ProjectsLocationsOsImagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOsImagesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOsImagesGetCall)Header¶added inv0.144.0
func (c *ProjectsLocationsOsImagesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOsImagesGetCall)IfNoneMatch¶added inv0.144.0
func (c *ProjectsLocationsOsImagesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOsImagesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsOsImagesListCall¶added inv0.137.0
type ProjectsLocationsOsImagesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOsImagesListCall)Context¶added inv0.137.0
func (c *ProjectsLocationsOsImagesListCall) Context(ctxcontext.Context) *ProjectsLocationsOsImagesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOsImagesListCall)Do¶added inv0.137.0
func (c *ProjectsLocationsOsImagesListCall) Do(opts ...googleapi.CallOption) (*ListOSImagesResponse,error)
Do executes the "baremetalsolution.projects.locations.osImages.list" call.Any non-2xx status code is an error. Response headers are in either*ListOSImagesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsOsImagesListCall)Fields¶added inv0.137.0
func (c *ProjectsLocationsOsImagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOsImagesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOsImagesListCall)Header¶added inv0.137.0
func (c *ProjectsLocationsOsImagesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOsImagesListCall)IfNoneMatch¶added inv0.137.0
func (c *ProjectsLocationsOsImagesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOsImagesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsOsImagesListCall)PageSize¶added inv0.137.0
func (c *ProjectsLocationsOsImagesListCall) PageSize(pageSizeint64) *ProjectsLocationsOsImagesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Theserver might return fewer items than requested. If unspecified, server willpick an appropriate default. Notice that page_size field is not supportedand won't be respected in the API request for now, will be updated whenpagination is supported.
func (*ProjectsLocationsOsImagesListCall)PageToken¶added inv0.137.0
func (c *ProjectsLocationsOsImagesListCall) PageToken(pageTokenstring) *ProjectsLocationsOsImagesListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results from the server.
func (*ProjectsLocationsOsImagesListCall)Pages¶added inv0.137.0
func (c *ProjectsLocationsOsImagesListCall) Pages(ctxcontext.Context, f func(*ListOSImagesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsOsImagesService¶added inv0.137.0
type ProjectsLocationsOsImagesService struct {// contains filtered or unexported fields}funcNewProjectsLocationsOsImagesService¶added inv0.137.0
func NewProjectsLocationsOsImagesService(s *Service) *ProjectsLocationsOsImagesService
func (*ProjectsLocationsOsImagesService)Get¶added inv0.144.0
func (r *ProjectsLocationsOsImagesService) Get(namestring) *ProjectsLocationsOsImagesGetCall
Get: Get details of a single OS image.
- name: Name of the OS image.
func (*ProjectsLocationsOsImagesService)List¶added inv0.137.0
func (r *ProjectsLocationsOsImagesService) List(parentstring) *ProjectsLocationsOsImagesListCall
List: Retrieves the list of OS images which are currently approved.
- parent: Parent value for ListOSImagesRequest.
typeProjectsLocationsProvisioningConfigsCreateCall¶added inv0.73.0
type ProjectsLocationsProvisioningConfigsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsProvisioningConfigsCreateCall)Context¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsProvisioningConfigsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsProvisioningConfigsCreateCall)Do¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsCreateCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig,error)
Do executes the "baremetalsolution.projects.locations.provisioningConfigs.create" call.Any non-2xx status code is an error. Response headers are in either*ProvisioningConfig.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsProvisioningConfigsCreateCall)Email¶added inv0.74.0
func (c *ProjectsLocationsProvisioningConfigsCreateCall) Email(emailstring) *ProjectsLocationsProvisioningConfigsCreateCall
Email sets the optional parameter "email": Email provided to send aconfirmation with provisioning config to.
func (*ProjectsLocationsProvisioningConfigsCreateCall)Fields¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsProvisioningConfigsCreateCall)Header¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsProvisioningConfigsGetCall¶added inv0.73.0
type ProjectsLocationsProvisioningConfigsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsProvisioningConfigsGetCall)Context¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsGetCall) Context(ctxcontext.Context) *ProjectsLocationsProvisioningConfigsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsProvisioningConfigsGetCall)Do¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsGetCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig,error)
Do executes the "baremetalsolution.projects.locations.provisioningConfigs.get" call.Any non-2xx status code is an error. Response headers are in either*ProvisioningConfig.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsProvisioningConfigsGetCall)Fields¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsProvisioningConfigsGetCall)Header¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsProvisioningConfigsGetCall)IfNoneMatch¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsProvisioningConfigsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsProvisioningConfigsPatchCall¶added inv0.73.0
type ProjectsLocationsProvisioningConfigsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsProvisioningConfigsPatchCall)Context¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) Context(ctxcontext.Context) *ProjectsLocationsProvisioningConfigsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsProvisioningConfigsPatchCall)Do¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig,error)
Do executes the "baremetalsolution.projects.locations.provisioningConfigs.patch" call.Any non-2xx status code is an error. Response headers are in either*ProvisioningConfig.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsProvisioningConfigsPatchCall)Email¶added inv0.74.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) Email(emailstring) *ProjectsLocationsProvisioningConfigsPatchCall
Email sets the optional parameter "email": Email provided to send aconfirmation with provisioning config to.
func (*ProjectsLocationsProvisioningConfigsPatchCall)Fields¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsProvisioningConfigsPatchCall)Header¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsProvisioningConfigsPatchCall)UpdateMask¶added inv0.73.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsProvisioningConfigsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. The list offields to update.
typeProjectsLocationsProvisioningConfigsService¶added inv0.69.0
type ProjectsLocationsProvisioningConfigsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsProvisioningConfigsService¶added inv0.69.0
func NewProjectsLocationsProvisioningConfigsService(s *Service) *ProjectsLocationsProvisioningConfigsService
func (*ProjectsLocationsProvisioningConfigsService)Create¶added inv0.73.0
func (r *ProjectsLocationsProvisioningConfigsService) Create(parentstring, provisioningconfig *ProvisioningConfig) *ProjectsLocationsProvisioningConfigsCreateCall
Create: Create new ProvisioningConfig.
- parent: The parent project and location containing the ProvisioningConfig.
func (*ProjectsLocationsProvisioningConfigsService)Get¶added inv0.73.0
func (r *ProjectsLocationsProvisioningConfigsService) Get(namestring) *ProjectsLocationsProvisioningConfigsGetCall
Get: Get ProvisioningConfig by name.
- name: Name of the ProvisioningConfig.
func (*ProjectsLocationsProvisioningConfigsService)Patch¶added inv0.73.0
func (r *ProjectsLocationsProvisioningConfigsService) Patch(namestring, provisioningconfig *ProvisioningConfig) *ProjectsLocationsProvisioningConfigsPatchCall
Patch: Update existing ProvisioningConfig.
- name: Output only. The system-generated name of the provisioning config.This follows the UUID format.
func (*ProjectsLocationsProvisioningConfigsService)Submit¶added inv0.69.0
func (r *ProjectsLocationsProvisioningConfigsService) Submit(parentstring, submitprovisioningconfigrequest *SubmitProvisioningConfigRequest) *ProjectsLocationsProvisioningConfigsSubmitCall
Submit: Submit a provisioning configuration for a given project.
- parent: The parent project and location containing the ProvisioningConfig.
typeProjectsLocationsProvisioningConfigsSubmitCall¶added inv0.69.0
type ProjectsLocationsProvisioningConfigsSubmitCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsProvisioningConfigsSubmitCall)Context¶added inv0.69.0
func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Context(ctxcontext.Context) *ProjectsLocationsProvisioningConfigsSubmitCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsProvisioningConfigsSubmitCall)Do¶added inv0.69.0
func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Do(opts ...googleapi.CallOption) (*SubmitProvisioningConfigResponse,error)
Do executes the "baremetalsolution.projects.locations.provisioningConfigs.submit" call.Any non-2xx status code is an error. Response headers are in either*SubmitProvisioningConfigResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsProvisioningConfigsSubmitCall)Fields¶added inv0.69.0
func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsSubmitCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsProvisioningConfigsSubmitCall)Header¶added inv0.69.0
func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsProvisioningQuotasListCall¶added inv0.69.0
type ProjectsLocationsProvisioningQuotasListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsProvisioningQuotasListCall)Context¶added inv0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) Context(ctxcontext.Context) *ProjectsLocationsProvisioningQuotasListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsProvisioningQuotasListCall)Do¶added inv0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) Do(opts ...googleapi.CallOption) (*ListProvisioningQuotasResponse,error)
Do executes the "baremetalsolution.projects.locations.provisioningQuotas.list" call.Any non-2xx status code is an error. Response headers are in either*ListProvisioningQuotasResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsProvisioningQuotasListCall)Fields¶added inv0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningQuotasListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsProvisioningQuotasListCall)Header¶added inv0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsProvisioningQuotasListCall)IfNoneMatch¶added inv0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsProvisioningQuotasListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsProvisioningQuotasListCall)PageSize¶added inv0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) PageSize(pageSizeint64) *ProjectsLocationsProvisioningQuotasListCall
PageSize sets the optional parameter "pageSize": Requested page size. Theserver might return fewer items than requested. If unspecified, server willpick an appropriate default. Notice that page_size field is not supportedand won't be respected in the API request for now, will be updated whenpagination is supported.
func (*ProjectsLocationsProvisioningQuotasListCall)PageToken¶added inv0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) PageToken(pageTokenstring) *ProjectsLocationsProvisioningQuotasListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results from the server.
func (*ProjectsLocationsProvisioningQuotasListCall)Pages¶added inv0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) Pages(ctxcontext.Context, f func(*ListProvisioningQuotasResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsProvisioningQuotasService¶added inv0.69.0
type ProjectsLocationsProvisioningQuotasService struct {// contains filtered or unexported fields}funcNewProjectsLocationsProvisioningQuotasService¶added inv0.69.0
func NewProjectsLocationsProvisioningQuotasService(s *Service) *ProjectsLocationsProvisioningQuotasService
func (*ProjectsLocationsProvisioningQuotasService)List¶added inv0.69.0
func (r *ProjectsLocationsProvisioningQuotasService) List(parentstring) *ProjectsLocationsProvisioningQuotasListCall
List: List the budget details to provision resources on a given project.
- parent: Parent value for ListProvisioningQuotasRequest.
typeProjectsLocationsService¶
type ProjectsLocationsService struct {Instances *ProjectsLocationsInstancesServiceNetworks *ProjectsLocationsNetworksServiceNfsShares *ProjectsLocationsNfsSharesServiceOperations *ProjectsLocationsOperationsServiceOsImages *ProjectsLocationsOsImagesServiceProvisioningConfigs *ProjectsLocationsProvisioningConfigsServiceProvisioningQuotas *ProjectsLocationsProvisioningQuotasServiceSshKeys *ProjectsLocationsSshKeysServiceVolumes *ProjectsLocationsVolumesService// contains filtered or unexported fields}funcNewProjectsLocationsService¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService)Get¶
func (r *ProjectsLocationsService) Get(namestring) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService)List¶
func (r *ProjectsLocationsService) List(namestring) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
typeProjectsLocationsSshKeysCreateCall¶added inv0.98.0
type ProjectsLocationsSshKeysCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsSshKeysCreateCall)Context¶added inv0.98.0
func (c *ProjectsLocationsSshKeysCreateCall) Context(ctxcontext.Context) *ProjectsLocationsSshKeysCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSshKeysCreateCall)Do¶added inv0.98.0
func (c *ProjectsLocationsSshKeysCreateCall) Do(opts ...googleapi.CallOption) (*SSHKey,error)
Do executes the "baremetalsolution.projects.locations.sshKeys.create" call.Any non-2xx status code is an error. Response headers are in either*SSHKey.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSshKeysCreateCall)Fields¶added inv0.98.0
func (c *ProjectsLocationsSshKeysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSshKeysCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsSshKeysCreateCall)Header¶added inv0.98.0
func (c *ProjectsLocationsSshKeysCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsSshKeysCreateCall)SshKeyId¶added inv0.98.0
func (c *ProjectsLocationsSshKeysCreateCall) SshKeyId(sshKeyIdstring) *ProjectsLocationsSshKeysCreateCall
SshKeyId sets the optional parameter "sshKeyId": Required. The ID to use forthe key, which will become the final component of the key's resource name.This value must match the regex: [a-zA-Z0-9@.\-_]{1,64}
typeProjectsLocationsSshKeysDeleteCall¶added inv0.98.0
type ProjectsLocationsSshKeysDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsSshKeysDeleteCall)Context¶added inv0.98.0
func (c *ProjectsLocationsSshKeysDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsSshKeysDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSshKeysDeleteCall)Do¶added inv0.98.0
func (c *ProjectsLocationsSshKeysDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "baremetalsolution.projects.locations.sshKeys.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSshKeysDeleteCall)Fields¶added inv0.98.0
func (c *ProjectsLocationsSshKeysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSshKeysDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsSshKeysDeleteCall)Header¶added inv0.98.0
func (c *ProjectsLocationsSshKeysDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsSshKeysListCall¶added inv0.98.0
type ProjectsLocationsSshKeysListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsSshKeysListCall)Context¶added inv0.98.0
func (c *ProjectsLocationsSshKeysListCall) Context(ctxcontext.Context) *ProjectsLocationsSshKeysListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSshKeysListCall)Do¶added inv0.98.0
func (c *ProjectsLocationsSshKeysListCall) Do(opts ...googleapi.CallOption) (*ListSSHKeysResponse,error)
Do executes the "baremetalsolution.projects.locations.sshKeys.list" call.Any non-2xx status code is an error. Response headers are in either*ListSSHKeysResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsSshKeysListCall)Fields¶added inv0.98.0
func (c *ProjectsLocationsSshKeysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSshKeysListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsSshKeysListCall)Header¶added inv0.98.0
func (c *ProjectsLocationsSshKeysListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsSshKeysListCall)IfNoneMatch¶added inv0.98.0
func (c *ProjectsLocationsSshKeysListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsSshKeysListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsSshKeysListCall)PageSize¶added inv0.98.0
func (c *ProjectsLocationsSshKeysListCall) PageSize(pageSizeint64) *ProjectsLocationsSshKeysListCall
PageSize sets the optional parameter "pageSize": The maximum number of itemsto return.
func (*ProjectsLocationsSshKeysListCall)PageToken¶added inv0.98.0
func (c *ProjectsLocationsSshKeysListCall) PageToken(pageTokenstring) *ProjectsLocationsSshKeysListCall
PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous List request, if any.
func (*ProjectsLocationsSshKeysListCall)Pages¶added inv0.98.0
func (c *ProjectsLocationsSshKeysListCall) Pages(ctxcontext.Context, f func(*ListSSHKeysResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsSshKeysService¶added inv0.98.0
type ProjectsLocationsSshKeysService struct {// contains filtered or unexported fields}funcNewProjectsLocationsSshKeysService¶added inv0.98.0
func NewProjectsLocationsSshKeysService(s *Service) *ProjectsLocationsSshKeysService
func (*ProjectsLocationsSshKeysService)Create¶added inv0.98.0
func (r *ProjectsLocationsSshKeysService) Create(parentstring, sshkey *SSHKey) *ProjectsLocationsSshKeysCreateCall
Create: Register a public SSH key in the specified project for use with theinteractive serial console feature.
- parent: The parent containing the SSH keys.
func (*ProjectsLocationsSshKeysService)Delete¶added inv0.98.0
func (r *ProjectsLocationsSshKeysService) Delete(namestring) *ProjectsLocationsSshKeysDeleteCall
Delete: Deletes a public SSH key registered in the specified project.
- name: The name of the SSH key to delete. Currently, the only valid valuefor the location is "global".
func (*ProjectsLocationsSshKeysService)List¶added inv0.98.0
func (r *ProjectsLocationsSshKeysService) List(parentstring) *ProjectsLocationsSshKeysListCall
List: Lists the public SSH keys registered for the specified project. TheseSSH keys are used only for the interactive serial console feature.
- parent: The parent containing the SSH keys. Currently, the only validvalue for the location is "global".
typeProjectsLocationsVolumesEvictCall¶added inv0.111.0
type ProjectsLocationsVolumesEvictCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesEvictCall)Context¶added inv0.111.0
func (c *ProjectsLocationsVolumesEvictCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesEvictCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesEvictCall)Do¶added inv0.111.0
func (c *ProjectsLocationsVolumesEvictCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.volumes.evict" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesEvictCall)Fields¶added inv0.111.0
func (c *ProjectsLocationsVolumesEvictCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesEvictCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesEvictCall)Header¶added inv0.111.0
func (c *ProjectsLocationsVolumesEvictCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsVolumesGetCall¶added inv0.55.0
type ProjectsLocationsVolumesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesGetCall)Context¶added inv0.55.0
func (c *ProjectsLocationsVolumesGetCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesGetCall)Do¶added inv0.55.0
func (c *ProjectsLocationsVolumesGetCall) Do(opts ...googleapi.CallOption) (*Volume,error)
Do executes the "baremetalsolution.projects.locations.volumes.get" call.Any non-2xx status code is an error. Response headers are in either*Volume.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesGetCall)Fields¶added inv0.55.0
func (c *ProjectsLocationsVolumesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesGetCall)Header¶added inv0.55.0
func (c *ProjectsLocationsVolumesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsVolumesGetCall)IfNoneMatch¶added inv0.55.0
func (c *ProjectsLocationsVolumesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsVolumesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsVolumesListCall¶added inv0.55.0
type ProjectsLocationsVolumesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesListCall)Context¶added inv0.55.0
func (c *ProjectsLocationsVolumesListCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesListCall)Do¶added inv0.55.0
func (c *ProjectsLocationsVolumesListCall) Do(opts ...googleapi.CallOption) (*ListVolumesResponse,error)
Do executes the "baremetalsolution.projects.locations.volumes.list" call.Any non-2xx status code is an error. Response headers are in either*ListVolumesResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsVolumesListCall)Fields¶added inv0.55.0
func (c *ProjectsLocationsVolumesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesListCall)Filter¶added inv0.55.0
func (c *ProjectsLocationsVolumesListCall) Filter(filterstring) *ProjectsLocationsVolumesListCall
Filter sets the optional parameter "filter": List filter.
func (*ProjectsLocationsVolumesListCall)Header¶added inv0.55.0
func (c *ProjectsLocationsVolumesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsVolumesListCall)IfNoneMatch¶added inv0.55.0
func (c *ProjectsLocationsVolumesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsVolumesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsVolumesListCall)PageSize¶added inv0.55.0
func (c *ProjectsLocationsVolumesListCall) PageSize(pageSizeint64) *ProjectsLocationsVolumesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Theserver might return fewer items than requested. If unspecified, server willpick an appropriate default.
func (*ProjectsLocationsVolumesListCall)PageToken¶added inv0.55.0
func (c *ProjectsLocationsVolumesListCall) PageToken(pageTokenstring) *ProjectsLocationsVolumesListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results from the server.
func (*ProjectsLocationsVolumesListCall)Pages¶added inv0.55.0
func (c *ProjectsLocationsVolumesListCall) Pages(ctxcontext.Context, f func(*ListVolumesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsVolumesLunsEvictCall¶added inv0.111.0
type ProjectsLocationsVolumesLunsEvictCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesLunsEvictCall)Context¶added inv0.111.0
func (c *ProjectsLocationsVolumesLunsEvictCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesLunsEvictCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesLunsEvictCall)Do¶added inv0.111.0
func (c *ProjectsLocationsVolumesLunsEvictCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.volumes.luns.evict" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesLunsEvictCall)Fields¶added inv0.111.0
func (c *ProjectsLocationsVolumesLunsEvictCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsEvictCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesLunsEvictCall)Header¶added inv0.111.0
func (c *ProjectsLocationsVolumesLunsEvictCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsVolumesLunsGetCall¶added inv0.60.0
type ProjectsLocationsVolumesLunsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesLunsGetCall)Context¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesLunsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesLunsGetCall)Do¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Do(opts ...googleapi.CallOption) (*Lun,error)
Do executes the "baremetalsolution.projects.locations.volumes.luns.get" call.Any non-2xx status code is an error. Response headers are in either*Lun.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesLunsGetCall)Fields¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesLunsGetCall)Header¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsVolumesLunsGetCall)IfNoneMatch¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsVolumesLunsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsVolumesLunsListCall¶added inv0.60.0
type ProjectsLocationsVolumesLunsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesLunsListCall)Context¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesLunsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesLunsListCall)Do¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Do(opts ...googleapi.CallOption) (*ListLunsResponse,error)
Do executes the "baremetalsolution.projects.locations.volumes.luns.list" call.Any non-2xx status code is an error. Response headers are in either*ListLunsResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsVolumesLunsListCall)Fields¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesLunsListCall)Header¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsVolumesLunsListCall)IfNoneMatch¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsVolumesLunsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsVolumesLunsListCall)PageSize¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) PageSize(pageSizeint64) *ProjectsLocationsVolumesLunsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Theserver might return fewer items than requested. If unspecified, server willpick an appropriate default.
func (*ProjectsLocationsVolumesLunsListCall)PageToken¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) PageToken(pageTokenstring) *ProjectsLocationsVolumesLunsListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results from the server.
func (*ProjectsLocationsVolumesLunsListCall)Pages¶added inv0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Pages(ctxcontext.Context, f func(*ListLunsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsVolumesLunsService¶added inv0.60.0
type ProjectsLocationsVolumesLunsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsVolumesLunsService¶added inv0.60.0
func NewProjectsLocationsVolumesLunsService(s *Service) *ProjectsLocationsVolumesLunsService
func (*ProjectsLocationsVolumesLunsService)Evict¶added inv0.111.0
func (r *ProjectsLocationsVolumesLunsService) Evict(namestring, evictlunrequest *EvictLunRequest) *ProjectsLocationsVolumesLunsEvictCall
Evict: Skips lun's cooloff and deletes it now. Lun must be in cooloff state.
- name: The name of the lun.
func (*ProjectsLocationsVolumesLunsService)Get¶added inv0.60.0
func (r *ProjectsLocationsVolumesLunsService) Get(namestring) *ProjectsLocationsVolumesLunsGetCall
Get: Get details of a single storage logical unit number(LUN).
- name: Name of the resource.
func (*ProjectsLocationsVolumesLunsService)List¶added inv0.60.0
func (r *ProjectsLocationsVolumesLunsService) List(parentstring) *ProjectsLocationsVolumesLunsListCall
List: List storage volume luns for given storage volume.
- parent: Parent value for ListLunsRequest.
typeProjectsLocationsVolumesPatchCall¶added inv0.62.0
type ProjectsLocationsVolumesPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesPatchCall)Context¶added inv0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesPatchCall)Do¶added inv0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.volumes.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesPatchCall)Fields¶added inv0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesPatchCall)Header¶added inv0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsVolumesPatchCall)UpdateMask¶added inv0.62.0
func (c *ProjectsLocationsVolumesPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsVolumesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields toupdate. The only currently supported fields are: 'labels'
typeProjectsLocationsVolumesRenameCall¶added inv0.114.0
type ProjectsLocationsVolumesRenameCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesRenameCall)Context¶added inv0.114.0
func (c *ProjectsLocationsVolumesRenameCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesRenameCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesRenameCall)Do¶added inv0.114.0
func (c *ProjectsLocationsVolumesRenameCall) Do(opts ...googleapi.CallOption) (*Volume,error)
Do executes the "baremetalsolution.projects.locations.volumes.rename" call.Any non-2xx status code is an error. Response headers are in either*Volume.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesRenameCall)Fields¶added inv0.114.0
func (c *ProjectsLocationsVolumesRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesRenameCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesRenameCall)Header¶added inv0.114.0
func (c *ProjectsLocationsVolumesRenameCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsVolumesResizeCall¶added inv0.84.0
type ProjectsLocationsVolumesResizeCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesResizeCall)Context¶added inv0.84.0
func (c *ProjectsLocationsVolumesResizeCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesResizeCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesResizeCall)Do¶added inv0.84.0
func (c *ProjectsLocationsVolumesResizeCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.volumes.resize" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesResizeCall)Fields¶added inv0.84.0
func (c *ProjectsLocationsVolumesResizeCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesResizeCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesResizeCall)Header¶added inv0.84.0
func (c *ProjectsLocationsVolumesResizeCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsVolumesService¶added inv0.55.0
type ProjectsLocationsVolumesService struct {Luns *ProjectsLocationsVolumesLunsServiceSnapshots *ProjectsLocationsVolumesSnapshotsService// contains filtered or unexported fields}funcNewProjectsLocationsVolumesService¶added inv0.55.0
func NewProjectsLocationsVolumesService(s *Service) *ProjectsLocationsVolumesService
func (*ProjectsLocationsVolumesService)Evict¶added inv0.111.0
func (r *ProjectsLocationsVolumesService) Evict(namestring, evictvolumerequest *EvictVolumeRequest) *ProjectsLocationsVolumesEvictCall
Evict: Skips volume's cooloff and deletes it now. Volume must be in cooloffstate.
- name: The name of the Volume.
func (*ProjectsLocationsVolumesService)Get¶added inv0.55.0
func (r *ProjectsLocationsVolumesService) Get(namestring) *ProjectsLocationsVolumesGetCall
Get: Get details of a single storage volume.
- name: Name of the resource.
func (*ProjectsLocationsVolumesService)List¶added inv0.55.0
func (r *ProjectsLocationsVolumesService) List(parentstring) *ProjectsLocationsVolumesListCall
List: List storage volumes in a given project and location.
- parent: Parent value for ListVolumesRequest.
func (*ProjectsLocationsVolumesService)Patch¶added inv0.62.0
func (r *ProjectsLocationsVolumesService) Patch(namestring, volume *Volume) *ProjectsLocationsVolumesPatchCall
Patch: Update details of a single storage volume.
- name: Output only. The resource name of this `Volume`. Resource names areschemeless URIs that follow the conventions inhttps://cloud.google.com/apis/design/resource_names. Format:`projects/{project}/locations/{location}/volumes/{volume}`.
func (*ProjectsLocationsVolumesService)Rename¶added inv0.114.0
func (r *ProjectsLocationsVolumesService) Rename(namestring, renamevolumerequest *RenameVolumeRequest) *ProjectsLocationsVolumesRenameCall
Rename: RenameVolume sets a new name for a volume. Use with caution,previous names become immediately invalidated.
- name: The `name` field is used to identify the volume. Format:projects/{project}/locations/{location}/volumes/{volume}.
func (*ProjectsLocationsVolumesService)Resize¶added inv0.84.0
func (r *ProjectsLocationsVolumesService) Resize(volumestring, resizevolumerequest *ResizeVolumeRequest) *ProjectsLocationsVolumesResizeCall
Resize: Emergency Volume resize.
- volume: Volume to resize.
typeProjectsLocationsVolumesSnapshotsCreateCall¶added inv0.62.0
type ProjectsLocationsVolumesSnapshotsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesSnapshotsCreateCall)Context¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesSnapshotsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesSnapshotsCreateCall)Do¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot,error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.create" call.Any non-2xx status code is an error. Response headers are in either*VolumeSnapshot.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsCreateCall)Fields¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesSnapshotsCreateCall)Header¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsVolumesSnapshotsDeleteCall¶added inv0.62.0
type ProjectsLocationsVolumesSnapshotsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesSnapshotsDeleteCall)Context¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesSnapshotsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesSnapshotsDeleteCall)Do¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsDeleteCall)Fields¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesSnapshotsDeleteCall)Header¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsVolumesSnapshotsGetCall¶added inv0.62.0
type ProjectsLocationsVolumesSnapshotsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesSnapshotsGetCall)Context¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesSnapshotsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesSnapshotsGetCall)Do¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot,error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.get" call.Any non-2xx status code is an error. Response headers are in either*VolumeSnapshot.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsGetCall)Fields¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesSnapshotsGetCall)Header¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsVolumesSnapshotsGetCall)IfNoneMatch¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsVolumesSnapshotsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsVolumesSnapshotsListCall¶added inv0.62.0
type ProjectsLocationsVolumesSnapshotsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesSnapshotsListCall)Context¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesSnapshotsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesSnapshotsListCall)Do¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) Do(opts ...googleapi.CallOption) (*ListVolumeSnapshotsResponse,error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.list" call.Any non-2xx status code is an error. Response headers are in either*ListVolumeSnapshotsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsListCall)Fields¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesSnapshotsListCall)Header¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsVolumesSnapshotsListCall)IfNoneMatch¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsVolumesSnapshotsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsVolumesSnapshotsListCall)PageSize¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) PageSize(pageSizeint64) *ProjectsLocationsVolumesSnapshotsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Theserver might return fewer items than requested. If unspecified, server willpick an appropriate default.
func (*ProjectsLocationsVolumesSnapshotsListCall)PageToken¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) PageToken(pageTokenstring) *ProjectsLocationsVolumesSnapshotsListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results from the server.
func (*ProjectsLocationsVolumesSnapshotsListCall)Pages¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) Pages(ctxcontext.Context, f func(*ListVolumeSnapshotsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall¶added inv0.62.0
type ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall)Context¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Context(ctxcontext.Context) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall)Do¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.restoreVolumeSnapshot" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall)Fields¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall)Header¶added inv0.62.0
func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsVolumesSnapshotsService¶added inv0.62.0
type ProjectsLocationsVolumesSnapshotsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsVolumesSnapshotsService¶added inv0.62.0
func NewProjectsLocationsVolumesSnapshotsService(s *Service) *ProjectsLocationsVolumesSnapshotsService
func (*ProjectsLocationsVolumesSnapshotsService)Create¶added inv0.62.0
func (r *ProjectsLocationsVolumesSnapshotsService) Create(parentstring, volumesnapshot *VolumeSnapshot) *ProjectsLocationsVolumesSnapshotsCreateCall
Create: Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT ifcalled for a non-boot volume.
- parent: The volume to snapshot.
func (*ProjectsLocationsVolumesSnapshotsService)Delete¶added inv0.62.0
func (r *ProjectsLocationsVolumesSnapshotsService) Delete(namestring) *ProjectsLocationsVolumesSnapshotsDeleteCall
Delete: Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for anon-boot volume.
- name: The name of the snapshot to delete.
func (*ProjectsLocationsVolumesSnapshotsService)Get¶added inv0.62.0
func (r *ProjectsLocationsVolumesSnapshotsService) Get(namestring) *ProjectsLocationsVolumesSnapshotsGetCall
Get: Returns the specified snapshot resource. Returns INVALID_ARGUMENT ifcalled for a non-boot volume.
- name: The name of the snapshot.
func (*ProjectsLocationsVolumesSnapshotsService)List¶added inv0.62.0
func (r *ProjectsLocationsVolumesSnapshotsService) List(parentstring) *ProjectsLocationsVolumesSnapshotsListCall
List: Retrieves the list of snapshots for the specified volume. Returns aresponse with an empty list of snapshots if called for a non-boot volume.
- parent: Parent value for ListVolumesRequest.
func (*ProjectsLocationsVolumesSnapshotsService)RestoreVolumeSnapshot¶added inv0.62.0
func (r *ProjectsLocationsVolumesSnapshotsService) RestoreVolumeSnapshot(volumeSnapshotstring, restorevolumesnapshotrequest *RestoreVolumeSnapshotRequest) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
RestoreVolumeSnapshot: Uses the specified snapshot to restore its parentvolume. Returns INVALID_ARGUMENT if called for a non-boot volume.
- volumeSnapshot: Name of the snapshot which will be used to restore itsparent volume.
typeProjectsService¶
type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}funcNewProjectsService¶
func NewProjectsService(s *Service) *ProjectsService
typeProvisioningConfig¶added inv0.69.0
type ProvisioningConfig struct {// CloudConsoleUri: Output only. URI to Cloud Console UI view of this// provisioning config.CloudConsoleUristring `json:"cloudConsoleUri,omitempty"`// CustomId: Optional. The user-defined identifier of the provisioning config.CustomIdstring `json:"customId,omitempty"`// Email: Email provided to send a confirmation with provisioning config to.// Deprecated in favour of email field in request messages.Emailstring `json:"email,omitempty"`// HandoverServiceAccount: A service account to enable customers to access// instance credentials upon handover.HandoverServiceAccountstring `json:"handoverServiceAccount,omitempty"`// Instances: Instances to be created.Instances []*InstanceConfig `json:"instances,omitempty"`// Location: Optional. Location name of this ProvisioningConfig. It is optional// only for Intake UI transition period.Locationstring `json:"location,omitempty"`// Name: Output only. The system-generated name of the provisioning config.// This follows the UUID format.Namestring `json:"name,omitempty"`// Networks: Networks to be created.Networks []*NetworkConfig `json:"networks,omitempty"`// Pod: Optional. Pod name. Pod is an independent part of infrastructure.// Instance can be connected to the assets (networks, volumes, nfsshares)// allocated in the same pod only.Podstring `json:"pod,omitempty"`// State: Output only. State of ProvisioningConfig.//// Possible values:// "STATE_UNSPECIFIED" - State wasn't specified.// "DRAFT" - ProvisioningConfig is a draft and can be freely modified.// "SUBMITTED" - ProvisioningConfig was already submitted and cannot be// modified.// "PROVISIONING" - ProvisioningConfig was in the provisioning state.// Initially this state comes from the work order table in big query when SNOW// is used. Later this field can be set by the work order API.// "PROVISIONED" - ProvisioningConfig was provisioned, meaning the resources// exist.// "VALIDATED" - ProvisioningConfig was validated. A validation tool will be// run to set this state.// "CANCELLED" - ProvisioningConfig was canceled.// "FAILED" - The request is submitted for provisioning, with error return.Statestring `json:"state,omitempty"`// StatusMessage: Optional status messages associated with the FAILED state.StatusMessagestring `json:"statusMessage,omitempty"`// TicketId: A generated ticket id to track provisioning request.TicketIdstring `json:"ticketId,omitempty"`// UpdateTime: Output only. Last update timestamp.UpdateTimestring `json:"updateTime,omitempty"`// Volumes: Volumes to be created.Volumes []*VolumeConfig `json:"volumes,omitempty"`// VpcScEnabled: If true, VPC SC is enabled for the cluster.VpcScEnabledbool `json:"vpcScEnabled,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CloudConsoleUri") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CloudConsoleUri") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ProvisioningConfig: A provisioning configuration.
func (ProvisioningConfig)MarshalJSON¶added inv0.69.0
func (sProvisioningConfig) MarshalJSON() ([]byte,error)
typeProvisioningQuota¶added inv0.69.0
type ProvisioningQuota struct {// AssetType: The asset type of this provisioning quota.//// Possible values:// "ASSET_TYPE_UNSPECIFIED" - The unspecified type.// "ASSET_TYPE_SERVER" - The server asset type.// "ASSET_TYPE_STORAGE" - The storage asset type.// "ASSET_TYPE_NETWORK" - The network asset type.AssetTypestring `json:"assetType,omitempty"`// AvailableCount: The available count of the provisioning quota.AvailableCountint64 `json:"availableCount,omitempty"`// GcpService: The gcp service of the provisioning quota.GcpServicestring `json:"gcpService,omitempty"`// InstanceQuota: Instance quota.InstanceQuota *InstanceQuota `json:"instanceQuota,omitempty"`// Location: The specific location of the provisioining quota.Locationstring `json:"location,omitempty"`// Name: Output only. The name of the provisioning quota.Namestring `json:"name,omitempty"`// NetworkBandwidth: Network bandwidth, GbpsNetworkBandwidthint64 `json:"networkBandwidth,omitempty,string"`// ServerCount: Server count.ServerCountint64 `json:"serverCount,omitempty,string"`// StorageGib: Storage size (GB).StorageGibint64 `json:"storageGib,omitempty,string"`// ForceSendFields is a list of field names (e.g. "AssetType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssetType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ProvisioningQuota: A provisioning quota for a given project.
func (ProvisioningQuota)MarshalJSON¶added inv0.69.0
func (sProvisioningQuota) MarshalJSON() ([]byte,error)
typeQosPolicy¶added inv0.66.0
type QosPolicy struct {// BandwidthGbps: The bandwidth permitted by the QOS policy, in gbps.BandwidthGbpsfloat64 `json:"bandwidthGbps,omitempty"`// ForceSendFields is a list of field names (e.g. "BandwidthGbps") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BandwidthGbps") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}QosPolicy: QOS policy parameters.
func (QosPolicy)MarshalJSON¶added inv0.66.0
func (*QosPolicy)UnmarshalJSON¶added inv0.66.0
typeReimageInstanceRequest¶added inv0.178.0
type ReimageInstanceRequest struct {// KmsKeyVersion: Optional. Name of the KMS crypto key version used to encrypt// the initial passwords. The key has to have ASYMMETRIC_DECRYPT purpose.// Format is// `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/// cryptoKeyVersions/{version}`.KmsKeyVersionstring `json:"kmsKeyVersion,omitempty"`// OsImage: Required. The OS image code of the image which will be used in the// reimage operation.OsImagestring `json:"osImage,omitempty"`// SshKeys: Optional. List of SSH Keys used during reimaging an instance.SshKeys []string `json:"sshKeys,omitempty"`// ForceSendFields is a list of field names (e.g. "KmsKeyVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "KmsKeyVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ReimageInstanceRequest: Message requesting to perform reimage operation on aserver.
func (ReimageInstanceRequest)MarshalJSON¶added inv0.178.0
func (sReimageInstanceRequest) MarshalJSON() ([]byte,error)
typeRenameInstanceRequest¶added inv0.111.0
type RenameInstanceRequest struct {// NewInstanceId: Required. The new `id` of the instance.NewInstanceIdstring `json:"newInstanceId,omitempty"`// ForceSendFields is a list of field names (e.g. "NewInstanceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NewInstanceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}RenameInstanceRequest: Message requesting rename of a server.
func (RenameInstanceRequest)MarshalJSON¶added inv0.111.0
func (sRenameInstanceRequest) MarshalJSON() ([]byte,error)
typeRenameNetworkRequest¶added inv0.114.0
type RenameNetworkRequest struct {// NewNetworkId: Required. The new `id` of the network.NewNetworkIdstring `json:"newNetworkId,omitempty"`// ForceSendFields is a list of field names (e.g. "NewNetworkId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NewNetworkId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}RenameNetworkRequest: Message requesting rename of a server.
func (RenameNetworkRequest)MarshalJSON¶added inv0.114.0
func (sRenameNetworkRequest) MarshalJSON() ([]byte,error)
typeRenameNfsShareRequest¶added inv0.114.0
type RenameNfsShareRequest struct {// NewNfsshareId: Required. The new `id` of the nfsshare.NewNfsshareIdstring `json:"newNfsshareId,omitempty"`// ForceSendFields is a list of field names (e.g. "NewNfsshareId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NewNfsshareId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}RenameNfsShareRequest: Message requesting rename of a server.
func (RenameNfsShareRequest)MarshalJSON¶added inv0.114.0
func (sRenameNfsShareRequest) MarshalJSON() ([]byte,error)
typeRenameVolumeRequest¶added inv0.114.0
type RenameVolumeRequest struct {// NewVolumeId: Required. The new `id` of the volume.NewVolumeIdstring `json:"newVolumeId,omitempty"`// ForceSendFields is a list of field names (e.g. "NewVolumeId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NewVolumeId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}RenameVolumeRequest: Message requesting rename of a server.
func (RenameVolumeRequest)MarshalJSON¶added inv0.114.0
func (sRenameVolumeRequest) MarshalJSON() ([]byte,error)
typeResetInstanceRequest¶added inv0.62.0
type ResetInstanceRequest struct {}ResetInstanceRequest: Message requesting to reset a server.
typeResetInstanceResponse¶added inv0.125.0
type ResetInstanceResponse struct {}ResetInstanceResponse: Response message from resetting a server.
typeResizeVolumeRequest¶added inv0.84.0
type ResizeVolumeRequest struct {// SizeGib: New Volume size, in GiB.SizeGibint64 `json:"sizeGib,omitempty,string"`// ForceSendFields is a list of field names (e.g. "SizeGib") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SizeGib") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ResizeVolumeRequest: Request for emergency resize Volume.
func (ResizeVolumeRequest)MarshalJSON¶added inv0.84.0
func (sResizeVolumeRequest) MarshalJSON() ([]byte,error)
typeRestoreVolumeSnapshotRequest¶added inv0.62.0
type RestoreVolumeSnapshotRequest struct {}RestoreVolumeSnapshotRequest: Message for restoring a volume snapshot.
typeSSHKey¶added inv0.98.0
type SSHKey struct {// Name: Output only. The name of this SSH key. Currently, the only valid value// for the location is "global".Namestring `json:"name,omitempty"`// PublicKey: The public SSH key. This must be in OpenSSH .authorized_keys// format.PublicKeystring `json:"publicKey,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SSHKey: An SSH key, used for authorizing with the interactive serial consolefeature.
func (SSHKey)MarshalJSON¶added inv0.98.0
typeServerNetworkTemplate¶added inv0.75.0
type ServerNetworkTemplate struct {// ApplicableInstanceTypes: Instance types this template is applicable to.ApplicableInstanceTypes []string `json:"applicableInstanceTypes,omitempty"`// LogicalInterfaces: Logical interfaces.LogicalInterfaces []*GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface `json:"logicalInterfaces,omitempty"`// Name: Output only. Template's unique name. The full resource name follows// the pattern:// `projects/{project}/locations/{location}/serverNetworkTemplate/{server_networ// k_template}` Generally, the {server_network_template} follows the syntax of// "bond" or "nic".Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "ApplicableInstanceTypes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApplicableInstanceTypes") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ServerNetworkTemplate: Network template.
func (ServerNetworkTemplate)MarshalJSON¶added inv0.75.0
func (sServerNetworkTemplate) MarshalJSON() ([]byte,error)
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
NewService creates a new Service.
typeSnapshotReservationDetail¶added inv0.55.0
type SnapshotReservationDetail struct {// ReservedSpaceGib: The space on this storage volume reserved for snapshots,// shown in GiB.ReservedSpaceGibint64 `json:"reservedSpaceGib,omitempty,string"`// ReservedSpacePercent: Percent of the total Volume size reserved for snapshot// copies. Enabling snapshots requires reserving 20% or more of the storage// volume space for snapshots. Maximum reserved space for snapshots is 40%.// Setting this field will effectively set snapshot_enabled to true.ReservedSpacePercentint64 `json:"reservedSpacePercent,omitempty"`// ReservedSpaceRemainingGib: The amount, in GiB, of available space in this// storage volume's reserved snapshot space.ReservedSpaceRemainingGibint64 `json:"reservedSpaceRemainingGib,omitempty,string"`// ReservedSpaceUsedPercent: The percent of snapshot space on this storage// volume actually being used by the snapshot copies. This value might be// higher than 100% if the snapshot copies have overflowed into the data// portion of the storage volume.ReservedSpaceUsedPercentint64 `json:"reservedSpaceUsedPercent,omitempty"`// ForceSendFields is a list of field names (e.g. "ReservedSpaceGib") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ReservedSpaceGib") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SnapshotReservationDetail: Details about snapshot space reservation andusage on the storage volume.
func (SnapshotReservationDetail)MarshalJSON¶added inv0.55.0
func (sSnapshotReservationDetail) MarshalJSON() ([]byte,error)
typeStartInstanceRequest¶added inv0.69.0
type StartInstanceRequest struct {}StartInstanceRequest: Message requesting to start a server.
typeStartInstanceResponse¶added inv0.125.0
type StartInstanceResponse struct {}StartInstanceResponse: Response message from starting a server.
typeStatus¶
type Status struct {// Code: The status code, which should be an enum value of google.rpc.Code.Codeint64 `json:"code,omitempty"`// Details: A list of messages that carry the error details. There is a common// set of message types for APIs to use.Details []googleapi.RawMessage `json:"details,omitempty"`// Message: A developer-facing error message, which should be in English. Any// user-facing error message should be localized and sent in the// google.rpc.Status.details field, or localized by the client.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Status: The `Status` type defines a logical error model that is suitable fordifferent programming environments, including REST APIs and RPC APIs. It isused by gRPC (https://github.com/grpc). Each `Status` message contains threepieces of data: error code, error message, and error details. You can findout more about this error model and how to work with it in the API DesignGuide (https://cloud.google.com/apis/design/errors).
func (Status)MarshalJSON¶
typeStopInstanceRequest¶added inv0.76.0
type StopInstanceRequest struct {}StopInstanceRequest: Message requesting to stop a server.
typeStopInstanceResponse¶added inv0.125.0
type StopInstanceResponse struct {}StopInstanceResponse: Response message from stopping a server.
typeSubmitProvisioningConfigRequest¶added inv0.69.0
type SubmitProvisioningConfigRequest struct {// Email: Optional. Email provided to send a confirmation with provisioning// config to.Emailstring `json:"email,omitempty"`// ProvisioningConfig: Required. The ProvisioningConfig to create.ProvisioningConfig *ProvisioningConfig `json:"provisioningConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "Email") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Email") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SubmitProvisioningConfigRequest: Request for SubmitProvisioningConfig.
func (SubmitProvisioningConfigRequest)MarshalJSON¶added inv0.69.0
func (sSubmitProvisioningConfigRequest) MarshalJSON() ([]byte,error)
typeSubmitProvisioningConfigResponse¶added inv0.69.0
type SubmitProvisioningConfigResponse struct {// ProvisioningConfig: The submitted provisioning config.ProvisioningConfig *ProvisioningConfig `json:"provisioningConfig,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ProvisioningConfig") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProvisioningConfig") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SubmitProvisioningConfigResponse: Response for SubmitProvisioningConfig.
func (SubmitProvisioningConfigResponse)MarshalJSON¶added inv0.69.0
func (sSubmitProvisioningConfigResponse) MarshalJSON() ([]byte,error)
typeUserAccount¶added inv0.154.0
type UserAccount struct {// EncryptedPassword: Encrypted initial password value.EncryptedPasswordstring `json:"encryptedPassword,omitempty"`// KmsKeyVersion: KMS CryptoKey Version used to encrypt the password.KmsKeyVersionstring `json:"kmsKeyVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "EncryptedPassword") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EncryptedPassword") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}UserAccount: User account provisioned for the customer.
func (UserAccount)MarshalJSON¶added inv0.154.0
func (sUserAccount) MarshalJSON() ([]byte,error)
typeVRF¶added inv0.60.0
type VRF struct {// Name: The name of the VRF.Namestring `json:"name,omitempty"`// QosPolicy: The QOS policy applied to this VRF. The value is only meaningful// when all the vlan attachments have the same QoS. This field should not be// used for new integrations, use vlan attachment level qos instead. The field// is left for backward-compatibility.QosPolicy *QosPolicy `json:"qosPolicy,omitempty"`// State: The possible state of VRF.//// Possible values:// "STATE_UNSPECIFIED" - The unspecified state.// "PROVISIONING" - The vrf is provisioning.// "PROVISIONED" - The vrf is provisioned.Statestring `json:"state,omitempty"`// VlanAttachments: The list of VLAN attachments for the VRF.VlanAttachments []*VlanAttachment `json:"vlanAttachments,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VRF: A network VRF.
func (VRF)MarshalJSON¶added inv0.60.0
typeVlanAttachment¶added inv0.66.0
type VlanAttachment struct {// Id: Immutable. The identifier of the attachment within vrf.Idstring `json:"id,omitempty"`// InterconnectAttachment: Optional. The name of the vlan attachment within// vrf. This is of the form// projects/{project_number}/regions/{region}/interconnectAttachments/{interconn// ect_attachment}InterconnectAttachmentstring `json:"interconnectAttachment,omitempty"`// PairingKey: Input only. Pairing key.PairingKeystring `json:"pairingKey,omitempty"`// PeerIp: The peer IP of the attachment.PeerIpstring `json:"peerIp,omitempty"`// PeerVlanId: The peer vlan ID of the attachment.PeerVlanIdint64 `json:"peerVlanId,omitempty,string"`// QosPolicy: The QOS policy applied to this VLAN attachment. This value should// be preferred to using qos at vrf level.QosPolicy *QosPolicy `json:"qosPolicy,omitempty"`// RouterIp: The router IP of the attachment.RouterIpstring `json:"routerIp,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VlanAttachment: VLAN attachment details.
func (VlanAttachment)MarshalJSON¶added inv0.66.0
func (sVlanAttachment) MarshalJSON() ([]byte,error)
typeVolume¶added inv0.55.0
type Volume struct {// Attached: Output only. Is the Volume attached at at least one instance. This// field is a lightweight counterpart of `instances` field. It is filled in// List responses as well.Attachedbool `json:"attached,omitempty"`// AutoGrownSizeGib: The size, in GiB, that this storage volume has expanded as// a result of an auto grow policy. In the absence of auto-grow, the value is// 0.AutoGrownSizeGibint64 `json:"autoGrownSizeGib,omitempty,string"`// BootVolume: Output only. Whether this volume is a boot volume. A boot volume// is one which contains a boot LUN.BootVolumebool `json:"bootVolume,omitempty"`// CurrentSizeGib: The current size of this storage volume, in GiB, including// space reserved for snapshots. This size might be different than the// requested size if the storage volume has been configured with auto grow or// auto shrink.CurrentSizeGibint64 `json:"currentSizeGib,omitempty,string"`// EmergencySizeGib: Additional emergency size that was requested for this// Volume, in GiB. current_size_gib includes this value.EmergencySizeGibint64 `json:"emergencySizeGib,omitempty,string"`// ExpireTime: Output only. Time after which volume will be fully deleted. It// is filled only for volumes in COOLOFF state.ExpireTimestring `json:"expireTime,omitempty"`// Id: An identifier for the `Volume`, generated by the backend.Idstring `json:"id,omitempty"`// Instances: Output only. Instances this Volume is attached to. This field is// set only in Get requests.Instances []string `json:"instances,omitempty"`// Labels: Labels as key value pairs.Labels map[string]string `json:"labels,omitempty"`// MaxSizeGib: Maximum size volume can be expanded to in case of evergency, in// GiB.MaxSizeGibint64 `json:"maxSizeGib,omitempty,string"`// Name: Output only. The resource name of this `Volume`. Resource names are// schemeless URIs that follow the conventions in//https://cloud.google.com/apis/design/resource_names. Format:// `projects/{project}/locations/{location}/volumes/{volume}`Namestring `json:"name,omitempty"`// Notes: Input only. User-specified notes for new Volume. Used to provision// Volumes that require manual intervention.Notesstring `json:"notes,omitempty"`// OriginallyRequestedSizeGib: Originally requested size, in GiB.OriginallyRequestedSizeGibint64 `json:"originallyRequestedSizeGib,omitempty,string"`// PerformanceTier: Immutable. Performance tier of the Volume. Default is// SHARED.//// Possible values:// "VOLUME_PERFORMANCE_TIER_UNSPECIFIED" - Value is not specified.// "VOLUME_PERFORMANCE_TIER_SHARED" - Regular volumes, shared aggregates.// "VOLUME_PERFORMANCE_TIER_ASSIGNED" - Assigned aggregates.// "VOLUME_PERFORMANCE_TIER_HT" - High throughput aggregates.// "VOLUME_PERFORMANCE_TIER_QOS2_PERFORMANCE" - QoS 2.0 high performance// storage.PerformanceTierstring `json:"performanceTier,omitempty"`// Pod: Immutable. Pod name. Pod is an independent part of infrastructure.// Volume can only be connected to the instances allocated in the same pod.Podstring `json:"pod,omitempty"`// Protocol: Output only. Storage protocol for the Volume.//// Possible values:// "PROTOCOL_UNSPECIFIED" - Value is not specified.// "FIBRE_CHANNEL" - Fibre Channel protocol.// "NFS" - NFS protocol means Volume is a NFS Share volume. Such volumes// cannot be manipulated via Volumes API.Protocolstring `json:"protocol,omitempty"`// RemainingSpaceGib: The space remaining in the storage volume for new LUNs,// in GiB, excluding space reserved for snapshots.RemainingSpaceGibint64 `json:"remainingSpaceGib,omitempty,string"`// RequestedSizeGib: The requested size of this storage volume, in GiB.RequestedSizeGibint64 `json:"requestedSizeGib,omitempty,string"`// SnapshotAutoDeleteBehavior: The behavior to use when snapshot reserved space// is full.//// Possible values:// "SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED" - The unspecified behavior.// "DISABLED" - Don't delete any snapshots. This disables new snapshot// creation, as long as the snapshot reserved space is full.// "OLDEST_FIRST" - Delete the oldest snapshots first.// "NEWEST_FIRST" - Delete the newest snapshots first.SnapshotAutoDeleteBehaviorstring `json:"snapshotAutoDeleteBehavior,omitempty"`// SnapshotEnabled: Whether snapshots are enabled.SnapshotEnabledbool `json:"snapshotEnabled,omitempty"`// SnapshotReservationDetail: Details about snapshot space reservation and// usage on the storage volume.SnapshotReservationDetail *SnapshotReservationDetail `json:"snapshotReservationDetail,omitempty"`// State: The state of this storage volume.//// Possible values:// "STATE_UNSPECIFIED" - The storage volume is in an unknown state.// "CREATING" - The storage volume is being created.// "READY" - The storage volume is ready for use.// "DELETING" - The storage volume has been requested to be deleted.// "UPDATING" - The storage volume is being updated.// "COOL_OFF" - The storage volume is in cool off state. It will be deleted// after `expire_time`.Statestring `json:"state,omitempty"`// StorageType: The storage type for this volume.//// Possible values:// "STORAGE_TYPE_UNSPECIFIED" - The storage type for this volume is unknown.// "SSD" - The storage type for this volume is SSD.// "HDD" - This storage type for this volume is HDD.StorageTypestring `json:"storageType,omitempty"`// WorkloadProfile: The workload profile for the volume.//// Possible values:// "WORKLOAD_PROFILE_UNSPECIFIED" - The workload profile is in an unknown// state.// "GENERIC" - The workload profile is generic.// "HANA" - The workload profile is hana.WorkloadProfilestring `json:"workloadProfile,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Attached") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Attached") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Volume: A storage volume.
func (Volume)MarshalJSON¶added inv0.55.0
typeVolumeConfig¶added inv0.69.0
type VolumeConfig struct {// GcpService: The GCP service of the storage volume. Available gcp_service are// inhttps://cloud.google.com/bare-metal/docs/bms-planning.GcpServicestring `json:"gcpService,omitempty"`// Id: A transient unique identifier to identify a volume within an// ProvisioningConfig request.Idstring `json:"id,omitempty"`// LunRanges: LUN ranges to be configured. Set only when protocol is// PROTOCOL_FC.LunRanges []*LunRange `json:"lunRanges,omitempty"`// MachineIds: Machine ids connected to this volume. Set only when protocol is// PROTOCOL_FC.MachineIds []string `json:"machineIds,omitempty"`// Name: Output only. The name of the volume config.Namestring `json:"name,omitempty"`// NfsExports: NFS exports. Set only when protocol is PROTOCOL_NFS.NfsExports []*NfsExport `json:"nfsExports,omitempty"`// PerformanceTier: Performance tier of the Volume. Default is SHARED.//// Possible values:// "VOLUME_PERFORMANCE_TIER_UNSPECIFIED" - Value is not specified.// "VOLUME_PERFORMANCE_TIER_SHARED" - Regular volumes, shared aggregates.// "VOLUME_PERFORMANCE_TIER_ASSIGNED" - Assigned aggregates.// "VOLUME_PERFORMANCE_TIER_HT" - High throughput aggregates.// "VOLUME_PERFORMANCE_TIER_QOS2_PERFORMANCE" - QoS 2.0 high performance// storage.PerformanceTierstring `json:"performanceTier,omitempty"`// Protocol: Volume protocol.//// Possible values:// "PROTOCOL_UNSPECIFIED" - Unspecified value.// "PROTOCOL_FC" - Fibre channel.// "PROTOCOL_NFS" - Network file system.Protocolstring `json:"protocol,omitempty"`// SizeGb: The requested size of this volume, in GB.SizeGbint64 `json:"sizeGb,omitempty"`// SnapshotsEnabled: Whether snapshots should be enabled.SnapshotsEnabledbool `json:"snapshotsEnabled,omitempty"`// Type: The type of this Volume.//// Possible values:// "TYPE_UNSPECIFIED" - The unspecified type.// "FLASH" - This Volume is on flash.// "DISK" - This Volume is on disk.Typestring `json:"type,omitempty"`// UserNote: User note field, it can be used by customers to add additional// information for the BMS Ops team .UserNotestring `json:"userNote,omitempty"`// ForceSendFields is a list of field names (e.g. "GcpService") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GcpService") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VolumeConfig: Configuration parameters for a new volume.
func (VolumeConfig)MarshalJSON¶added inv0.69.0
func (sVolumeConfig) MarshalJSON() ([]byte,error)
typeVolumeSnapshot¶added inv0.62.0
type VolumeSnapshot struct {// CreateTime: Output only. The creation time of the snapshot.CreateTimestring `json:"createTime,omitempty"`// Description: The description of the snapshot.Descriptionstring `json:"description,omitempty"`// Id: Output only. An identifier for the snapshot, generated by the backend.Idstring `json:"id,omitempty"`// Name: The name of the snapshot.Namestring `json:"name,omitempty"`// StorageVolume: Output only. The name of the volume which this snapshot// belongs to.StorageVolumestring `json:"storageVolume,omitempty"`// Type: Output only. The type of the snapshot which indicates whether it was// scheduled or manual/ad-hoc.//// Possible values:// "SNAPSHOT_TYPE_UNSPECIFIED" - Type is not specified.// "AD_HOC" - Snapshot was taken manually by user.// "SCHEDULED" - Snapshot was taken automatically as a part of a snapshot// schedule.Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VolumeSnapshot: A snapshot of a volume. Only boot volumes can havesnapshots.
func (VolumeSnapshot)MarshalJSON¶added inv0.62.0
func (sVolumeSnapshot) MarshalJSON() ([]byte,error)