baremetalsolution

package
v0.52.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

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

View Source
const (
	// See, edit, configure, and delete your Google Cloud Platform data
	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 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

func (s *Instance) MarshalJSON() ([]byte, error)

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"`

	// ForceSendFields is a list of field names (e.g. "ClientNetwork") to
	// unconditionally include in API requests. By default, fields with
	// empty 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 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 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 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 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 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 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 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 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"`

	// Shareable: Whether this Lun is allowed to be shared between multiple
	// 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"`

	// 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 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

func (s *Lun) MarshalJSON() ([]byte, error)

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 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

func (s *LunRange) MarshalJSON() ([]byte, error)

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 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"`

	// 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 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 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

func (s *NfsExport) MarshalJSON() ([]byte, error)

type ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall

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

func (*ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) Context

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) 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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) 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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsInstancesGetCall) IfNoneMatch

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsInstancesListCall) IfNoneMatch

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

PageSize sets the optional parameter "pageSize": The maximum number of items to return.

func (*ProjectsLocationsInstancesListCall) PageToken

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.

func (*ProjectsLocationsInstancesListCall) Pages

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesReadSerialPortOutputCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsInstancesReadSerialPortOutputCall) IfNoneMatch

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

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsInstancesResetInstanceCall) 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

Get: Get details for a specific named Instance.

- name: The name of the Instance to retrieve.

func (*ProjectsLocationsInstancesService) List

List: List Instances (physical servers).

- parent: The location to list Instances in.

func (*ProjectsLocationsInstancesService) ReadSerialPortOutput

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

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsLunsGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsLunsGetCall) IfNoneMatch

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsLunsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsLunsListCall) IfNoneMatch

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

PageSize sets the optional parameter "pageSize": The maximum number of items to return.

func (*ProjectsLocationsLunsListCall) PageToken

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.

func (*ProjectsLocationsLunsListCall) Pages

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

Get: Get details for a specific named Lun.

- name: The name of the Lun to retrieve.

func (*ProjectsLocationsLunsService) List

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsSubmitProvisioningConfigCall) 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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsVolumesGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsVolumesGetCall) IfNoneMatch

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsVolumesListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsVolumesListCall) IfNoneMatch

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

PageSize sets the optional parameter "pageSize": The maximum number of items to return.

func (*ProjectsLocationsVolumesListCall) PageToken

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.

func (*ProjectsLocationsVolumesListCall) Pages

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsVolumesPatchCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsVolumesPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": The list of fields to update. The only currently supported field is `snapshot_reserved_space_percent`.

type ProjectsLocationsVolumesService

type ProjectsLocationsVolumesService struct {
	Snapshots *ProjectsLocationsVolumesSnapshotsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsVolumesService

func NewProjectsLocationsVolumesService(s *Service) *ProjectsLocationsVolumesService

func (*ProjectsLocationsVolumesService) Get

Get: Get details for a specific named Volume.

- name: The name of the Volume to retrieve.

func (*ProjectsLocationsVolumesService) List

List: List the volumes for the specified project

- parent: The location to list Volumes in.

func (*ProjectsLocationsVolumesService) Patch

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsVolumesSetVolumeSnapshotSchedulePolicyCall) 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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsVolumesSnapshotsCreateCall) 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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsVolumesSnapshotsDeleteCall) 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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsVolumesSnapshotsGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsVolumesSnapshotsGetCall) IfNoneMatch

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsVolumesSnapshotsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsLocationsVolumesSnapshotsListCall) IfNoneMatch

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

PageSize sets the optional parameter "pageSize": The maximum number of items to return.

func (*ProjectsLocationsVolumesSnapshotsListCall) PageToken

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.

func (*ProjectsLocationsVolumesSnapshotsListCall) Pages

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsLocationsVolumesSnapshotsRestoreCall) 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

Create: Create snapshot of the specified Volume

- parent: The Volume containing the VolumeSnapshots.

func (*ProjectsLocationsVolumesSnapshotsService) Delete

Delete: Delete specific named snapshot.

- name: The name of the snapshot to delete.

func (*ProjectsLocationsVolumesSnapshotsService) Get

Get: Get details for a specific named snapshot.

- name: The name of the snapshot to retrieve.

func (*ProjectsLocationsVolumesSnapshotsService) List

List: List the Snapshots for the specified Volume

- parent: The Volume containing the VolumeSnapshots.

func (*ProjectsLocationsVolumesSnapshotsService) Restore

Restore: Restore a VolumeSnapshot.

- name: Name of the VolumeSnapshot to restore.

type ProjectsProvisioningQuotasListCall

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

func (*ProjectsProvisioningQuotasListCall) Context

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsProvisioningQuotasListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsProvisioningQuotasListCall) IfNoneMatch

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

PageSize sets the optional parameter "pageSize": The maximum number of items to return.

func (*ProjectsProvisioningQuotasListCall) PageToken

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.

func (*ProjectsProvisioningQuotasListCall) Pages

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

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSnapshotSchedulePoliciesCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ProjectsSnapshotSchedulePoliciesDeleteCall

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

func (*ProjectsSnapshotSchedulePoliciesDeleteCall) Context

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSnapshotSchedulePoliciesDeleteCall) 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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSnapshotSchedulePoliciesGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsSnapshotSchedulePoliciesGetCall) IfNoneMatch

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSnapshotSchedulePoliciesListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsSnapshotSchedulePoliciesListCall) IfNoneMatch

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

PageSize sets the optional parameter "pageSize": The maximum number of items to return.

func (*ProjectsSnapshotSchedulePoliciesListCall) PageToken

PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.

func (*ProjectsSnapshotSchedulePoliciesListCall) Pages

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSnapshotSchedulePoliciesPatchCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsSnapshotSchedulePoliciesPatchCall) UpdateMask

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

Create: Create a SnapshotSchedulePolicy.

- parent: The parent project containing the SnapshotSchedulePolicy.

func (*ProjectsSnapshotSchedulePoliciesService) Delete

Delete: Delete removes named snapshot schedule policy

- name: The name of the snapshot to delete.

func (*ProjectsSnapshotSchedulePoliciesService) Get

Get: Get details for a specific snapshot schedule policy

- name: The name of the policy to retrieve.

func (*ProjectsSnapshotSchedulePoliciesService) List

List: List the snapshot schedule policies for the specified project

  • parent: The parent project containing the Snapshot Schedule Policies.

func (*ProjectsSnapshotSchedulePoliciesService) Patch

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSshKeysCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsSshKeysCreateCall) SshKeyId

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

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

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsSshKeysDeleteCall) 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

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

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

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

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

Delete: Delete an SSH key registration in the specified project.

- name: The name of the SSH key to delete.

func (*ProjectsSshKeysService) List

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 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 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 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

func (s *SSHKey) MarshalJSON() ([]byte, error)

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 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

func (s *Schedule) MarshalJSON() ([]byte, error)

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 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

func New(client *http.Client) (*Service, error)

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

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

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 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 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 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 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"`

	// 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 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

func (s *Volume) MarshalJSON() ([]byte, error)

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"`

	// ForceSendFields is a list of field names (e.g. "Id") to
	// unconditionally include in API requests. By default, fields with
	// empty 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 {
	// 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. "Description") to
	// unconditionally include in API requests. By default, fields with
	// empty 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:"-"`
}

VolumeSnapshot: VolumeSnapshot registered for given Volume

func (*VolumeSnapshot) MarshalJSON

func (s *VolumeSnapshot) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL