compute

package
v0.0.0-...-6eef5cf Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2014 License: Apache-2.0, BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package compute provides access to the Compute Engine API.

See https://developers.google.com/compute/docs/reference/v1beta14

Usage example:

import "code.google.com/p/google-api-go-client/compute/v1beta14"
...
computeService, err := compute.New(oauthHttpClient)

Index

Constants

View Source
const (
	// View and manage your Google Compute Engine resources
	ComputeScope = "https://www.googleapis.com/auth/compute"

	// View your Google Compute Engine resources
	ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.readonly"

	// View your data in Google Cloud Storage
	DevstorageRead_onlyScope = "https://www.googleapis.com/auth/devstorage.read_only"

	// Manage your data in Google Cloud Storage
	DevstorageRead_writeScope = "https://www.googleapis.com/auth/devstorage.read_write"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessConfig

type AccessConfig struct {
	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Name: Name of this access configuration.
	Name string `json:"name,omitempty"`

	// NatIP: An external IP address associated with this instance. Specify
	// an unused static IP address available to the project. If not
	// specified, the external IP will be drawn from a shared ephemeral
	// pool.
	NatIP string `json:"natIP,omitempty"`

	// Type: Type of configuration. Must be set to "ONE_TO_ONE_NAT". This
	// configures port-for-port NAT to the internet.
	Type string `json:"type,omitempty"`
}

type AttachedDisk

type AttachedDisk struct {
	// Boot: Indicates that this is a boot disk. VM will use the first
	// partition of the disk for its root filesystem.
	Boot bool `json:"boot,omitempty"`

	// DeviceName: Persistent disk only; must be unique within the instance
	// when specified. This represents a unique device name that is
	// reflected into the /dev/ tree of a Linux operating system running
	// within the instance. If not specified, a default will be chosen by
	// the system.
	DeviceName string `json:"deviceName,omitempty"`

	// Index: A zero-based index to assign to this disk, where 0 is reserved
	// for the boot disk. If not specified, the server will choose an
	// appropriate value.
	Index int64 `json:"index,omitempty"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Mode: The mode in which to attach this disk, either "READ_WRITE" or
	// "READ_ONLY".
	Mode string `json:"mode,omitempty"`

	// Source: Persistent disk only; the URL of the persistent disk
	// resource.
	Source string `json:"source,omitempty"`

	// Type: Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that
	// persistent disks must be created before you can specify them here.
	Type string `json:"type,omitempty"`
}

type DeprecationStatus

type DeprecationStatus struct {
	// Deleted: An optional RFC3339 timestamp on or after which the
	// deprecation state of this resource will be changed to DELETED.
	Deleted string `json:"deleted,omitempty"`

	// Deprecated: An optional RFC3339 timestamp on or after which the
	// deprecation state of this resource will be changed to DEPRECATED.
	Deprecated string `json:"deprecated,omitempty"`

	// Obsolete: An optional RFC3339 timestamp on or after which the
	// deprecation state of this resource will be changed to OBSOLETE.
	Obsolete string `json:"obsolete,omitempty"`

	// Replacement: A URL of the suggested replacement for the deprecated
	// resource. The deprecated resource and its replacement must be
	// resources of the same kind.
	Replacement string `json:"replacement,omitempty"`

	// State: The deprecation state. Can be "DEPRECATED", "OBSOLETE", or
	// "DELETED". Operations which create a new resource using a
	// "DEPRECATED" resource will return successfully, but with a warning
	// indicating the deprecated resource and recommending its replacement.
	// New uses of "OBSOLETE" or "DELETED" resources will result in an
	// error.
	State string `json:"state,omitempty"`
}

type Disk

type Disk struct {
	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Description: An optional textual description of the resource;
	// provided by the client when the resource is created.
	Description string `json:"description,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Name: Name of the resource; provided by the client when the resource
	// is created. The name must be 1-63 characters long, and comply with
	// RFC1035.
	Name string `json:"name,omitempty"`

	// Options: Internal use only.
	Options string `json:"options,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`

	// SizeGb: Size of the persistent disk, specified in GB. This parameter
	// is optional when creating a disk from a disk image or a snapshot,
	// otherwise it is required.
	SizeGb int64 `json:"sizeGb,omitempty,string"`

	// SourceSnapshot: The source snapshot used to create this disk. Once
	// the source snapshot has been deleted from the system, this field will
	// be cleared, and will not be set even if a snapshot with the same name
	// has been re-created.
	SourceSnapshot string `json:"sourceSnapshot,omitempty"`

	// SourceSnapshotId: The 'id' value of the snapshot used to create this
	// disk. This value may be used to determine whether the disk was
	// created from the current or a previous instance of a given disk
	// snapshot.
	SourceSnapshotId string `json:"sourceSnapshotId,omitempty"`

	// Status: The status of disk creation (output only).
	Status string `json:"status,omitempty"`

	// Zone: URL of the zone where the disk resides (output only).
	Zone string `json:"zone,omitempty"`
}

type DiskList

type DiskList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: The persistent disk resources.
	Items []*Disk `json:"items,omitempty"`

	// Kind: Type of resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type DisksDeleteCall

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

func (*DisksDeleteCall) Do

func (c *DisksDeleteCall) Do() (*Operation, error)

type DisksGetCall

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

func (*DisksGetCall) Do

func (c *DisksGetCall) Do() (*Disk, error)

type DisksInsertCall

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

func (*DisksInsertCall) Do

func (c *DisksInsertCall) Do() (*Operation, error)

func (*DisksInsertCall) SourceImage

func (c *DisksInsertCall) SourceImage(sourceImage string) *DisksInsertCall

SourceImage sets the optional parameter "sourceImage": Source image to restore onto a disk.

type DisksListCall

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

func (*DisksListCall) Do

func (c *DisksListCall) Do() (*DiskList, error)

func (*DisksListCall) Filter

func (c *DisksListCall) Filter(filter string) *DisksListCall

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*DisksListCall) MaxResults

func (c *DisksListCall) MaxResults(maxResults int64) *DisksListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*DisksListCall) PageToken

func (c *DisksListCall) PageToken(pageToken string) *DisksListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type DisksService

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

func NewDisksService

func NewDisksService(s *Service) *DisksService

func (*DisksService) Delete

func (r *DisksService) Delete(project string, zone string, disk string) *DisksDeleteCall

Delete: Deletes the specified persistent disk resource.

func (*DisksService) Get

func (r *DisksService) Get(project string, zone string, disk string) *DisksGetCall

Get: Returns the specified persistent disk resource.

func (*DisksService) Insert

func (r *DisksService) Insert(project string, zone string, disk *Disk) *DisksInsertCall

Insert: Creates a persistent disk resource in the specified project using the data included in the request.

func (*DisksService) List

func (r *DisksService) List(project string, zone string) *DisksListCall

List: Retrieves the list of persistent disk resources contained within the specified zone.

type Firewall

type Firewall struct {
	// Allowed: The list of rules specified by this firewall. Each rule
	// specifies a protocol and port-range tuple that describes a permitted
	// connection.
	Allowed []*FirewallAllowed `json:"allowed,omitempty"`

	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Description: An optional textual description of the resource;
	// provided by the client when the resource is created.
	Description string `json:"description,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Name: Name of the resource; provided by the client when the resource
	// is created. The name must be 1-63 characters long, and comply with
	// RFC1035.
	Name string `json:"name,omitempty"`

	// Network: URL of the network to which this firewall is applied;
	// provided by the client when the firewall is created.
	Network string `json:"network,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`

	// SourceRanges: A list of IP address blocks expressed in CIDR format
	// which this rule applies to. One or both of sourceRanges and
	// sourceTags may be set; an inbound connection is allowed if either the
	// range or the tag of the source matches.
	SourceRanges []string `json:"sourceRanges,omitempty"`

	// SourceTags: A list of instance tags which this rule applies to. One
	// or both of sourceRanges and sourceTags may be set; an inbound
	// connection is allowed if either the range or the tag of the source
	// matches.
	SourceTags []string `json:"sourceTags,omitempty"`

	// TargetTags: A list of instance tags indicating sets of instances
	// located on network which may make network connections as specified in
	// allowed. If no targetTags are specified, the firewall rule applies to
	// all instances on the specified network.
	TargetTags []string `json:"targetTags,omitempty"`
}

type FirewallAllowed

type FirewallAllowed struct {
	// IPProtocol: Required; this is the IP protocol that is allowed for
	// this rule. This can either be a well known protocol string (tcp, udp
	// or icmp) or the IP protocol number.
	IPProtocol string `json:"IPProtocol,omitempty"`

	// Ports: An optional list of ports which are allowed. It is an error to
	// specify this for any protocol that isn't UDP or TCP. Each entry must
	// be either an integer or a range. If not specified, connections
	// through any port are allowed.
	//
	// Example inputs include: ["22"],
	// ["80","443"] and ["12345-12349"].
	Ports []string `json:"ports,omitempty"`
}

type FirewallList

type FirewallList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: The firewall resources.
	Items []*Firewall `json:"items,omitempty"`

	// Kind: Type of resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type FirewallsDeleteCall

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

func (*FirewallsDeleteCall) Do

func (c *FirewallsDeleteCall) Do() (*Operation, error)

type FirewallsGetCall

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

func (*FirewallsGetCall) Do

func (c *FirewallsGetCall) Do() (*Firewall, error)

type FirewallsInsertCall

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

func (*FirewallsInsertCall) Do

func (c *FirewallsInsertCall) Do() (*Operation, error)

type FirewallsListCall

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

func (*FirewallsListCall) Do

func (c *FirewallsListCall) Do() (*FirewallList, error)

func (*FirewallsListCall) Filter

func (c *FirewallsListCall) Filter(filter string) *FirewallsListCall

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*FirewallsListCall) MaxResults

func (c *FirewallsListCall) MaxResults(maxResults int64) *FirewallsListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*FirewallsListCall) PageToken

func (c *FirewallsListCall) PageToken(pageToken string) *FirewallsListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type FirewallsPatchCall

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

func (*FirewallsPatchCall) Do

func (c *FirewallsPatchCall) Do() (*Operation, error)

type FirewallsService

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

func NewFirewallsService

func NewFirewallsService(s *Service) *FirewallsService

func (*FirewallsService) Delete

func (r *FirewallsService) Delete(project string, firewall string) *FirewallsDeleteCall

Delete: Deletes the specified firewall resource.

func (*FirewallsService) Get

func (r *FirewallsService) Get(project string, firewall string) *FirewallsGetCall

Get: Returns the specified firewall resource.

func (*FirewallsService) Insert

func (r *FirewallsService) Insert(project string, firewall *Firewall) *FirewallsInsertCall

Insert: Creates a firewall resource in the specified project using the data included in the request.

func (*FirewallsService) List

func (r *FirewallsService) List(project string) *FirewallsListCall

List: Retrieves the list of firewall resources available to the specified project.

func (*FirewallsService) Patch

func (r *FirewallsService) Patch(project string, firewall string, firewall2 *Firewall) *FirewallsPatchCall

Patch: Updates the specified firewall resource with the data included in the request. This method supports patch semantics.

func (*FirewallsService) Update

func (r *FirewallsService) Update(project string, firewall string, firewall2 *Firewall) *FirewallsUpdateCall

Update: Updates the specified firewall resource with the data included in the request.

type FirewallsUpdateCall

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

func (*FirewallsUpdateCall) Do

func (c *FirewallsUpdateCall) Do() (*Operation, error)

type GlobalOperationsDeleteCall

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

func (*GlobalOperationsDeleteCall) Do

type GlobalOperationsGetCall

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

func (*GlobalOperationsGetCall) Do

type GlobalOperationsListCall

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

func (*GlobalOperationsListCall) Do

func (*GlobalOperationsListCall) Filter

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*GlobalOperationsListCall) MaxResults

func (c *GlobalOperationsListCall) MaxResults(maxResults int64) *GlobalOperationsListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*GlobalOperationsListCall) PageToken

func (c *GlobalOperationsListCall) PageToken(pageToken string) *GlobalOperationsListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type GlobalOperationsService

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

func NewGlobalOperationsService

func NewGlobalOperationsService(s *Service) *GlobalOperationsService

func (*GlobalOperationsService) Delete

func (r *GlobalOperationsService) Delete(project string, operation string) *GlobalOperationsDeleteCall

Delete: Deletes the specified operation resource.

func (*GlobalOperationsService) Get

func (r *GlobalOperationsService) Get(project string, operation string) *GlobalOperationsGetCall

Get: Retrieves the specified operation resource.

func (*GlobalOperationsService) List

List: Retrieves the list of operation resources contained within the specified project.

type Image

type Image struct {
	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Deprecated: The deprecation status associated with this image.
	Deprecated *DeprecationStatus `json:"deprecated,omitempty"`

	// Description: Textual description of the resource; provided by the
	// client when the resource is created.
	Description string `json:"description,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Name: Name of the resource; provided by the client when the resource
	// is created. The name must be 1-63 characters long, and comply with
	// RFC1035.
	Name string `json:"name,omitempty"`

	// PreferredKernel: An optional URL of the preferred kernel for use with
	// this disk image. If not specified, a server defined default kernel
	// will be used.
	PreferredKernel string `json:"preferredKernel,omitempty"`

	// RawDisk: The raw disk image parameters.
	RawDisk *ImageRawDisk `json:"rawDisk,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`

	// SourceType: Must be "RAW"; provided by the client when the disk image
	// is created.
	SourceType string `json:"sourceType,omitempty"`
}

type ImageList

type ImageList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: The disk image resources.
	Items []*Image `json:"items,omitempty"`

	// Kind: Type of resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type ImageRawDisk

type ImageRawDisk struct {
	// ContainerType: The format used to encode and transmit the block
	// device. Should be TAR. This is just a container and transmission
	// format and not a runtime format. Provided by the client when the disk
	// image is created.
	ContainerType string `json:"containerType,omitempty"`

	// Sha1Checksum: An optional SHA1 checksum of the disk image before
	// unpackaging; provided by the client when the disk image is created.
	Sha1Checksum string `json:"sha1Checksum,omitempty"`

	// Source: The full Google Cloud Storage URL where the disk image is
	// stored; provided by the client when the disk image is created.
	Source string `json:"source,omitempty"`
}

type ImagesDeleteCall

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

func (*ImagesDeleteCall) Do

func (c *ImagesDeleteCall) Do() (*Operation, error)

type ImagesDeprecateCall

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

func (*ImagesDeprecateCall) Do

func (c *ImagesDeprecateCall) Do() (*Operation, error)

type ImagesGetCall

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

func (*ImagesGetCall) Do

func (c *ImagesGetCall) Do() (*Image, error)

type ImagesInsertCall

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

func (*ImagesInsertCall) Do

func (c *ImagesInsertCall) Do() (*Operation, error)

type ImagesListCall

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

func (*ImagesListCall) Do

func (c *ImagesListCall) Do() (*ImageList, error)

func (*ImagesListCall) Filter

func (c *ImagesListCall) Filter(filter string) *ImagesListCall

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*ImagesListCall) MaxResults

func (c *ImagesListCall) MaxResults(maxResults int64) *ImagesListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*ImagesListCall) PageToken

func (c *ImagesListCall) PageToken(pageToken string) *ImagesListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type ImagesService

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

func NewImagesService

func NewImagesService(s *Service) *ImagesService

func (*ImagesService) Delete

func (r *ImagesService) Delete(project string, image string) *ImagesDeleteCall

Delete: Deletes the specified image resource.

func (*ImagesService) Deprecate

func (r *ImagesService) Deprecate(project string, image string, deprecationstatus *DeprecationStatus) *ImagesDeprecateCall

Deprecate: Sets the deprecation status of an image. If no message body is given, clears the deprecation status instead.

func (*ImagesService) Get

func (r *ImagesService) Get(project string, image string) *ImagesGetCall

Get: Returns the specified image resource.

func (*ImagesService) Insert

func (r *ImagesService) Insert(project string, image *Image) *ImagesInsertCall

Insert: Creates an image resource in the specified project using the data included in the request.

func (*ImagesService) List

func (r *ImagesService) List(project string) *ImagesListCall

List: Retrieves the list of image resources available to the specified project.

type Instance

type Instance struct {
	// CanIpForward: Allows this instance to send packets with source IP
	// addresses other than its own and receive packets with destination IP
	// addresses other than its own. If this instance will be used as an IP
	// gateway or it will be set as the next-hop in a Route resource, say
	// true. If unsure, leave this set to false.
	CanIpForward bool `json:"canIpForward,omitempty"`

	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Description: An optional textual description of the resource;
	// provided by the client when the resource is created.
	Description string `json:"description,omitempty"`

	// Disks: Array of disks associated with this instance. Persistent disks
	// must be created before you can assign them.
	Disks []*AttachedDisk `json:"disks,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// Image: An optional URL of the disk image resource to be installed on
	// this instance; provided by the client when the instance is created.
	// Alternatively to passing the image, the client may choose to boot
	// from a persistent disk, by setting boot=true flag on one of the
	// entries in disks[] collection.
	Image string `json:"image,omitempty"`

	// Kernel: URL of the kernel resource to use when booting. In case of
	// booting from persistent disk, this parameter is required. When
	// booting from a disk image, it is optional, but may be provided to use
	// a different kernel than the one associated with the image.
	Kernel string `json:"kernel,omitempty"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// MachineType: URL of the machine type resource describing which
	// machine type to use to host the instance; provided by the client when
	// the instance is created.
	MachineType string `json:"machineType,omitempty"`

	// Metadata: Metadata key/value pairs assigned to this instance.
	// Consists of custom metadata or predefined keys; see Instance
	// documentation for more information.
	Metadata *Metadata `json:"metadata,omitempty"`

	// Name: Name of the resource; provided by the client when the resource
	// is created. The name must be 1-63 characters long, and comply with
	// RFC1035.
	Name string `json:"name,omitempty"`

	// NetworkInterfaces: Array of configurations for this interface. This
	// specifies how this interface is configured to interact with other
	// network services, such as connecting to the internet. Currently,
	// ONE_TO_ONE_NAT is the only access config supported. If there are no
	// accessConfigs specified, then this instance will have no external
	// internet access.
	NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`

	// ServiceAccounts: A list of service accounts each with specified
	// scopes, for which access tokens are to be made available to the
	// instance through metadata queries.
	ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"`

	// Status: Instance status. One of the following values: "PROVISIONING",
	// "STAGING", "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output
	// only).
	Status string `json:"status,omitempty"`

	// StatusMessage: An optional, human-readable explanation of the status
	// (output only).
	StatusMessage string `json:"statusMessage,omitempty"`

	// Tags: A list of tags to be applied to this instance. Used to identify
	// valid sources or targets for network firewalls. Provided by the
	// client on instance creation. The tags can be later modified by the
	// setTags method. Each tag within the list must comply with RFC1035.
	Tags *Tags `json:"tags,omitempty"`

	// Zone: URL of the zone where the instance resides (output only).
	Zone string `json:"zone,omitempty"`
}

type InstanceList

type InstanceList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: A list of instance resources.
	Items []*Instance `json:"items,omitempty"`

	// Kind: Type of resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type InstancesAddAccessConfigCall

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

func (*InstancesAddAccessConfigCall) Do

type InstancesAttachDiskCall

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

func (*InstancesAttachDiskCall) Do

type InstancesDeleteAccessConfigCall

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

func (*InstancesDeleteAccessConfigCall) Do

type InstancesDeleteCall

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

func (*InstancesDeleteCall) Do

func (c *InstancesDeleteCall) Do() (*Operation, error)

type InstancesDetachDiskCall

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

func (*InstancesDetachDiskCall) Do

type InstancesGetCall

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

func (*InstancesGetCall) Do

func (c *InstancesGetCall) Do() (*Instance, error)

type InstancesGetSerialPortOutputCall

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

func (*InstancesGetSerialPortOutputCall) Do

type InstancesInsertCall

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

func (*InstancesInsertCall) Do

func (c *InstancesInsertCall) Do() (*Operation, error)

type InstancesListCall

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

func (*InstancesListCall) Do

func (c *InstancesListCall) Do() (*InstanceList, error)

func (*InstancesListCall) Filter

func (c *InstancesListCall) Filter(filter string) *InstancesListCall

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*InstancesListCall) MaxResults

func (c *InstancesListCall) MaxResults(maxResults int64) *InstancesListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*InstancesListCall) PageToken

func (c *InstancesListCall) PageToken(pageToken string) *InstancesListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type InstancesResetCall

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

func (*InstancesResetCall) Do

func (c *InstancesResetCall) Do() (*Operation, error)

type InstancesService

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

func NewInstancesService

func NewInstancesService(s *Service) *InstancesService

func (*InstancesService) AddAccessConfig

func (r *InstancesService) AddAccessConfig(project string, zone string, instance string, network_interface string, accessconfig *AccessConfig) *InstancesAddAccessConfigCall

AddAccessConfig: Adds an access config to an instance's network interface.

func (*InstancesService) AttachDisk

func (r *InstancesService) AttachDisk(project string, zone string, instance string, attacheddisk *AttachedDisk) *InstancesAttachDiskCall

AttachDisk: Attaches a disk resource to an instance.

func (*InstancesService) Delete

func (r *InstancesService) Delete(project string, zone string, instance string) *InstancesDeleteCall

Delete: Deletes the specified instance resource.

func (*InstancesService) DeleteAccessConfig

func (r *InstancesService) DeleteAccessConfig(project string, zone string, instance string, access_config string, network_interface string) *InstancesDeleteAccessConfigCall

DeleteAccessConfig: Deletes an access config from an instance's network interface.

func (*InstancesService) DetachDisk

func (r *InstancesService) DetachDisk(project string, zone string, instance string, deviceName string) *InstancesDetachDiskCall

DetachDisk: Detaches a disk from an instance.

func (*InstancesService) Get

func (r *InstancesService) Get(project string, zone string, instance string) *InstancesGetCall

Get: Returns the specified instance resource.

func (*InstancesService) GetSerialPortOutput

func (r *InstancesService) GetSerialPortOutput(project string, zone string, instance string) *InstancesGetSerialPortOutputCall

GetSerialPortOutput: Returns the specified instance's serial port output.

func (*InstancesService) Insert

func (r *InstancesService) Insert(project string, zone string, instance *Instance) *InstancesInsertCall

Insert: Creates an instance resource in the specified project using the data included in the request.

func (*InstancesService) List

func (r *InstancesService) List(project string, zone string) *InstancesListCall

List: Retrieves the list of instance resources contained within the specified zone.

func (*InstancesService) Reset

func (r *InstancesService) Reset(project string, zone string, instance string) *InstancesResetCall

Reset: Performs a hard reset on the instance.

func (*InstancesService) SetMetadata

func (r *InstancesService) SetMetadata(project string, zone string, instance string, metadata *Metadata) *InstancesSetMetadataCall

SetMetadata: Sets metadata for the specified instance to the data included in the request.

func (*InstancesService) SetTags

func (r *InstancesService) SetTags(project string, zone string, instance string, tags *Tags) *InstancesSetTagsCall

SetTags: Sets tags for the specified instance to the data included in the request.

type InstancesSetMetadataCall

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

func (*InstancesSetMetadataCall) Do

type InstancesSetTagsCall

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

func (*InstancesSetTagsCall) Do

func (c *InstancesSetTagsCall) Do() (*Operation, error)

type Kernel

type Kernel struct {
	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Deprecated: The deprecation status associated with this kernel.
	Deprecated *DeprecationStatus `json:"deprecated,omitempty"`

	// Description: An optional textual description of the resource.
	Description string `json:"description,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Name: Name of the resource.
	Name string `json:"name,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type KernelList

type KernelList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: The kernel resources.
	Items []*Kernel `json:"items,omitempty"`

	// Kind: Type of resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type KernelsGetCall

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

func (*KernelsGetCall) Do

func (c *KernelsGetCall) Do() (*Kernel, error)

type KernelsListCall

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

func (*KernelsListCall) Do

func (c *KernelsListCall) Do() (*KernelList, error)

func (*KernelsListCall) Filter

func (c *KernelsListCall) Filter(filter string) *KernelsListCall

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*KernelsListCall) MaxResults

func (c *KernelsListCall) MaxResults(maxResults int64) *KernelsListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*KernelsListCall) PageToken

func (c *KernelsListCall) PageToken(pageToken string) *KernelsListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type KernelsService

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

func NewKernelsService

func NewKernelsService(s *Service) *KernelsService

func (*KernelsService) Get

func (r *KernelsService) Get(project string, kernel string) *KernelsGetCall

Get: Returns the specified kernel resource.

func (*KernelsService) List

func (r *KernelsService) List(project string) *KernelsListCall

List: Retrieves the list of kernel resources available to the specified project.

type MachineType

type MachineType struct {
	// AvailableZone: The zones that this machine type can run in.
	AvailableZone []string `json:"availableZone,omitempty"`

	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Deprecated: The deprecation status associated with this machine type.
	Deprecated *DeprecationStatus `json:"deprecated,omitempty"`

	// Description: An optional textual description of the resource.
	Description string `json:"description,omitempty"`

	// EphemeralDisks: List of extended ephemeral disks assigned to the
	// instance.
	EphemeralDisks []*MachineTypeEphemeralDisks `json:"ephemeralDisks,omitempty"`

	// GuestCpus: Count of CPUs exposed to the instance.
	GuestCpus int64 `json:"guestCpus,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// ImageSpaceGb: Space allotted for the image, defined in GB.
	ImageSpaceGb int64 `json:"imageSpaceGb,omitempty"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// MaximumPersistentDisks: Maximum persistent disks allowed.
	MaximumPersistentDisks int64 `json:"maximumPersistentDisks,omitempty"`

	// MaximumPersistentDisksSizeGb: Maximum total persistent disks size
	// (GB) allowed.
	MaximumPersistentDisksSizeGb int64 `json:"maximumPersistentDisksSizeGb,omitempty,string"`

	// MemoryMb: Physical memory assigned to the instance, defined in MB.
	MemoryMb int64 `json:"memoryMb,omitempty"`

	// Name: Name of the resource.
	Name string `json:"name,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type MachineTypeEphemeralDisks

type MachineTypeEphemeralDisks struct {
	// DiskGb: Size of the ephemeral disk, defined in GB.
	DiskGb int64 `json:"diskGb,omitempty"`
}

type MachineTypeList

type MachineTypeList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: The machine type resources.
	Items []*MachineType `json:"items,omitempty"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type MachineTypesGetCall

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

func (*MachineTypesGetCall) Do

type MachineTypesListCall

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

func (*MachineTypesListCall) Do

func (*MachineTypesListCall) Filter

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*MachineTypesListCall) MaxResults

func (c *MachineTypesListCall) MaxResults(maxResults int64) *MachineTypesListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*MachineTypesListCall) PageToken

func (c *MachineTypesListCall) PageToken(pageToken string) *MachineTypesListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type MachineTypesService

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

func NewMachineTypesService

func NewMachineTypesService(s *Service) *MachineTypesService

func (*MachineTypesService) Get

func (r *MachineTypesService) Get(project string, machineType string) *MachineTypesGetCall

Get: Returns the specified machine type resource.

func (*MachineTypesService) List

List: Retrieves the list of machine type resources available to the specified project.

type Metadata

type Metadata struct {
	// Fingerprint: Fingerprint of this resource. A hash of the metadata's
	// contents. This field is used for optimistic locking. An up-to-date
	// metadata fingerprint must be provided in order to modify metadata.
	Fingerprint string `json:"fingerprint,omitempty"`

	// Items: Array of key/value pairs. The total size of all keys and
	// values must be less than 512 KB.
	Items []*MetadataItems `json:"items,omitempty"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`
}

type MetadataItems

type MetadataItems struct {
	// Key: Key for the metadata entry. Keys must conform to the following
	// regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is
	// reflected as part of a URL in the metadata server. Additionally, to
	// avoid ambiguity, keys must not conflict with any other metadata keys
	// for the project.
	Key string `json:"key,omitempty"`

	// Value: Value for the metadata entry. These are free-form strings, and
	// only have meaning as interpreted by the image running in the
	// instance. The only restriction placed on values is that their size
	// must be less than or equal to 32768 bytes.
	Value string `json:"value,omitempty"`
}

type Network

type Network struct {
	// IPv4Range: Required; The range of internal addresses that are legal
	// on this network. This range is a CIDR specification, for example:
	// 192.168.0.0/16. Provided by the client when the network is created.
	IPv4Range string `json:"IPv4Range,omitempty"`

	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Description: An optional textual description of the resource;
	// provided by the client when the resource is created.
	Description string `json:"description,omitempty"`

	// GatewayIPv4: An optional address that is used for default routing to
	// other networks. This must be within the range specified by IPv4Range,
	// and is typically the first usable address in that range. If not
	// specified, the default value is the first usable address in
	// IPv4Range.
	GatewayIPv4 string `json:"gatewayIPv4,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Name: Name of the resource; provided by the client when the resource
	// is created. The name must be 1-63 characters long, and comply with
	// RFC1035.
	Name string `json:"name,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type NetworkInterface

type NetworkInterface struct {
	// AccessConfigs: Array of configurations for this interface. This
	// specifies how this interface is configured to interact with other
	// network services, such as connecting to the internet. Currently,
	// ONE_TO_ONE_NAT is the only access config supported. If there are no
	// accessConfigs specified, then this instance will have no external
	// internet access.
	AccessConfigs []*AccessConfig `json:"accessConfigs,omitempty"`

	// Name: Name of the network interface, determined by the server; for
	// network devices, these are e.g. eth0, eth1, etc. (output only).
	Name string `json:"name,omitempty"`

	// Network: URL of the network resource attached to this interface.
	Network string `json:"network,omitempty"`

	// NetworkIP: An optional IPV4 internal network address to assign to the
	// instance for this network interface. If not specified, one will be
	// assigned from the available range.
	NetworkIP string `json:"networkIP,omitempty"`
}

type NetworkList

type NetworkList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: The network resources.
	Items []*Network `json:"items,omitempty"`

	// Kind: Type of resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type NetworksDeleteCall

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

func (*NetworksDeleteCall) Do

func (c *NetworksDeleteCall) Do() (*Operation, error)

type NetworksGetCall

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

func (*NetworksGetCall) Do

func (c *NetworksGetCall) Do() (*Network, error)

type NetworksInsertCall

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

func (*NetworksInsertCall) Do

func (c *NetworksInsertCall) Do() (*Operation, error)

type NetworksListCall

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

func (*NetworksListCall) Do

func (c *NetworksListCall) Do() (*NetworkList, error)

func (*NetworksListCall) Filter

func (c *NetworksListCall) Filter(filter string) *NetworksListCall

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*NetworksListCall) MaxResults

func (c *NetworksListCall) MaxResults(maxResults int64) *NetworksListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*NetworksListCall) PageToken

func (c *NetworksListCall) PageToken(pageToken string) *NetworksListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type NetworksService

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

func NewNetworksService

func NewNetworksService(s *Service) *NetworksService

func (*NetworksService) Delete

func (r *NetworksService) Delete(project string, network string) *NetworksDeleteCall

Delete: Deletes the specified network resource.

func (*NetworksService) Get

func (r *NetworksService) Get(project string, network string) *NetworksGetCall

Get: Returns the specified network resource.

func (*NetworksService) Insert

func (r *NetworksService) Insert(project string, network *Network) *NetworksInsertCall

Insert: Creates a network resource in the specified project using the data included in the request.

func (*NetworksService) List

func (r *NetworksService) List(project string) *NetworksListCall

List: Retrieves the list of network resources available to the specified project.

type Operation

type Operation struct {
	// ClientOperationId: An optional identifier specified by the client
	// when the mutation was initiated. Must be unique for all operation
	// resources in the project (output only).
	ClientOperationId string `json:"clientOperationId,omitempty"`

	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// EndTime: The time that this operation was completed. This is in RFC
	// 3339 format (output only).
	EndTime string `json:"endTime,omitempty"`

	// Error: If errors occurred during processing of this operation, this
	// field will be populated (output only).
	Error *OperationError `json:"error,omitempty"`

	// HttpErrorMessage: If operation fails, the HTTP error message
	// returned, e.g. NOT FOUND. (output only).
	HttpErrorMessage string `json:"httpErrorMessage,omitempty"`

	// HttpErrorStatusCode: If operation fails, the HTTP error status code
	// returned, e.g. 404. (output only).
	HttpErrorStatusCode int64 `json:"httpErrorStatusCode,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// InsertTime: The time that this operation was requested. This is in
	// RFC 3339 format (output only).
	InsertTime string `json:"insertTime,omitempty"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Name: Name of the resource (output only).
	Name string `json:"name,omitempty"`

	// OperationType: Type of the operation. Examples include "insert",
	// "update", and "delete" (output only).
	OperationType string `json:"operationType,omitempty"`

	// Progress: An optional progress indicator that ranges from 0 to 100.
	// There is no requirement that this be linear or support any
	// granularity of operations. This should not be used to guess at when
	// the operation will be complete. This number should be monotonically
	// increasing as the operation progresses (output only).
	Progress int64 `json:"progress,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`

	// StartTime: The time that this operation was started by the server.
	// This is in RFC 3339 format (output only).
	StartTime string `json:"startTime,omitempty"`

	// Status: Status of the operation. Can be one of the following:
	// "PENDING", "RUNNING", or "DONE" (output only).
	Status string `json:"status,omitempty"`

	// StatusMessage: An optional textual description of the current status
	// of the operation (output only).
	StatusMessage string `json:"statusMessage,omitempty"`

	// TargetId: Unique target id which identifies a particular incarnation
	// of the target (output only).
	TargetId uint64 `json:"targetId,omitempty,string"`

	// TargetLink: URL of the resource the operation is mutating (output
	// only).
	TargetLink string `json:"targetLink,omitempty"`

	// User: User who requested the operation, for example
	// "user@example.com" (output only).
	User string `json:"user,omitempty"`

	// Warnings: If warning messages generated during processing of this
	// operation, this field will be populated (output only).
	Warnings []*OperationWarnings `json:"warnings,omitempty"`

	// Zone: URL of the zone where the operation resides (output only).
	Zone string `json:"zone,omitempty"`
}

type OperationError

type OperationError struct {
	// Errors: The array of errors encountered while processing this
	// operation.
	Errors []*OperationErrorErrors `json:"errors,omitempty"`
}

type OperationErrorErrors

type OperationErrorErrors struct {
	// Code: The error type identifier for this error.
	Code string `json:"code,omitempty"`

	// Location: Indicates the field in the request which caused the error.
	// This property is optional.
	Location string `json:"location,omitempty"`

	// Message: An optional, human-readable error message.
	Message string `json:"message,omitempty"`
}

type OperationList

type OperationList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: The operation resources.
	Items []*Operation `json:"items,omitempty"`

	// Kind: Type of resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type OperationWarnings

type OperationWarnings struct {
	// Code: The warning type identifier for this warning.
	Code string `json:"code,omitempty"`

	// Data: Metadata for this warning in 'key: value' format.
	Data []*OperationWarningsData `json:"data,omitempty"`

	// Message: Optional human-readable details for this warning.
	Message string `json:"message,omitempty"`
}

type OperationWarningsData

type OperationWarningsData struct {
	// Key: A key for the warning data.
	Key string `json:"key,omitempty"`

	// Value: A warning data value corresponding to the key.
	Value string `json:"value,omitempty"`
}

type Project

type Project struct {
	// CommonInstanceMetadata: Metadata key/value pairs available to all
	// instances contained in this project.
	CommonInstanceMetadata *Metadata `json:"commonInstanceMetadata,omitempty"`

	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Description: An optional textual description of the resource.
	Description string `json:"description,omitempty"`

	// ExternalIpAddresses: Internet available IP addresses available for
	// use in this project.
	ExternalIpAddresses []string `json:"externalIpAddresses,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Name: Name of the resource.
	Name string `json:"name,omitempty"`

	// Quotas: Quotas assigned to this project.
	Quotas []*Quota `json:"quotas,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type ProjectsGetCall

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

func (*ProjectsGetCall) Do

func (c *ProjectsGetCall) Do() (*Project, error)

type ProjectsService

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

func NewProjectsService

func NewProjectsService(s *Service) *ProjectsService

func (*ProjectsService) Get

func (r *ProjectsService) Get(project string) *ProjectsGetCall

Get: Returns the specified project resource.

func (*ProjectsService) SetCommonInstanceMetadata

func (r *ProjectsService) SetCommonInstanceMetadata(project string, metadata *Metadata) *ProjectsSetCommonInstanceMetadataCall

SetCommonInstanceMetadata: Sets metadata common to all instances within the specified project using the data included in the request.

type ProjectsSetCommonInstanceMetadataCall

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

func (*ProjectsSetCommonInstanceMetadataCall) Do

type Quota

type Quota struct {
	// Limit: Quota limit for this metric.
	Limit float64 `json:"limit,omitempty"`

	// Metric: Name of the quota metric.
	Metric string `json:"metric,omitempty"`

	// Usage: Current usage of this metric.
	Usage float64 `json:"usage,omitempty"`
}

type Route

type Route struct {
	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Description: An optional textual description of the resource;
	// provided by the client when the resource is created.
	Description string `json:"description,omitempty"`

	// DestRange: Which packets does this route apply to?
	DestRange string `json:"destRange,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Name: Name of the resource; provided by the client when the resource
	// is created. The name must be 1-63 characters long, and comply with
	// RFC1035.
	Name string `json:"name,omitempty"`

	// Network: URL of the network to which this route is applied; provided
	// by the client when the route is created.
	Network string `json:"network,omitempty"`

	// NextHopGateway: The URL to a gateway that should handle matching
	// packets.
	NextHopGateway string `json:"nextHopGateway,omitempty"`

	// NextHopInstance: The URL to an instance that should handle matching
	// packets.
	NextHopInstance string `json:"nextHopInstance,omitempty"`

	// NextHopIp: The network IP address of an instance that should handle
	// matching packets.
	NextHopIp string `json:"nextHopIp,omitempty"`

	// NextHopNetwork: The URL of the local network if it should handle
	// matching packets.
	NextHopNetwork string `json:"nextHopNetwork,omitempty"`

	// Priority: Breaks ties between Routes of equal specificity. Routes
	// with smaller values win when tied with routes with larger values.
	Priority int64 `json:"priority,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`

	// Tags: A list of instance tags to which this route applies.
	Tags []string `json:"tags,omitempty"`
}

type RouteList

type RouteList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: The route resources.
	Items []*Route `json:"items,omitempty"`

	// Kind: Type of resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type RoutesDeleteCall

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

func (*RoutesDeleteCall) Do

func (c *RoutesDeleteCall) Do() (*Operation, error)

type RoutesGetCall

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

func (*RoutesGetCall) Do

func (c *RoutesGetCall) Do() (*Route, error)

type RoutesInsertCall

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

func (*RoutesInsertCall) Do

func (c *RoutesInsertCall) Do() (*Operation, error)

type RoutesListCall

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

func (*RoutesListCall) Do

func (c *RoutesListCall) Do() (*RouteList, error)

func (*RoutesListCall) Filter

func (c *RoutesListCall) Filter(filter string) *RoutesListCall

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*RoutesListCall) MaxResults

func (c *RoutesListCall) MaxResults(maxResults int64) *RoutesListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*RoutesListCall) PageToken

func (c *RoutesListCall) PageToken(pageToken string) *RoutesListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type RoutesService

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

func NewRoutesService

func NewRoutesService(s *Service) *RoutesService

func (*RoutesService) Delete

func (r *RoutesService) Delete(project string, route string) *RoutesDeleteCall

Delete: Deletes the specified route resource.

func (*RoutesService) Get

func (r *RoutesService) Get(project string, route string) *RoutesGetCall

Get: Returns the specified route resource.

func (*RoutesService) Insert

func (r *RoutesService) Insert(project string, route *Route) *RoutesInsertCall

Insert: Creates a route resource in the specified project using the data included in the request.

func (*RoutesService) List

func (r *RoutesService) List(project string) *RoutesListCall

List: Retrieves the list of route resources available to the specified project.

type SerialPortOutput

type SerialPortOutput struct {
	// Contents: The contents of the console output.
	Contents string `json:"contents,omitempty"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type Service

type Service struct {
	Disks *DisksService

	Firewalls *FirewallsService

	GlobalOperations *GlobalOperationsService

	Images *ImagesService

	Instances *InstancesService

	Kernels *KernelsService

	MachineTypes *MachineTypesService

	Networks *NetworksService

	Projects *ProjectsService

	Routes *RoutesService

	Snapshots *SnapshotsService

	ZoneOperations *ZoneOperationsService

	Zones *ZonesService
	// contains filtered or unexported fields
}

func New

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

type ServiceAccount

type ServiceAccount struct {
	// Email: Email address of the service account.
	Email string `json:"email,omitempty"`

	// Scopes: The list of scopes to be made available for this service
	// account.
	Scopes []string `json:"scopes,omitempty"`
}

type Snapshot

type Snapshot struct {
	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Description: An optional textual description of the resource;
	// provided by the client when the resource is created.
	Description string `json:"description,omitempty"`

	// DiskSizeGb: Size of the persistent disk snapshot, specified in GB
	// (output only).
	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// Name: Name of the resource; provided by the client when the resource
	// is created. The name must be 1-63 characters long, and comply with
	// RFC1035.
	Name string `json:"name,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`

	// SourceDisk: The source disk used to create this snapshot. Once the
	// source disk has been deleted from the system, this field will be
	// cleared, and will not be set even if a disk with the same name has
	// been re-created.
	SourceDisk string `json:"sourceDisk,omitempty"`

	// SourceDiskId: The 'id' value of the disk used to create this
	// snapshot. This value may be used to determine whether the snapshot
	// was taken from the current or a previous instance of a given disk
	// name.
	SourceDiskId string `json:"sourceDiskId,omitempty"`

	// Status: The status of the persistent disk snapshot (output only).
	Status string `json:"status,omitempty"`
}

type SnapshotList

type SnapshotList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: The persistent snapshot resources.
	Items []*Snapshot `json:"items,omitempty"`

	// Kind: Type of resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type SnapshotsDeleteCall

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

func (*SnapshotsDeleteCall) Do

func (c *SnapshotsDeleteCall) Do() (*Operation, error)

type SnapshotsGetCall

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

func (*SnapshotsGetCall) Do

func (c *SnapshotsGetCall) Do() (*Snapshot, error)

type SnapshotsInsertCall

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

func (*SnapshotsInsertCall) Do

func (c *SnapshotsInsertCall) Do() (*Operation, error)

type SnapshotsListCall

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

func (*SnapshotsListCall) Do

func (c *SnapshotsListCall) Do() (*SnapshotList, error)

func (*SnapshotsListCall) Filter

func (c *SnapshotsListCall) Filter(filter string) *SnapshotsListCall

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*SnapshotsListCall) MaxResults

func (c *SnapshotsListCall) MaxResults(maxResults int64) *SnapshotsListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*SnapshotsListCall) PageToken

func (c *SnapshotsListCall) PageToken(pageToken string) *SnapshotsListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type SnapshotsService

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

func NewSnapshotsService

func NewSnapshotsService(s *Service) *SnapshotsService

func (*SnapshotsService) Delete

func (r *SnapshotsService) Delete(project string, snapshot string) *SnapshotsDeleteCall

Delete: Deletes the specified persistent disk snapshot resource.

func (*SnapshotsService) Get

func (r *SnapshotsService) Get(project string, snapshot string) *SnapshotsGetCall

Get: Returns the specified persistent disk snapshot resource.

func (*SnapshotsService) Insert

func (r *SnapshotsService) Insert(project string, snapshot *Snapshot) *SnapshotsInsertCall

Insert: Creates a persistent disk snapshot resource in the specified project using the data included in the request.

func (*SnapshotsService) List

func (r *SnapshotsService) List(project string) *SnapshotsListCall

List: Retrieves the list of persistent disk snapshot resources contained within the specified project.

type Tags

type Tags struct {
	// Fingerprint: Fingerprint of this resource. A hash of the tags stored
	// in this object. This field is used optimistic locking. An up-to-date
	// tags fingerprint must be provided in order to modify tags.
	Fingerprint string `json:"fingerprint,omitempty"`

	// Items: An array of tags. Each tag must be 1-63 characters long, and
	// comply with RFC1035.
	Items []string `json:"items,omitempty"`
}

type Zone

type Zone struct {
	// AvailableMachineType: The machine types that can be used in this zone
	// (output only).
	AvailableMachineType []string `json:"availableMachineType,omitempty"`

	// CreationTimestamp: Creation timestamp in RFC3339 text format (output
	// only).
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Deprecated: The deprecation status associated with this zone.
	Deprecated *DeprecationStatus `json:"deprecated,omitempty"`

	// Description: Textual description of the resource.
	Description string `json:"description,omitempty"`

	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id uint64 `json:"id,omitempty,string"`

	// Kind: Type of the resource.
	Kind string `json:"kind,omitempty"`

	// MaintenanceWindows: Scheduled maintenance windows for the zone. When
	// the zone is in a maintenance window, all resources which reside in
	// the zone will be unavailable.
	MaintenanceWindows []*ZoneMaintenanceWindows `json:"maintenanceWindows,omitempty"`

	// Name: Name of the resource.
	Name string `json:"name,omitempty"`

	// Quotas: Quotas assigned to this zone.
	Quotas []*Quota `json:"quotas,omitempty"`

	// SelfLink: Server defined URL for the resource (output only).
	SelfLink string `json:"selfLink,omitempty"`

	// Status: Status of the zone. "UP" or "DOWN".
	Status string `json:"status,omitempty"`
}

type ZoneList

type ZoneList struct {
	// Id: Unique identifier for the resource; defined by the server (output
	// only).
	Id string `json:"id,omitempty"`

	// Items: The zone resources.
	Items []*Zone `json:"items,omitempty"`

	// Kind: Type of resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: A token used to continue a truncated list request
	// (output only).
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: Server defined URL for this resource (output only).
	SelfLink string `json:"selfLink,omitempty"`
}

type ZoneMaintenanceWindows

type ZoneMaintenanceWindows struct {
	// BeginTime: Begin time of the maintenance window, in RFC 3339 format.
	BeginTime string `json:"beginTime,omitempty"`

	// Description: Textual description of the maintenance window.
	Description string `json:"description,omitempty"`

	// EndTime: End time of the maintenance window, in RFC 3339 format.
	EndTime string `json:"endTime,omitempty"`

	// Name: Name of the maintenance window.
	Name string `json:"name,omitempty"`
}

type ZoneOperationsDeleteCall

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

func (*ZoneOperationsDeleteCall) Do

type ZoneOperationsGetCall

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

func (*ZoneOperationsGetCall) Do

type ZoneOperationsListCall

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

func (*ZoneOperationsListCall) Do

func (*ZoneOperationsListCall) Filter

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*ZoneOperationsListCall) MaxResults

func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*ZoneOperationsListCall) PageToken

func (c *ZoneOperationsListCall) PageToken(pageToken string) *ZoneOperationsListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type ZoneOperationsService

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

func NewZoneOperationsService

func NewZoneOperationsService(s *Service) *ZoneOperationsService

func (*ZoneOperationsService) Delete

func (r *ZoneOperationsService) Delete(project string, zone string, operation string) *ZoneOperationsDeleteCall

Delete: Deletes the specified zone-specific operation resource.

func (*ZoneOperationsService) Get

func (r *ZoneOperationsService) Get(project string, zone string, operation string) *ZoneOperationsGetCall

Get: Retrieves the specified zone-specific operation resource.

func (*ZoneOperationsService) List

List: Retrieves the list of operation resources contained within the specified zone.

type ZonesGetCall

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

func (*ZonesGetCall) Do

func (c *ZonesGetCall) Do() (*Zone, error)

type ZonesListCall

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

func (*ZonesListCall) Do

func (c *ZonesListCall) Do() (*ZoneList, error)

func (*ZonesListCall) Filter

func (c *ZonesListCall) Filter(filter string) *ZonesListCall

Filter sets the optional parameter "filter": Filter expression for filtering listed resources.

func (*ZonesListCall) MaxResults

func (c *ZonesListCall) MaxResults(maxResults int64) *ZonesListCall

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned. Maximum and default value is 100.

func (*ZonesListCall) PageToken

func (c *ZonesListCall) PageToken(pageToken string) *ZonesListCall

PageToken sets the optional parameter "pageToken": Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

type ZonesService

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

func NewZonesService

func NewZonesService(s *Service) *ZonesService

func (*ZonesService) Get

func (r *ZonesService) Get(project string, zone string) *ZonesGetCall

Get: Returns the specified zone resource.

func (*ZonesService) List

func (r *ZonesService) List(project string) *ZonesListCall

List: Retrieves the list of zone resources available to the specified project.

Jump to

Keyboard shortcuts

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