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/v1alpha1" ... 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 DisableInteractiveSerialConsoleRequest
- type DisableInteractiveSerialConsoleResponse
- type Empty
- type EnableInteractiveSerialConsoleRequest
- type EnableInteractiveSerialConsoleResponse
- type Instance
- type InstanceConfig
- type InstanceQuota
- type ListInstancesResponse
- type ListLunsResponse
- type ListProvisioningQuotasResponse
- type ListSSHKeysResponse
- type ListSnapshotSchedulePoliciesResponse
- type ListVolumeSnapshotsResponse
- type ListVolumesResponse
- type Lun
- type LunRange
- type NetworkAddress
- type NetworkConfig
- type NfsExport
- type ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Context(ctx context.Context) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Do(opts ...googleapi.CallOption) (*DisableInteractiveSerialConsoleResponse, error)
- func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Header() http.Header
- type ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Context(ctx context.Context) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Do(opts ...googleapi.CallOption) (*EnableInteractiveSerialConsoleResponse, error)
- func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
- func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Header() http.Header
- type ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error)
- func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Header() http.Header
- func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall
- type ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Context(ctx context.Context) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error)
- func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) 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 ProjectsLocationsInstancesReadSerialPortOutputCall
- func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) Context(ctx context.Context) *ProjectsLocationsInstancesReadSerialPortOutputCall
- func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) Do(opts ...googleapi.CallOption) (*SerialPortOutput, error)
- func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesReadSerialPortOutputCall
- func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) Header() http.Header
- func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesReadSerialPortOutputCall
- func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) StartByte(startByte int64) *ProjectsLocationsInstancesReadSerialPortOutputCall
- type ProjectsLocationsInstancesResetInstanceCall
- func (c *ProjectsLocationsInstancesResetInstanceCall) Context(ctx context.Context) *ProjectsLocationsInstancesResetInstanceCall
- func (c *ProjectsLocationsInstancesResetInstanceCall) Do(opts ...googleapi.CallOption) (*ResetInstanceResponse, error)
- func (c *ProjectsLocationsInstancesResetInstanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesResetInstanceCall
- func (c *ProjectsLocationsInstancesResetInstanceCall) Header() http.Header
- type ProjectsLocationsInstancesService
- func (r *ProjectsLocationsInstancesService) DisableInteractiveSerialConsole(instance string, ...) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
- func (r *ProjectsLocationsInstancesService) EnableInteractiveSerialConsole(instance string, ...) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
- func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall
- func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall
- func (r *ProjectsLocationsInstancesService) ReadSerialPortOutput(instance string) *ProjectsLocationsInstancesReadSerialPortOutputCall
- func (r *ProjectsLocationsInstancesService) ResetInstance(instance string, resetinstancerequest *ResetInstanceRequest) *ProjectsLocationsInstancesResetInstanceCall
- type ProjectsLocationsLunsGetCall
- func (c *ProjectsLocationsLunsGetCall) Context(ctx context.Context) *ProjectsLocationsLunsGetCall
- func (c *ProjectsLocationsLunsGetCall) Do(opts ...googleapi.CallOption) (*Lun, error)
- func (c *ProjectsLocationsLunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLunsGetCall
- func (c *ProjectsLocationsLunsGetCall) Header() http.Header
- func (c *ProjectsLocationsLunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLunsGetCall
- type ProjectsLocationsLunsListCall
- func (c *ProjectsLocationsLunsListCall) Context(ctx context.Context) *ProjectsLocationsLunsListCall
- func (c *ProjectsLocationsLunsListCall) Do(opts ...googleapi.CallOption) (*ListLunsResponse, error)
- func (c *ProjectsLocationsLunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLunsListCall
- func (c *ProjectsLocationsLunsListCall) Header() http.Header
- func (c *ProjectsLocationsLunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLunsListCall
- func (c *ProjectsLocationsLunsListCall) PageSize(pageSize int64) *ProjectsLocationsLunsListCall
- func (c *ProjectsLocationsLunsListCall) PageToken(pageToken string) *ProjectsLocationsLunsListCall
- func (c *ProjectsLocationsLunsListCall) Pages(ctx context.Context, f func(*ListLunsResponse) error) error
- type ProjectsLocationsLunsService
- type ProjectsLocationsService
- type ProjectsLocationsSubmitProvisioningConfigCall
- func (c *ProjectsLocationsSubmitProvisioningConfigCall) Context(ctx context.Context) *ProjectsLocationsSubmitProvisioningConfigCall
- func (c *ProjectsLocationsSubmitProvisioningConfigCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig, error)
- func (c *ProjectsLocationsSubmitProvisioningConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsSubmitProvisioningConfigCall
- func (c *ProjectsLocationsSubmitProvisioningConfigCall) Header() http.Header
- type ProjectsLocationsVolumesGetCall
- func (c *ProjectsLocationsVolumesGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesGetCall
- func (c *ProjectsLocationsVolumesGetCall) Do(opts ...googleapi.CallOption) (*Volume, error)
- func (c *ProjectsLocationsVolumesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesGetCall
- func (c *ProjectsLocationsVolumesGetCall) Header() http.Header
- func (c *ProjectsLocationsVolumesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesGetCall
- type ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Context(ctx context.Context) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Do(opts ...googleapi.CallOption) (*ListVolumesResponse, error)
- func (c *ProjectsLocationsVolumesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) 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 ProjectsLocationsVolumesPatchCall
- func (c *ProjectsLocationsVolumesPatchCall) Context(ctx context.Context) *ProjectsLocationsVolumesPatchCall
- func (c *ProjectsLocationsVolumesPatchCall) Do(opts ...googleapi.CallOption) (*Volume, error)
- func (c *ProjectsLocationsVolumesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesPatchCall
- func (c *ProjectsLocationsVolumesPatchCall) Header() http.Header
- func (c *ProjectsLocationsVolumesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsVolumesPatchCall
- 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) SetVolumeSnapshotSchedulePolicy(volume string, ...) *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall
- type ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall
- func (c *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Context(ctx context.Context) *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall
- func (c *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Do(opts ...googleapi.CallOption) (*SetVolumeSnapshotSchedulePolicyResponse, error)
- func (c *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall
- func (c *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Header() http.Header
- type ProjectsLocationsVolumesSnapshotsCreateCall
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsCreateCall
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, error)
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsCreateCall
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Header() http.Header
- type ProjectsLocationsVolumesSnapshotsDeleteCall
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsDeleteCall
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsDeleteCall
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Header() http.Header
- type ProjectsLocationsVolumesSnapshotsGetCall
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsGetCall
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, error)
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsGetCall
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Header() http.Header
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsGetCall
- type ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Do(opts ...googleapi.CallOption) (*ListVolumeSnapshotsResponse, error)
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Header() http.Header
- func (c *ProjectsLocationsVolumesSnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) PageToken(pageToken string) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Pages(ctx context.Context, f func(*ListVolumeSnapshotsResponse) error) error
- type ProjectsLocationsVolumesSnapshotsRestoreCall
- func (c *ProjectsLocationsVolumesSnapshotsRestoreCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsRestoreCall
- func (c *ProjectsLocationsVolumesSnapshotsRestoreCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsVolumesSnapshotsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsRestoreCall
- func (c *ProjectsLocationsVolumesSnapshotsRestoreCall) Header() http.Header
- type ProjectsLocationsVolumesSnapshotsService
- func (r *ProjectsLocationsVolumesSnapshotsService) Create(parent string, volumesnapshot *VolumeSnapshot) *ProjectsLocationsVolumesSnapshotsCreateCall
- func (r *ProjectsLocationsVolumesSnapshotsService) Delete(name string) *ProjectsLocationsVolumesSnapshotsDeleteCall
- func (r *ProjectsLocationsVolumesSnapshotsService) Get(name string) *ProjectsLocationsVolumesSnapshotsGetCall
- func (r *ProjectsLocationsVolumesSnapshotsService) List(parent string) *ProjectsLocationsVolumesSnapshotsListCall
- func (r *ProjectsLocationsVolumesSnapshotsService) Restore(name string, restorevolumesnapshotrequest *RestoreVolumeSnapshotRequest) *ProjectsLocationsVolumesSnapshotsRestoreCall
- type ProjectsProvisioningQuotasListCall
- func (c *ProjectsProvisioningQuotasListCall) Context(ctx context.Context) *ProjectsProvisioningQuotasListCall
- func (c *ProjectsProvisioningQuotasListCall) Do(opts ...googleapi.CallOption) (*ListProvisioningQuotasResponse, error)
- func (c *ProjectsProvisioningQuotasListCall) Fields(s ...googleapi.Field) *ProjectsProvisioningQuotasListCall
- func (c *ProjectsProvisioningQuotasListCall) Header() http.Header
- func (c *ProjectsProvisioningQuotasListCall) IfNoneMatch(entityTag string) *ProjectsProvisioningQuotasListCall
- func (c *ProjectsProvisioningQuotasListCall) PageSize(pageSize int64) *ProjectsProvisioningQuotasListCall
- func (c *ProjectsProvisioningQuotasListCall) PageToken(pageToken string) *ProjectsProvisioningQuotasListCall
- func (c *ProjectsProvisioningQuotasListCall) Pages(ctx context.Context, f func(*ListProvisioningQuotasResponse) error) error
- type ProjectsProvisioningQuotasService
- type ProjectsService
- type ProjectsSnapshotSchedulePoliciesCreateCall
- func (c *ProjectsSnapshotSchedulePoliciesCreateCall) Context(ctx context.Context) *ProjectsSnapshotSchedulePoliciesCreateCall
- func (c *ProjectsSnapshotSchedulePoliciesCreateCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
- func (c *ProjectsSnapshotSchedulePoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsSnapshotSchedulePoliciesCreateCall
- func (c *ProjectsSnapshotSchedulePoliciesCreateCall) Header() http.Header
- func (c *ProjectsSnapshotSchedulePoliciesCreateCall) SnapshotSchedulePolicyId(snapshotSchedulePolicyId string) *ProjectsSnapshotSchedulePoliciesCreateCall
- type ProjectsSnapshotSchedulePoliciesDeleteCall
- func (c *ProjectsSnapshotSchedulePoliciesDeleteCall) Context(ctx context.Context) *ProjectsSnapshotSchedulePoliciesDeleteCall
- func (c *ProjectsSnapshotSchedulePoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsSnapshotSchedulePoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsSnapshotSchedulePoliciesDeleteCall
- func (c *ProjectsSnapshotSchedulePoliciesDeleteCall) Header() http.Header
- type ProjectsSnapshotSchedulePoliciesGetCall
- func (c *ProjectsSnapshotSchedulePoliciesGetCall) Context(ctx context.Context) *ProjectsSnapshotSchedulePoliciesGetCall
- func (c *ProjectsSnapshotSchedulePoliciesGetCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
- func (c *ProjectsSnapshotSchedulePoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsSnapshotSchedulePoliciesGetCall
- func (c *ProjectsSnapshotSchedulePoliciesGetCall) Header() http.Header
- func (c *ProjectsSnapshotSchedulePoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsSnapshotSchedulePoliciesGetCall
- type ProjectsSnapshotSchedulePoliciesListCall
- func (c *ProjectsSnapshotSchedulePoliciesListCall) Context(ctx context.Context) *ProjectsSnapshotSchedulePoliciesListCall
- func (c *ProjectsSnapshotSchedulePoliciesListCall) Do(opts ...googleapi.CallOption) (*ListSnapshotSchedulePoliciesResponse, error)
- func (c *ProjectsSnapshotSchedulePoliciesListCall) Fields(s ...googleapi.Field) *ProjectsSnapshotSchedulePoliciesListCall
- func (c *ProjectsSnapshotSchedulePoliciesListCall) Header() http.Header
- func (c *ProjectsSnapshotSchedulePoliciesListCall) IfNoneMatch(entityTag string) *ProjectsSnapshotSchedulePoliciesListCall
- func (c *ProjectsSnapshotSchedulePoliciesListCall) PageSize(pageSize int64) *ProjectsSnapshotSchedulePoliciesListCall
- func (c *ProjectsSnapshotSchedulePoliciesListCall) PageToken(pageToken string) *ProjectsSnapshotSchedulePoliciesListCall
- func (c *ProjectsSnapshotSchedulePoliciesListCall) Pages(ctx context.Context, f func(*ListSnapshotSchedulePoliciesResponse) error) error
- type ProjectsSnapshotSchedulePoliciesPatchCall
- func (c *ProjectsSnapshotSchedulePoliciesPatchCall) Context(ctx context.Context) *ProjectsSnapshotSchedulePoliciesPatchCall
- func (c *ProjectsSnapshotSchedulePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
- func (c *ProjectsSnapshotSchedulePoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsSnapshotSchedulePoliciesPatchCall
- func (c *ProjectsSnapshotSchedulePoliciesPatchCall) Header() http.Header
- func (c *ProjectsSnapshotSchedulePoliciesPatchCall) UpdateMask(updateMask string) *ProjectsSnapshotSchedulePoliciesPatchCall
- type ProjectsSnapshotSchedulePoliciesService
- func (r *ProjectsSnapshotSchedulePoliciesService) Create(parent string, snapshotschedulepolicy *SnapshotSchedulePolicy) *ProjectsSnapshotSchedulePoliciesCreateCall
- func (r *ProjectsSnapshotSchedulePoliciesService) Delete(name string) *ProjectsSnapshotSchedulePoliciesDeleteCall
- func (r *ProjectsSnapshotSchedulePoliciesService) Get(name string) *ProjectsSnapshotSchedulePoliciesGetCall
- func (r *ProjectsSnapshotSchedulePoliciesService) List(parent string) *ProjectsSnapshotSchedulePoliciesListCall
- func (r *ProjectsSnapshotSchedulePoliciesService) Patch(name string, snapshotschedulepolicy *SnapshotSchedulePolicy) *ProjectsSnapshotSchedulePoliciesPatchCall
- type ProjectsSshKeysCreateCall
- func (c *ProjectsSshKeysCreateCall) Context(ctx context.Context) *ProjectsSshKeysCreateCall
- func (c *ProjectsSshKeysCreateCall) Do(opts ...googleapi.CallOption) (*SSHKey, error)
- func (c *ProjectsSshKeysCreateCall) Fields(s ...googleapi.Field) *ProjectsSshKeysCreateCall
- func (c *ProjectsSshKeysCreateCall) Header() http.Header
- func (c *ProjectsSshKeysCreateCall) SshKeyId(sshKeyId string) *ProjectsSshKeysCreateCall
- type ProjectsSshKeysDeleteCall
- func (c *ProjectsSshKeysDeleteCall) Context(ctx context.Context) *ProjectsSshKeysDeleteCall
- func (c *ProjectsSshKeysDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsSshKeysDeleteCall) Fields(s ...googleapi.Field) *ProjectsSshKeysDeleteCall
- func (c *ProjectsSshKeysDeleteCall) Header() http.Header
- type ProjectsSshKeysListCall
- func (c *ProjectsSshKeysListCall) Context(ctx context.Context) *ProjectsSshKeysListCall
- func (c *ProjectsSshKeysListCall) Do(opts ...googleapi.CallOption) (*ListSSHKeysResponse, error)
- func (c *ProjectsSshKeysListCall) Fields(s ...googleapi.Field) *ProjectsSshKeysListCall
- func (c *ProjectsSshKeysListCall) Header() http.Header
- func (c *ProjectsSshKeysListCall) IfNoneMatch(entityTag string) *ProjectsSshKeysListCall
- func (c *ProjectsSshKeysListCall) PageSize(pageSize int64) *ProjectsSshKeysListCall
- func (c *ProjectsSshKeysListCall) PageToken(pageToken string) *ProjectsSshKeysListCall
- func (c *ProjectsSshKeysListCall) Pages(ctx context.Context, f func(*ListSSHKeysResponse) error) error
- type ProjectsSshKeysService
- type ProvisioningConfig
- type ProvisioningQuota
- type ResetInstanceRequest
- type ResetInstanceResponse
- type RestoreVolumeSnapshotRequest
- type SSHKey
- type Schedule
- type SerialPortOutput
- type Service
- type SetVolumeSnapshotSchedulePolicyRequest
- type SetVolumeSnapshotSchedulePolicyResponse
- type SnapshotSchedulePolicy
- type SubmitProvisioningConfigRequest
- type VlanAttachment
- type Volume
- type VolumeConfig
- type VolumeSnapshot
Constants ¶
const ( // See, edit, configure, and delete your Google Cloud data and see the // email address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisableInteractiveSerialConsoleRequest ¶
type DisableInteractiveSerialConsoleRequest struct { }
DisableInteractiveSerialConsoleRequest: Request for DisableInteractiveSerialConsole.
type DisableInteractiveSerialConsoleResponse ¶
type DisableInteractiveSerialConsoleResponse struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
DisableInteractiveSerialConsoleResponse: Response for DisableInteractiveSerialConsole.
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
type EnableInteractiveSerialConsoleRequest ¶
type EnableInteractiveSerialConsoleRequest struct { }
EnableInteractiveSerialConsoleRequest: Request for EnableInteractiveSerialConsole.
type EnableInteractiveSerialConsoleResponse ¶
type EnableInteractiveSerialConsoleResponse struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
EnableInteractiveSerialConsoleResponse: Response for EnableInteractiveSerialConsole.
type Instance ¶
type Instance struct { // HyperthreadingEnabled: Is hyperthreading enabled for this instance? HyperthreadingEnabled bool `json:"hyperthreadingEnabled,omitempty"` // Luns: The Luns attached to this instance Luns []*Lun `json:"luns,omitempty"` // Name: Output only. The name of this Instance. Name string `json:"name,omitempty"` // ScheduledPowerResetTime: The scheduled power reset time. ScheduledPowerResetTime string `json:"scheduledPowerResetTime,omitempty"` // SshEnabled: Is SSH enabled for this instance? SshEnabled bool `json:"sshEnabled,omitempty"` // State: The state of this Instance. // // Possible values: // "STATE_UNSPECIFIED" - The unspecified state. // "RESERVED" - The Instance has been reserved. // "PROVISIONING" - The Instance is being provisioned. // "PROVISIONED" - The Instance has been provisioned. // "DEPROVISIONING" - The Instance is being deprovisioned. // "DEPROVISIONED" - The Instance has been deprovisioned. // "UPDATING" - The Instance is being updated. State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "HyperthreadingEnabled") 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. "HyperthreadingEnabled") 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: An Instance.
func (*Instance) MarshalJSON ¶
type InstanceConfig ¶
type InstanceConfig struct { // ClientNetwork: Client network address. 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. InstanceType string `json:"instanceType,omitempty"` // Location: Location where to deploy the instance. Location string `json:"location,omitempty"` // OsImage: OS image to initialize the instance. OsImage string `json:"osImage,omitempty"` // PrivateNetwork: Private network address, if any. PrivateNetwork *NetworkAddress `json:"privateNetwork,omitempty"` // UserNote: User note field, it can be used by customers to add // additional information for the BMS Ops team (b/194021617). UserNote string `json:"userNote,omitempty"` // ForceSendFields is a list of field names (e.g. "ClientNetwork") 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. "ClientNetwork") 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 ¶
func (s *InstanceConfig) MarshalJSON() ([]byte, error)
type InstanceQuota ¶
type InstanceQuota struct { // AvailableMachineCount: Number of machines than can be created for the // given location and instance_type. AvailableMachineCount int64 `json:"availableMachineCount,omitempty"` // InstanceType: Instance type. InstanceType string `json:"instanceType,omitempty"` // Location: Location where the quota applies. Location string `json:"location,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 ¶
func (s *InstanceQuota) MarshalJSON() ([]byte, error)
type ListInstancesResponse ¶
type ListInstancesResponse struct { // Instances: The Instances in this project. Instances []*Instance `json:"instances,omitempty"` // 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"` // 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 for ListInstances.
func (*ListInstancesResponse) MarshalJSON ¶
func (s *ListInstancesResponse) MarshalJSON() ([]byte, error)
type ListLunsResponse ¶
type ListLunsResponse struct { // Luns: The Luns in this project. Luns []*Lun `json:"luns,omitempty"` // 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"` // 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 for ListLuns.
func (*ListLunsResponse) MarshalJSON ¶
func (s *ListLunsResponse) MarshalJSON() ([]byte, error)
type ListProvisioningQuotasResponse ¶
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 for ListProvisioningQuotas.
func (*ListProvisioningQuotasResponse) MarshalJSON ¶
func (s *ListProvisioningQuotasResponse) MarshalJSON() ([]byte, error)
type ListSSHKeysResponse ¶
type ListSSHKeysResponse 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"` // SshKeys: The SSH keys registered in this project. SshKeys []*SSHKey `json:"sshKeys,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. 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:"-"` }
ListSSHKeysResponse: Response for ListSSHKeys.
func (*ListSSHKeysResponse) MarshalJSON ¶
func (s *ListSSHKeysResponse) MarshalJSON() ([]byte, error)
type ListSnapshotSchedulePoliciesResponse ¶
type ListSnapshotSchedulePoliciesResponse 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"` // SnapshotSchedulePolicies: The snapshot schedule policies registered // in this project. SnapshotSchedulePolicies []*SnapshotSchedulePolicy `json:"snapshotSchedulePolicies,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:"-"` }
ListSnapshotSchedulePoliciesResponse: Response for ListSnapshotSchedulePolicies.
func (*ListSnapshotSchedulePoliciesResponse) MarshalJSON ¶
func (s *ListSnapshotSchedulePoliciesResponse) MarshalJSON() ([]byte, error)
type ListVolumeSnapshotsResponse ¶
type ListVolumeSnapshotsResponse 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"` // VolumeSnapshots: The VolumeSnapshots for the volume. VolumeSnapshots []*VolumeSnapshot `json:"volumeSnapshots,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. 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:"-"` }
ListVolumeSnapshotsResponse: Response for ListVolumeSnapshots.
func (*ListVolumeSnapshotsResponse) MarshalJSON ¶
func (s *ListVolumeSnapshotsResponse) MarshalJSON() ([]byte, error)
type ListVolumesResponse ¶
type ListVolumesResponse 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"` // Volumes: The volumes registered in this project. 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 for ListVolumes.
func (*ListVolumesResponse) MarshalJSON ¶
func (s *ListVolumesResponse) MarshalJSON() ([]byte, error)
type Lun ¶
type Lun struct { // IsBoot: Whether this Lun is a boot Lun. IsBoot bool `json:"isBoot,omitempty"` // MultiprotocolType: The multiprotocol type of this Lun. MultiprotocolType string `json:"multiprotocolType,omitempty"` // Name: Output only. The name of this Lun. Name string `json:"name,omitempty"` // RemoteVolume: The storage volume that this Lun is attached to. RemoteVolume *Volume `json:"remoteVolume,omitempty"` // SerialNumber: The serial number of this Lun SerialNumber string `json:"serialNumber,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 Lun. // // Possible values: // "STATE_UNSPECIFIED" - The unspecified state. // "RESERVED" - The Lun has been reserved. // "PROVISIONING" - The Lun is being provisioned. // "PROVISIONED" - The Lun has been provisioned. // "DEPROVISIONING" - The Lun is being deprovisioned. // "DEPROVISIONED" - The Lun has been deprovisioned. // "UPDATING" - The Lun is being updated. State string `json:"state,omitempty"` // Wwid: World Wide IDentifier of 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. "IsBoot") 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. "IsBoot") 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 Lun.
func (*Lun) MarshalJSON ¶
type LunRange ¶
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 range.
func (*LunRange) MarshalJSON ¶
type NetworkAddress ¶
type NetworkAddress struct { // Address: IP address to be assigned to the server. Address string `json:"address,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 ¶
func (s *NetworkAddress) MarshalJSON() ([]byte, error)
type NetworkConfig ¶
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"` // Id: A transient unique identifier to identify a volume within an // ProvisioningConfig request. Id string `json:"id,omitempty"` // Location: Location where to deploy the network. Location string `json:"location,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. // // 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 (b/194021617). 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 []*VlanAttachment `json:"vlanAttachments,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 ¶
func (s *NetworkConfig) MarshalJSON() ([]byte, error)
type NfsExport ¶
type NfsExport struct { // AllowDev: Allow dev. 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: A single machine, identified by an ID. MachineId string `json:"machineId,omitempty"` // NetworkId: Network to use to publish the export. NetworkId string `json:"networkId,omitempty"` // NoRootSquash: Disable root squashing. 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 ¶
type ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall ¶
type ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Context ¶
func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Context(ctx context.Context) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
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 (*ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Do ¶
func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Do(opts ...googleapi.CallOption) (*DisableInteractiveSerialConsoleResponse, error)
Do executes the "baremetalsolution.projects.locations.instances.disableInteractiveSerialConsole" call. Exactly one of *DisableInteractiveSerialConsoleResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DisableInteractiveSerialConsoleResponse.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 (*ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Fields ¶
func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Header ¶
func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall ¶
type ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Context ¶
func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Context(ctx context.Context) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
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 (*ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Do ¶
func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Do(opts ...googleapi.CallOption) (*EnableInteractiveSerialConsoleResponse, error)
Do executes the "baremetalsolution.projects.locations.instances.enableInteractiveSerialConsole" call. Exactly one of *EnableInteractiveSerialConsoleResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EnableInteractiveSerialConsoleResponse.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 (*ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Fields ¶
func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) Header ¶
func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) 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) 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": The maximum number of items to return.
func (*ProjectsLocationsInstancesListCall) PageToken ¶
func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.
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 ProjectsLocationsInstancesReadSerialPortOutputCall ¶
type ProjectsLocationsInstancesReadSerialPortOutputCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesReadSerialPortOutputCall) Context ¶
func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) Context(ctx context.Context) *ProjectsLocationsInstancesReadSerialPortOutputCall
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 (*ProjectsLocationsInstancesReadSerialPortOutputCall) Do ¶
func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) Do(opts ...googleapi.CallOption) (*SerialPortOutput, error)
Do executes the "baremetalsolution.projects.locations.instances.readSerialPortOutput" call. Exactly one of *SerialPortOutput or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SerialPortOutput.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 (*ProjectsLocationsInstancesReadSerialPortOutputCall) Fields ¶
func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesReadSerialPortOutputCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesReadSerialPortOutputCall) Header ¶
func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsInstancesReadSerialPortOutputCall) IfNoneMatch ¶
func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesReadSerialPortOutputCall
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 (*ProjectsLocationsInstancesReadSerialPortOutputCall) StartByte ¶
func (c *ProjectsLocationsInstancesReadSerialPortOutputCall) StartByte(startByte int64) *ProjectsLocationsInstancesReadSerialPortOutputCall
StartByte sets the optional parameter "startByte": The start byte of the serial port output to return.
type ProjectsLocationsInstancesResetInstanceCall ¶
type ProjectsLocationsInstancesResetInstanceCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesResetInstanceCall) Context ¶
func (c *ProjectsLocationsInstancesResetInstanceCall) Context(ctx context.Context) *ProjectsLocationsInstancesResetInstanceCall
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 (*ProjectsLocationsInstancesResetInstanceCall) Do ¶
func (c *ProjectsLocationsInstancesResetInstanceCall) Do(opts ...googleapi.CallOption) (*ResetInstanceResponse, error)
Do executes the "baremetalsolution.projects.locations.instances.resetInstance" call. Exactly one of *ResetInstanceResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ResetInstanceResponse.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 (*ProjectsLocationsInstancesResetInstanceCall) Fields ¶
func (c *ProjectsLocationsInstancesResetInstanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesResetInstanceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesResetInstanceCall) Header ¶
func (c *ProjectsLocationsInstancesResetInstanceCall) 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) DisableInteractiveSerialConsole ¶
func (r *ProjectsLocationsInstancesService) DisableInteractiveSerialConsole(instance string, disableinteractiveserialconsolerequest *DisableInteractiveSerialConsoleRequest) *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall
DisableInteractiveSerialConsole: Disable the interactive serial console feature on a specific machine.
- instance: Name of the instance to disable the interactive serial console feature on.
func (*ProjectsLocationsInstancesService) EnableInteractiveSerialConsole ¶
func (r *ProjectsLocationsInstancesService) EnableInteractiveSerialConsole(instance string, enableinteractiveserialconsolerequest *EnableInteractiveSerialConsoleRequest) *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall
EnableInteractiveSerialConsole: Enable the interactive serial console feature on a specific machine.
- instance: Name of the instance to enable the interactive serial console feature on.
func (*ProjectsLocationsInstancesService) Get ¶
func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall
Get: Get details for a specific named Instance.
- name: The name of the Instance to retrieve.
func (*ProjectsLocationsInstancesService) List ¶
func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall
List: List Instances (physical servers).
- parent: The location to list Instances in.
func (*ProjectsLocationsInstancesService) ReadSerialPortOutput ¶
func (r *ProjectsLocationsInstancesService) ReadSerialPortOutput(instance string) *ProjectsLocationsInstancesReadSerialPortOutputCall
ReadSerialPortOutput: Read the most recent serial port output from a machine.
- instance: Name of the instance to get serial port output of.
func (*ProjectsLocationsInstancesService) ResetInstance ¶
func (r *ProjectsLocationsInstancesService) ResetInstance(instance string, resetinstancerequest *ResetInstanceRequest) *ProjectsLocationsInstancesResetInstanceCall
ResetInstance: Perform an ungraceful, hard reset on a machine (equivalent to physically turning power off and then back on).
- instance: Name of the instance to reset.
type ProjectsLocationsLunsGetCall ¶
type ProjectsLocationsLunsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLunsGetCall) Context ¶
func (c *ProjectsLocationsLunsGetCall) Context(ctx context.Context) *ProjectsLocationsLunsGetCall
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 (*ProjectsLocationsLunsGetCall) Do ¶
func (c *ProjectsLocationsLunsGetCall) Do(opts ...googleapi.CallOption) (*Lun, error)
Do executes the "baremetalsolution.projects.locations.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 (*ProjectsLocationsLunsGetCall) Fields ¶
func (c *ProjectsLocationsLunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLunsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLunsGetCall) Header ¶
func (c *ProjectsLocationsLunsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLunsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsLunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLunsGetCall
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 ProjectsLocationsLunsListCall ¶
type ProjectsLocationsLunsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLunsListCall) Context ¶
func (c *ProjectsLocationsLunsListCall) Context(ctx context.Context) *ProjectsLocationsLunsListCall
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 (*ProjectsLocationsLunsListCall) Do ¶
func (c *ProjectsLocationsLunsListCall) Do(opts ...googleapi.CallOption) (*ListLunsResponse, error)
Do executes the "baremetalsolution.projects.locations.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 (*ProjectsLocationsLunsListCall) Fields ¶
func (c *ProjectsLocationsLunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLunsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLunsListCall) Header ¶
func (c *ProjectsLocationsLunsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLunsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsLunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLunsListCall
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 (*ProjectsLocationsLunsListCall) PageSize ¶
func (c *ProjectsLocationsLunsListCall) PageSize(pageSize int64) *ProjectsLocationsLunsListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return.
func (*ProjectsLocationsLunsListCall) PageToken ¶
func (c *ProjectsLocationsLunsListCall) PageToken(pageToken string) *ProjectsLocationsLunsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.
func (*ProjectsLocationsLunsListCall) Pages ¶
func (c *ProjectsLocationsLunsListCall) 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 ProjectsLocationsLunsService ¶
type ProjectsLocationsLunsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsLunsService ¶
func NewProjectsLocationsLunsService(s *Service) *ProjectsLocationsLunsService
func (*ProjectsLocationsLunsService) Get ¶
func (r *ProjectsLocationsLunsService) Get(name string) *ProjectsLocationsLunsGetCall
Get: Get details for a specific named Lun.
- name: The name of the Lun to retrieve.
func (*ProjectsLocationsLunsService) List ¶
func (r *ProjectsLocationsLunsService) List(parent string) *ProjectsLocationsLunsListCall
List: List Luns.
- parent: The location to list Luns in.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { Instances *ProjectsLocationsInstancesService Luns *ProjectsLocationsLunsService Volumes *ProjectsLocationsVolumesService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) SubmitProvisioningConfig ¶
func (r *ProjectsLocationsService) SubmitProvisioningConfig(project string, location string, submitprovisioningconfigrequest *SubmitProvisioningConfigRequest) *ProjectsLocationsSubmitProvisioningConfigCall
SubmitProvisioningConfig: Submit a provisiong configuration for a given project.
- location: The target location of the provisioning request. - project: The target project of the provisioning request.
type ProjectsLocationsSubmitProvisioningConfigCall ¶
type ProjectsLocationsSubmitProvisioningConfigCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSubmitProvisioningConfigCall) Context ¶
func (c *ProjectsLocationsSubmitProvisioningConfigCall) Context(ctx context.Context) *ProjectsLocationsSubmitProvisioningConfigCall
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 (*ProjectsLocationsSubmitProvisioningConfigCall) Do ¶
func (c *ProjectsLocationsSubmitProvisioningConfigCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig, error)
Do executes the "baremetalsolution.projects.locations.submitProvisioningConfig" 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 (*ProjectsLocationsSubmitProvisioningConfigCall) Fields ¶
func (c *ProjectsLocationsSubmitProvisioningConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsSubmitProvisioningConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSubmitProvisioningConfigCall) Header ¶
func (c *ProjectsLocationsSubmitProvisioningConfigCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsVolumesGetCall ¶
type ProjectsLocationsVolumesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesGetCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type ProjectsLocationsVolumesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesListCall) Context ¶
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 ¶
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 ¶
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) Header ¶
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 ¶
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 ¶
func (c *ProjectsLocationsVolumesListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return.
func (*ProjectsLocationsVolumesListCall) PageToken ¶
func (c *ProjectsLocationsVolumesListCall) PageToken(pageToken string) *ProjectsLocationsVolumesListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.
func (*ProjectsLocationsVolumesListCall) Pages ¶
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 ProjectsLocationsVolumesPatchCall ¶
type ProjectsLocationsVolumesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesPatchCall) Context ¶
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 ¶
func (c *ProjectsLocationsVolumesPatchCall) Do(opts ...googleapi.CallOption) (*Volume, error)
Do executes the "baremetalsolution.projects.locations.volumes.patch" 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 (*ProjectsLocationsVolumesPatchCall) Fields ¶
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 ¶
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 ¶
func (c *ProjectsLocationsVolumesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsVolumesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update. The only currently supported field is `snapshot_auto_delete_behavior`.
type ProjectsLocationsVolumesService ¶
type ProjectsLocationsVolumesService struct { Snapshots *ProjectsLocationsVolumesSnapshotsService // contains filtered or unexported fields }
func NewProjectsLocationsVolumesService ¶
func NewProjectsLocationsVolumesService(s *Service) *ProjectsLocationsVolumesService
func (*ProjectsLocationsVolumesService) Get ¶
func (r *ProjectsLocationsVolumesService) Get(name string) *ProjectsLocationsVolumesGetCall
Get: Get details for a specific named Volume.
- name: The name of the Volume to retrieve.
func (*ProjectsLocationsVolumesService) List ¶
func (r *ProjectsLocationsVolumesService) List(parent string) *ProjectsLocationsVolumesListCall
List: List the volumes for the specified project
- parent: The location to list Volumes in.
func (*ProjectsLocationsVolumesService) Patch ¶
func (r *ProjectsLocationsVolumesService) Patch(name string, volume *Volume) *ProjectsLocationsVolumesPatchCall
Patch: Update certain parameters on a Volume.
- name: Output only. The name of this Volume.
func (*ProjectsLocationsVolumesService) SetVolumeSnapshotSchedulePolicy ¶
func (r *ProjectsLocationsVolumesService) SetVolumeSnapshotSchedulePolicy(volume string, setvolumesnapshotschedulepolicyrequest *SetVolumeSnapshotSchedulePolicyRequest) *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall
SetVolumeSnapshotSchedulePolicy: Sets the specified snapshot schedule policy on the specified volume.
- volume: Name of the volume to set snapshot schedule policy on.
type ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall ¶
type ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Context ¶
func (c *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Context(ctx context.Context) *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall
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 (*ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Do ¶
func (c *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Do(opts ...googleapi.CallOption) (*SetVolumeSnapshotSchedulePolicyResponse, error)
Do executes the "baremetalsolution.projects.locations.volumes.setVolumeSnapshotSchedulePolicy" call. Exactly one of *SetVolumeSnapshotSchedulePolicyResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SetVolumeSnapshotSchedulePolicyResponse.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 (*ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Fields ¶
func (c *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Header ¶
func (c *ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsVolumesSnapshotsCreateCall ¶
type ProjectsLocationsVolumesSnapshotsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSnapshotsCreateCall) Context ¶
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsCreateCall
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 (*ProjectsLocationsVolumesSnapshotsCreateCall) Do ¶
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.create" call. Exactly one of *VolumeSnapshot or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *VolumeSnapshot.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsCreateCall) Fields ¶
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSnapshotsCreateCall) Header ¶
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsVolumesSnapshotsDeleteCall ¶
type ProjectsLocationsVolumesSnapshotsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSnapshotsDeleteCall) Context ¶
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsDeleteCall
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 (*ProjectsLocationsVolumesSnapshotsDeleteCall) Do ¶
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsLocationsVolumesSnapshotsDeleteCall) Fields ¶
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSnapshotsDeleteCall) Header ¶
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsVolumesSnapshotsGetCall ¶
type ProjectsLocationsVolumesSnapshotsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSnapshotsGetCall) Context ¶
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsGetCall
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 (*ProjectsLocationsVolumesSnapshotsGetCall) Do ¶
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.get" call. Exactly one of *VolumeSnapshot or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *VolumeSnapshot.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsGetCall) Fields ¶
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSnapshotsGetCall) Header ¶
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesSnapshotsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsVolumesSnapshotsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsGetCall
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 ProjectsLocationsVolumesSnapshotsListCall ¶
type ProjectsLocationsVolumesSnapshotsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSnapshotsListCall) Context ¶
func (c *ProjectsLocationsVolumesSnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsListCall
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 (*ProjectsLocationsVolumesSnapshotsListCall) Do ¶
func (c *ProjectsLocationsVolumesSnapshotsListCall) Do(opts ...googleapi.CallOption) (*ListVolumeSnapshotsResponse, error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.list" call. Exactly one of *ListVolumeSnapshotsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListVolumeSnapshotsResponse.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 (*ProjectsLocationsVolumesSnapshotsListCall) Fields ¶
func (c *ProjectsLocationsVolumesSnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSnapshotsListCall) Header ¶
func (c *ProjectsLocationsVolumesSnapshotsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesSnapshotsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsVolumesSnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsListCall
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 (*ProjectsLocationsVolumesSnapshotsListCall) PageSize ¶
func (c *ProjectsLocationsVolumesSnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesSnapshotsListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return.
func (*ProjectsLocationsVolumesSnapshotsListCall) PageToken ¶
func (c *ProjectsLocationsVolumesSnapshotsListCall) PageToken(pageToken string) *ProjectsLocationsVolumesSnapshotsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.
func (*ProjectsLocationsVolumesSnapshotsListCall) Pages ¶
func (c *ProjectsLocationsVolumesSnapshotsListCall) Pages(ctx context.Context, f func(*ListVolumeSnapshotsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsVolumesSnapshotsRestoreCall ¶
type ProjectsLocationsVolumesSnapshotsRestoreCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSnapshotsRestoreCall) Context ¶
func (c *ProjectsLocationsVolumesSnapshotsRestoreCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsRestoreCall
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 (*ProjectsLocationsVolumesSnapshotsRestoreCall) Do ¶
func (c *ProjectsLocationsVolumesSnapshotsRestoreCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.restore" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsLocationsVolumesSnapshotsRestoreCall) Fields ¶
func (c *ProjectsLocationsVolumesSnapshotsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsRestoreCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSnapshotsRestoreCall) Header ¶
func (c *ProjectsLocationsVolumesSnapshotsRestoreCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsVolumesSnapshotsService ¶
type ProjectsLocationsVolumesSnapshotsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsVolumesSnapshotsService ¶
func NewProjectsLocationsVolumesSnapshotsService(s *Service) *ProjectsLocationsVolumesSnapshotsService
func (*ProjectsLocationsVolumesSnapshotsService) Create ¶
func (r *ProjectsLocationsVolumesSnapshotsService) Create(parent string, volumesnapshot *VolumeSnapshot) *ProjectsLocationsVolumesSnapshotsCreateCall
Create: Create snapshot of the specified Volume
- parent: The Volume containing the VolumeSnapshots.
func (*ProjectsLocationsVolumesSnapshotsService) Delete ¶
func (r *ProjectsLocationsVolumesSnapshotsService) Delete(name string) *ProjectsLocationsVolumesSnapshotsDeleteCall
Delete: Delete specific named snapshot.
- name: The name of the snapshot to delete.
func (*ProjectsLocationsVolumesSnapshotsService) Get ¶
func (r *ProjectsLocationsVolumesSnapshotsService) Get(name string) *ProjectsLocationsVolumesSnapshotsGetCall
Get: Get details for a specific named snapshot.
- name: The name of the snapshot to retrieve.
func (*ProjectsLocationsVolumesSnapshotsService) List ¶
func (r *ProjectsLocationsVolumesSnapshotsService) List(parent string) *ProjectsLocationsVolumesSnapshotsListCall
List: List the Snapshots for the specified Volume
- parent: The Volume containing the VolumeSnapshots.
func (*ProjectsLocationsVolumesSnapshotsService) Restore ¶
func (r *ProjectsLocationsVolumesSnapshotsService) Restore(name string, restorevolumesnapshotrequest *RestoreVolumeSnapshotRequest) *ProjectsLocationsVolumesSnapshotsRestoreCall
Restore: Restore a VolumeSnapshot.
- name: Name of the VolumeSnapshot to restore.
type ProjectsProvisioningQuotasListCall ¶
type ProjectsProvisioningQuotasListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsProvisioningQuotasListCall) Context ¶
func (c *ProjectsProvisioningQuotasListCall) Context(ctx context.Context) *ProjectsProvisioningQuotasListCall
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 (*ProjectsProvisioningQuotasListCall) Do ¶
func (c *ProjectsProvisioningQuotasListCall) Do(opts ...googleapi.CallOption) (*ListProvisioningQuotasResponse, error)
Do executes the "baremetalsolution.projects.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 (*ProjectsProvisioningQuotasListCall) Fields ¶
func (c *ProjectsProvisioningQuotasListCall) Fields(s ...googleapi.Field) *ProjectsProvisioningQuotasListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsProvisioningQuotasListCall) Header ¶
func (c *ProjectsProvisioningQuotasListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsProvisioningQuotasListCall) IfNoneMatch ¶
func (c *ProjectsProvisioningQuotasListCall) IfNoneMatch(entityTag string) *ProjectsProvisioningQuotasListCall
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 (*ProjectsProvisioningQuotasListCall) PageSize ¶
func (c *ProjectsProvisioningQuotasListCall) PageSize(pageSize int64) *ProjectsProvisioningQuotasListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return.
func (*ProjectsProvisioningQuotasListCall) PageToken ¶
func (c *ProjectsProvisioningQuotasListCall) PageToken(pageToken string) *ProjectsProvisioningQuotasListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.
func (*ProjectsProvisioningQuotasListCall) Pages ¶
func (c *ProjectsProvisioningQuotasListCall) 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 ProjectsProvisioningQuotasService ¶
type ProjectsProvisioningQuotasService struct {
// contains filtered or unexported fields
}
func NewProjectsProvisioningQuotasService ¶
func NewProjectsProvisioningQuotasService(s *Service) *ProjectsProvisioningQuotasService
func (*ProjectsProvisioningQuotasService) List ¶
func (r *ProjectsProvisioningQuotasService) List(parent string) *ProjectsProvisioningQuotasListCall
List: List the budget details to provision resources on a given project.
- parent: The parent project containing the provisioning quotas.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService ProvisioningQuotas *ProjectsProvisioningQuotasService SnapshotSchedulePolicies *ProjectsSnapshotSchedulePoliciesService SshKeys *ProjectsSshKeysService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type ProjectsSnapshotSchedulePoliciesCreateCall ¶
type ProjectsSnapshotSchedulePoliciesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSnapshotSchedulePoliciesCreateCall) Context ¶
func (c *ProjectsSnapshotSchedulePoliciesCreateCall) Context(ctx context.Context) *ProjectsSnapshotSchedulePoliciesCreateCall
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 (*ProjectsSnapshotSchedulePoliciesCreateCall) Do ¶
func (c *ProjectsSnapshotSchedulePoliciesCreateCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
Do executes the "baremetalsolution.projects.snapshotSchedulePolicies.create" call. Exactly one of *SnapshotSchedulePolicy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SnapshotSchedulePolicy.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 (*ProjectsSnapshotSchedulePoliciesCreateCall) Fields ¶
func (c *ProjectsSnapshotSchedulePoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsSnapshotSchedulePoliciesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsSnapshotSchedulePoliciesCreateCall) Header ¶
func (c *ProjectsSnapshotSchedulePoliciesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsSnapshotSchedulePoliciesCreateCall) SnapshotSchedulePolicyId ¶ added in v0.55.0
func (c *ProjectsSnapshotSchedulePoliciesCreateCall) SnapshotSchedulePolicyId(snapshotSchedulePolicyId string) *ProjectsSnapshotSchedulePoliciesCreateCall
SnapshotSchedulePolicyId sets the optional parameter "snapshotSchedulePolicyId": Required. Snapshot policy ID
type ProjectsSnapshotSchedulePoliciesDeleteCall ¶
type ProjectsSnapshotSchedulePoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSnapshotSchedulePoliciesDeleteCall) Context ¶
func (c *ProjectsSnapshotSchedulePoliciesDeleteCall) Context(ctx context.Context) *ProjectsSnapshotSchedulePoliciesDeleteCall
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 (*ProjectsSnapshotSchedulePoliciesDeleteCall) Do ¶
func (c *ProjectsSnapshotSchedulePoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "baremetalsolution.projects.snapshotSchedulePolicies.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsSnapshotSchedulePoliciesDeleteCall) Fields ¶
func (c *ProjectsSnapshotSchedulePoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsSnapshotSchedulePoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsSnapshotSchedulePoliciesDeleteCall) Header ¶
func (c *ProjectsSnapshotSchedulePoliciesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsSnapshotSchedulePoliciesGetCall ¶
type ProjectsSnapshotSchedulePoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSnapshotSchedulePoliciesGetCall) Context ¶
func (c *ProjectsSnapshotSchedulePoliciesGetCall) Context(ctx context.Context) *ProjectsSnapshotSchedulePoliciesGetCall
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 (*ProjectsSnapshotSchedulePoliciesGetCall) Do ¶
func (c *ProjectsSnapshotSchedulePoliciesGetCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
Do executes the "baremetalsolution.projects.snapshotSchedulePolicies.get" call. Exactly one of *SnapshotSchedulePolicy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SnapshotSchedulePolicy.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 (*ProjectsSnapshotSchedulePoliciesGetCall) Fields ¶
func (c *ProjectsSnapshotSchedulePoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsSnapshotSchedulePoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsSnapshotSchedulePoliciesGetCall) Header ¶
func (c *ProjectsSnapshotSchedulePoliciesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsSnapshotSchedulePoliciesGetCall) IfNoneMatch ¶
func (c *ProjectsSnapshotSchedulePoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsSnapshotSchedulePoliciesGetCall
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 ProjectsSnapshotSchedulePoliciesListCall ¶
type ProjectsSnapshotSchedulePoliciesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSnapshotSchedulePoliciesListCall) Context ¶
func (c *ProjectsSnapshotSchedulePoliciesListCall) Context(ctx context.Context) *ProjectsSnapshotSchedulePoliciesListCall
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 (*ProjectsSnapshotSchedulePoliciesListCall) Do ¶
func (c *ProjectsSnapshotSchedulePoliciesListCall) Do(opts ...googleapi.CallOption) (*ListSnapshotSchedulePoliciesResponse, error)
Do executes the "baremetalsolution.projects.snapshotSchedulePolicies.list" call. Exactly one of *ListSnapshotSchedulePoliciesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSnapshotSchedulePoliciesResponse.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 (*ProjectsSnapshotSchedulePoliciesListCall) Fields ¶
func (c *ProjectsSnapshotSchedulePoliciesListCall) Fields(s ...googleapi.Field) *ProjectsSnapshotSchedulePoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsSnapshotSchedulePoliciesListCall) Header ¶
func (c *ProjectsSnapshotSchedulePoliciesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsSnapshotSchedulePoliciesListCall) IfNoneMatch ¶
func (c *ProjectsSnapshotSchedulePoliciesListCall) IfNoneMatch(entityTag string) *ProjectsSnapshotSchedulePoliciesListCall
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 (*ProjectsSnapshotSchedulePoliciesListCall) PageSize ¶
func (c *ProjectsSnapshotSchedulePoliciesListCall) PageSize(pageSize int64) *ProjectsSnapshotSchedulePoliciesListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return.
func (*ProjectsSnapshotSchedulePoliciesListCall) PageToken ¶
func (c *ProjectsSnapshotSchedulePoliciesListCall) PageToken(pageToken string) *ProjectsSnapshotSchedulePoliciesListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.
func (*ProjectsSnapshotSchedulePoliciesListCall) Pages ¶
func (c *ProjectsSnapshotSchedulePoliciesListCall) Pages(ctx context.Context, f func(*ListSnapshotSchedulePoliciesResponse) 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 ProjectsSnapshotSchedulePoliciesPatchCall ¶
type ProjectsSnapshotSchedulePoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSnapshotSchedulePoliciesPatchCall) Context ¶
func (c *ProjectsSnapshotSchedulePoliciesPatchCall) Context(ctx context.Context) *ProjectsSnapshotSchedulePoliciesPatchCall
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 (*ProjectsSnapshotSchedulePoliciesPatchCall) Do ¶
func (c *ProjectsSnapshotSchedulePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
Do executes the "baremetalsolution.projects.snapshotSchedulePolicies.patch" call. Exactly one of *SnapshotSchedulePolicy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SnapshotSchedulePolicy.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 (*ProjectsSnapshotSchedulePoliciesPatchCall) Fields ¶
func (c *ProjectsSnapshotSchedulePoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsSnapshotSchedulePoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsSnapshotSchedulePoliciesPatchCall) Header ¶
func (c *ProjectsSnapshotSchedulePoliciesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsSnapshotSchedulePoliciesPatchCall) UpdateMask ¶
func (c *ProjectsSnapshotSchedulePoliciesPatchCall) UpdateMask(updateMask string) *ProjectsSnapshotSchedulePoliciesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update.
type ProjectsSnapshotSchedulePoliciesService ¶
type ProjectsSnapshotSchedulePoliciesService struct {
// contains filtered or unexported fields
}
func NewProjectsSnapshotSchedulePoliciesService ¶
func NewProjectsSnapshotSchedulePoliciesService(s *Service) *ProjectsSnapshotSchedulePoliciesService
func (*ProjectsSnapshotSchedulePoliciesService) Create ¶
func (r *ProjectsSnapshotSchedulePoliciesService) Create(parent string, snapshotschedulepolicy *SnapshotSchedulePolicy) *ProjectsSnapshotSchedulePoliciesCreateCall
Create: Create a SnapshotSchedulePolicy.
- parent: The parent project containing the SnapshotSchedulePolicy.
func (*ProjectsSnapshotSchedulePoliciesService) Delete ¶
func (r *ProjectsSnapshotSchedulePoliciesService) Delete(name string) *ProjectsSnapshotSchedulePoliciesDeleteCall
Delete: Delete removes named snapshot schedule policy
- name: The name of the snapshot to delete.
func (*ProjectsSnapshotSchedulePoliciesService) Get ¶
func (r *ProjectsSnapshotSchedulePoliciesService) Get(name string) *ProjectsSnapshotSchedulePoliciesGetCall
Get: Get details for a specific snapshot schedule policy
- name: The name of the policy to retrieve.
func (*ProjectsSnapshotSchedulePoliciesService) List ¶
func (r *ProjectsSnapshotSchedulePoliciesService) List(parent string) *ProjectsSnapshotSchedulePoliciesListCall
List: List the snapshot schedule policies for the specified project
- parent: The parent project containing the Snapshot Schedule Policies.
func (*ProjectsSnapshotSchedulePoliciesService) Patch ¶
func (r *ProjectsSnapshotSchedulePoliciesService) Patch(name string, snapshotschedulepolicy *SnapshotSchedulePolicy) *ProjectsSnapshotSchedulePoliciesPatchCall
Patch: Update a SnapshotSchedulePolicy.
- name: Output only. The name of this SnapshotSchedulePolicy.
type ProjectsSshKeysCreateCall ¶
type ProjectsSshKeysCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSshKeysCreateCall) Context ¶
func (c *ProjectsSshKeysCreateCall) Context(ctx context.Context) *ProjectsSshKeysCreateCall
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 (*ProjectsSshKeysCreateCall) Do ¶
func (c *ProjectsSshKeysCreateCall) Do(opts ...googleapi.CallOption) (*SSHKey, error)
Do executes the "baremetalsolution.projects.sshKeys.create" call. Exactly one of *SSHKey or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SSHKey.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 (*ProjectsSshKeysCreateCall) Fields ¶
func (c *ProjectsSshKeysCreateCall) Fields(s ...googleapi.Field) *ProjectsSshKeysCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsSshKeysCreateCall) Header ¶
func (c *ProjectsSshKeysCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsSshKeysCreateCall) SshKeyId ¶
func (c *ProjectsSshKeysCreateCall) SshKeyId(sshKeyId string) *ProjectsSshKeysCreateCall
SshKeyId sets the optional parameter "sshKeyId": Required. The ID to use for the key, which will become the final component of the key's resource name. This value should be match the regex: [a-zA-Z0-9@.\-_]{1,64}
type ProjectsSshKeysDeleteCall ¶
type ProjectsSshKeysDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSshKeysDeleteCall) Context ¶
func (c *ProjectsSshKeysDeleteCall) Context(ctx context.Context) *ProjectsSshKeysDeleteCall
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 (*ProjectsSshKeysDeleteCall) Do ¶
func (c *ProjectsSshKeysDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "baremetalsolution.projects.sshKeys.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsSshKeysDeleteCall) Fields ¶
func (c *ProjectsSshKeysDeleteCall) Fields(s ...googleapi.Field) *ProjectsSshKeysDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsSshKeysDeleteCall) Header ¶
func (c *ProjectsSshKeysDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsSshKeysListCall ¶
type ProjectsSshKeysListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSshKeysListCall) Context ¶
func (c *ProjectsSshKeysListCall) Context(ctx context.Context) *ProjectsSshKeysListCall
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 (*ProjectsSshKeysListCall) Do ¶
func (c *ProjectsSshKeysListCall) Do(opts ...googleapi.CallOption) (*ListSSHKeysResponse, error)
Do executes the "baremetalsolution.projects.sshKeys.list" call. Exactly one of *ListSSHKeysResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSSHKeysResponse.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 (*ProjectsSshKeysListCall) Fields ¶
func (c *ProjectsSshKeysListCall) Fields(s ...googleapi.Field) *ProjectsSshKeysListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsSshKeysListCall) Header ¶
func (c *ProjectsSshKeysListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsSshKeysListCall) IfNoneMatch ¶
func (c *ProjectsSshKeysListCall) IfNoneMatch(entityTag string) *ProjectsSshKeysListCall
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 (*ProjectsSshKeysListCall) PageSize ¶
func (c *ProjectsSshKeysListCall) PageSize(pageSize int64) *ProjectsSshKeysListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return.
func (*ProjectsSshKeysListCall) PageToken ¶
func (c *ProjectsSshKeysListCall) PageToken(pageToken string) *ProjectsSshKeysListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.
func (*ProjectsSshKeysListCall) Pages ¶
func (c *ProjectsSshKeysListCall) Pages(ctx context.Context, f func(*ListSSHKeysResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsSshKeysService ¶
type ProjectsSshKeysService struct {
// contains filtered or unexported fields
}
func NewProjectsSshKeysService ¶
func NewProjectsSshKeysService(s *Service) *ProjectsSshKeysService
func (*ProjectsSshKeysService) Create ¶
func (r *ProjectsSshKeysService) Create(parent string, sshkey *SSHKey) *ProjectsSshKeysCreateCall
Create: Create a new SSH key registration in the specified project.
- parent: The parent project containing the SSH keys.
func (*ProjectsSshKeysService) Delete ¶
func (r *ProjectsSshKeysService) Delete(name string) *ProjectsSshKeysDeleteCall
Delete: Delete an SSH key registration in the specified project.
- name: The name of the SSH key to delete.
func (*ProjectsSshKeysService) List ¶
func (r *ProjectsSshKeysService) List(parent string) *ProjectsSshKeysListCall
List: List the public SSH keys registered for the specified project.
- parent: The parent project containing the SSH keys.
type ProvisioningConfig ¶
type ProvisioningConfig struct { // Instances: Instances to be created. Instances []*InstanceConfig `json:"instances,omitempty"` // Networks: Networks to be created. Networks []*NetworkConfig `json:"networks,omitempty"` // TicketId: A reference to track the request. TicketId string `json:"ticketId,omitempty"` // Volumes: Volumes to be created. Volumes []*VolumeConfig `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. "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:"-"` }
ProvisioningConfig: An provisioning configuration.
func (*ProvisioningConfig) MarshalJSON ¶
func (s *ProvisioningConfig) MarshalJSON() ([]byte, error)
type ProvisioningQuota ¶
type ProvisioningQuota struct { // InstanceQuota: Instance quota. InstanceQuota *InstanceQuota `json:"instanceQuota,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceQuota") 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. "InstanceQuota") 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 ¶
func (s *ProvisioningQuota) MarshalJSON() ([]byte, error)
type ResetInstanceRequest ¶
type ResetInstanceRequest struct { }
ResetInstanceRequest: Request for ResetInstance.
type ResetInstanceResponse ¶
type ResetInstanceResponse struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
ResetInstanceResponse: Response for ResetInstance.
type RestoreVolumeSnapshotRequest ¶
type RestoreVolumeSnapshotRequest struct { }
RestoreVolumeSnapshotRequest: Request for RestoreVolumeSnapshot.
type SSHKey ¶
type SSHKey struct { // Name: Output only. The name of this SSH key. Name string `json:"name,omitempty"` // PublicKey: The public SSH key. PublicKey string `json:"publicKey,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. 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:"-"` }
SSHKey: A public SSH key registered in the project. Used primarily for the interactive serial console feature.
func (*SSHKey) MarshalJSON ¶
type Schedule ¶
type Schedule struct { // CrontabSpec: The crontab-like specification that this Schedule will // use to take snapshots. CrontabSpec string `json:"crontabSpec,omitempty"` // Prefix: A string to prefix names of snapshots created under this // Schedule. Prefix string `json:"prefix,omitempty"` // RetentionCount: The maximum number of snapshots to retain under this // Schedule. RetentionCount int64 `json:"retentionCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CrontabSpec") 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. "CrontabSpec") 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:"-"` }
Schedule: A snapshot schedule.
func (*Schedule) MarshalJSON ¶
type SerialPortOutput ¶
type SerialPortOutput struct { // Contents: The serial port output. Contents string `json:"contents,omitempty"` // NextStartByte: The byte index to use in a subsequent call to // ReadSerialPortOutput to get more output. NextStartByte int64 `json:"nextStartByte,omitempty,string"` // Start: The start byte index of the included contents. Start int64 `json:"start,omitempty,string"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Contents") 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. "Contents") 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:"-"` }
SerialPortOutput: Response for ReadSerialPortOutput.
func (*SerialPortOutput) MarshalJSON ¶
func (s *SerialPortOutput) 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 SetVolumeSnapshotSchedulePolicyRequest ¶
type SetVolumeSnapshotSchedulePolicyRequest struct { // SnapshotSchedulePolicy: Required. The name of the policy to set on // the volume. SnapshotSchedulePolicy string `json:"snapshotSchedulePolicy,omitempty"` // ForceSendFields is a list of field names (e.g. // "SnapshotSchedulePolicy") 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. "SnapshotSchedulePolicy") // 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:"-"` }
SetVolumeSnapshotSchedulePolicyRequest: Request for SetVolumeSnapshotSchedulePolicy.
func (*SetVolumeSnapshotSchedulePolicyRequest) MarshalJSON ¶
func (s *SetVolumeSnapshotSchedulePolicyRequest) MarshalJSON() ([]byte, error)
type SetVolumeSnapshotSchedulePolicyResponse ¶
type SetVolumeSnapshotSchedulePolicyResponse struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
SetVolumeSnapshotSchedulePolicyResponse: Response for SetVolumeSnapshotSchedulePolicy.
type SnapshotSchedulePolicy ¶
type SnapshotSchedulePolicy struct { // Description: The description of this SnapshotSchedulePolicy. Description string `json:"description,omitempty"` // Name: Output only. The name of this SnapshotSchedulePolicy. Name string `json:"name,omitempty"` // Schedules: The snapshot Schedules contained in this Policy. At most 5 // Schedules may be specified. Schedules []*Schedule `json:"schedules,omitempty"` // Volumes: The names of the Volumes this policy is associated with. Volumes []string `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. "Description") 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. "Description") 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:"-"` }
SnapshotSchedulePolicy: A snapshot schedule policy.
func (*SnapshotSchedulePolicy) MarshalJSON ¶
func (s *SnapshotSchedulePolicy) MarshalJSON() ([]byte, error)
type SubmitProvisioningConfigRequest ¶
type SubmitProvisioningConfigRequest struct { // ProvisioningConfig: Required. The ProvisioningConfig to submit. ProvisioningConfig *ProvisioningConfig `json:"provisioningConfig,omitempty"` // 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:"-"` }
SubmitProvisioningConfigRequest: Request for SubmitProvisioningConfig.
func (*SubmitProvisioningConfigRequest) MarshalJSON ¶
func (s *SubmitProvisioningConfigRequest) MarshalJSON() ([]byte, error)
type VlanAttachment ¶
type VlanAttachment 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:"-"` }
VlanAttachment: A GCP vlan attachment.
func (*VlanAttachment) MarshalJSON ¶
func (s *VlanAttachment) MarshalJSON() ([]byte, error)
type Volume ¶
type Volume struct { // AutoGrownSizeGb: The size, in GB, that this Volume has expanded as a // result of an auto grow policy. AutoGrownSizeGb int64 `json:"autoGrownSizeGb,omitempty,string"` // CurrentSizeGb: The current size of this Volume, in GB, including // space reserved for snapshots. This size may be different than the // requested size if the Volume has been configured with auto grow or // auto shrink. CurrentSizeGb int64 `json:"currentSizeGb,omitempty,string"` // Name: Output only. The name of this Volume. Name string `json:"name,omitempty"` // RemainingSpaceGb: The space remaining in the Volume for new LUNs, in // GB, excluding space reserved for snapshots. RemainingSpaceGb int64 `json:"remainingSpaceGb,omitempty,string"` // RequestedSizeGb: The requested size of this Volume, in GB. RequestedSizeGb int64 `json:"requestedSizeGb,omitempty,string"` // SnapshotAutoDeleteBehavior: The behavior to use when snapshot // reserved space is full. // // Possible values: // "SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED" - The unspecified // behavior. // "DISABLE" - Don't delete any snapshots. This disables new snapshot // creation, as long as the snapshot reserved space is full. // "OLDEST" - Delete the oldest snapshots first. // "NEWEST" - Delete the newest snapshots first. SnapshotAutoDeleteBehavior string `json:"snapshotAutoDeleteBehavior,omitempty"` // SnapshotReservedSpacePercent: The percent of space on this Volume // reserved for snapshots. SnapshotReservedSpacePercent int64 `json:"snapshotReservedSpacePercent,omitempty"` // SnapshotReservedSpaceRemainingGb: The amount, in GB, of space // available in this Volume's reserved snapshot space. SnapshotReservedSpaceRemainingGb int64 `json:"snapshotReservedSpaceRemainingGb,omitempty,string"` // SnapshotReservedSpaceUsedPercent: The percent of reserved snapshot // space on this Volume that is actually used by snapshot copies. This // may be higher than 100% if snapshot copies are occupying more space // than has been reserved on the Volume. SnapshotReservedSpaceUsedPercent int64 `json:"snapshotReservedSpaceUsedPercent,omitempty"` // State: The state of this Volume. // // Possible values: // "STATE_UNSPECIFIED" - The unspecified state. // "PROVISIONED" - The Volume has been provisioned. // "DEPROVISIONING_REQUESTED" - The Volume has been requested to be // deprovisioned. // "DEPROVISIONING_COOLOFF" - The Volume is in deprovisioning cooloff: // a deprovisioning has been requested, but data has not yet been // deleted. State string `json:"state,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"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AutoGrownSizeGb") 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. "AutoGrownSizeGb") 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: Volume registered in the project.
func (*Volume) MarshalJSON ¶
type VolumeConfig ¶
type VolumeConfig struct { // Id: A transient unique identifier to identify a volume within an // ProvisioningConfig request. Id string `json:"id,omitempty"` // Location: Location where to deploy the volume. Location string `json:"location,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"` // 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. This will be // updated in a later iteration with a generic size field. 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 (b/194021617). UserNote string `json:"userNote,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:"-"` }
VolumeConfig: Configuration parameters for a new volume.
func (*VolumeConfig) MarshalJSON ¶
func (s *VolumeConfig) MarshalJSON() ([]byte, error)
type VolumeSnapshot ¶
type VolumeSnapshot struct { // CreationTime: The creation time of this Snapshot. CreationTime string `json:"creationTime,omitempty"` // Description: The description of this Snapshot. Description string `json:"description,omitempty"` // Name: Output only. The name of this Snapshot. Name string `json:"name,omitempty"` // SizeBytes: The real size of this Snapshot, in bytes. SizeBytes int64 `json:"sizeBytes,omitempty,string"` // State: The state of this Snapshot. // // Possible values: // "STATE_UNSPECIFIED" - The unspecified state. // "CREATING" - The Snapshot is currently being created. // "ACTIVE" - The Snapshot has been created, and can be used to // restore. State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTime") 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. "CreationTime") 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:"-"` }
VolumeSnapshot: VolumeSnapshot registered for given Volume
func (*VolumeSnapshot) MarshalJSON ¶
func (s *VolumeSnapshot) MarshalJSON() ([]byte, error)