Documentation ¶
Overview ¶
Package baremetalsolution provides access to the Bare Metal Solution API.
For product documentation, see: https://cloud.google.com/bare-metal
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 for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use 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 OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) baremetalsolutionService, err := baremetalsolution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type AllowedClient
- type DetachLunRequest
- type FetchInstanceProvisioningSettingsResponse
- 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 ListProvisioningQuotasResponse
- type ListVolumesResponse
- type Location
- type LogicalNetworkInterface
- type Lun
- type LunRange
- type Network
- type NetworkAddress
- type NetworkAddressReservation
- type NetworkConfig
- type NetworkUsage
- type NfsExport
- type NfsShare
- type OSImage
- type Operation
- type OperationMetadata
- 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 ProjectsLocationsInstanceProvisioningSettingsFetchCall
- func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Context(ctx context.Context) *ProjectsLocationsInstanceProvisioningSettingsFetchCall
- func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Do(opts ...googleapi.CallOption) (*FetchInstanceProvisioningSettingsResponse, error)
- func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstanceProvisioningSettingsFetchCall
- func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Header() http.Header
- func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstanceProvisioningSettingsFetchCall
- type ProjectsLocationsInstanceProvisioningSettingsService
- type ProjectsLocationsInstancesCreateCall
- func (c *ProjectsLocationsInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsInstancesCreateCall
- func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesCreateCall
- func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header
- 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 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 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 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) Create(parent string, instance *Instance) *ProjectsLocationsInstancesCreateCall
- func (r *ProjectsLocationsInstancesService) DetachLun(instance string, detachlunrequest *DetachLunRequest) *ProjectsLocationsInstancesDetachLunCall
- func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall
- func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall
- func (r *ProjectsLocationsInstancesService) Patch(name string, instance *Instance) *ProjectsLocationsInstancesPatchCall
- 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) 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 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
- 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 ProjectsLocationsNfsSharesService
- func (r *ProjectsLocationsNfsSharesService) Get(name string) *ProjectsLocationsNfsSharesGetCall
- func (r *ProjectsLocationsNfsSharesService) List(parent string) *ProjectsLocationsNfsSharesListCall
- func (r *ProjectsLocationsNfsSharesService) Patch(name string, nfsshare *NfsShare) *ProjectsLocationsNfsSharesPatchCall
- 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 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 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 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
- 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 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) Get(name string) *ProjectsLocationsVolumesGetCall
- func (r *ProjectsLocationsVolumesService) List(parent string) *ProjectsLocationsVolumesListCall
- func (r *ProjectsLocationsVolumesService) Patch(name string, volume *Volume) *ProjectsLocationsVolumesPatchCall
- func (r *ProjectsLocationsVolumesService) Resize(volume string, resizevolumerequest *ResizeVolumeRequest) *ProjectsLocationsVolumesResizeCall
- type ProjectsService
- type ProvisioningConfig
- type ProvisioningQuota
- type QosPolicy
- type ResetInstanceRequest
- type ResizeVolumeRequest
- type ServerNetworkTemplate
- type Service
- type SnapshotReservationDetail
- type StartInstanceRequest
- type Status
- type StopInstanceRequest
- type SubmitProvisioningConfigRequest
- type SubmitProvisioningConfigResponse
- type VRF
- type VlanAttachment
- type Volume
- type VolumeConfig
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 ¶
type AllowedClient ¶ added in v0.69.0
type AllowedClient struct { // AllowDev: Allow dev flag. Which controls whether to allow creation of // devices. AllowDev bool `json:"allowDev,omitempty"` // AllowSuid: Allow the setuid flag. AllowSuid bool `json:"allowSuid,omitempty"` // AllowedClientsCidr: The subnet of IP addresses permitted to access // the share. AllowedClientsCidr string `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. MountPermissions string `json:"mountPermissions,omitempty"` // Network: The network the access point sits on. Network string `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" NfsPath string `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. NoRootSquash bool `json:"noRootSquash,omitempty"` ShareIp string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AllowedClient: Represents an 'access point' for the share.
func (*AllowedClient) MarshalJSON ¶ added in v0.69.0
func (s *AllowedClient) MarshalJSON() ([]byte, error)
type DetachLunRequest ¶ added in v0.79.0
type DetachLunRequest struct { // Lun: Required. Name of the Lun to detach. Lun string `json:"lun,omitempty"` // SkipReboot: If true, performs lun unmapping without instance reboot. SkipReboot bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DetachLunRequest: Message for detach specific LUN from an Instance.
func (*DetachLunRequest) MarshalJSON ¶ added in v0.79.0
func (s *DetachLunRequest) MarshalJSON() ([]byte, error)
type FetchInstanceProvisioningSettingsResponse ¶ added in v0.75.0
type FetchInstanceProvisioningSettingsResponse struct { // Images: The OS images available. Images []*OSImage `json:"images,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Images") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Images") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FetchInstanceProvisioningSettingsResponse: Response with all provisioning settings.
func (*FetchInstanceProvisioningSettingsResponse) MarshalJSON ¶ added in v0.75.0
func (s *FetchInstanceProvisioningSettingsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudBaremetalsolutionV2LogicalInterface ¶ added in v0.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. InterfaceIndex int64 `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. Name string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBaremetalsolutionV2LogicalInterface: Each logical interface represents a logical abstraction of the underlying physical interface (for eg. bond, nic) of the instance. Each logical interface can effectively map to multiple network-IP pairs and still be mapped to one underlying physical interface.
func (*GoogleCloudBaremetalsolutionV2LogicalInterface) MarshalJSON ¶ added in v0.82.0
func (s *GoogleCloudBaremetalsolutionV2LogicalInterface) MarshalJSON() ([]byte, error)
type GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface ¶ added in v0.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. Name string `json:"name,omitempty"` // Required: If true, interface must have network connected. Required bool `json:"required,omitempty"` // Type: Interface type. // // Possible values: // "INTERFACE_TYPE_UNSPECIFIED" - Unspecified value. // "BOND" - Bond interface type. // "NIC" - NIC interface type. Type string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface: Logical interface.
func (*GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface) MarshalJSON ¶ added in v0.82.0
func (s *GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface) MarshalJSON() ([]byte, error)
type Instance ¶
type Instance struct { // CreateTime: Output only. Create a time stamp. CreateTime string `json:"createTime,omitempty"` // HyperthreadingEnabled: True if you enable hyperthreading for the // server, otherwise false. The default value is false. HyperthreadingEnabled bool `json:"hyperthreadingEnabled,omitempty"` // Id: Output only. An identifier for the `Instance`, generated by the // backend. Id string `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. InteractiveSerialConsoleEnabled bool `json:"interactiveSerialConsoleEnabled,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. LoginInfo string `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) MachineType string `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}` Name string `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". NetworkTemplate string `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. OsImage string `json:"osImage,omitempty"` // Pod: Immutable. Pod name. Pod is an independent part of // infrastructure. Instance can be connected to the assets (networks, // volumes) allocated in the same pod only. Pod string `json:"pod,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. State string `json:"state,omitempty"` // UpdateTime: Output only. Update a time stamp. UpdateTime string `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"` // 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Instance: A server.
func (*Instance) MarshalJSON ¶
type InstanceConfig ¶ added in v0.69.0
type InstanceConfig struct { // AccountNetworksEnabled: If true networks can be from different // projects of the same vendor account. AccountNetworksEnabled bool `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. Hyperthreading bool `json:"hyperthreading,omitempty"` // Id: A transient unique identifier to idenfity an instance within an // ProvisioningConfig request. Id string `json:"id,omitempty"` // InstanceType: Instance type. Available types // (https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations) InstanceType string `json:"instanceType,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: Output only. The name of the instance config. Name string `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. NetworkConfig string `json:"networkConfig,omitempty"` // NetworkTemplate: Server network template name. Filled if // InstanceConfig.multivlan_config is true. NetworkTemplate string `json:"networkTemplate,omitempty"` // OsImage: OS image to initialize the instance. Available images // (https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations) OsImage string `json:"osImage,omitempty"` // PrivateNetwork: Private network address, if any. Filled if // InstanceConfig.multivlan_config is false. PrivateNetwork *NetworkAddress `json:"privateNetwork,omitempty"` // UserNote: User note field, it can be used by customers to add // additional information for the BMS Ops team . UserNote string `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. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
InstanceConfig: Configuration parameters for a new instance.
func (*InstanceConfig) MarshalJSON ¶ added in v0.69.0
func (s *InstanceConfig) MarshalJSON() ([]byte, error)
type InstanceQuota ¶ added in v0.69.0
type InstanceQuota struct { // AvailableMachineCount: Number of machines than can be created for the // given location and instance_type. AvailableMachineCount int64 `json:"availableMachineCount,omitempty"` // GcpService: The gcp service of the provisioning quota. GcpService string `json:"gcpService,omitempty"` // InstanceType: Instance type. Deprecated: use gcp_service. InstanceType string `json:"instanceType,omitempty"` // Location: Location where the quota applies. Location string `json:"location,omitempty"` // Name: Output only. The name of the instance quota. Name string `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. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
InstanceQuota: A resource budget.
func (*InstanceQuota) MarshalJSON ¶ added in v0.69.0
func (s *InstanceQuota) MarshalJSON() ([]byte, error)
type IntakeVlanAttachment ¶ added in v0.69.0
type IntakeVlanAttachment struct { // Id: Identifier of the VLAN attachment. Id string `json:"id,omitempty"` // PairingKey: Attachment pairing key. PairingKey string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
IntakeVlanAttachment: A GCP vlan attachment.
func (*IntakeVlanAttachment) MarshalJSON ¶ added in v0.69.0
func (s *IntakeVlanAttachment) MarshalJSON() ([]byte, error)
type ListInstancesResponse ¶
type ListInstancesResponse struct { // Instances: The list of servers. Instances []*Instance `json:"instances,omitempty"` // NextPageToken: A token identifying a page of results from the server. NextPageToken string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListInstancesResponse: Response message for the list of servers.
func (*ListInstancesResponse) MarshalJSON ¶
func (s *ListInstancesResponse) MarshalJSON() ([]byte, error)
type ListLocationsResponse ¶
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. NextPageToken string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListLocationsResponse: The response message for Locations.ListLocations.
func (*ListLocationsResponse) MarshalJSON ¶
func (s *ListLocationsResponse) MarshalJSON() ([]byte, error)
type ListLunsResponse ¶ added in v0.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. NextPageToken string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListLunsResponse: Response message containing the list of storage volume luns.
func (*ListLunsResponse) MarshalJSON ¶ added in v0.60.0
func (s *ListLunsResponse) MarshalJSON() ([]byte, error)
type ListNetworkUsageResponse ¶ added in v0.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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListNetworkUsageResponse: Response with Networks with IPs
func (*ListNetworkUsageResponse) MarshalJSON ¶ added in v0.69.0
func (s *ListNetworkUsageResponse) MarshalJSON() ([]byte, error)
type ListNetworksResponse ¶ added in v0.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. NextPageToken string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListNetworksResponse: Response message containing the list of networks.
func (*ListNetworksResponse) MarshalJSON ¶ added in v0.62.0
func (s *ListNetworksResponse) MarshalJSON() ([]byte, error)
type ListNfsSharesResponse ¶ added in v0.69.0
type ListNfsSharesResponse struct { string `json:"nextPageToken,omitempty"` NfsShares []*NfsShare `json:"nfsShares,omitempty"` Unreachable []string `json:"unreachable,omitempty"` // server. googleapi.ServerResponse `json:"-"` // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }NextPageToken
ListNfsSharesResponse: Response message containing the list of NFS shares.
func (*ListNfsSharesResponse) MarshalJSON ¶ added in v0.69.0
func (s *ListNfsSharesResponse) MarshalJSON() ([]byte, error)
type ListProvisioningQuotasResponse ¶ added in v0.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. NextPageToken string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListProvisioningQuotasResponse: Response message for the list of provisioning quotas.
func (*ListProvisioningQuotasResponse) MarshalJSON ¶ added in v0.69.0
func (s *ListProvisioningQuotasResponse) MarshalJSON() ([]byte, error)
type ListVolumesResponse ¶ added in v0.55.0
type ListVolumesResponse struct { // NextPageToken: A token identifying a page of results from the server. NextPageToken string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListVolumesResponse: Response message containing the list of storage volumes.
func (*ListVolumesResponse) MarshalJSON ¶ added in v0.55.0
func (s *ListVolumesResponse) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct { // DisplayName: The friendly name for this location, typically a nearby // city name. For example, "Tokyo". DisplayName string `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". LocationId string `json:"locationId,omitempty"` // Metadata: Service-specific metadata. For example the available // capacity at the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Location: A resource that represents Google Cloud Platform location.
func (*Location) MarshalJSON ¶
type LogicalNetworkInterface ¶ added in v0.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. DefaultGateway bool `json:"defaultGateway,omitempty"` // Id: An identifier for the `Network`, generated by the backend. Id string `json:"id,omitempty"` // IpAddress: IP address in the network IpAddress string `json:"ipAddress,omitempty"` // Network: Name of the network Network string `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. NetworkType string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
LogicalNetworkInterface: Each logical network interface is effectively a network and IP pair.
func (*LogicalNetworkInterface) MarshalJSON ¶ added in v0.82.0
func (s *LogicalNetworkInterface) MarshalJSON() ([]byte, error)
type Lun ¶
type Lun struct { // BootLun: Display if this LUN is a boot LUN. BootLun bool `json:"bootLun,omitempty"` // Id: An identifier for the LUN, generated by the backend. Id string `json:"id,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. MultiprotocolType string `json:"multiprotocolType,omitempty"` // Name: Output only. The name of the LUN. Name string `json:"name,omitempty"` // physical servers. Shareable bool `json:"shareable,omitempty"` // SizeGb: The size of this LUN, in gigabytes. SizeGb int64 `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. State string `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. StorageType string `json:"storageType,omitempty"` // StorageVolume: Display the storage volume for this LUN. StorageVolume string `json:"storageVolume,omitempty"` // Wwid: The WWID for this LUN. Wwid string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Lun: A storage volume logical unit number (LUN).
func (*Lun) MarshalJSON ¶
type LunRange ¶ added in v0.69.0
type LunRange struct { // Quantity: Number of LUNs to create. Quantity int64 `json:"quantity,omitempty"` // SizeGb: The requested size of each LUN, in GB. SizeGb int64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LunRange: A LUN(Logical Unit Number) range.
func (*LunRange) MarshalJSON ¶ added in v0.69.0
type Network ¶
type Network struct { // Cidr: The cidr of the Network. Cidr string `json:"cidr,omitempty"` // Id: An identifier for the `Network`, generated by the backend. Id string `json:"id,omitempty"` // IpAddress: IP address configured. IpAddress string `json:"ipAddress,omitempty"` // Labels: Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` // MacAddress: List of physical interfaces. MacAddress []string `json:"macAddress,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}` Name string `json:"name,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). ServicesCidr string `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. State string `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. Type string `json:"type,omitempty"` // VlanId: The vlan id of the Network. VlanId string `json:"vlanId,omitempty"` // Vrf: The vrf for the Network. Vrf *VRF `json:"vrf,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Network: A Network.
func (*Network) MarshalJSON ¶
type NetworkAddress ¶ added in v0.69.0
type NetworkAddress struct { // Address: IPv4 address to be assigned to the server. Address string `json:"address,omitempty"` // ExistingNetworkId: Name of the existing network to use. ExistingNetworkId string `json:"existingNetworkId,omitempty"` // NetworkId: Id of the network to use, within the same // ProvisioningConfig request. NetworkId string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkAddress: A network.
func (*NetworkAddress) MarshalJSON ¶ added in v0.69.0
func (s *NetworkAddress) MarshalJSON() ([]byte, error)
type NetworkAddressReservation ¶ added in v0.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. EndAddress string `json:"endAddress,omitempty"` // Note: A note about this reservation, intended for human consumption. Note string `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. StartAddress string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkAddressReservation: A reservation of one or more addresses in a network.
func (*NetworkAddressReservation) MarshalJSON ¶ added in v0.79.0
func (s *NetworkAddressReservation) MarshalJSON() ([]byte, error)
type NetworkConfig ¶ added in v0.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. Bandwidth string `json:"bandwidth,omitempty"` // Cidr: CIDR range of the network. Cidr string `json:"cidr,omitempty"` // GcpService: The GCP service of the network. Available gcp_service are // in https://cloud.google.com/bare-metal/docs/bms-planning. GcpService string `json:"gcpService,omitempty"` // Id: A transient unique identifier to identify a volume within an // ProvisioningConfig request. Id string `json:"id,omitempty"` // JumboFramesEnabled: The JumboFramesEnabled option for customer to // set. JumboFramesEnabled bool `json:"jumboFramesEnabled,omitempty"` // Name: Output only. The name of the network config. Name string `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. ServiceCidr string `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. Type string `json:"type,omitempty"` // UserNote: User note field, it can be used by customers to add // additional information for the BMS Ops team . UserNote string `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). VlanAttachments []*IntakeVlanAttachment `json:"vlanAttachments,omitempty"` // VlanSameProject: Whether the VLAN attachment pair is located in the // same project. VlanSameProject bool `json:"vlanSameProject,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkConfig: Configuration parameters for a new network.
func (*NetworkConfig) MarshalJSON ¶ added in v0.69.0
func (s *NetworkConfig) MarshalJSON() ([]byte, error)
type NetworkUsage ¶ added in v0.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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkUsage: Network with all used IP addresses.
func (*NetworkUsage) MarshalJSON ¶ added in v0.69.0
func (s *NetworkUsage) MarshalJSON() ([]byte, error)
type NfsExport ¶ added in v0.69.0
type NfsExport struct { // AllowDev: Allow dev flag in NfsShare AllowedClientsRequest. AllowDev bool `json:"allowDev,omitempty"` // AllowSuid: Allow the setuid flag. AllowSuid bool `json:"allowSuid,omitempty"` // Cidr: A CIDR range. Cidr string `json:"cidr,omitempty"` // MachineId: Either a single machine, identified by an ID, or a // comma-separated list of machine IDs. MachineId string `json:"machineId,omitempty"` // NetworkId: Network to use to publish the export. NetworkId string `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. NoRootSquash bool `json:"noRootSquash,omitempty"` // Permissions: Export permissions. // // Possible values: // "PERMISSIONS_UNSPECIFIED" - Unspecified value. // "READ_ONLY" - Read-only permission. // "READ_WRITE" - Read-write permission. Permissions string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NfsExport: A NFS export entry.
func (*NfsExport) MarshalJSON ¶ added in v0.69.0
type NfsShare ¶ added in v0.69.0
type NfsShare struct { AllowedClient `json:"allowedClients,omitempty"` // backend. This is the same value as nfs_share_id and will replace it // in the future. Id string `json:"id,omitempty"` Labels map[string]string `json:"labels,omitempty"` Name string `json:"name,omitempty"` // by the backend. This field will be deprecated in the future, use `id` // instead. NfsShareId string `json:"nfsShareId,omitempty"` RequestedSizeGib int64 `json:"requestedSizeGib,omitempty,string"` // // 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. State string `json:"state,omitempty"` Volume string `json:"volume,omitempty"` // server. googleapi.ServerResponse `json:"-"` // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }AllowedClients []*
NfsShare: An NFS share.
func (*NfsShare) MarshalJSON ¶ added in v0.69.0
type OSImage ¶ added in v0.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. Code string `json:"code,omitempty"` // Description: OS Image description. Description string `json:"description,omitempty"` // Name: Output only. OS Image's unique name. Name string `json:"name,omitempty"` // SupportedNetworkTemplates: Network templates that can be used with // this OS Image. SupportedNetworkTemplates []*ServerNetworkTemplate `json:"supportedNetworkTemplates,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. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
OSImage: Operation System image.
func (*OSImage) MarshalJSON ¶ added in v0.75.0
type Operation ¶
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. Done bool `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. Metadata googleapi.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}`. Name string `json:"name,omitempty"` // Response: The normal response of the operation in case of success. 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`. Response googleapi.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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (*Operation) MarshalJSON ¶
type OperationMetadata ¶
type OperationMetadata struct { // ApiVersion: Output only. API version used with the operation. ApiVersion string `json:"apiVersion,omitempty"` // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` // RequestedCancellation: Output only. Identifies whether the user // requested the cancellation of the operation. Operations that have // been successfully cancelled have Operation.error value with a // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Output only. Human-readable status of the operation, // if any. StatusMessage string `json:"statusMessage,omitempty"` // Target: Output only. Server-defined resource path for the target of // the operation. Target string `json:"target,omitempty"` // Verb: Output only. Name of the action executed by the operation. Verb string `json:"verb,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApiVersion") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
OperationMetadata: Represents the metadata from a long-running operation.
func (*OperationMetadata) MarshalJSON ¶
func (s *OperationMetadata) MarshalJSON() ([]byte, error)
type ProjectsLocationsGetCall ¶
type ProjectsLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGetCall) Context ¶
func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGetCall) Do ¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
Do executes the "baremetalsolution.projects.locations.get" call. Exactly one of *Location or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Location.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGetCall) Header ¶
func (c *ProjectsLocationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsInstanceProvisioningSettingsFetchCall ¶ added in v0.75.0
type ProjectsLocationsInstanceProvisioningSettingsFetchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstanceProvisioningSettingsFetchCall) Context ¶ added in v0.75.0
func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Context(ctx context.Context) *ProjectsLocationsInstanceProvisioningSettingsFetchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstanceProvisioningSettingsFetchCall) Do ¶ added in v0.75.0
func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Do(opts ...googleapi.CallOption) (*FetchInstanceProvisioningSettingsResponse, error)
Do executes the "baremetalsolution.projects.locations.instanceProvisioningSettings.fetch" call. Exactly one of *FetchInstanceProvisioningSettingsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FetchInstanceProvisioningSettingsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstanceProvisioningSettingsFetchCall) Fields ¶ added in v0.75.0
func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstanceProvisioningSettingsFetchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstanceProvisioningSettingsFetchCall) Header ¶ added in v0.75.0
func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsInstanceProvisioningSettingsFetchCall) IfNoneMatch ¶ added in v0.75.0
func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstanceProvisioningSettingsFetchCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsInstanceProvisioningSettingsService ¶ added in v0.75.0
type ProjectsLocationsInstanceProvisioningSettingsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsInstanceProvisioningSettingsService ¶ added in v0.75.0
func NewProjectsLocationsInstanceProvisioningSettingsService(s *Service) *ProjectsLocationsInstanceProvisioningSettingsService
func (*ProjectsLocationsInstanceProvisioningSettingsService) Fetch ¶ added in v0.75.0
func (r *ProjectsLocationsInstanceProvisioningSettingsService) Fetch(location string) *ProjectsLocationsInstanceProvisioningSettingsFetchCall
Fetch: Get instance provisioning settings for a given project. This is hidden method used by UI only.
- location: The parent project and location containing the ProvisioningSettings.
type ProjectsLocationsInstancesCreateCall ¶ added in v0.90.0
type ProjectsLocationsInstancesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesCreateCall) Context ¶ added in v0.90.0
func (c *ProjectsLocationsInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsInstancesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesCreateCall) Do ¶ added in v0.90.0
func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.instances.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesCreateCall) Fields ¶ added in v0.90.0
func (c *ProjectsLocationsInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesCreateCall) Header ¶ added in v0.90.0
func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsInstancesDetachLunCall ¶ added in v0.79.0
type ProjectsLocationsInstancesDetachLunCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesDetachLunCall) Context ¶ added in v0.79.0
func (c *ProjectsLocationsInstancesDetachLunCall) Context(ctx context.Context) *ProjectsLocationsInstancesDetachLunCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesDetachLunCall) Do ¶ added in v0.79.0
func (c *ProjectsLocationsInstancesDetachLunCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.instances.detachLun" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesDetachLunCall) Fields ¶ added in v0.79.0
func (c *ProjectsLocationsInstancesDetachLunCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDetachLunCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesDetachLunCall) Header ¶ added in v0.79.0
func (c *ProjectsLocationsInstancesDetachLunCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsInstancesGetCall ¶
type ProjectsLocationsInstancesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesGetCall) Context ¶
func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesGetCall) Do ¶
func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error)
Do executes the "baremetalsolution.projects.locations.instances.get" call. Exactly one of *Instance or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Instance.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesGetCall) Header ¶
func (c *ProjectsLocationsInstancesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsInstancesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsInstancesListCall ¶
type ProjectsLocationsInstancesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesListCall) Context ¶
func (c *ProjectsLocationsInstancesListCall) Context(ctx context.Context) *ProjectsLocationsInstancesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesListCall) Do ¶
func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error)
Do executes the "baremetalsolution.projects.locations.instances.list" call. Exactly one of *ListInstancesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListInstancesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesListCall) Fields ¶
func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesListCall) Filter ¶
func (c *ProjectsLocationsInstancesListCall) Filter(filter string) *ProjectsLocationsInstancesListCall
Filter sets the optional parameter "filter": List filter.
func (*ProjectsLocationsInstancesListCall) Header ¶
func (c *ProjectsLocationsInstancesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsInstancesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsInstancesListCall) PageSize ¶
func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsInstancesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
func (*ProjectsLocationsInstancesListCall) PageToken ¶
func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsInstancesListCall) Pages ¶
func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.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.
type ProjectsLocationsInstancesPatchCall ¶ added in v0.69.0
type ProjectsLocationsInstancesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesPatchCall) Context ¶ added in v0.69.0
func (c *ProjectsLocationsInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsInstancesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesPatchCall) Do ¶ added in v0.69.0
func (c *ProjectsLocationsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.instances.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesPatchCall) Fields ¶ added in v0.69.0
func (c *ProjectsLocationsInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesPatchCall) Header ¶ added in v0.69.0
func (c *ProjectsLocationsInstancesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsInstancesPatchCall) UpdateMask ¶ added in v0.69.0
func (c *ProjectsLocationsInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsInstancesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update. The currently supported fields are: `labels` `hyperthreading_enabled` `os_image`
type ProjectsLocationsInstancesResetCall ¶ added in v0.62.0
type ProjectsLocationsInstancesResetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesResetCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsInstancesResetCall) Context(ctx context.Context) *ProjectsLocationsInstancesResetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesResetCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsInstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.instances.reset" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesResetCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsInstancesResetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesResetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesResetCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsInstancesResetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsInstancesService ¶
type ProjectsLocationsInstancesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsInstancesService ¶
func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService
func (*ProjectsLocationsInstancesService) Create ¶ added in v0.90.0
func (r *ProjectsLocationsInstancesService) Create(parent string, instance *Instance) *ProjectsLocationsInstancesCreateCall
Create: Create an Instance.
- parent: The parent project and location.
func (*ProjectsLocationsInstancesService) DetachLun ¶ added in v0.79.0
func (r *ProjectsLocationsInstancesService) DetachLun(instance string, detachlunrequest *DetachLunRequest) *ProjectsLocationsInstancesDetachLunCall
DetachLun: Detach LUN from Instance.
- instance: Name of the instance.
func (*ProjectsLocationsInstancesService) Get ¶
func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall
Get: Get details about a single server.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService) List ¶
func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall
List: List servers in a given project and location.
- parent: Parent value for ListInstancesRequest.
func (*ProjectsLocationsInstancesService) Patch ¶ added in v0.69.0
func (r *ProjectsLocationsInstancesService) Patch(name string, instance *Instance) *ProjectsLocationsInstancesPatchCall
Patch: Update details of a single server.
- 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}`.
func (*ProjectsLocationsInstancesService) Reset ¶ added in v0.62.0
func (r *ProjectsLocationsInstancesService) Reset(name string, resetinstancerequest *ResetInstanceRequest) *ProjectsLocationsInstancesResetCall
Reset: Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService) Start ¶ added in v0.69.0
func (r *ProjectsLocationsInstancesService) Start(name string, startinstancerequest *StartInstanceRequest) *ProjectsLocationsInstancesStartCall
Start: Starts a server that was shutdown.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService) Stop ¶ added in v0.76.0
func (r *ProjectsLocationsInstancesService) Stop(name string, stopinstancerequest *StopInstanceRequest) *ProjectsLocationsInstancesStopCall
Stop: Stop a running server.
- name: Name of the resource.
type ProjectsLocationsInstancesStartCall ¶ added in v0.69.0
type ProjectsLocationsInstancesStartCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesStartCall) Context ¶ added in v0.69.0
func (c *ProjectsLocationsInstancesStartCall) Context(ctx context.Context) *ProjectsLocationsInstancesStartCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesStartCall) Do ¶ added in v0.69.0
func (c *ProjectsLocationsInstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.instances.start" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesStartCall) Fields ¶ added in v0.69.0
func (c *ProjectsLocationsInstancesStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesStartCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesStartCall) Header ¶ added in v0.69.0
func (c *ProjectsLocationsInstancesStartCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsInstancesStopCall ¶ added in v0.76.0
type ProjectsLocationsInstancesStopCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesStopCall) Context ¶ added in v0.76.0
func (c *ProjectsLocationsInstancesStopCall) Context(ctx context.Context) *ProjectsLocationsInstancesStopCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesStopCall) Do ¶ added in v0.76.0
func (c *ProjectsLocationsInstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.instances.stop" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesStopCall) Fields ¶ added in v0.76.0
func (c *ProjectsLocationsInstancesStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesStopCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesStopCall) Header ¶ added in v0.76.0
func (c *ProjectsLocationsInstancesStopCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsListCall ¶
type ProjectsLocationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsListCall) Context ¶
func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsListCall) Do ¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
Do executes the "baremetalsolution.projects.locations.list" call. Exactly one of *ListLocationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsListCall) Fields ¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsListCall) Filter ¶
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down results to 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 an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsListCall) PageSize ¶
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall) PageToken ¶
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
func (*ProjectsLocationsListCall) Pages ¶
func (c *ProjectsLocationsListCall) Pages(ctx context.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.
type ProjectsLocationsNetworksGetCall ¶ added in v0.62.0
type ProjectsLocationsNetworksGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsNetworksGetCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksGetCall) Context(ctx context.Context) *ProjectsLocationsNetworksGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsNetworksGetCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksGetCall) Do(opts ...googleapi.CallOption) (*Network, error)
Do executes the "baremetalsolution.projects.locations.networks.get" call. Exactly one of *Network or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Network.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNetworksGetCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsNetworksGetCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsNetworksGetCall) IfNoneMatch ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworksGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsNetworksListCall ¶ added in v0.62.0
type ProjectsLocationsNetworksListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsNetworksListCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) Context(ctx context.Context) *ProjectsLocationsNetworksListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsNetworksListCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) Do(opts ...googleapi.CallOption) (*ListNetworksResponse, error)
Do executes the "baremetalsolution.projects.locations.networks.list" call. Exactly one of *ListNetworksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListNetworksResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNetworksListCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsNetworksListCall) Filter ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksListCall) Filter(filter string) *ProjectsLocationsNetworksListCall
Filter sets the optional parameter "filter": List filter.
func (*ProjectsLocationsNetworksListCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsNetworksListCall) IfNoneMatch ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworksListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsNetworksListCall) PageSize ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) PageSize(pageSize int64) *ProjectsLocationsNetworksListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsNetworksListCall) PageToken ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) PageToken(pageToken string) *ProjectsLocationsNetworksListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsNetworksListCall) Pages ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) Pages(ctx context.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.
type ProjectsLocationsNetworksListNetworkUsageCall ¶ added in v0.69.0
type ProjectsLocationsNetworksListNetworkUsageCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsNetworksListNetworkUsageCall) Context ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksListNetworkUsageCall) Context(ctx context.Context) *ProjectsLocationsNetworksListNetworkUsageCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsNetworksListNetworkUsageCall) Do ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksListNetworkUsageCall) Do(opts ...googleapi.CallOption) (*ListNetworkUsageResponse, error)
Do executes the "baremetalsolution.projects.locations.networks.listNetworkUsage" call. Exactly one of *ListNetworkUsageResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListNetworkUsageResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNetworksListNetworkUsageCall) Fields ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksListNetworkUsageCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksListNetworkUsageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsNetworksListNetworkUsageCall) Header ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksListNetworkUsageCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsNetworksListNetworkUsageCall) IfNoneMatch ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksListNetworkUsageCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworksListNetworkUsageCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsNetworksPatchCall ¶ added in v0.69.0
type ProjectsLocationsNetworksPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsNetworksPatchCall) Context ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksPatchCall) Context(ctx context.Context) *ProjectsLocationsNetworksPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsNetworksPatchCall) Do ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.networks.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNetworksPatchCall) Fields ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsNetworksPatchCall) Header ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsNetworksPatchCall) UpdateMask ¶ added in v0.69.0
func (c *ProjectsLocationsNetworksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsNetworksPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update. The only currently supported fields are: `labels`, `reservations`
type ProjectsLocationsNetworksService ¶ added in v0.62.0
type ProjectsLocationsNetworksService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsNetworksService ¶ added in v0.62.0
func NewProjectsLocationsNetworksService(s *Service) *ProjectsLocationsNetworksService
func (*ProjectsLocationsNetworksService) Get ¶ added in v0.62.0
func (r *ProjectsLocationsNetworksService) Get(name string) *ProjectsLocationsNetworksGetCall
Get: Get details of a single network.
- name: Name of the resource.
func (*ProjectsLocationsNetworksService) List ¶ added in v0.62.0
func (r *ProjectsLocationsNetworksService) List(parent string) *ProjectsLocationsNetworksListCall
List: List network in a given project and location.
- parent: Parent value for ListNetworksRequest.
func (*ProjectsLocationsNetworksService) ListNetworkUsage ¶ added in v0.69.0
func (r *ProjectsLocationsNetworksService) ListNetworkUsage(location string) *ProjectsLocationsNetworksListNetworkUsageCall
ListNetworkUsage: List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.
- location: Parent value (project and location).
func (*ProjectsLocationsNetworksService) Patch ¶ added in v0.69.0
func (r *ProjectsLocationsNetworksService) Patch(name string, network *Network) *ProjectsLocationsNetworksPatchCall
Patch: Update details of a single network.
- 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}`.
type ProjectsLocationsNfsSharesGetCall ¶ added in v0.69.0
type ProjectsLocationsNfsSharesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsNfsSharesGetCall) Context ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesGetCall) Context(ctx context.Context) *ProjectsLocationsNfsSharesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsNfsSharesGetCall) Do ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesGetCall) Do(opts ...googleapi.CallOption) (*NfsShare, error)
Do executes the "baremetalsolution.projects.locations.nfsShares.get" call. Exactly one of *NfsShare or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *NfsShare.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNfsSharesGetCall) Fields ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsNfsSharesGetCall) Header ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsNfsSharesGetCall) IfNoneMatch ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNfsSharesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsNfsSharesListCall ¶ added in v0.69.0
type ProjectsLocationsNfsSharesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsNfsSharesListCall) Context ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Context(ctx context.Context) *ProjectsLocationsNfsSharesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsNfsSharesListCall) Do ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Do(opts ...googleapi.CallOption) (*ListNfsSharesResponse, error)
Do executes the "baremetalsolution.projects.locations.nfsShares.list" call. Exactly one of *ListNfsSharesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListNfsSharesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNfsSharesListCall) Fields ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsNfsSharesListCall) Filter ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Filter(filter string) *ProjectsLocationsNfsSharesListCall
Filter sets the optional parameter "filter": List filter.
func (*ProjectsLocationsNfsSharesListCall) Header ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsNfsSharesListCall) IfNoneMatch ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNfsSharesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsNfsSharesListCall) PageSize ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesListCall) PageSize(pageSize int64) *ProjectsLocationsNfsSharesListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsNfsSharesListCall) PageToken ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesListCall) PageToken(pageToken string) *ProjectsLocationsNfsSharesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsNfsSharesListCall) Pages ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesListCall) Pages(ctx context.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.
type ProjectsLocationsNfsSharesPatchCall ¶ added in v0.69.0
type ProjectsLocationsNfsSharesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsNfsSharesPatchCall) Context ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesPatchCall) Context(ctx context.Context) *ProjectsLocationsNfsSharesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsNfsSharesPatchCall) Do ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.nfsShares.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNfsSharesPatchCall) Fields ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNfsSharesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsNfsSharesPatchCall) Header ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsNfsSharesPatchCall) UpdateMask ¶ added in v0.69.0
func (c *ProjectsLocationsNfsSharesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsNfsSharesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update. The only currently supported fields are: `labels`
type ProjectsLocationsNfsSharesService ¶ added in v0.69.0
type ProjectsLocationsNfsSharesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsNfsSharesService ¶ added in v0.69.0
func NewProjectsLocationsNfsSharesService(s *Service) *ProjectsLocationsNfsSharesService
func (*ProjectsLocationsNfsSharesService) Get ¶ added in v0.69.0
func (r *ProjectsLocationsNfsSharesService) Get(name string) *ProjectsLocationsNfsSharesGetCall
Get: Get details of a single NFS share.
- name: Name of the resource.
func (*ProjectsLocationsNfsSharesService) List ¶ added in v0.69.0
func (r *ProjectsLocationsNfsSharesService) List(parent string) *ProjectsLocationsNfsSharesListCall
List: List NFS shares.
- parent: Parent value for ListNfsSharesRequest.
func (*ProjectsLocationsNfsSharesService) Patch ¶ added in v0.69.0
func (r *ProjectsLocationsNfsSharesService) Patch(name string, nfsshare *NfsShare) *ProjectsLocationsNfsSharesPatchCall
Patch: Update details of a single NFS share.
- name: Output only. The name of the NFS share.
type ProjectsLocationsOperationsGetCall ¶
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsGetCall) Do ¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsGetCall) Header ¶
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsOperationsService ¶
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Get ¶
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
Get: Get details about an operation. This method used only to work around CCFE lack of passthrough LRO support (b/221498758).
- name: The name of the operation resource.
type ProjectsLocationsProvisioningConfigsCreateCall ¶ added in v0.73.0
type ProjectsLocationsProvisioningConfigsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsProvisioningConfigsCreateCall) Context ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsProvisioningConfigsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsProvisioningConfigsCreateCall) Do ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsCreateCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig, error)
Do executes the "baremetalsolution.projects.locations.provisioningConfigs.create" call. Exactly one of *ProvisioningConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProvisioningConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsProvisioningConfigsCreateCall) Email ¶ added in v0.74.0
func (c *ProjectsLocationsProvisioningConfigsCreateCall) Email(email string) *ProjectsLocationsProvisioningConfigsCreateCall
Email sets the optional parameter "email": Email provided to send a confirmation with provisioning config to.
func (*ProjectsLocationsProvisioningConfigsCreateCall) Fields ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsProvisioningConfigsCreateCall) Header ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsProvisioningConfigsGetCall ¶ added in v0.73.0
type ProjectsLocationsProvisioningConfigsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsProvisioningConfigsGetCall) Context ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsProvisioningConfigsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsProvisioningConfigsGetCall) Do ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsGetCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig, error)
Do executes the "baremetalsolution.projects.locations.provisioningConfigs.get" call. Exactly one of *ProvisioningConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProvisioningConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsProvisioningConfigsGetCall) Fields ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsProvisioningConfigsGetCall) Header ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsProvisioningConfigsGetCall) IfNoneMatch ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvisioningConfigsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsProvisioningConfigsPatchCall ¶ added in v0.73.0
type ProjectsLocationsProvisioningConfigsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsProvisioningConfigsPatchCall) Context ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsProvisioningConfigsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsProvisioningConfigsPatchCall) Do ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig, error)
Do executes the "baremetalsolution.projects.locations.provisioningConfigs.patch" call. Exactly one of *ProvisioningConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProvisioningConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsProvisioningConfigsPatchCall) Email ¶ added in v0.74.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) Email(email string) *ProjectsLocationsProvisioningConfigsPatchCall
Email sets the optional parameter "email": Email provided to send a confirmation with provisioning config to.
func (*ProjectsLocationsProvisioningConfigsPatchCall) Fields ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsProvisioningConfigsPatchCall) Header ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsProvisioningConfigsPatchCall) UpdateMask ¶ added in v0.73.0
func (c *ProjectsLocationsProvisioningConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProvisioningConfigsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. The list of fields to update.
type ProjectsLocationsProvisioningConfigsService ¶ added in v0.69.0
type ProjectsLocationsProvisioningConfigsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsProvisioningConfigsService ¶ added in v0.69.0
func NewProjectsLocationsProvisioningConfigsService(s *Service) *ProjectsLocationsProvisioningConfigsService
func (*ProjectsLocationsProvisioningConfigsService) Create ¶ added in v0.73.0
func (r *ProjectsLocationsProvisioningConfigsService) Create(parent string, provisioningconfig *ProvisioningConfig) *ProjectsLocationsProvisioningConfigsCreateCall
Create: Create new ProvisioningConfig.
- parent: The parent project and location containing the ProvisioningConfig.
func (*ProjectsLocationsProvisioningConfigsService) Get ¶ added in v0.73.0
func (r *ProjectsLocationsProvisioningConfigsService) Get(name string) *ProjectsLocationsProvisioningConfigsGetCall
Get: Get ProvisioningConfig by name.
- name: Name of the ProvisioningConfig.
func (*ProjectsLocationsProvisioningConfigsService) Patch ¶ added in v0.73.0
func (r *ProjectsLocationsProvisioningConfigsService) Patch(name string, provisioningconfig *ProvisioningConfig) *ProjectsLocationsProvisioningConfigsPatchCall
Patch: Update existing ProvisioningConfig.
- name: Output only. The name of the provisioning config.
func (*ProjectsLocationsProvisioningConfigsService) Submit ¶ added in v0.69.0
func (r *ProjectsLocationsProvisioningConfigsService) Submit(parent string, submitprovisioningconfigrequest *SubmitProvisioningConfigRequest) *ProjectsLocationsProvisioningConfigsSubmitCall
Submit: Submit a provisiong configuration for a given project.
- parent: The parent project and location containing the ProvisioningConfig.
type ProjectsLocationsProvisioningConfigsSubmitCall ¶ added in v0.69.0
type ProjectsLocationsProvisioningConfigsSubmitCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsProvisioningConfigsSubmitCall) Context ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Context(ctx context.Context) *ProjectsLocationsProvisioningConfigsSubmitCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsProvisioningConfigsSubmitCall) Do ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Do(opts ...googleapi.CallOption) (*SubmitProvisioningConfigResponse, error)
Do executes the "baremetalsolution.projects.locations.provisioningConfigs.submit" call. Exactly one of *SubmitProvisioningConfigResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SubmitProvisioningConfigResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsProvisioningConfigsSubmitCall) Fields ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningConfigsSubmitCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsProvisioningConfigsSubmitCall) Header ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningConfigsSubmitCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsProvisioningQuotasListCall ¶ added in v0.69.0
type ProjectsLocationsProvisioningQuotasListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsProvisioningQuotasListCall) Context ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) Context(ctx context.Context) *ProjectsLocationsProvisioningQuotasListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsProvisioningQuotasListCall) Do ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) Do(opts ...googleapi.CallOption) (*ListProvisioningQuotasResponse, error)
Do executes the "baremetalsolution.projects.locations.provisioningQuotas.list" call. Exactly one of *ListProvisioningQuotasResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListProvisioningQuotasResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsProvisioningQuotasListCall) Fields ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvisioningQuotasListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsProvisioningQuotasListCall) Header ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsProvisioningQuotasListCall) IfNoneMatch ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvisioningQuotasListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsProvisioningQuotasListCall) PageSize ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) PageSize(pageSize int64) *ProjectsLocationsProvisioningQuotasListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default. Notice that page_size field is not supported and won't be respected in the API request for now, will be updated when pagination is supported.
func (*ProjectsLocationsProvisioningQuotasListCall) PageToken ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) PageToken(pageToken string) *ProjectsLocationsProvisioningQuotasListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsProvisioningQuotasListCall) Pages ¶ added in v0.69.0
func (c *ProjectsLocationsProvisioningQuotasListCall) Pages(ctx context.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.
type ProjectsLocationsProvisioningQuotasService ¶ added in v0.69.0
type ProjectsLocationsProvisioningQuotasService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsProvisioningQuotasService ¶ added in v0.69.0
func NewProjectsLocationsProvisioningQuotasService(s *Service) *ProjectsLocationsProvisioningQuotasService
func (*ProjectsLocationsProvisioningQuotasService) List ¶ added in v0.69.0
func (r *ProjectsLocationsProvisioningQuotasService) List(parent string) *ProjectsLocationsProvisioningQuotasListCall
List: List the budget details to provision resources on a given project.
- parent: Parent value for ListProvisioningQuotasRequest.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { InstanceProvisioningSettings *ProjectsLocationsInstanceProvisioningSettingsService Instances *ProjectsLocationsInstancesService Networks *ProjectsLocationsNetworksService Operations *ProjectsLocationsOperationsService ProvisioningConfigs *ProjectsLocationsProvisioningConfigsService ProvisioningQuotas *ProjectsLocationsProvisioningQuotasService Volumes *ProjectsLocationsVolumesService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) Get ¶
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService) List ¶
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
type ProjectsLocationsVolumesGetCall ¶ added in v0.55.0
type ProjectsLocationsVolumesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesGetCall) Context ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesGetCall) Do ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesGetCall) Do(opts ...googleapi.CallOption) (*Volume, error)
Do executes the "baremetalsolution.projects.locations.volumes.get" call. Exactly one of *Volume or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Volume.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesGetCall) Fields ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesGetCall) Header ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesGetCall) IfNoneMatch ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsVolumesListCall ¶ added in v0.55.0
type ProjectsLocationsVolumesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesListCall) Context ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Context(ctx context.Context) *ProjectsLocationsVolumesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesListCall) Do ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Do(opts ...googleapi.CallOption) (*ListVolumesResponse, error)
Do executes the "baremetalsolution.projects.locations.volumes.list" call. Exactly one of *ListVolumesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListVolumesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesListCall) Fields ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesListCall) Filter ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Filter(filter string) *ProjectsLocationsVolumesListCall
Filter sets the optional parameter "filter": List filter.
func (*ProjectsLocationsVolumesListCall) Header ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesListCall) IfNoneMatch ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsVolumesListCall) PageSize ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsVolumesListCall) PageToken ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) PageToken(pageToken string) *ProjectsLocationsVolumesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsVolumesListCall) Pages ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Pages(ctx context.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.
type ProjectsLocationsVolumesLunsGetCall ¶ added in v0.60.0
type ProjectsLocationsVolumesLunsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesLunsGetCall) Context ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesLunsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesLunsGetCall) Do ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Do(opts ...googleapi.CallOption) (*Lun, error)
Do executes the "baremetalsolution.projects.locations.volumes.luns.get" call. Exactly one of *Lun or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Lun.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesLunsGetCall) Fields ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesLunsGetCall) Header ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesLunsGetCall) IfNoneMatch ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesLunsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsVolumesLunsListCall ¶ added in v0.60.0
type ProjectsLocationsVolumesLunsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesLunsListCall) Context ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Context(ctx context.Context) *ProjectsLocationsVolumesLunsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesLunsListCall) Do ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Do(opts ...googleapi.CallOption) (*ListLunsResponse, error)
Do executes the "baremetalsolution.projects.locations.volumes.luns.list" call. Exactly one of *ListLunsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLunsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesLunsListCall) Fields ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesLunsListCall) Header ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesLunsListCall) IfNoneMatch ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesLunsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsVolumesLunsListCall) PageSize ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesLunsListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsVolumesLunsListCall) PageToken ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) PageToken(pageToken string) *ProjectsLocationsVolumesLunsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsVolumesLunsListCall) Pages ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Pages(ctx context.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.
type ProjectsLocationsVolumesLunsService ¶ added in v0.60.0
type ProjectsLocationsVolumesLunsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsVolumesLunsService ¶ added in v0.60.0
func NewProjectsLocationsVolumesLunsService(s *Service) *ProjectsLocationsVolumesLunsService
func (*ProjectsLocationsVolumesLunsService) Get ¶ added in v0.60.0
func (r *ProjectsLocationsVolumesLunsService) Get(name string) *ProjectsLocationsVolumesLunsGetCall
Get: Get details of a single storage logical unit number(LUN).
- name: Name of the resource.
func (*ProjectsLocationsVolumesLunsService) List ¶ added in v0.60.0
func (r *ProjectsLocationsVolumesLunsService) List(parent string) *ProjectsLocationsVolumesLunsListCall
List: List storage volume luns for given storage volume.
- parent: Parent value for ListLunsRequest.
type ProjectsLocationsVolumesPatchCall ¶ added in v0.62.0
type ProjectsLocationsVolumesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesPatchCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Context(ctx context.Context) *ProjectsLocationsVolumesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesPatchCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.volumes.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesPatchCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesPatchCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesPatchCall) UpdateMask ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsVolumesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update. The only currently supported fields are: `snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels' 'snapshot_enabled' 'snapshot_reservation_detail.reserved_space_percent'
type ProjectsLocationsVolumesResizeCall ¶ added in v0.84.0
type ProjectsLocationsVolumesResizeCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesResizeCall) Context ¶ added in v0.84.0
func (c *ProjectsLocationsVolumesResizeCall) Context(ctx context.Context) *ProjectsLocationsVolumesResizeCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesResizeCall) Do ¶ added in v0.84.0
func (c *ProjectsLocationsVolumesResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.volumes.resize" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesResizeCall) Fields ¶ added in v0.84.0
func (c *ProjectsLocationsVolumesResizeCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesResizeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesResizeCall) Header ¶ added in v0.84.0
func (c *ProjectsLocationsVolumesResizeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsVolumesService ¶ added in v0.55.0
type ProjectsLocationsVolumesService struct { Luns *ProjectsLocationsVolumesLunsService // contains filtered or unexported fields }
func NewProjectsLocationsVolumesService ¶ added in v0.55.0
func NewProjectsLocationsVolumesService(s *Service) *ProjectsLocationsVolumesService
func (*ProjectsLocationsVolumesService) Get ¶ added in v0.55.0
func (r *ProjectsLocationsVolumesService) Get(name string) *ProjectsLocationsVolumesGetCall
Get: Get details of a single storage volume.
- name: Name of the resource.
func (*ProjectsLocationsVolumesService) List ¶ added in v0.55.0
func (r *ProjectsLocationsVolumesService) List(parent string) *ProjectsLocationsVolumesListCall
List: List storage volumes in a given project and location.
- parent: Parent value for ListVolumesRequest.
func (*ProjectsLocationsVolumesService) Patch ¶ added in v0.62.0
func (r *ProjectsLocationsVolumesService) Patch(name string, volume *Volume) *ProjectsLocationsVolumesPatchCall
Patch: Update details of a single storage volume.
- 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}`.
func (*ProjectsLocationsVolumesService) Resize ¶ added in v0.84.0
func (r *ProjectsLocationsVolumesService) Resize(volume string, resizevolumerequest *ResizeVolumeRequest) *ProjectsLocationsVolumesResizeCall
Resize: Emergency Volume resize.
- volume: Volume to resize.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type ProvisioningConfig ¶ added in v0.69.0
type ProvisioningConfig struct { // CloudConsoleUri: Output only. URI to Cloud Console UI view of this // provisioning config. CloudConsoleUri string `json:"cloudConsoleUri,omitempty"` // Email: Email provided to send a confirmation with provisioning config // to. Deprecated in favour of email field in request messages. Email string `json:"email,omitempty"` // HandoverServiceAccount: A service account to enable customers to // access instance credentials upon handover. HandoverServiceAccount string `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. Location string `json:"location,omitempty"` // Name: Output only. The name of the provisioning config. Name string `json:"name,omitempty"` // Networks: Networks to be created. Networks []*NetworkConfig `json:"networks,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. State string `json:"state,omitempty"` // StatusMessage: Optional status messages associated with the FAILED // state. StatusMessage string `json:"statusMessage,omitempty"` // TicketId: A generated ticket id to track provisioning request. TicketId string `json:"ticketId,omitempty"` // UpdateTime: Output only. Last update timestamp. UpdateTime string `json:"updateTime,omitempty"` // Volumes: Volumes to be created. Volumes []*VolumeConfig `json:"volumes,omitempty"` // VpcScEnabled: If true, VPC SC is enabled for the cluster. VpcScEnabled bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ProvisioningConfig: A provisioning configuration.
func (*ProvisioningConfig) MarshalJSON ¶ added in v0.69.0
func (s *ProvisioningConfig) MarshalJSON() ([]byte, error)
type ProvisioningQuota ¶ added in v0.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. AssetType string `json:"assetType,omitempty"` // AvailableCount: The available count of the provisioning quota. AvailableCount int64 `json:"availableCount,omitempty"` // GcpService: The gcp service of the provisioning quota. GcpService string `json:"gcpService,omitempty"` // InstanceQuota: Instance quota. InstanceQuota *InstanceQuota `json:"instanceQuota,omitempty"` // Location: The specific location of the provisioining quota. Location string `json:"location,omitempty"` // Name: Output only. The name of the provisioning quota. Name string `json:"name,omitempty"` // NetworkBandwidth: Network bandwidth, Gbps NetworkBandwidth int64 `json:"networkBandwidth,omitempty,string"` // ServerCount: Server count. ServerCount int64 `json:"serverCount,omitempty,string"` // StorageGib: Storage size (GB). StorageGib int64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ProvisioningQuota: A provisioning quota for a given project.
func (*ProvisioningQuota) MarshalJSON ¶ added in v0.69.0
func (s *ProvisioningQuota) MarshalJSON() ([]byte, error)
type QosPolicy ¶ added in v0.66.0
type QosPolicy struct { // BandwidthGbps: The bandwidth permitted by the QOS policy, in gbps. BandwidthGbps float64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
QosPolicy: QOS policy parameters.
func (*QosPolicy) MarshalJSON ¶ added in v0.66.0
func (*QosPolicy) UnmarshalJSON ¶ added in v0.66.0
type ResetInstanceRequest ¶ added in v0.62.0
type ResetInstanceRequest struct { }
ResetInstanceRequest: Message requesting to reset a server.
type ResizeVolumeRequest ¶ added in v0.84.0
type ResizeVolumeRequest struct { // SizeGib: New Volume size, in GiB. SizeGib int64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResizeVolumeRequest: Request for emergency resize Volume.
func (*ResizeVolumeRequest) MarshalJSON ¶ added in v0.84.0
func (s *ResizeVolumeRequest) MarshalJSON() ([]byte, error)
type ServerNetworkTemplate ¶ added in v0.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 // _network_template}` Generally, the {server_network_template} follows // the syntax of "bond" or "nic". Name string `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. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. 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. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ServerNetworkTemplate: Network template.
func (*ServerNetworkTemplate) MarshalJSON ¶ added in v0.75.0
func (s *ServerNetworkTemplate) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
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.
func NewService ¶
NewService creates a new Service.
type SnapshotReservationDetail ¶ added in v0.55.0
type SnapshotReservationDetail struct { // ReservedSpaceGib: The space on this storage volume reserved for // snapshots, shown in GiB. ReservedSpaceGib int64 `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. ReservedSpacePercent int64 `json:"reservedSpacePercent,omitempty"` // ReservedSpaceRemainingGib: The amount, in GiB, of available space in // this storage volume's reserved snapshot space. ReservedSpaceRemainingGib int64 `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. ReservedSpaceUsedPercent int64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SnapshotReservationDetail: Details about snapshot space reservation and usage on the storage volume.
func (*SnapshotReservationDetail) MarshalJSON ¶ added in v0.55.0
func (s *SnapshotReservationDetail) MarshalJSON() ([]byte, error)
type StartInstanceRequest ¶ added in v0.69.0
type StartInstanceRequest struct { }
StartInstanceRequest: Message requesting to start a server.
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `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. Message string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (*Status) MarshalJSON ¶
type StopInstanceRequest ¶ added in v0.76.0
type StopInstanceRequest struct { }
StopInstanceRequest: Message requesting to stop a server.
type SubmitProvisioningConfigRequest ¶ added in v0.69.0
type SubmitProvisioningConfigRequest struct { // Email: Optional. Email provided to send a confirmation with // provisioning config to. Email string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SubmitProvisioningConfigRequest: Request for SubmitProvisioningConfig.
func (*SubmitProvisioningConfigRequest) MarshalJSON ¶ added in v0.69.0
func (s *SubmitProvisioningConfigRequest) MarshalJSON() ([]byte, error)
type SubmitProvisioningConfigResponse ¶ added in v0.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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SubmitProvisioningConfigResponse: Response for SubmitProvisioningConfig.
func (*SubmitProvisioningConfigResponse) MarshalJSON ¶ added in v0.69.0
func (s *SubmitProvisioningConfigResponse) MarshalJSON() ([]byte, error)
type VRF ¶ added in v0.60.0
type VRF struct { // Name: The name of the VRF. Name string `json:"name,omitempty"` // QosPolicy: The QOS policy applied to this VRF. 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. State string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VRF: A network VRF.
func (*VRF) MarshalJSON ¶ added in v0.60.0
type VlanAttachment ¶ added in v0.66.0
type VlanAttachment struct { // PeerIp: The peer IP of the attachment. PeerIp string `json:"peerIp,omitempty"` // PeerVlanId: The peer vlan ID of the attachment. PeerVlanId int64 `json:"peerVlanId,omitempty,string"` // RouterIp: The router IP of the attachment. RouterIp string `json:"routerIp,omitempty"` // ForceSendFields is a list of field names (e.g. "PeerIp") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PeerIp") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VlanAttachment: VLAN attachment details.
func (*VlanAttachment) MarshalJSON ¶ added in v0.66.0
func (s *VlanAttachment) MarshalJSON() ([]byte, error)
type Volume ¶ added in v0.55.0
type Volume struct { // 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. AutoGrownSizeGib int64 `json:"autoGrownSizeGib,omitempty,string"` // 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. CurrentSizeGib int64 `json:"currentSizeGib,omitempty,string"` // EmergencySizeGib: Additional emergency size that was requested for // this Volume, in GiB. current_size_gib includes this value. EmergencySizeGib int64 `json:"emergencySizeGib,omitempty,string"` // Id: An identifier for the `Volume`, generated by the backend. Id string `json:"id,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. MaxSizeGib int64 `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}` Name string `json:"name,omitempty"` // OriginallyRequestedSizeGib: Originally requested size, in GiB. OriginallyRequestedSizeGib int64 `json:"originallyRequestedSizeGib,omitempty,string"` // Pod: Immutable. Pod name. Pod string `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. Protocol string `json:"protocol,omitempty"` // RemainingSpaceGib: The space remaining in the storage volume for new // LUNs, in GiB, excluding space reserved for snapshots. RemainingSpaceGib int64 `json:"remainingSpaceGib,omitempty,string"` // RequestedSizeGib: The requested size of this storage volume, in GiB. RequestedSizeGib int64 `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. SnapshotAutoDeleteBehavior string `json:"snapshotAutoDeleteBehavior,omitempty"` // SnapshotEnabled: Whether snapshots are enabled. SnapshotEnabled bool `json:"snapshotEnabled,omitempty"` // SnapshotReservationDetail: Details about snapshot space reservation // and usage on the storage volume. SnapshotReservationDetail *SnapshotReservationDetail `json:"snapshotReservationDetail,omitempty"` // SnapshotSchedulePolicy: The name of the snapshot schedule policy in // use for this volume, if any. SnapshotSchedulePolicy string `json:"snapshotSchedulePolicy,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. State string `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. StorageType string `json:"storageType,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AutoGrownSizeGib") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutoGrownSizeGib") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Volume: A storage volume.
func (*Volume) MarshalJSON ¶ added in v0.55.0
type VolumeConfig ¶ added in v0.69.0
type VolumeConfig struct { // GcpService: The GCP service of the storage volume. Available // gcp_service are in // https://cloud.google.com/bare-metal/docs/bms-planning. GcpService string `json:"gcpService,omitempty"` // Id: A transient unique identifier to identify a volume within an // ProvisioningConfig request. Id string `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. Name string `json:"name,omitempty"` // NfsExports: NFS exports. Set only when protocol is PROTOCOL_NFS. NfsExports []*NfsExport `json:"nfsExports,omitempty"` // Protocol: Volume protocol. // // Possible values: // "PROTOCOL_UNSPECIFIED" - Unspecified value. // "PROTOCOL_FC" - Fibre channel. // "PROTOCOL_NFS" - Network file system. Protocol string `json:"protocol,omitempty"` // SizeGb: The requested size of this volume, in GB. SizeGb int64 `json:"sizeGb,omitempty"` // SnapshotsEnabled: Whether snapshots should be enabled. SnapshotsEnabled bool `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. Type string `json:"type,omitempty"` // UserNote: User note field, it can be used by customers to add // additional information for the BMS Ops team . UserNote string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VolumeConfig: Configuration parameters for a new volume.
func (*VolumeConfig) MarshalJSON ¶ added in v0.69.0
func (s *VolumeConfig) MarshalJSON() ([]byte, error)