compute

package
v0.0.0-...-93f75fa Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: Apache-2.0, BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package compute provides access to the Compute Engine API.

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

Usage example:

import "google.golang.org/api/compute/v1"
...
computeService, err := compute.New(oauthHttpClient)

Index

Constants

View Source
const (
	// View and manage your data across Google Cloud Platform services
	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"

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

	// Manage your data and permissions in Google Cloud Storage
	DevstorageFullControlScope = "https://www.googleapis.com/auth/devstorage.full_control"

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

	// Manage your data in Google Cloud Storage
	DevstorageReadWriteScope = "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: [Output Only] Type of the resource. Always compute#accessConfig
	// for access configs.
	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 external IP address available to the project or
	// leave this field undefined to use an IP from a shared ephemeral IP
	// address pool. If you specify a static external IP address, it must
	// live in the same region as the zone of the instance.
	NatIP string `json:"natIP,omitempty"`

	// Type: The type of configuration. The default and only option is
	// ONE_TO_ONE_NAT.
	//
	// Possible values:
	//   "ONE_TO_ONE_NAT" (default)
	Type string `json:"type,omitempty"`
}

AccessConfig: An access configuration attached to an instance's network interface.

type Address

type Address struct {
	// Address: The static external IP address represented by this resource.
	Address string `json:"address,omitempty"`

	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of the resource. Always compute#address for
	// addresses.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// Region: [Output Only] URL of the region where the regional address
	// resides. This field is not applicable to global addresses.
	Region string `json:"region,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// Status: [Output Only] The status of the address, which can be either
	// IN_USE or RESERVED. An address that is RESERVED is currently reserved
	// and available to use. An IN_USE address is currently being used by
	// another resource and is not available.
	//
	// Possible values:
	//   "IN_USE"
	//   "RESERVED"
	Status string `json:"status,omitempty"`

	// Users: [Output Only] The URLs of the resources that are using this
	// address.
	Users []string `json:"users,omitempty"`
}

Address: A reserved address resource.

type AddressAggregatedList

type AddressAggregatedList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A map of scoped address lists.
	Items map[string]AddressesScopedList `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always
	// compute#addressAggregatedList for aggregated lists of addresses.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

type AddressList

type AddressList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of Address resources.
	Items []*Address `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#addressList for
	// lists of addresses.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`
}

AddressList: Contains a list of address resources.

type AddressesAggregatedListCall

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

func (*AddressesAggregatedListCall) Do

func (*AddressesAggregatedListCall) Fields

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

func (*AddressesAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*AddressesAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*AddressesAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type AddressesDeleteCall

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

func (*AddressesDeleteCall) Do

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

func (*AddressesDeleteCall) Fields

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

type AddressesGetCall

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

func (*AddressesGetCall) Do

func (c *AddressesGetCall) Do() (*Address, error)

func (*AddressesGetCall) Fields

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

type AddressesInsertCall

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

func (*AddressesInsertCall) Do

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

func (*AddressesInsertCall) Fields

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

type AddressesListCall

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

func (*AddressesListCall) Do

func (c *AddressesListCall) Do() (*AddressList, error)

func (*AddressesListCall) Fields

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

func (*AddressesListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*AddressesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*AddressesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type AddressesScopedList

type AddressesScopedList struct {
	// Addresses: [Output Only] List of addresses contained in this scope.
	Addresses []*Address `json:"addresses,omitempty"`

	// Warning: [Output Only] Informational warning which replaces the list
	// of addresses when the list is empty.
	Warning *AddressesScopedListWarning `json:"warning,omitempty"`
}

type AddressesScopedListWarning

type AddressesScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

AddressesScopedListWarning: [Output Only] Informational warning which replaces the list of addresses when the list is empty.

type AddressesScopedListWarningData

type AddressesScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type AddressesService

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

func NewAddressesService

func NewAddressesService(s *Service) *AddressesService

func (*AddressesService) AggregatedList

func (r *AddressesService) AggregatedList(project string) *AddressesAggregatedListCall

AggregatedList: Retrieves the list of addresses grouped by scope. For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/aggregatedList

func (*AddressesService) Delete

func (r *AddressesService) Delete(project string, region string, address string) *AddressesDeleteCall

Delete: Deletes the specified address resource. For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/delete

func (*AddressesService) Get

func (r *AddressesService) Get(project string, region string, address string) *AddressesGetCall

Get: Returns the specified address resource. For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/get

func (*AddressesService) Insert

func (r *AddressesService) Insert(project string, region string, address *Address) *AddressesInsertCall

Insert: Creates an address resource in the specified project using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/insert

func (*AddressesService) List

func (r *AddressesService) List(project string, region string) *AddressesListCall

List: Retrieves the list of address resources contained within the specified region. For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/list

type AttachedDisk

type AttachedDisk struct {
	// AutoDelete: Specifies whether the disk will be auto-deleted when the
	// instance is deleted (but not when the disk is detached from the
	// instance).
	AutoDelete bool `json:"autoDelete,omitempty"`

	// Boot: Indicates that this is a boot disk. The virtual machine will
	// use the first partition of the disk for its root filesystem.
	Boot bool `json:"boot,omitempty"`

	// DeviceName: Specifies a unique device name of your choice that is
	// reflected into the /dev/ tree of a Linux operating system running
	// within the instance. This name can be used to reference the device
	// for mounting, resizing, and so on, from within the instance.
	//
	// If not specified, the server chooses a default device name to apply
	// to this disk, in the form persistent-disks-x, where x is a number
	// assigned by Google Compute Engine. This field is only applicable for
	// persistent disks.
	DeviceName string `json:"deviceName,omitempty"`

	// Index: Assigns a zero-based index to this disk, where 0 is reserved
	// for the boot disk. For example, if you have many disks attached to an
	// instance, each disk would have a unique index number. If not
	// specified, the server will choose an appropriate value.
	Index int64 `json:"index,omitempty"`

	// InitializeParams: [Input Only] Specifies the parameters for a new
	// disk that will be created alongside the new instance. Use
	// initialization parameters to create boot disks or local SSDs attached
	// to the new instance.
	//
	// This property is mutually exclusive with the source property; you can
	// only define one or the other, but not both.
	InitializeParams *AttachedDiskInitializeParams `json:"initializeParams,omitempty"`

	// Possible values:
	//   "NVME"
	//   "SCSI"
	Interface string `json:"interface,omitempty"`

	// Kind: [Output Only] Type of the resource. Always compute#attachedDisk
	// for attached disks.
	Kind string `json:"kind,omitempty"`

	// Licenses: [Output Only] Any valid publicly visible licenses.
	Licenses []string `json:"licenses,omitempty"`

	// Mode: The mode in which to attach this disk, either READ_WRITE or
	// READ_ONLY. If not specified, the default is to attach the disk in
	// READ_WRITE mode.
	//
	// Possible values:
	//   "READ_ONLY"
	//   "READ_WRITE"
	Mode string `json:"mode,omitempty"`

	// Source: Specifies a valid partial or full URL to an existing
	// Persistent Disk resource. This field is only applicable for
	// persistent disks.
	Source string `json:"source,omitempty"`

	// Type: Specifies the type of the disk, either SCRATCH or PERSISTENT.
	// If not specified, the default is PERSISTENT.
	//
	// Possible values:
	//   "PERSISTENT"
	//   "SCRATCH"
	Type string `json:"type,omitempty"`
}

AttachedDisk: An instance-attached disk resource.

type AttachedDiskInitializeParams

type AttachedDiskInitializeParams struct {
	// DiskName: Specifies the disk name. If not specified, the default is
	// to use the name of the instance.
	DiskName string `json:"diskName,omitempty"`

	// DiskSizeGb: Specifies the size of the disk in base-2 GB.
	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`

	// DiskType: Specifies the disk type to use to create the instance. If
	// not specified, the default is pd-standard, specified using the full
	// URL. For
	// example:
	//
	// https://www.googleapis.com/compute/v1/projects/project/zones
	// /zone/diskTypes/pd-standard
	//
	// Other values include pd-ssd and local-ssd. If you define this field,
	// you can provide either the full or partial URL. For example, the
	// following are valid values:
	// -
	// https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType
	// - projects/project/zones/zone/diskTypes/diskType
	// - zones/zone/diskTypes/diskType
	DiskType string `json:"diskType,omitempty"`

	// SourceImage: A source image used to create the disk. You can provide
	// a private (custom) image, and Compute Engine will use the
	// corresponding image from your project. For
	// example:
	//
	// global/images/my-private-image
	//
	// Or you can provide an image from a publicly-available project. For
	// example, to use a Debian image from the debian-cloud project, make
	// sure to include the project in the
	// URL:
	//
	// projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
	//
	// where vYYYYMMDD is the image version. The fully-qualified URL will
	// also work in both cases.
	SourceImage string `json:"sourceImage,omitempty"`
}

AttachedDiskInitializeParams: [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.

This property is mutually exclusive with the source property; you can only define one or the other, but not both.

type Autoscaler

type Autoscaler struct {
	// AutoscalingPolicy: Autoscaling configuration.
	AutoscalingPolicy *AutoscalingPolicy `json:"autoscalingPolicy,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"`

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

	// Target: URL of Instance Group Manager or Replica Pool which will be
	// controlled by Autoscaler.
	Target string `json:"target,omitempty"`

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

type AutoscalerAggregatedList

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

	// Items: A map of scoped autoscaler lists.
	Items map[string]AutoscalersScopedList `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 AutoscalerList

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

	// Items: A list of Autoscaler resources.
	Items []*Autoscaler `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"`
}

AutoscalerList: Contains a list of persistent autoscaler resources.

type AutoscalersAggregatedListCall

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

func (*AutoscalersAggregatedListCall) Do

func (*AutoscalersAggregatedListCall) Fields

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

func (*AutoscalersAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*AutoscalersAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*AutoscalersAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type AutoscalersDeleteCall

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

func (*AutoscalersDeleteCall) Do

func (*AutoscalersDeleteCall) Fields

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

type AutoscalersGetCall

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

func (*AutoscalersGetCall) Do

func (c *AutoscalersGetCall) Do() (*Autoscaler, error)

func (*AutoscalersGetCall) Fields

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

type AutoscalersInsertCall

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

func (*AutoscalersInsertCall) Do

func (*AutoscalersInsertCall) Fields

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

type AutoscalersListCall

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

func (*AutoscalersListCall) Do

func (*AutoscalersListCall) Fields

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

func (*AutoscalersListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*AutoscalersListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*AutoscalersListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type AutoscalersPatchCall

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

func (*AutoscalersPatchCall) Do

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

func (*AutoscalersPatchCall) Fields

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

type AutoscalersScopedList

type AutoscalersScopedList struct {
	// Autoscalers: List of autoscalers contained in this scope.
	Autoscalers []*Autoscaler `json:"autoscalers,omitempty"`

	// Warning: Informational warning which replaces the list of autoscalers
	// when the list is empty.
	Warning *AutoscalersScopedListWarning `json:"warning,omitempty"`
}

type AutoscalersScopedListWarning

type AutoscalersScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

AutoscalersScopedListWarning: Informational warning which replaces the list of autoscalers when the list is empty.

type AutoscalersScopedListWarningData

type AutoscalersScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type AutoscalersService

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

func NewAutoscalersService

func NewAutoscalersService(s *Service) *AutoscalersService

func (*AutoscalersService) AggregatedList

func (r *AutoscalersService) AggregatedList(project string) *AutoscalersAggregatedListCall

AggregatedList: Retrieves the list of autoscalers grouped by scope.

func (*AutoscalersService) Delete

func (r *AutoscalersService) Delete(project string, zone string, autoscaler string) *AutoscalersDeleteCall

Delete: Deletes the specified autoscaler resource.

func (*AutoscalersService) Get

func (r *AutoscalersService) Get(project string, zone string, autoscaler string) *AutoscalersGetCall

Get: Returns the specified autoscaler resource.

func (*AutoscalersService) Insert

func (r *AutoscalersService) Insert(project string, zone string, autoscaler *Autoscaler) *AutoscalersInsertCall

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

func (*AutoscalersService) List

func (r *AutoscalersService) List(project string, zone string) *AutoscalersListCall

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

func (*AutoscalersService) Patch

func (r *AutoscalersService) Patch(project string, zone string, autoscaler string, autoscaler2 *Autoscaler) *AutoscalersPatchCall

Patch: Updates an autoscaler resource in the specified project using the data included in the request. This method supports patch semantics.

func (*AutoscalersService) Update

func (r *AutoscalersService) Update(project string, zone string, autoscaler *Autoscaler) *AutoscalersUpdateCall

Update: Updates an autoscaler resource in the specified project using the data included in the request.

type AutoscalersUpdateCall

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

func (*AutoscalersUpdateCall) Autoscaler

func (c *AutoscalersUpdateCall) Autoscaler(autoscaler string) *AutoscalersUpdateCall

Autoscaler sets the optional parameter "autoscaler": Name of the autoscaler resource to update.

func (*AutoscalersUpdateCall) Do

func (*AutoscalersUpdateCall) Fields

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

type AutoscalingPolicy

type AutoscalingPolicy struct {
	// CoolDownPeriodSec: The number of seconds that the Autoscaler should
	// wait between two succeeding changes to the number of virtual
	// machines. You should define an interval that is at least as long as
	// the initialization time of a virtual machine and the time it may take
	// for replica pool to create the virtual machine. The default is 60
	// seconds.
	CoolDownPeriodSec int64 `json:"coolDownPeriodSec,omitempty"`

	// CpuUtilization: TODO(jbartosik): Add support for scaling based on
	// muliple utilization metrics (take max recommendation). Exactly one
	// utilization policy should be provided. Configuration parameters of
	// CPU based autoscaling policy.
	CpuUtilization *AutoscalingPolicyCpuUtilization `json:"cpuUtilization,omitempty"`

	// CustomMetricUtilizations: Configuration parameters of autoscaling
	// based on custom metric.
	CustomMetricUtilizations []*AutoscalingPolicyCustomMetricUtilization `json:"customMetricUtilizations,omitempty"`

	// LoadBalancingUtilization: Configuration parameters of autoscaling
	// based on load balancer.
	LoadBalancingUtilization *AutoscalingPolicyLoadBalancingUtilization `json:"loadBalancingUtilization,omitempty"`

	// MaxNumReplicas: The maximum number of replicas that the Autoscaler
	// can scale up to. This field is required for config to be effective.
	// Maximum number of replicas should be not lower than minimal number of
	// replicas. Absolute limit for this value is defined in Autoscaler
	// backend.
	MaxNumReplicas int64 `json:"maxNumReplicas,omitempty"`

	// MinNumReplicas: The minimum number of replicas that the Autoscaler
	// can scale down to. Can't be less than 0. If not provided Autoscaler
	// will choose default value depending on maximal number of replicas.
	MinNumReplicas int64 `json:"minNumReplicas,omitempty"`
}

AutoscalingPolicy: Cloud Autoscaler policy.

type AutoscalingPolicyCpuUtilization

type AutoscalingPolicyCpuUtilization struct {
	// UtilizationTarget: The target utilization that the Autoscaler should
	// maintain. It is represented as a fraction of used cores. For example:
	// 6 cores used in 8-core VM are represented here as 0.75. Must be a
	// float value between (0, 1]. If not defined, the default is 0.8.
	UtilizationTarget float64 `json:"utilizationTarget,omitempty"`
}

AutoscalingPolicyCpuUtilization: CPU utilization policy.

type AutoscalingPolicyCustomMetricUtilization

type AutoscalingPolicyCustomMetricUtilization struct {
	// Metric: Identifier of the metric. It should be a Cloud Monitoring
	// metric. The metric can not have negative values. The metric should be
	// an utilization metric (increasing number of VMs handling requests x
	// times should reduce average value of the metric roughly x times). For
	// example you could use:
	// compute.googleapis.com/instance/network/received_bytes_count.
	Metric string `json:"metric,omitempty"`

	// UtilizationTarget: Target value of the metric which Autoscaler should
	// maintain. Must be a positive value.
	UtilizationTarget float64 `json:"utilizationTarget,omitempty"`

	// UtilizationTargetType: Defines type in which utilization_target is
	// expressed.
	//
	// Possible values:
	//   "DELTA_PER_MINUTE"
	//   "DELTA_PER_SECOND"
	//   "GAUGE"
	UtilizationTargetType string `json:"utilizationTargetType,omitempty"`
}

AutoscalingPolicyCustomMetricUtilization: Custom utilization metric policy.

type AutoscalingPolicyLoadBalancingUtilization

type AutoscalingPolicyLoadBalancingUtilization struct {
	// UtilizationTarget: Fraction of backend capacity utilization (set in
	// HTTP load balancing configuration) that Autoscaler should maintain.
	// Must be a positive float value. If not defined, the default is 0.8.
	// For example if your maxRatePerInstance capacity (in HTTP Load
	// Balancing configuration) is set at 10 and you would like to keep
	// number of instances such that each instance receives 7 QPS on
	// average, set this to 0.7.
	UtilizationTarget float64 `json:"utilizationTarget,omitempty"`
}

AutoscalingPolicyLoadBalancingUtilization: Load balancing utilization policy.

type Backend

type Backend struct {
	// BalancingMode: Specifies the balancing mode for this backend. The
	// default is UTILIZATION but available values are UTILIZATION and RATE.
	//
	// Possible values:
	//   "RATE"
	//   "UTILIZATION"
	BalancingMode string `json:"balancingMode,omitempty"`

	// CapacityScaler: A multiplier applied to the group's maximum servicing
	// capacity (either UTILIZATION or RATE). Default value is 1, which
	// means the group will serve up to 100% of its configured CPU or RPS
	// (depending on balancingMode). A setting of 0 means the group is
	// completely drained, offering 0% of its available CPU or RPS. Valid
	// range is [0.0,1.0].
	CapacityScaler float64 `json:"capacityScaler,omitempty"`

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

	// Group: The fully-qualified URL of a zonal Instance Group resource.
	// This instance group defines the list of instances that serve traffic.
	// Member virtual machine instances from each instance group must live
	// in the same zone as the instance group itself. No two backends in a
	// backend service are allowed to use same Instance Group
	// resource.
	//
	// Note that you must specify an Instance Group resource using the
	// fully-qualified URL, rather than a partial URL.
	Group string `json:"group,omitempty"`

	// MaxRate: The max RPS of the group. Can be used with either balancing
	// mode, but required if RATE mode. For RATE mode, either maxRate or
	// maxRatePerInstance must be set.
	MaxRate int64 `json:"maxRate,omitempty"`

	// MaxRatePerInstance: The max RPS that a single backed instance can
	// handle. This is used to calculate the capacity of the group. Can be
	// used in either balancing mode. For RATE mode, either maxRate or
	// maxRatePerInstance must be set.
	MaxRatePerInstance float64 `json:"maxRatePerInstance,omitempty"`

	// MaxUtilization: Used when balancingMode is UTILIZATION. This ratio
	// defines the CPU utilization target for the group. The default is 0.8.
	// Valid range is [0.0, 1.0].
	MaxUtilization float64 `json:"maxUtilization,omitempty"`
}

Backend: Message containing information of one individual backend.

type BackendService

type BackendService struct {
	// Backends: The list of backends that serve this BackendService.
	Backends []*Backend `json:"backends,omitempty"`

	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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"`

	// Fingerprint: Fingerprint of this resource. A hash of the contents
	// stored in this object. This field is used in optimistic locking. This
	// field will be ignored when inserting a BackendService. An up-to-date
	// fingerprint must be provided in order to update the BackendService.
	Fingerprint string `json:"fingerprint,omitempty"`

	// HealthChecks: The list of URLs to the HttpHealthCheck resource for
	// health checking this BackendService. Currently at most one health
	// check can be specified, and a health check is required.
	HealthChecks []string `json:"healthChecks,omitempty"`

	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of resource. Always compute#backendService
	// for backend services.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// Port: Deprecated in favor of port name. The TCP port to connect on
	// the backend. The default value is 80.
	Port int64 `json:"port,omitempty"`

	// PortName: Name of backend port. The same name should appear in the
	// resource views referenced by this service. Required.
	PortName string `json:"portName,omitempty"`

	// Possible values:
	//   "HTTP"
	Protocol string `json:"protocol,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// TimeoutSec: How many seconds to wait for the backend before
	// considering it a failed request. Default is 30 seconds.
	TimeoutSec int64 `json:"timeoutSec,omitempty"`
}

BackendService: A BackendService resource. This resource defines a group of backend VMs together with their serving capacity.

type BackendServiceGroupHealth

type BackendServiceGroupHealth struct {
	HealthStatus []*HealthStatus `json:"healthStatus,omitempty"`

	// Kind: [Output Only] Type of resource. Always
	// compute#backendServiceGroupHealth for the health of backend services.
	Kind string `json:"kind,omitempty"`
}

type BackendServiceList

type BackendServiceList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

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

	// Kind: [Output Only] Type of resource. Always
	// compute#backendServiceList for lists of backend services.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server-defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

BackendServiceList: Contains a list of BackendService resources.

type BackendServicesDeleteCall

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

func (*BackendServicesDeleteCall) Do

func (*BackendServicesDeleteCall) Fields

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

type BackendServicesGetCall

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

func (*BackendServicesGetCall) Do

func (*BackendServicesGetCall) Fields

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

type BackendServicesGetHealthCall

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

func (*BackendServicesGetHealthCall) Do

func (*BackendServicesGetHealthCall) Fields

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

type BackendServicesInsertCall

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

func (*BackendServicesInsertCall) Do

func (*BackendServicesInsertCall) Fields

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

type BackendServicesListCall

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

func (*BackendServicesListCall) Do

func (*BackendServicesListCall) Fields

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

func (*BackendServicesListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*BackendServicesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*BackendServicesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type BackendServicesPatchCall

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

func (*BackendServicesPatchCall) Do

func (*BackendServicesPatchCall) Fields

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

type BackendServicesService

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

func NewBackendServicesService

func NewBackendServicesService(s *Service) *BackendServicesService

func (*BackendServicesService) Delete

func (r *BackendServicesService) Delete(project string, backendService string) *BackendServicesDeleteCall

Delete: Deletes the specified BackendService resource. For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/delete

func (*BackendServicesService) Get

func (r *BackendServicesService) Get(project string, backendService string) *BackendServicesGetCall

Get: Returns the specified BackendService resource. For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/get

func (*BackendServicesService) GetHealth

func (r *BackendServicesService) GetHealth(project string, backendService string, resourcegroupreference *ResourceGroupReference) *BackendServicesGetHealthCall

GetHealth: Gets the most recent health check results for this BackendService. For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/getHealth

func (*BackendServicesService) Insert

func (r *BackendServicesService) Insert(project string, backendservice *BackendService) *BackendServicesInsertCall

Insert: Creates a BackendService resource in the specified project using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/insert

func (*BackendServicesService) List

List: Retrieves the list of BackendService resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/list

func (*BackendServicesService) Patch

func (r *BackendServicesService) Patch(project string, backendService string, backendservice *BackendService) *BackendServicesPatchCall

Patch: Update the entire content of the BackendService resource. This method supports patch semantics. For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/patch

func (*BackendServicesService) Update

func (r *BackendServicesService) Update(project string, backendService string, backendservice *BackendService) *BackendServicesUpdateCall

Update: Update the entire content of the BackendService resource. For details, see https://cloud.google.com/compute/docs/reference/latest/backendServices/update

type BackendServicesUpdateCall

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

func (*BackendServicesUpdateCall) Do

func (*BackendServicesUpdateCall) Fields

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

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: The URL of the suggested replacement for a deprecated
	// resource. The suggested replacement resource must be the same kind of
	// resource as the deprecated resource.
	Replacement string `json:"replacement,omitempty"`

	// State: The deprecation state of this resource. This 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. Operations which use OBSOLETE or DELETED resources
	// will be rejected and result in an error.
	//
	// Possible values:
	//   "DELETED"
	//   "DEPRECATED"
	//   "OBSOLETE"
	State string `json:"state,omitempty"`
}

DeprecationStatus: Deprecation status for a public resource.

type Disk

type Disk struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of the resource. Always compute#disk for
	// disks.
	Kind string `json:"kind,omitempty"`

	// LastAttachTimestamp: [Output Only] Last attach timestamp in RFC3339
	// text format.
	LastAttachTimestamp string `json:"lastAttachTimestamp,omitempty"`

	// LastDetachTimestamp: [Output Only] Last detach timestamp in RFC3339
	// text format.
	LastDetachTimestamp string `json:"lastDetachTimestamp,omitempty"`

	// Licenses: Any applicable publicly visible licenses.
	Licenses []string `json:"licenses,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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

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

	// SelfLink: [Output Only] Server-defined fully-qualified URL for this
	// resource.
	SelfLink string `json:"selfLink,omitempty"`

	// SizeGb: Size of the persistent disk, specified in GB. You can specify
	// this field when creating a persistent disk using the sourceImage or
	// sourceSnapshot parameter, or specify it alone to create an empty
	// persistent disk.
	//
	// If you specify this field along with sourceImage or sourceSnapshot,
	// the value of sizeGb must not be less than the size of the sourceImage
	// or the size of the snapshot.
	SizeGb int64 `json:"sizeGb,omitempty,string"`

	// SourceImage: The source image used to create this disk. If the source
	// image is deleted from the system, this field will not be set, even if
	// an image with the same name has been re-created.
	//
	// When creating a disk, you can provide a private (custom) image using
	// the following input, and Compute Engine will use the corresponding
	// image from your project. For example:
	//
	// global/images/my-private-image
	//
	// Or you can provide an image from a publicly-available project. For
	// example, to use a Debian image from the debian-cloud project, make
	// sure to include the project in the
	// URL:
	//
	// projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
	//
	// where vYYYYMMDD is the image version. The fully-qualified URL will
	// also work in both cases.
	SourceImage string `json:"sourceImage,omitempty"`

	// SourceImageId: The ID value of the image used to create this disk.
	// This value identifies the exact image that was used to create this
	// persistent disk. For example, if you created the persistent disk from
	// an image that was later deleted and recreated under the same name,
	// the source image ID would identify the exact version of the image
	// that was used.
	SourceImageId string `json:"sourceImageId,omitempty"`

	// SourceSnapshot: The source snapshot used to create this disk. You can
	// provide this as a partial or full URL to the resource. For example,
	// the following are valid values:
	// -
	// https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
	// - projects/project/global/snapshots/snapshot
	// - global/snapshots/snapshot
	SourceSnapshot string `json:"sourceSnapshot,omitempty"`

	// SourceSnapshotId: [Output Only] The unique ID of the snapshot used to
	// create this disk. This value identifies the exact snapshot that was
	// used to create this persistent disk. For example, if you created the
	// persistent disk from a snapshot that was later deleted and recreated
	// under the same name, the source snapshot ID would identify the exact
	// version of the snapshot that was used.
	SourceSnapshotId string `json:"sourceSnapshotId,omitempty"`

	// Status: [Output Only] The status of disk creation. Applicable
	// statuses includes: CREATING, FAILED, READY, RESTORING.
	//
	// Possible values:
	//   "CREATING"
	//   "FAILED"
	//   "READY"
	//   "RESTORING"
	Status string `json:"status,omitempty"`

	// Type: URL of the disk type resource describing which disk type to use
	// to create the disk; provided by the client when the disk is created.
	Type string `json:"type,omitempty"`

	// Users: Links to the users of the disk (attached instances) in form:
	// project/zones/zone/instances/instance
	Users []string `json:"users,omitempty"`

	// Zone: [Output Only] URL of the zone where the disk resides.
	Zone string `json:"zone,omitempty"`
}

Disk: A Disk resource.

type DiskAggregatedList

type DiskAggregatedList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A map of scoped disk lists.
	Items map[string]DisksScopedList `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always
	// compute#diskAggregatedList for aggregated lists of persistent disks.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

type DiskList

type DiskList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of persistent disks.
	Items []*Disk `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#diskList for
	// lists of disks.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

DiskList: A list of Disk resources.

type DiskMoveRequest

type DiskMoveRequest struct {
	// DestinationZone: The URL of the destination zone to move the disk to.
	// This can be a full or partial URL. For example, the following are all
	// valid URLs to a zone:
	// - https://www.googleapis.com/compute/v1/projects/project/zones/zone
	//
	// - projects/project/zones/zone
	// - zones/zone
	DestinationZone string `json:"destinationZone,omitempty"`

	// TargetDisk: The URL of the target disk to move. This can be a full or
	// partial URL. For example, the following are all valid URLs to a disk:
	//
	// -
	// https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
	// - projects/project/zones/zone/disks/disk
	// - zones/zone/disks/disk
	TargetDisk string `json:"targetDisk,omitempty"`
}

type DiskType

type DiskType struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// DefaultDiskSizeGb: [Output Only] Server defined default disk size in
	// GB.
	DefaultDiskSizeGb int64 `json:"defaultDiskSizeGb,omitempty,string"`

	// Deprecated: [Output Only] The deprecation status associated with this
	// disk type.
	Deprecated *DeprecationStatus `json:"deprecated,omitempty"`

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

	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of the resource. Always compute#diskType for
	// disk types.
	Kind string `json:"kind,omitempty"`

	// Name: [Output Only] Name of the resource.
	Name string `json:"name,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// ValidDiskSize: [Output Only] An optional textual description of the
	// valid disk size, such as "10GB-10TB".
	ValidDiskSize string `json:"validDiskSize,omitempty"`

	// Zone: [Output Only] URL of the zone where the disk type resides.
	Zone string `json:"zone,omitempty"`
}

DiskType: A disk type resource.

type DiskTypeAggregatedList

type DiskTypeAggregatedList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A map of scoped disk type lists.
	Items map[string]DiskTypesScopedList `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always
	// compute#diskTypeAggregatedList.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

type DiskTypeList

type DiskTypeList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of Disk Type resources.
	Items []*DiskType `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#diskTypeList for
	// disk types.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

DiskTypeList: Contains a list of disk type resources.

type DiskTypesAggregatedListCall

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

func (*DiskTypesAggregatedListCall) Do

func (*DiskTypesAggregatedListCall) Fields

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

func (*DiskTypesAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*DiskTypesAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*DiskTypesAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type DiskTypesGetCall

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

func (*DiskTypesGetCall) Do

func (c *DiskTypesGetCall) Do() (*DiskType, error)

func (*DiskTypesGetCall) Fields

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

type DiskTypesListCall

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

func (*DiskTypesListCall) Do

func (c *DiskTypesListCall) Do() (*DiskTypeList, error)

func (*DiskTypesListCall) Fields

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

func (*DiskTypesListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*DiskTypesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*DiskTypesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type DiskTypesScopedList

type DiskTypesScopedList struct {
	// DiskTypes: [Output Only] List of disk types contained in this scope.
	DiskTypes []*DiskType `json:"diskTypes,omitempty"`

	// Warning: [Output Only] Informational warning which replaces the list
	// of disk types when the list is empty.
	Warning *DiskTypesScopedListWarning `json:"warning,omitempty"`
}

type DiskTypesScopedListWarning

type DiskTypesScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

DiskTypesScopedListWarning: [Output Only] Informational warning which replaces the list of disk types when the list is empty.

type DiskTypesScopedListWarningData

type DiskTypesScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type DiskTypesService

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

func NewDiskTypesService

func NewDiskTypesService(s *Service) *DiskTypesService

func (*DiskTypesService) AggregatedList

func (r *DiskTypesService) AggregatedList(project string) *DiskTypesAggregatedListCall

AggregatedList: Retrieves the list of disk type resources grouped by scope. For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/aggregatedList

func (*DiskTypesService) Get

func (r *DiskTypesService) Get(project string, zone string, diskType string) *DiskTypesGetCall

Get: Returns the specified disk type resource. For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/get

func (*DiskTypesService) List

func (r *DiskTypesService) List(project string, zone string) *DiskTypesListCall

List: Retrieves the list of disk type resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/diskTypes/list

type DisksAggregatedListCall

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

func (*DisksAggregatedListCall) Do

func (*DisksAggregatedListCall) Fields

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

func (*DisksAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*DisksAggregatedListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*DisksAggregatedListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type DisksCreateSnapshotCall

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

func (*DisksCreateSnapshotCall) Do

func (*DisksCreateSnapshotCall) Fields

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

type DisksDeleteCall

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

func (*DisksDeleteCall) Do

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

func (*DisksDeleteCall) Fields

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

type DisksGetCall

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

func (*DisksGetCall) Do

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

func (*DisksGetCall) Fields

func (c *DisksGetCall) Fields(s ...googleapi.Field) *DisksGetCall

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

type DisksInsertCall

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

func (*DisksInsertCall) Do

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

func (*DisksInsertCall) Fields

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

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

func (c *DisksListCall) Fields(s ...googleapi.Field) *DisksListCall

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

func (*DisksListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*DisksListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*DisksListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type DisksScopedList

type DisksScopedList struct {
	// Disks: [Output Only] List of disks contained in this scope.
	Disks []*Disk `json:"disks,omitempty"`

	// Warning: [Output Only] Informational warning which replaces the list
	// of disks when the list is empty.
	Warning *DisksScopedListWarning `json:"warning,omitempty"`
}

type DisksScopedListWarning

type DisksScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

DisksScopedListWarning: [Output Only] Informational warning which replaces the list of disks when the list is empty.

type DisksScopedListWarningData

type DisksScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type DisksService

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

func NewDisksService

func NewDisksService(s *Service) *DisksService

func (*DisksService) AggregatedList

func (r *DisksService) AggregatedList(project string) *DisksAggregatedListCall

AggregatedList: Retrieves the list of disks grouped by scope. For details, see https://cloud.google.com/compute/docs/reference/latest/disks/aggregatedList

func (*DisksService) CreateSnapshot

func (r *DisksService) CreateSnapshot(project string, zone string, disk string, snapshot *Snapshot) *DisksCreateSnapshotCall

CreateSnapshot: Creates a snapshot of this disk. For details, see https://cloud.google.com/compute/docs/reference/latest/disks/createSnapshot

func (*DisksService) Delete

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

Delete: Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots. For details, see https://cloud.google.com/compute/docs/reference/latest/disks/delete

func (*DisksService) Get

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

Get: Returns a specified persistent disk. For details, see https://cloud.google.com/compute/docs/reference/latest/disks/get

func (*DisksService) Insert

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

Insert: Creates a persistent disk in the specified project using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/disks/insert

func (*DisksService) List

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

List: Retrieves the list of persistent disks contained within the specified zone. For details, see https://cloud.google.com/compute/docs/reference/latest/disks/list

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: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Ony] Type of the resource. Always compute#firewall for
	// firewall rules.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// Network: URL of the network resource for this firewall rule. This
	// field is required for creating an instance but optional when creating
	// a firewall rule. If not specified when creating a firewall rule, the
	// default network is used:
	// global/networks/default
	// If you choose to specify this property, you can specify the network
	// as a full or partial URL. For example, the following are all valid
	// URLs:
	// -
	// https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network
	// - projects/myproject/global/networks/my-network
	// - global/networks/default
	Network string `json:"network,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// SourceRanges: The IP address blocks that this rule applies to,
	// expressed in CIDR format. One or both of sourceRanges and sourceTags
	// may be set.
	//
	// If both properties are set, an inbound connection is allowed if the
	// range matches the sourceRanges OR the tag of the source matches the
	// sourceTags property. The connection does not need to match both
	// properties.
	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.
	//
	// If both properties are set, an inbound connection is allowed if the
	// range matches the sourceRanges OR the tag of the source matches the
	// sourceTags property. The connection does not need to match both
	// properties.
	SourceTags []string `json:"sourceTags,omitempty"`

	// TargetTags: A list of instance tags indicating sets of instances
	// located in the network that 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"`
}

Firewall: A Firewall resource.

type FirewallAllowed

type FirewallAllowed struct {
	// IPProtocol: The IP protocol that is allowed for this rule. The
	// protocol type is required when creating a firewall. This value can
	// either be one of the following well known protocol strings (tcp, udp,
	// icmp, esp, ah, sctp), or the IP protocol number.
	IPProtocol string `json:"IPProtocol,omitempty"`

	// Ports: An optional list of ports which are allowed. This field is
	// only applicable for UDP or TCP protocol. 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: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of Firewall resources.
	Items []*Firewall `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#firewallList for
	// lists of firewalls.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

FirewallList: Contains a list of Firewall resources.

type FirewallsDeleteCall

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

func (*FirewallsDeleteCall) Do

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

func (*FirewallsDeleteCall) Fields

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

type FirewallsGetCall

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

func (*FirewallsGetCall) Do

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

func (*FirewallsGetCall) Fields

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

type FirewallsInsertCall

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

func (*FirewallsInsertCall) Do

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

func (*FirewallsInsertCall) Fields

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

type FirewallsListCall

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

func (*FirewallsListCall) Do

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

func (*FirewallsListCall) Fields

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

func (*FirewallsListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*FirewallsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*FirewallsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type FirewallsPatchCall

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

func (*FirewallsPatchCall) Do

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

func (*FirewallsPatchCall) Fields

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

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. For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/delete

func (*FirewallsService) Get

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

Get: Returns the specified firewall resource. For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/get

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. For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/insert

func (*FirewallsService) List

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

List: Retrieves the list of firewall resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/list

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. For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/patch

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. For details, see https://cloud.google.com/compute/docs/reference/latest/firewalls/update

type FirewallsUpdateCall

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

func (*FirewallsUpdateCall) Do

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

func (*FirewallsUpdateCall) Fields

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

type ForwardingRule

type ForwardingRule struct {
	// IPAddress: Value of the reserved IP address that this forwarding rule
	// is serving on behalf of. For global forwarding rules, the address
	// must be a global IP; for regional forwarding rules, the address must
	// live in the same region as the forwarding rule. If left empty
	// (default value), an ephemeral IP from the same scope (global or
	// regional) will be assigned.
	IPAddress string `json:"IPAddress,omitempty"`

	// IPProtocol: The IP protocol to which this rule applies, valid options
	// are TCP, UDP, ESP, AH or SCTP.
	//
	// Possible values:
	//   "AH"
	//   "ESP"
	//   "SCTP"
	//   "TCP"
	//   "UDP"
	IPProtocol string `json:"IPProtocol,omitempty"`

	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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: [Output Only] Unique identifier for the resource; defined by the
	// server.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// PortRange: Applicable only when `IPProtocol` is TCP, UDP, or SCTP,
	// only packets addressed to ports in the specified range will be
	// forwarded to target. If portRange is left empty (default value), all
	// ports are forwarded. Forwarding rules with the same `[IPAddress,
	// IPProtocol]` pair must have disjoint port ranges.
	PortRange string `json:"portRange,omitempty"`

	// Region: [Output Only] URL of the region where the regional forwarding
	// rule resides. This field is not applicable to global forwarding
	// rules.
	Region string `json:"region,omitempty"`

	// SelfLink: [Output Only] Server-defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// Target: The URL of the target resource to receive the matched
	// traffic. For regional forwarding rules, this target must live in the
	// same region as the forwarding rule. For global forwarding rules, this
	// target must be a global TargetHttpProxy or TargetHttpsProxy resource.
	Target string `json:"target,omitempty"`
}

ForwardingRule: A ForwardingRule resource. A ForwardingRule resource specifies which pool of target VMs to forward a packet to if it matches the given [IPAddress, IPProtocol, portRange] tuple.

type ForwardingRuleAggregatedList

type ForwardingRuleAggregatedList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: A map of scoped forwarding rule lists.
	Items map[string]ForwardingRulesScopedList `json:"items,omitempty"`

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

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

type ForwardingRuleList

type ForwardingRuleList struct {
	// Id: [Output Only] Unique identifier for the resource. Set by the
	// server.
	Id string `json:"id,omitempty"`

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

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

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

ForwardingRuleList: Contains a list of ForwardingRule resources.

type ForwardingRulesAggregatedListCall

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

func (*ForwardingRulesAggregatedListCall) Do

func (*ForwardingRulesAggregatedListCall) Fields

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

func (*ForwardingRulesAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*ForwardingRulesAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*ForwardingRulesAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type ForwardingRulesDeleteCall

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

func (*ForwardingRulesDeleteCall) Do

func (*ForwardingRulesDeleteCall) Fields

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

type ForwardingRulesGetCall

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

func (*ForwardingRulesGetCall) Do

func (*ForwardingRulesGetCall) Fields

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

type ForwardingRulesInsertCall

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

func (*ForwardingRulesInsertCall) Do

func (*ForwardingRulesInsertCall) Fields

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

type ForwardingRulesListCall

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

func (*ForwardingRulesListCall) Do

func (*ForwardingRulesListCall) Fields

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

func (*ForwardingRulesListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*ForwardingRulesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*ForwardingRulesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type ForwardingRulesScopedList

type ForwardingRulesScopedList struct {
	// ForwardingRules: List of forwarding rules contained in this scope.
	ForwardingRules []*ForwardingRule `json:"forwardingRules,omitempty"`

	// Warning: Informational warning which replaces the list of forwarding
	// rules when the list is empty.
	Warning *ForwardingRulesScopedListWarning `json:"warning,omitempty"`
}

type ForwardingRulesScopedListWarning

type ForwardingRulesScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

ForwardingRulesScopedListWarning: Informational warning which replaces the list of forwarding rules when the list is empty.

type ForwardingRulesScopedListWarningData

type ForwardingRulesScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type ForwardingRulesService

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

func NewForwardingRulesService

func NewForwardingRulesService(s *Service) *ForwardingRulesService

func (*ForwardingRulesService) AggregatedList

AggregatedList: Retrieves the list of forwarding rules grouped by scope. For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/aggregatedList

func (*ForwardingRulesService) Delete

func (r *ForwardingRulesService) Delete(project string, region string, forwardingRule string) *ForwardingRulesDeleteCall

Delete: Deletes the specified ForwardingRule resource. For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/delete

func (*ForwardingRulesService) Get

func (r *ForwardingRulesService) Get(project string, region string, forwardingRule string) *ForwardingRulesGetCall

Get: Returns the specified ForwardingRule resource. For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/get

func (*ForwardingRulesService) Insert

func (r *ForwardingRulesService) Insert(project string, region string, forwardingrule *ForwardingRule) *ForwardingRulesInsertCall

Insert: Creates a ForwardingRule resource in the specified project and region using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/insert

func (*ForwardingRulesService) List

func (r *ForwardingRulesService) List(project string, region string) *ForwardingRulesListCall

List: Retrieves the list of ForwardingRule resources available to the specified project and region. For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/list

func (*ForwardingRulesService) SetTarget

func (r *ForwardingRulesService) SetTarget(project string, region string, forwardingRule string, targetreference *TargetReference) *ForwardingRulesSetTargetCall

SetTarget: Changes target url for forwarding rule. For details, see https://cloud.google.com/compute/docs/reference/latest/forwardingRules/setTarget

type ForwardingRulesSetTargetCall

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

func (*ForwardingRulesSetTargetCall) Do

func (*ForwardingRulesSetTargetCall) Fields

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

type GlobalAddressesDeleteCall

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

func (*GlobalAddressesDeleteCall) Do

func (*GlobalAddressesDeleteCall) Fields

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

type GlobalAddressesGetCall

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

func (*GlobalAddressesGetCall) Do

func (c *GlobalAddressesGetCall) Do() (*Address, error)

func (*GlobalAddressesGetCall) Fields

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

type GlobalAddressesInsertCall

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

func (*GlobalAddressesInsertCall) Do

func (*GlobalAddressesInsertCall) Fields

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

type GlobalAddressesListCall

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

func (*GlobalAddressesListCall) Do

func (*GlobalAddressesListCall) Fields

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

func (*GlobalAddressesListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*GlobalAddressesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*GlobalAddressesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type GlobalAddressesService

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

func NewGlobalAddressesService

func NewGlobalAddressesService(s *Service) *GlobalAddressesService

func (*GlobalAddressesService) Delete

func (r *GlobalAddressesService) Delete(project string, address string) *GlobalAddressesDeleteCall

Delete: Deletes the specified address resource. For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/delete

func (*GlobalAddressesService) Get

func (r *GlobalAddressesService) Get(project string, address string) *GlobalAddressesGetCall

Get: Returns the specified address resource. For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/get

func (*GlobalAddressesService) Insert

func (r *GlobalAddressesService) Insert(project string, address *Address) *GlobalAddressesInsertCall

Insert: Creates an address resource in the specified project using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/insert

func (*GlobalAddressesService) List

List: Retrieves the list of global address resources. For details, see https://cloud.google.com/compute/docs/reference/latest/globalAddresses/list

type GlobalForwardingRulesDeleteCall

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

func (*GlobalForwardingRulesDeleteCall) Do

func (*GlobalForwardingRulesDeleteCall) Fields

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

type GlobalForwardingRulesGetCall

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

func (*GlobalForwardingRulesGetCall) Do

func (*GlobalForwardingRulesGetCall) Fields

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

type GlobalForwardingRulesInsertCall

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

func (*GlobalForwardingRulesInsertCall) Do

func (*GlobalForwardingRulesInsertCall) Fields

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

type GlobalForwardingRulesListCall

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

func (*GlobalForwardingRulesListCall) Do

func (*GlobalForwardingRulesListCall) Fields

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

func (*GlobalForwardingRulesListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*GlobalForwardingRulesListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*GlobalForwardingRulesListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type GlobalForwardingRulesService

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

func NewGlobalForwardingRulesService

func NewGlobalForwardingRulesService(s *Service) *GlobalForwardingRulesService

func (*GlobalForwardingRulesService) Delete

func (r *GlobalForwardingRulesService) Delete(project string, forwardingRule string) *GlobalForwardingRulesDeleteCall

Delete: Deletes the specified ForwardingRule resource. For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/delete

func (*GlobalForwardingRulesService) Get

Get: Returns the specified ForwardingRule resource. For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/get

func (*GlobalForwardingRulesService) Insert

Insert: Creates a ForwardingRule resource in the specified project and region using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/insert

func (*GlobalForwardingRulesService) List

List: Retrieves the list of ForwardingRule resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/list

func (*GlobalForwardingRulesService) SetTarget

func (r *GlobalForwardingRulesService) SetTarget(project string, forwardingRule string, targetreference *TargetReference) *GlobalForwardingRulesSetTargetCall

SetTarget: Changes target url for forwarding rule. For details, see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/setTarget

type GlobalForwardingRulesSetTargetCall

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

func (*GlobalForwardingRulesSetTargetCall) Do

func (*GlobalForwardingRulesSetTargetCall) Fields

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

type GlobalOperationsAggregatedListCall

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

func (*GlobalOperationsAggregatedListCall) Do

func (*GlobalOperationsAggregatedListCall) Fields

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

func (*GlobalOperationsAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*GlobalOperationsAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*GlobalOperationsAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type GlobalOperationsDeleteCall

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

func (*GlobalOperationsDeleteCall) Do

func (*GlobalOperationsDeleteCall) Fields

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

type GlobalOperationsGetCall

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

func (*GlobalOperationsGetCall) Do

func (*GlobalOperationsGetCall) Fields

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

type GlobalOperationsListCall

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

func (*GlobalOperationsListCall) Do

func (*GlobalOperationsListCall) Fields

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

func (*GlobalOperationsListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*GlobalOperationsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*GlobalOperationsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type GlobalOperationsService

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

func NewGlobalOperationsService

func NewGlobalOperationsService(s *Service) *GlobalOperationsService

func (*GlobalOperationsService) AggregatedList

AggregatedList: Retrieves the list of all operations grouped by scope. For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/aggregatedList

func (*GlobalOperationsService) Delete

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

Delete: Deletes the specified Operations resource. For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/delete

func (*GlobalOperationsService) Get

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

Get: Retrieves the specified Operations resource. For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/get

func (*GlobalOperationsService) List

List: Retrieves the list of Operation resources contained within the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/globalOperations/list

type HealthCheckReference

type HealthCheckReference struct {
	HealthCheck string `json:"healthCheck,omitempty"`
}

type HealthStatus

type HealthStatus struct {
	// HealthState: Health state of the instance.
	//
	// Possible values:
	//   "HEALTHY"
	//   "UNHEALTHY"
	HealthState string `json:"healthState,omitempty"`

	// Instance: URL of the instance resource.
	Instance string `json:"instance,omitempty"`

	// IpAddress: The IP address represented by this resource.
	IpAddress string `json:"ipAddress,omitempty"`

	// Port: The port on the instance.
	Port int64 `json:"port,omitempty"`
}

type HostRule

type HostRule struct {
	// Description: An optional textual description.
	Description string `json:"description,omitempty"`

	// Hosts: The list of host patterns to match. They must be valid
	// hostnames except that they may start with *. or *-. The * acts like a
	// glob and will match any string of atoms (separated by .s and -s) to
	// the left.
	Hosts []string `json:"hosts,omitempty"`

	// PathMatcher: The name of the PathMatcher to match the path portion of
	// the URL, if the this hostRule matches the URL's host portion.
	PathMatcher string `json:"pathMatcher,omitempty"`
}

HostRule: UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.

type HttpHealthCheck

type HttpHealthCheck struct {
	// CheckIntervalSec: How often (in seconds) to send a health check. The
	// default value is 5 seconds.
	CheckIntervalSec int64 `json:"checkIntervalSec,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"`

	// HealthyThreshold: A so-far unhealthy VM will be marked healthy after
	// this many consecutive successes. The default value is 2.
	HealthyThreshold int64 `json:"healthyThreshold,omitempty"`

	// Host: The value of the host header in the HTTP health check request.
	// If left empty (default value), the public IP on behalf of which this
	// health check is performed will be used.
	Host string `json:"host,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"`

	// Port: The TCP port number for the HTTP health check request. The
	// default value is 80.
	Port int64 `json:"port,omitempty"`

	// RequestPath: The request path of the HTTP health check request. The
	// default value is "/".
	RequestPath string `json:"requestPath,omitempty"`

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

	// TimeoutSec: How long (in seconds) to wait before claiming failure.
	// The default value is 5 seconds. It is invalid for timeoutSec to have
	// greater value than checkIntervalSec.
	TimeoutSec int64 `json:"timeoutSec,omitempty"`

	// UnhealthyThreshold: A so-far healthy VM will be marked unhealthy
	// after this many consecutive failures. The default value is 2.
	UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"`
}

HttpHealthCheck: An HttpHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTP.

type HttpHealthCheckList

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

	// Items: A list of HttpHealthCheck resources.
	Items []*HttpHealthCheck `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"`
}

HttpHealthCheckList: Contains a list of HttpHealthCheck resources.

type HttpHealthChecksDeleteCall

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

func (*HttpHealthChecksDeleteCall) Do

func (*HttpHealthChecksDeleteCall) Fields

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

type HttpHealthChecksGetCall

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

func (*HttpHealthChecksGetCall) Do

func (*HttpHealthChecksGetCall) Fields

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

type HttpHealthChecksInsertCall

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

func (*HttpHealthChecksInsertCall) Do

func (*HttpHealthChecksInsertCall) Fields

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

type HttpHealthChecksListCall

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

func (*HttpHealthChecksListCall) Do

func (*HttpHealthChecksListCall) Fields

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

func (*HttpHealthChecksListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*HttpHealthChecksListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*HttpHealthChecksListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type HttpHealthChecksPatchCall

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

func (*HttpHealthChecksPatchCall) Do

func (*HttpHealthChecksPatchCall) Fields

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

type HttpHealthChecksService

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

func NewHttpHealthChecksService

func NewHttpHealthChecksService(s *Service) *HttpHealthChecksService

func (*HttpHealthChecksService) Delete

func (r *HttpHealthChecksService) Delete(project string, httpHealthCheck string) *HttpHealthChecksDeleteCall

Delete: Deletes the specified HttpHealthCheck resource. For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/delete

func (*HttpHealthChecksService) Get

func (r *HttpHealthChecksService) Get(project string, httpHealthCheck string) *HttpHealthChecksGetCall

Get: Returns the specified HttpHealthCheck resource. For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/get

func (*HttpHealthChecksService) Insert

func (r *HttpHealthChecksService) Insert(project string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksInsertCall

Insert: Creates a HttpHealthCheck resource in the specified project using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/insert

func (*HttpHealthChecksService) List

List: Retrieves the list of HttpHealthCheck resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/list

func (*HttpHealthChecksService) Patch

func (r *HttpHealthChecksService) Patch(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksPatchCall

Patch: Updates a HttpHealthCheck resource in the specified project using the data included in the request. This method supports patch semantics. For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/patch

func (*HttpHealthChecksService) Update

func (r *HttpHealthChecksService) Update(project string, httpHealthCheck string, httphealthcheck *HttpHealthCheck) *HttpHealthChecksUpdateCall

Update: Updates a HttpHealthCheck resource in the specified project using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks/update

type HttpHealthChecksUpdateCall

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

func (*HttpHealthChecksUpdateCall) Do

func (*HttpHealthChecksUpdateCall) Fields

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

type Image

type Image struct {
	// ArchiveSizeBytes: Size of the image tar.gz archive stored in Google
	// Cloud Storage (in bytes).
	ArchiveSizeBytes int64 `json:"archiveSizeBytes,omitempty,string"`

	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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"`

	// DiskSizeGb: Size of the image when restored onto a persistent disk
	// (in GB).
	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`

	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of the resource. Always compute#image for
	// images.
	Kind string `json:"kind,omitempty"`

	// Licenses: Any applicable publicly visible licenses.
	Licenses []string `json:"licenses,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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

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

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// SourceDisk: URL of the The source disk used to create this image.
	// This can be a full or valid partial URL. You must provide either this
	// property or the rawDisk.source property but not both to create an
	// image. For example, the following are valid values:
	// -
	// https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk
	// - projects/project/zones/zone/disk/disk
	// - zones/zone/disks/disk
	SourceDisk string `json:"sourceDisk,omitempty"`

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

	// SourceType: The type of the image used to create this disk. The
	// default and only value is RAW
	//
	// Possible values:
	//   "RAW" (default)
	SourceType string `json:"sourceType,omitempty"`

	// Status: [Output Only] The status of the image. An image can be used
	// to create other resources, such as instances, only after the image
	// has been successfully created and the status is set to READY.
	// Possible values are FAILED, PENDING, or READY.
	//
	// Possible values:
	//   "FAILED"
	//   "PENDING"
	//   "READY"
	Status string `json:"status,omitempty"`
}

Image: An Image resource.

type ImageList

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

	// Items: A list of 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"`
}

ImageList: Contains a list of Image resources.

type ImageRawDisk

type ImageRawDisk struct {
	// ContainerType: The format used to encode and transmit the block
	// device, which 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.
	//
	// Possible values:
	//   "TAR"
	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. You must provide either this property or the sourceDisk
	// property but not both.
	Source string `json:"source,omitempty"`
}

ImageRawDisk: The parameters of the raw disk image.

type ImagesDeleteCall

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

func (*ImagesDeleteCall) Do

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

func (*ImagesDeleteCall) Fields

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

type ImagesDeprecateCall

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

func (*ImagesDeprecateCall) Do

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

func (*ImagesDeprecateCall) Fields

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

type ImagesGetCall

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

func (*ImagesGetCall) Do

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

func (*ImagesGetCall) Fields

func (c *ImagesGetCall) Fields(s ...googleapi.Field) *ImagesGetCall

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

type ImagesInsertCall

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

func (*ImagesInsertCall) Do

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

func (*ImagesInsertCall) Fields

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

type ImagesListCall

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

func (*ImagesListCall) Do

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

func (*ImagesListCall) Fields

func (c *ImagesListCall) Fields(s ...googleapi.Field) *ImagesListCall

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

func (*ImagesListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*ImagesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*ImagesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by 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. For details, see https://cloud.google.com/compute/docs/reference/latest/images/delete

func (*ImagesService) Deprecate

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

Deprecate: Sets the deprecation status of an image.

If an empty request body is given, clears the deprecation status instead. For details, see https://cloud.google.com/compute/docs/reference/latest/images/deprecate

func (*ImagesService) Get

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

Get: Returns the specified image resource. For details, see https://cloud.google.com/compute/docs/reference/latest/images/get

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. For details, see https://cloud.google.com/compute/docs/reference/latest/images/insert

func (*ImagesService) List

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

List: Retrieves the list of image resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/images/list

type Instance

type Instance struct {
	// CanIpForward: Allows this instance to send and receive packets with
	// non-matching destination or source IPs. This is required if you plan
	// to use this instance to forward routes. For more information, see
	// Enabling IP Forwarding.
	CanIpForward bool `json:"canIpForward,omitempty"`

	// CpuPlatform: [Output Only] The CPU platform used by this instance.
	CpuPlatform string `json:"cpuPlatform,omitempty"`

	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of the resource. Always compute#instance for
	// instances.
	Kind string `json:"kind,omitempty"`

	// MachineType: Full or partial URL of the machine type resource to use
	// for this instance. This is provided by the client when the instance
	// is created. For example, the following is a valid partial
	// url:
	//
	// zones/zone/machineTypes/machine-type
	MachineType string `json:"machineType,omitempty"`

	// Metadata: The metadata key/value pairs assigned to this instance.
	// This includes custom metadata and predefined keys.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// NetworkInterfaces: An 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.
	NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"`

	// Scheduling: Scheduling options for this instance.
	Scheduling *Scheduling `json:"scheduling,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`

	// ServiceAccounts: A list of service accounts, with their specified
	// scopes, authorized for this instance. Service accounts generate
	// access tokens that can be accessed through the metadata server and
	// used to authenticate applications on the instance. See Authenticating
	// from Google Compute Engine for more information.
	ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"`

	// Status: [Output Only] The status of the instance. One of the
	// following values: PROVISIONING, STAGING, RUNNING, STOPPING, and
	// TERMINATED.
	//
	// Possible values:
	//   "PROVISIONING"
	//   "RUNNING"
	//   "STAGING"
	//   "STOPPED"
	//   "STOPPING"
	//   "SUSPENDED"
	//   "SUSPENDING"
	//   "TERMINATED"
	Status string `json:"status,omitempty"`

	// StatusMessage: [Output Only] An optional, human-readable explanation
	// of the status.
	StatusMessage string `json:"statusMessage,omitempty"`

	// Tags: A list of tags to appy to this instance. Tags are used to
	// identify valid sources or targets for network firewalls and are
	// specified by the client during 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: [Output Only] URL of the zone where the instance resides.
	Zone string `json:"zone,omitempty"`
}

Instance: An Instance resource.

type InstanceAggregatedList

type InstanceAggregatedList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A map of scoped instance lists.
	Items map[string]InstancesScopedList `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always
	// compute#instanceAggregatedList for aggregated lists of Instance
	// resources.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

type InstanceGroup

type InstanceGroup struct {
	// CreationTimestamp: [Output Only] The creation timestamp for this
	// instance group in RFC3339 text format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Description: An optional text description for the instance group.
	Description string `json:"description,omitempty"`

	// Fingerprint: [Output Only] The fingerprint of the named ports
	// information. The system uses this fingerprint to detect conflicts
	// when multiple users change the named ports information concurrently.
	Fingerprint string `json:"fingerprint,omitempty"`

	// Id: [Output Only] A unique identifier for this instance group. The
	// server defines this identifier.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] The resource type, which is always
	// compute#instanceGroup for instance groups.
	Kind string `json:"kind,omitempty"`

	// Name: The name of the instance group. The name must be 1-63
	// characters long, and comply with RFC1035.
	Name string `json:"name,omitempty"`

	// NamedPorts: Assigns a name to a port number. For example: {name:
	// ?http?, port: 80} This allows the system to reference ports by the
	// assigned name instead of a port number. Named ports can also contain
	// multiple ports. For example: [{name: ?http?, port: 80},{name: "http",
	// port: 8080}] Named ports apply to all instances in this instance
	// group.
	NamedPorts []*NamedPort `json:"namedPorts,omitempty"`

	// Network: The URL of the network to which all instances in the
	// instance group belong.
	Network string `json:"network,omitempty"`

	// SelfLink: [Output Only] The URL for this instance group. The server
	// defines this URL.
	SelfLink string `json:"selfLink,omitempty"`

	// Size: [Output Only] The total number of instances in the instance
	// group.
	Size int64 `json:"size,omitempty"`

	// Zone: The URL of the zone where the instance group is located.
	Zone string `json:"zone,omitempty"`
}

type InstanceGroupAggregatedList

type InstanceGroupAggregatedList struct {
	// Id: [Output Only] A unique identifier for this aggregated list of
	// instance groups. The server defines this identifier.
	Id string `json:"id,omitempty"`

	// Items: A map of scoped instance group lists.
	Items map[string]InstanceGroupsScopedList `json:"items,omitempty"`

	// Kind: [Output Only] The resource type, which is always
	// compute#instanceGroupAggregatedList for aggregated lists of instance
	// groups.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token that is used to continue a
	// truncated list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] A unique identifier for this aggregated list
	// of instance groups. The server defines this identifier.
	SelfLink string `json:"selfLink,omitempty"`
}

type InstanceGroupList

type InstanceGroupList struct {
	// Id: [Output Only] A unique identifier for this list of instance
	// groups. The server defines this identifier.
	Id string `json:"id,omitempty"`

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

	// Kind: [Output Only] The resource type, which is always
	// compute#instanceGroupList for instance group lists.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token that is used to continue a
	// truncated list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] The URL for this instance group. The server
	// defines this URL.
	SelfLink string `json:"selfLink,omitempty"`
}

InstanceGroupList: A list of InstanceGroup resources.

type InstanceGroupManager

type InstanceGroupManager struct {
	// AutoHealingPolicies: The autohealing policy for this managed instance
	// group. You can specify only one value.
	AutoHealingPolicies []*InstanceGroupManagerAutoHealingPolicy `json:"autoHealingPolicies,omitempty"`

	// BaseInstanceName: The base instance name to use for instances in this
	// group. The value must be 1-58 characters long. Instances are named by
	// appending a hyphen and a random four-character string to the base
	// instance name. The base instance name must comply with RFC1035.
	BaseInstanceName string `json:"baseInstanceName,omitempty"`

	// CreationTimestamp: [Output Only] The creation timestamp for this
	// managed instance group in RFC3339 text format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// CurrentActions: [Output Only] The list of instance actions and the
	// number of instances in this managed instance group that are scheduled
	// for those actions.
	CurrentActions *InstanceGroupManagerActionsSummary `json:"currentActions,omitempty"`

	// Description: An optional text description for the managed instance
	// group.
	Description string `json:"description,omitempty"`

	// Fingerprint: [Output Only] The fingerprint of the target pools
	// information, which is a hash of the contents. This field is used for
	// optimistic locking when updating the target pool entries.
	Fingerprint string `json:"fingerprint,omitempty"`

	// Id: [Output Only] A unique identifier for this managed instance
	// group. The server defines this identifier.
	Id uint64 `json:"id,omitempty,string"`

	// InstanceGroup: [Output Only] The URL of the InstanceGroup resource.
	InstanceGroup string `json:"instanceGroup,omitempty"`

	// InstanceTemplate: The URL of the instance template that is specified
	// for this managed instance group. The group uses this template to
	// create all new instances in the managed instance group.
	InstanceTemplate string `json:"instanceTemplate,omitempty"`

	// Kind: [Output Only] The resource type, which is always
	// compute#instanceGroupManager for managed instance groups.
	Kind string `json:"kind,omitempty"`

	// Name: The name of the managed instance group. The name must be 1-63
	// characters long, and comply with RFC1035.
	Name string `json:"name,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this managed instance
	// group.
	SelfLink string `json:"selfLink,omitempty"`

	// TargetPools: The URL of all TargetPool resources to which new
	// instances in the instanceGroup field are added. Updating the target
	// pool values does not affect existing instances.
	TargetPools []string `json:"targetPools,omitempty"`

	// TargetSize: The target number of running instances for this managed
	// instance group. Deleting or abandoning instances reduces this number.
	// Resizing the group changes this number.
	TargetSize int64 `json:"targetSize,omitempty"`

	// Zone: The URL of the zone where the managed instance group is
	// located.
	Zone string `json:"zone,omitempty"`
}

InstanceGroupManager: InstanceGroupManagers

Next available tag: 17

type InstanceGroupManagerActionsSummary

type InstanceGroupManagerActionsSummary struct {
	Abandoning int64 `json:"abandoning,omitempty"`

	Creating int64 `json:"creating,omitempty"`

	Deleting int64 `json:"deleting,omitempty"`

	None int64 `json:"none,omitempty"`

	Recreating int64 `json:"recreating,omitempty"`

	Refreshing int64 `json:"refreshing,omitempty"`

	Restarting int64 `json:"restarting,omitempty"`
}

type InstanceGroupManagerAggregatedList

type InstanceGroupManagerAggregatedList struct {
	// Id: [Output Only] A unique identifier for this aggregated list of
	// managed instance groups. The server defines this identifier.
	Id string `json:"id,omitempty"`

	// Items: A map of filtered managed instance group lists.
	Items map[string]InstanceGroupManagersScopedList `json:"items,omitempty"`

	// Kind: [Output Only] Type of the resource. Always
	// compute#instanceGroupManagerAggregatedList for an aggregated list of
	// managed instance groups.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token that is used to continue a
	// truncated list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] The URL for this aggregated list of managed
	// instance groups. The server defines this URL.
	SelfLink string `json:"selfLink,omitempty"`
}

type InstanceGroupManagerAutoHealingPolicy

type InstanceGroupManagerAutoHealingPolicy struct {
	// ActionType: The action to perform when an instance becomes unhealthy.
	// Possible values are RECREATE or RESTART. RECREATE replaces an
	// unhealthy instance with a new instance that is based on the instance
	// template for this managed instance group. RESTART performs a soft
	// restart on an instance. If the instance cannot restart softly, the
	// instance performs a hard restart.
	//
	// Possible values:
	//   "RECREATE"
	//   "RESTART"
	ActionType string `json:"actionType,omitempty"`

	// HealthCheck: The URL for the HealthCheck that signals autohealing.
	HealthCheck string `json:"healthCheck,omitempty"`
}

type InstanceGroupManagerList

type InstanceGroupManagerList struct {
	// Id: [Output Only] A unique identifier for this managed instance
	// group. The server defines this identifier.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of managed instance group resources.
	Items []*InstanceGroupManager `json:"items,omitempty"`

	// Kind: [Output Only] Type of the resource. Always
	// compute#instanceGroupManagerList for a list of managed instance group
	// resources.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token that is used to continue a
	// truncated list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] The URL for this managed instance group. The
	// server defines this URL.
	SelfLink string `json:"selfLink,omitempty"`
}

InstanceGroupManagerList: [Output Only] A list of InstanceGroupManager resources.

type InstanceGroupManagersAbandonInstancesCall

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

func (*InstanceGroupManagersAbandonInstancesCall) Do

func (*InstanceGroupManagersAbandonInstancesCall) Fields

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

type InstanceGroupManagersAbandonInstancesRequest

type InstanceGroupManagersAbandonInstancesRequest struct {
	// Instances: The names of instances to abandon from the managed
	// instance group.
	Instances []string `json:"instances,omitempty"`
}

type InstanceGroupManagersAggregatedListCall

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

func (*InstanceGroupManagersAggregatedListCall) Do

func (*InstanceGroupManagersAggregatedListCall) Fields

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

func (*InstanceGroupManagersAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*InstanceGroupManagersAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*InstanceGroupManagersAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type InstanceGroupManagersDeleteCall

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

func (*InstanceGroupManagersDeleteCall) Do

func (*InstanceGroupManagersDeleteCall) Fields

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

type InstanceGroupManagersDeleteInstancesCall

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

func (*InstanceGroupManagersDeleteInstancesCall) Do

func (*InstanceGroupManagersDeleteInstancesCall) Fields

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

type InstanceGroupManagersDeleteInstancesRequest

type InstanceGroupManagersDeleteInstancesRequest struct {
	// Instances: The names of one or more instances to delete.
	Instances []string `json:"instances,omitempty"`
}

type InstanceGroupManagersGetCall

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

func (*InstanceGroupManagersGetCall) Do

func (*InstanceGroupManagersGetCall) Fields

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

type InstanceGroupManagersInsertCall

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

func (*InstanceGroupManagersInsertCall) Do

func (*InstanceGroupManagersInsertCall) Fields

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

type InstanceGroupManagersListCall

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

func (*InstanceGroupManagersListCall) Do

func (*InstanceGroupManagersListCall) Fields

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

func (*InstanceGroupManagersListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*InstanceGroupManagersListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*InstanceGroupManagersListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type InstanceGroupManagersListManagedInstancesCall

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

func (*InstanceGroupManagersListManagedInstancesCall) Do

func (*InstanceGroupManagersListManagedInstancesCall) Fields

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

type InstanceGroupManagersListManagedInstancesResponse

type InstanceGroupManagersListManagedInstancesResponse struct {
	// ManagedInstances: List of managed instances. If empty - all instances
	// are listed.
	ManagedInstances []*ManagedInstance `json:"managedInstances,omitempty"`
}

type InstanceGroupManagersRecreateInstancesCall

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

func (*InstanceGroupManagersRecreateInstancesCall) Do

func (*InstanceGroupManagersRecreateInstancesCall) Fields

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

type InstanceGroupManagersRecreateInstancesRequest

type InstanceGroupManagersRecreateInstancesRequest struct {
	// Instances: The names of one or more instances to recreate.
	Instances []string `json:"instances,omitempty"`
}

type InstanceGroupManagersResizeCall

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

func (*InstanceGroupManagersResizeCall) Do

func (*InstanceGroupManagersResizeCall) Fields

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

type InstanceGroupManagersScopedList

type InstanceGroupManagersScopedList struct {
	// InstanceGroupManagers: [Output Only] The list of managed instance
	// groups that are contained in the specified project and zone.
	InstanceGroupManagers []*InstanceGroupManager `json:"instanceGroupManagers,omitempty"`

	// Warning: [Output Only] The warning that replaces the list of managed
	// instance groups when the list is empty.
	Warning *InstanceGroupManagersScopedListWarning `json:"warning,omitempty"`
}

type InstanceGroupManagersScopedListWarning

type InstanceGroupManagersScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

InstanceGroupManagersScopedListWarning: [Output Only] The warning that replaces the list of managed instance groups when the list is empty.

type InstanceGroupManagersScopedListWarningData

type InstanceGroupManagersScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type InstanceGroupManagersService

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

func NewInstanceGroupManagersService

func NewInstanceGroupManagersService(s *Service) *InstanceGroupManagersService

func (*InstanceGroupManagersService) AbandonInstances

func (r *InstanceGroupManagersService) AbandonInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersabandoninstancesrequest *InstanceGroupManagersAbandonInstancesRequest) *InstanceGroupManagersAbandonInstancesCall

AbandonInstances: Removes the specified instances from the managed instance group, and from any target pools where they are a member. The instances are not deleted. The managed instance group automatically reduces its targetSize value by the number of instances that you abandon from the group.

func (*InstanceGroupManagersService) AggregatedList

AggregatedList: Retrieves the list of managed instance groups, and groups them by project and zone.

func (*InstanceGroupManagersService) Delete

func (r *InstanceGroupManagersService) Delete(project string, zone string, instanceGroupManager string) *InstanceGroupManagersDeleteCall

Delete: Deletes the specified managed instance group resource.

func (*InstanceGroupManagersService) DeleteInstances

func (r *InstanceGroupManagersService) DeleteInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersdeleteinstancesrequest *InstanceGroupManagersDeleteInstancesRequest) *InstanceGroupManagersDeleteInstancesCall

DeleteInstances: Deletes the specified instances. The instances are deleted and removed from the instance group and any target pools where they are a member. The managed instance group automatically reduces its targetSize value by the number of instances that you delete.

func (*InstanceGroupManagersService) Get

func (r *InstanceGroupManagersService) Get(project string, zone string, instanceGroupManager string) *InstanceGroupManagersGetCall

Get: Returns the specified managed instance group resource.

func (*InstanceGroupManagersService) Insert

func (r *InstanceGroupManagersService) Insert(project string, zone string, instancegroupmanager *InstanceGroupManager) *InstanceGroupManagersInsertCall

Insert: Creates a managed instance group resource in the specified project using the data that is included in the request.

func (*InstanceGroupManagersService) List

List: Retrieves a list of managed instance groups that are contained within the specified project and zone.

func (*InstanceGroupManagersService) ListManagedInstances

func (r *InstanceGroupManagersService) ListManagedInstances(project string, zone string, instanceGroupManager string) *InstanceGroupManagersListManagedInstancesCall

ListManagedInstances: Lists managed instances.

func (*InstanceGroupManagersService) RecreateInstances

func (r *InstanceGroupManagersService) RecreateInstances(project string, zone string, instanceGroupManager string, instancegroupmanagersrecreateinstancesrequest *InstanceGroupManagersRecreateInstancesRequest) *InstanceGroupManagersRecreateInstancesCall

RecreateInstances: Recreates the specified instances. The instances are deleted, then recreated using the managed instance group's current instance template.

func (*InstanceGroupManagersService) Resize

func (r *InstanceGroupManagersService) Resize(project string, zone string, instanceGroupManager string, size int64) *InstanceGroupManagersResizeCall

Resize: Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group removes instances in the order that is outlined in Resizing a managed instance group.

func (*InstanceGroupManagersService) SetInstanceTemplate

func (r *InstanceGroupManagersService) SetInstanceTemplate(project string, zone string, instanceGroupManager string, instancegroupmanagerssetinstancetemplaterequest *InstanceGroupManagersSetInstanceTemplateRequest) *InstanceGroupManagersSetInstanceTemplateCall

SetInstanceTemplate: Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you recreate them.

func (*InstanceGroupManagersService) SetTargetPools

func (r *InstanceGroupManagersService) SetTargetPools(project string, zone string, instanceGroupManager string, instancegroupmanagerssettargetpoolsrequest *InstanceGroupManagersSetTargetPoolsRequest) *InstanceGroupManagersSetTargetPoolsCall

SetTargetPools: Modifies the target pools to which all new instances in this group are assigned. The target pools for existing instances in the group do not change unless you recreate them.

type InstanceGroupManagersSetInstanceTemplateCall

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

func (*InstanceGroupManagersSetInstanceTemplateCall) Do

func (*InstanceGroupManagersSetInstanceTemplateCall) Fields

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

type InstanceGroupManagersSetInstanceTemplateRequest

type InstanceGroupManagersSetInstanceTemplateRequest struct {
	// InstanceTemplate: The URL of the instance template that is specified
	// for this managed instance group. The group uses this template to
	// create all new instances in the managed instance group.
	InstanceTemplate string `json:"instanceTemplate,omitempty"`
}

type InstanceGroupManagersSetTargetPoolsCall

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

func (*InstanceGroupManagersSetTargetPoolsCall) Do

func (*InstanceGroupManagersSetTargetPoolsCall) Fields

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

type InstanceGroupManagersSetTargetPoolsRequest

type InstanceGroupManagersSetTargetPoolsRequest struct {
	// Fingerprint: The fingerprint of the target pools information, which
	// is a hash of the contents. This field is used for optimistic locking
	// when updating the target pool entries.
	Fingerprint string `json:"fingerprint,omitempty"`

	// TargetPools: The list of target pool URLs that instances in this
	// managed instance group belong to. When the managed instance group
	// creates new instances, the group automatically adds those instances
	// to the target pools that are specified in this parameter. Changing
	// the value of this parameter does not change the target pools of
	// existing instances in this managed instance group.
	TargetPools []string `json:"targetPools,omitempty"`
}

type InstanceGroupsAddInstancesCall

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

func (*InstanceGroupsAddInstancesCall) Do

func (*InstanceGroupsAddInstancesCall) Fields

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

type InstanceGroupsAddInstancesRequest

type InstanceGroupsAddInstancesRequest struct {
	// Instances: The instances to add to the instance group.
	Instances []*InstanceReference `json:"instances,omitempty"`
}

type InstanceGroupsAggregatedListCall

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

func (*InstanceGroupsAggregatedListCall) Do

func (*InstanceGroupsAggregatedListCall) Fields

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

func (*InstanceGroupsAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*InstanceGroupsAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*InstanceGroupsAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type InstanceGroupsDeleteCall

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

func (*InstanceGroupsDeleteCall) Do

func (*InstanceGroupsDeleteCall) Fields

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

type InstanceGroupsGetCall

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

func (*InstanceGroupsGetCall) Do

func (*InstanceGroupsGetCall) Fields

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

type InstanceGroupsInsertCall

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

func (*InstanceGroupsInsertCall) Do

func (*InstanceGroupsInsertCall) Fields

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

type InstanceGroupsListCall

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

func (*InstanceGroupsListCall) Do

func (*InstanceGroupsListCall) Fields

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

func (*InstanceGroupsListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*InstanceGroupsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*InstanceGroupsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type InstanceGroupsListInstances

type InstanceGroupsListInstances struct {
	// Id: [Output Only] A unique identifier for this list of instance
	// groups. The server defines this identifier.
	Id string `json:"id,omitempty"`

	// Items: A list of InstanceWithNamedPorts resources, which contains all
	// named ports for the given instance.
	Items []*InstanceWithNamedPorts `json:"items,omitempty"`

	// Kind: [Output Only] The resource type, which is always
	// compute#instanceGroupsListInstances for lists of instance groups.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token that is used to continue a
	// truncated list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] The URL for this list of instance groups. The
	// server defines this URL.
	SelfLink string `json:"selfLink,omitempty"`
}

type InstanceGroupsListInstancesCall

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

func (*InstanceGroupsListInstancesCall) Do

func (*InstanceGroupsListInstancesCall) Fields

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

func (*InstanceGroupsListInstancesCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*InstanceGroupsListInstancesCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*InstanceGroupsListInstancesCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type InstanceGroupsListInstancesRequest

type InstanceGroupsListInstancesRequest struct {
	// InstanceState: A filter for the state of the instances in the
	// instance group. Valid options are ALL or RUNNING. If you do not
	// specify this parameter the list includes all instances regardless of
	// their state.
	//
	// Possible values:
	//   "ALL"
	//   "RUNNING"
	InstanceState string `json:"instanceState,omitempty"`

	// PortName: A filter for the named ports that are associated with
	// instances in the instance group. If you specify this parameter, the
	// generated list includes only instances that are associated with the
	// specified named ports. If you do not specify this parameter, the
	// generated list includes all instances regardless of their named
	// ports.
	PortName string `json:"portName,omitempty"`
}

type InstanceGroupsRemoveInstancesCall

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

func (*InstanceGroupsRemoveInstancesCall) Do

func (*InstanceGroupsRemoveInstancesCall) Fields

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

type InstanceGroupsRemoveInstancesRequest

type InstanceGroupsRemoveInstancesRequest struct {
	// Instances: The instances to remove from the instance group.
	Instances []*InstanceReference `json:"instances,omitempty"`
}

type InstanceGroupsScopedList

type InstanceGroupsScopedList struct {
	// InstanceGroups: [Output Only] The list of instance groups that are
	// contained in this scope.
	InstanceGroups []*InstanceGroup `json:"instanceGroups,omitempty"`

	// Warning: [Output Only] An informational warning that replaces the
	// list of instance groups when the list is empty.
	Warning *InstanceGroupsScopedListWarning `json:"warning,omitempty"`
}

type InstanceGroupsScopedListWarning

type InstanceGroupsScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

InstanceGroupsScopedListWarning: [Output Only] An informational warning that replaces the list of instance groups when the list is empty.

type InstanceGroupsScopedListWarningData

type InstanceGroupsScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type InstanceGroupsService

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

func NewInstanceGroupsService

func NewInstanceGroupsService(s *Service) *InstanceGroupsService

func (*InstanceGroupsService) AddInstances

func (r *InstanceGroupsService) AddInstances(project string, zone string, instanceGroup string, instancegroupsaddinstancesrequest *InstanceGroupsAddInstancesRequest) *InstanceGroupsAddInstancesCall

AddInstances: Adds a list of instances to an instance group. All of the instances in the instance group must be in the same network.

func (*InstanceGroupsService) AggregatedList

AggregatedList: Retrieves the list of instance groups, and sorts them by zone.

func (*InstanceGroupsService) Delete

func (r *InstanceGroupsService) Delete(project string, zone string, instanceGroup string) *InstanceGroupsDeleteCall

Delete: Deletes the specified instance group.

func (*InstanceGroupsService) Get

func (r *InstanceGroupsService) Get(project string, zone string, instanceGroup string) *InstanceGroupsGetCall

Get: Returns the specified instance group resource.

func (*InstanceGroupsService) Insert

func (r *InstanceGroupsService) Insert(project string, zone string, instancegroup *InstanceGroup) *InstanceGroupsInsertCall

Insert: Creates an instance group in the specified project using the parameters that are included in the request.

func (*InstanceGroupsService) List

List: Retrieves the list of instance groups that are located in the specified project and zone.

func (*InstanceGroupsService) ListInstances

func (r *InstanceGroupsService) ListInstances(project string, zone string, instanceGroup string, instancegroupslistinstancesrequest *InstanceGroupsListInstancesRequest) *InstanceGroupsListInstancesCall

ListInstances: Lists instances in an instance group. The parameters for this method specify whether the list filters instances by state and named ports information.

func (*InstanceGroupsService) RemoveInstances

func (r *InstanceGroupsService) RemoveInstances(project string, zone string, instanceGroup string, instancegroupsremoveinstancesrequest *InstanceGroupsRemoveInstancesRequest) *InstanceGroupsRemoveInstancesCall

RemoveInstances: Removes a list of instances from an instance group.

func (*InstanceGroupsService) SetNamedPorts

func (r *InstanceGroupsService) SetNamedPorts(project string, zone string, instanceGroup string, instancegroupssetnamedportsrequest *InstanceGroupsSetNamedPortsRequest) *InstanceGroupsSetNamedPortsCall

SetNamedPorts: Sets the named ports in an instance group.

type InstanceGroupsSetNamedPortsCall

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

func (*InstanceGroupsSetNamedPortsCall) Do

func (*InstanceGroupsSetNamedPortsCall) Fields

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

type InstanceGroupsSetNamedPortsRequest

type InstanceGroupsSetNamedPortsRequest struct {
	// Fingerprint: The fingerprint of the named ports information, which is
	// a hash of the contents. Use this field for optimistic locking when
	// you update the named ports entries.
	Fingerprint string `json:"fingerprint,omitempty"`

	// NamedPorts: The list of named ports to set for this instance group.
	NamedPorts []*NamedPort `json:"namedPorts,omitempty"`
}

type InstanceList

type InstanceList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

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

	// Kind: [Output Only] Type of resource. Always compute#instanceList for
	// lists of Instance resources.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

InstanceList: Contains a list of instance resources.

type InstanceMoveRequest

type InstanceMoveRequest struct {
	// DestinationZone: The URL of the destination zone to move the instance
	// to. This can be a full or partial URL. For example, the following are
	// all valid URLs to a zone:
	// - https://www.googleapis.com/compute/v1/projects/project/zones/zone
	//
	// - projects/project/zones/zone
	// - zones/zone
	DestinationZone string `json:"destinationZone,omitempty"`

	// TargetInstance: The URL of the target instance to move. This can be a
	// full or partial URL. For example, the following are all valid URLs to
	// an instance:
	// -
	// https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance
	// - projects/project/zones/zone/instances/instance
	// - zones/zone/instances/instance
	TargetInstance string `json:"targetInstance,omitempty"`
}

type InstanceProperties

type InstanceProperties struct {
	// CanIpForward: A boolean that specifies if instances created from this
	// template can send packets with source IP addresses other than their
	// own or receive packets with destination IP addresses other than their
	// own. If you use these instances as an IP gateway or as the next-hop
	// in a Route resource, specify true. Otherwise, specify false.
	CanIpForward bool `json:"canIpForward,omitempty"`

	// Description: An optional text description for the instances that are
	// created from this instance template.
	Description string `json:"description,omitempty"`

	// Disks: An array of disks that are associated with the instances that
	// are created from this template.
	Disks []*AttachedDisk `json:"disks,omitempty"`

	// MachineType: The machine type to use for instances that are created
	// from this template.
	MachineType string `json:"machineType,omitempty"`

	// Metadata: The metadata key/value pairs to assign to instances that
	// are created from this template. These pairs can consist of custom
	// metadata or predefined keys. See Project and instance metadata for
	// more information.
	Metadata *Metadata `json:"metadata,omitempty"`

	// NetworkInterfaces: An array of network access 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 supported access
	// configuration. If you do not specify any access configurations, the
	// instances that are created from this template will have no external
	// internet access.
	NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"`

	// Scheduling: A list of scheduling options for the instances that are
	// created from this template.
	Scheduling *Scheduling `json:"scheduling,omitempty"`

	// ServiceAccounts: A list of service accounts with specified scopes.
	// Access tokens for these service accounts are available to the
	// instances that are created from this template. Use metadata queries
	// to obtain the access tokens for these instances.
	ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"`

	// Tags: A list of tags to apply to the instances that are created from
	// this template. The tags identify valid sources or targets for network
	// firewalls. The setTags method can modify this list of tags. Each tag
	// within the list must comply with RFC1035.
	Tags *Tags `json:"tags,omitempty"`
}

type InstanceReference

type InstanceReference struct {
	Instance string `json:"instance,omitempty"`
}

type InstanceTemplate

type InstanceTemplate struct {
	// CreationTimestamp: [Output Only] The creation timestamp for this
	// instance template in RFC3339 text format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Description: An optional text description for the instance template.
	Description string `json:"description,omitempty"`

	// Id: [Output Only] A unique identifier for this instance template. The
	// server defines this identifier.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] The resource type, which is always
	// compute#instanceTemplate for instance templates.
	Kind string `json:"kind,omitempty"`

	// Name: The name of the instance template. The name must be 1-63
	// characters long, and comply with RFC1035.
	Name string `json:"name,omitempty"`

	// Properties: The instance properties for the instance template
	// resource.
	Properties *InstanceProperties `json:"properties,omitempty"`

	// SelfLink: [Output Only] The URL for this instance template. The
	// server defines this URL.
	SelfLink string `json:"selfLink,omitempty"`
}

InstanceTemplate: An Instance Template resource.

type InstanceTemplateList

type InstanceTemplateList struct {
	// Id: [Output Only] A unique identifier for this instance template. The
	// server defines this identifier.
	Id string `json:"id,omitempty"`

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

	// Kind: [Output Only] The resource type, which is always
	// compute#instanceTemplatesListResponse for instance template lists.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token that is used to continue a
	// truncated list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] The URL for this instance template list. The
	// server defines this URL.
	SelfLink string `json:"selfLink,omitempty"`
}

InstanceTemplateList: A list of instance templates.

type InstanceTemplatesDeleteCall

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

func (*InstanceTemplatesDeleteCall) Do

func (*InstanceTemplatesDeleteCall) Fields

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

type InstanceTemplatesGetCall

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

func (*InstanceTemplatesGetCall) Do

func (*InstanceTemplatesGetCall) Fields

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

type InstanceTemplatesInsertCall

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

func (*InstanceTemplatesInsertCall) Do

func (*InstanceTemplatesInsertCall) Fields

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

type InstanceTemplatesListCall

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

func (*InstanceTemplatesListCall) Do

func (*InstanceTemplatesListCall) Fields

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

func (*InstanceTemplatesListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*InstanceTemplatesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*InstanceTemplatesListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type InstanceTemplatesService

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

func NewInstanceTemplatesService

func NewInstanceTemplatesService(s *Service) *InstanceTemplatesService

func (*InstanceTemplatesService) Delete

func (r *InstanceTemplatesService) Delete(project string, instanceTemplate string) *InstanceTemplatesDeleteCall

Delete: Deletes the specified instance template. For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/delete

func (*InstanceTemplatesService) Get

func (r *InstanceTemplatesService) Get(project string, instanceTemplate string) *InstanceTemplatesGetCall

Get: Returns the specified instance template resource. For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/get

func (*InstanceTemplatesService) Insert

func (r *InstanceTemplatesService) Insert(project string, instancetemplate *InstanceTemplate) *InstanceTemplatesInsertCall

Insert: Creates an instance template in the specified project using the data that is included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/insert

func (*InstanceTemplatesService) List

List: Retrieves a list of instance templates that are contained within the specified project and zone. For details, see https://cloud.google.com/compute/docs/reference/latest/instanceTemplates/list

type InstanceWithNamedPorts

type InstanceWithNamedPorts struct {
	// Instance: The URL of the instance.
	Instance string `json:"instance,omitempty"`

	// NamedPorts: The named ports that belong to this instance group.
	NamedPorts []*NamedPort `json:"namedPorts,omitempty"`

	// Status: The status of the instance.
	//
	// Possible values:
	//   "PROVISIONING"
	//   "RUNNING"
	//   "STAGING"
	//   "STOPPED"
	//   "STOPPING"
	//   "SUSPENDED"
	//   "SUSPENDING"
	//   "TERMINATED"
	Status string `json:"status,omitempty"`
}

type InstancesAddAccessConfigCall

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

func (*InstancesAddAccessConfigCall) Do

func (*InstancesAddAccessConfigCall) Fields

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

type InstancesAggregatedListCall

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

func (*InstancesAggregatedListCall) Do

func (*InstancesAggregatedListCall) Fields

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

func (*InstancesAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*InstancesAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*InstancesAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type InstancesAttachDiskCall

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

func (*InstancesAttachDiskCall) Do

func (*InstancesAttachDiskCall) Fields

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

type InstancesDeleteAccessConfigCall

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

func (*InstancesDeleteAccessConfigCall) Do

func (*InstancesDeleteAccessConfigCall) Fields

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

type InstancesDeleteCall

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

func (*InstancesDeleteCall) Do

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

func (*InstancesDeleteCall) Fields

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

type InstancesDetachDiskCall

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

func (*InstancesDetachDiskCall) Do

func (*InstancesDetachDiskCall) Fields

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

type InstancesGetCall

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

func (*InstancesGetCall) Do

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

func (*InstancesGetCall) Fields

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

type InstancesGetSerialPortOutputCall

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

func (*InstancesGetSerialPortOutputCall) Do

func (*InstancesGetSerialPortOutputCall) Fields

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

func (*InstancesGetSerialPortOutputCall) Port

Port sets the optional parameter "port": Specifies which COM or serial port to retrieve data from.

type InstancesInsertCall

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

func (*InstancesInsertCall) Do

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

func (*InstancesInsertCall) Fields

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

type InstancesListCall

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

func (*InstancesListCall) Do

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

func (*InstancesListCall) Fields

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

func (*InstancesListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*InstancesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*InstancesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type InstancesResetCall

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

func (*InstancesResetCall) Do

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

func (*InstancesResetCall) Fields

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

type InstancesScopedList

type InstancesScopedList struct {
	// Instances: [Output Only] List of instances contained in this scope.
	Instances []*Instance `json:"instances,omitempty"`

	// Warning: [Output Only] Informational warning which replaces the list
	// of instances when the list is empty.
	Warning *InstancesScopedListWarning `json:"warning,omitempty"`
}

type InstancesScopedListWarning

type InstancesScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

InstancesScopedListWarning: [Output Only] Informational warning which replaces the list of instances when the list is empty.

type InstancesScopedListWarningData

type InstancesScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

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, networkInterface string, accessconfig *AccessConfig) *InstancesAddAccessConfigCall

AddAccessConfig: Adds an access config to an instance's network interface. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/addAccessConfig

func (*InstancesService) AggregatedList

func (r *InstancesService) AggregatedList(project string) *InstancesAggregatedListCall

AggregatedList: For details, see https://cloud.google.com/compute/docs/reference/latest/instances/aggregatedList

func (*InstancesService) AttachDisk

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

AttachDisk: Attaches a Disk resource to an instance. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/attachDisk

func (*InstancesService) Delete

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

Delete: Deletes the specified Instance resource. For more information, see Shutting down an instance. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/delete

func (*InstancesService) DeleteAccessConfig

func (r *InstancesService) DeleteAccessConfig(project string, zone string, instance string, accessConfig string, networkInterface string) *InstancesDeleteAccessConfigCall

DeleteAccessConfig: Deletes an access config from an instance's network interface. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/deleteAccessConfig

func (*InstancesService) DetachDisk

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

DetachDisk: Detaches a disk from an instance. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/detachDisk

func (*InstancesService) Get

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

Get: Returns the specified instance resource. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/get

func (*InstancesService) GetSerialPortOutput

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

GetSerialPortOutput: Returns the specified instance's serial port output. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/getSerialPortOutput

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. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/insert

func (*InstancesService) List

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

List: Retrieves the list of instance resources contained within the specified zone. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/list

func (*InstancesService) Reset

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

Reset: Performs a hard reset on the instance. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/reset

func (*InstancesService) SetDiskAutoDelete

func (r *InstancesService) SetDiskAutoDelete(project string, zone string, instance string, autoDelete bool, deviceName string) *InstancesSetDiskAutoDeleteCall

SetDiskAutoDelete: Sets the auto-delete flag for a disk attached to an instance. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setDiskAutoDelete

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. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setMetadata

func (*InstancesService) SetScheduling

func (r *InstancesService) SetScheduling(project string, zone string, instance string, scheduling *Scheduling) *InstancesSetSchedulingCall

SetScheduling: Sets an instance's scheduling options. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setScheduling

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. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/setTags

func (*InstancesService) Start

func (r *InstancesService) Start(project string, zone string, instance string) *InstancesStartCall

Start: This method starts an instance that was stopped using the using the instances().stop method. For more information, see Restart an instance. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/start

func (*InstancesService) Stop

func (r *InstancesService) Stop(project string, zone string, instance string) *InstancesStopCall

Stop: This method stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur per-minute, virtual machine usage charges while they are stopped, but any resources that the virtual machine is using, such as persistent disks and static IP addresses,will continue to be charged until they are deleted. For more information, see Stopping an instance. For details, see https://cloud.google.com/compute/docs/reference/latest/instances/stop

type InstancesSetDiskAutoDeleteCall

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

func (*InstancesSetDiskAutoDeleteCall) Do

func (*InstancesSetDiskAutoDeleteCall) Fields

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

type InstancesSetMetadataCall

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

func (*InstancesSetMetadataCall) Do

func (*InstancesSetMetadataCall) Fields

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

type InstancesSetSchedulingCall

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

func (*InstancesSetSchedulingCall) Do

func (*InstancesSetSchedulingCall) Fields

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

type InstancesSetTagsCall

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

func (*InstancesSetTagsCall) Do

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

func (*InstancesSetTagsCall) Fields

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

type InstancesStartCall

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

func (*InstancesStartCall) Do

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

func (*InstancesStartCall) Fields

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

type InstancesStopCall

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

func (*InstancesStopCall) Do

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

func (*InstancesStopCall) Fields

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

type License

type License struct {
	// ChargesUseFee: If true, the customer will be charged license fee for
	// running software that contains this license on an instance.
	ChargesUseFee bool `json:"chargesUseFee,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#license for
	// licenses.
	Kind string `json:"kind,omitempty"`

	// Name: Name of the resource. The name must be 1-63 characters long,
	// and comply with RCF1035.
	Name string `json:"name,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`
}

License: A license resource.

type LicensesGetCall

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

func (*LicensesGetCall) Do

func (c *LicensesGetCall) Do() (*License, error)

func (*LicensesGetCall) Fields

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

type LicensesService

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

func NewLicensesService

func NewLicensesService(s *Service) *LicensesService

func (*LicensesService) Get

func (r *LicensesService) Get(project string, license string) *LicensesGetCall

Get: Returns the specified license resource. For details, see https://cloud.google.com/compute/docs/reference/latest/licenses/get

type MachineType

type MachineType struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

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

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

	// GuestCpus: [Output Only] The tumber of CPUs exposed to the instance.
	GuestCpus int64 `json:"guestCpus,omitempty"`

	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// ImageSpaceGb: [Deprecated] This property is deprecated and will never
	// be populated with any relevant values.
	ImageSpaceGb int64 `json:"imageSpaceGb,omitempty"`

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

	// MaximumPersistentDisks: [Output Only] Maximum persistent disks
	// allowed.
	MaximumPersistentDisks int64 `json:"maximumPersistentDisks,omitempty"`

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

	// MemoryMb: [Output Only] The amount of physical memory available to
	// the instance, defined in MB.
	MemoryMb int64 `json:"memoryMb,omitempty"`

	// Name: [Output Only] Name of the resource.
	Name string `json:"name,omitempty"`

	// ScratchDisks: [Output Only] List of extended scratch disks assigned
	// to the instance.
	ScratchDisks []*MachineTypeScratchDisks `json:"scratchDisks,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// Zone: [Output Only] The name of the zone where the machine type
	// resides, such as us-central1-a.
	Zone string `json:"zone,omitempty"`
}

MachineType: A Machine Type resource.

type MachineTypeAggregatedList

type MachineTypeAggregatedList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A map of scoped machine type lists.
	Items map[string]MachineTypesScopedList `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always
	// compute#machineTypeAggregatedList for aggregated lists of machine
	// types.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

type MachineTypeList

type MachineTypeList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of Machine Type resources.
	Items []*MachineType `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#machineTypeList
	// for lists of machine types.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

MachineTypeList: Contains a list of Machine Type resources.

type MachineTypeScratchDisks

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

type MachineTypesAggregatedListCall

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

func (*MachineTypesAggregatedListCall) Do

func (*MachineTypesAggregatedListCall) Fields

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

func (*MachineTypesAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*MachineTypesAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*MachineTypesAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type MachineTypesGetCall

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

func (*MachineTypesGetCall) Do

func (*MachineTypesGetCall) Fields

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

type MachineTypesListCall

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

func (*MachineTypesListCall) Do

func (*MachineTypesListCall) Fields

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

func (*MachineTypesListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*MachineTypesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*MachineTypesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type MachineTypesScopedList

type MachineTypesScopedList struct {
	// MachineTypes: [Output Only] List of machine types contained in this
	// scope.
	MachineTypes []*MachineType `json:"machineTypes,omitempty"`

	// Warning: [Output Only] An informational warning that appears when the
	// machine types list is empty.
	Warning *MachineTypesScopedListWarning `json:"warning,omitempty"`
}

type MachineTypesScopedListWarning

type MachineTypesScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

MachineTypesScopedListWarning: [Output Only] An informational warning that appears when the machine types list is empty.

type MachineTypesScopedListWarningData

type MachineTypesScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type MachineTypesService

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

func NewMachineTypesService

func NewMachineTypesService(s *Service) *MachineTypesService

func (*MachineTypesService) AggregatedList

func (r *MachineTypesService) AggregatedList(project string) *MachineTypesAggregatedListCall

AggregatedList: Retrieves the list of machine type resources grouped by scope. For details, see https://cloud.google.com/compute/docs/reference/latest/machineTypes/aggregatedList

func (*MachineTypesService) Get

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

Get: Returns the specified machine type resource. For details, see https://cloud.google.com/compute/docs/reference/latest/machineTypes/get

func (*MachineTypesService) List

func (r *MachineTypesService) List(project string, zone string) *MachineTypesListCall

List: Retrieves the list of machine type resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/machineTypes/list

type ManagedInstance

type ManagedInstance struct {
	// CurrentAction: The current action that the managed instance group has
	// scheduled for the instance.
	//
	// Possible values:
	//   "ABANDONING"
	//   "CREATING"
	//   "DELETING"
	//   "NONE"
	//   "RECREATING"
	//   "REFRESHING"
	//   "RESTARTING"
	CurrentAction string `json:"currentAction,omitempty"`

	// Id: The unique identifier for this resource (empty when instance does
	// not exist).
	Id uint64 `json:"id,omitempty,string"`

	// Instance: The URL of the instance (set even though instance does not
	// exist yet).
	Instance string `json:"instance,omitempty"`

	// InstanceStatus: The status of the instance (empty when instance does
	// not exist).
	//
	// Possible values:
	//   "PROVISIONING"
	//   "RUNNING"
	//   "STAGING"
	//   "STOPPED"
	//   "STOPPING"
	//   "SUSPENDED"
	//   "SUSPENDING"
	//   "TERMINATED"
	InstanceStatus string `json:"instanceStatus,omitempty"`

	// LastAttempt: Information about the last attempt to create or delete
	// the instance.
	LastAttempt *ManagedInstanceLastAttempt `json:"lastAttempt,omitempty"`
}

type ManagedInstanceLastAttempt

type ManagedInstanceLastAttempt struct {
	// Errors: Encountered errors during the last attempt to create or
	// delete the instance.
	Errors *ManagedInstanceLastAttemptErrors `json:"errors,omitempty"`
}

type ManagedInstanceLastAttemptErrors

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

ManagedInstanceLastAttemptErrors: Encountered errors during the last attempt to create or delete the instance.

type ManagedInstanceLastAttemptErrorsErrors

type ManagedInstanceLastAttemptErrorsErrors struct {
	// Code: [Output Only] The error type identifier for this error.
	Code string `json:"code,omitempty"`

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

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

type Metadata

type Metadata struct {
	// Fingerprint: Specifies a fingerprint for this request, which is
	// essentially a hash of the metadata's contents and used for optimistic
	// locking. The fingerprint is initially generated by Compute Engine and
	// changes after every request to modify or update metadata. You must
	// always provide an up-to-date fingerprint hash in order to update or
	// change 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: [Output Only] Type of the resource. Always compute#metadata for
	// metadata.
	Kind string `json:"kind,omitempty"`
}

Metadata: A metadata key/value entry.

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 NamedPort

type NamedPort struct {
	// Name: The name for this NamedPort.
	Name string `json:"name,omitempty"`

	// Port: The port number, which can be a value between 1 and 65535.
	Port int64 `json:"port,omitempty"`
}

NamedPort: The named port information. For example: .

type Network

type Network struct {
	// IPv4Range: 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: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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: A gateway address for default routing to other networks.
	// This value is read only and is selected by the Google Compute Engine,
	// typically as the first usable address in the IPv4Range.
	GatewayIPv4 string `json:"gatewayIPv4,omitempty"`

	// Id: [Output Only] Unique identifier for the resource. Defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of the resource. Always compute#network for
	// networks.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`
}

Network: A network resource.

type NetworkInterface

type NetworkInterface struct {
	// AccessConfigs: An array of configurations for this interface.
	// Currently, <codeONE_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: [Output Only] The name of the network interface, generated by
	// the server. For network devices, these are eth0, eth1, etc.
	Name string `json:"name,omitempty"`

	// Network: URL of the network resource for this instance. This is
	// required for creating an instance but optional when creating a
	// firewall rule. If not specified when creating a firewall rule, the
	// default network is used:
	//
	// global/networks/default
	//
	// If you specify this property, you can specify the network as a full
	// or partial URL. For example, the following are all valid URLs:
	// -
	// https://www.googleapis.com/compute/v1/projects/project/global/networks/network
	// - projects/project/global/networks/network
	// - global/networks/default
	Network string `json:"network,omitempty"`

	// NetworkIP: [Output Only] An optional IPV4 internal network address
	// assigned to the instance for this network interface.
	NetworkIP string `json:"networkIP,omitempty"`
}

NetworkInterface: A network interface resource attached to an instance.

type NetworkList

type NetworkList struct {
	// Id: [Output Only] Unique identifier for the resource. Defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of Network resources.
	Items []*Network `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#networkList for
	// lists of networks.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource .
	SelfLink string `json:"selfLink,omitempty"`
}

NetworkList: Contains a list of Network resources.

type NetworksDeleteCall

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

func (*NetworksDeleteCall) Do

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

func (*NetworksDeleteCall) Fields

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

type NetworksGetCall

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

func (*NetworksGetCall) Do

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

func (*NetworksGetCall) Fields

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

type NetworksInsertCall

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

func (*NetworksInsertCall) Do

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

func (*NetworksInsertCall) Fields

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

type NetworksListCall

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

func (*NetworksListCall) Do

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

func (*NetworksListCall) Fields

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

func (*NetworksListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*NetworksListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*NetworksListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by 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. For details, see https://cloud.google.com/compute/docs/reference/latest/networks/delete

func (*NetworksService) Get

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

Get: Returns the specified network resource. For details, see https://cloud.google.com/compute/docs/reference/latest/networks/get

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. For details, see https://cloud.google.com/compute/docs/reference/latest/networks/insert

func (*NetworksService) List

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

List: Retrieves the list of network resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/networks/list

type Operation

type Operation struct {
	// ClientOperationId: [Output Only] An optional identifier specified by
	// the client when the mutation was initiated. Must be unique for all
	// Operation resources in the project.
	ClientOperationId string `json:"clientOperationId,omitempty"`

	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// EndTime: [Output Only] The time that this operation was completed.
	// This is in RFC3339 text format.
	EndTime string `json:"endTime,omitempty"`

	// Error: [Output Only] If errors are generated during processing of the
	// operation, this field will be populated.
	Error *OperationError `json:"error,omitempty"`

	// HttpErrorMessage: [Output Only] If the operation fails, this field
	// contains the HTTP error message that was returned, such as NOT FOUND.
	HttpErrorMessage string `json:"httpErrorMessage,omitempty"`

	// HttpErrorStatusCode: [Output Only] If the operation fails, this field
	// contains the HTTP error message that was returned, such as 404.
	HttpErrorStatusCode int64 `json:"httpErrorStatusCode,omitempty"`

	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// InsertTime: [Output Only] The time that this operation was requested.
	// This is in RFC3339 text format.
	InsertTime string `json:"insertTime,omitempty"`

	// Kind: [Output Only] Type of the resource. Always compute#Operation
	// for Operation resources.
	Kind string `json:"kind,omitempty"`

	// Name: [Output Only] Name of the resource.
	Name string `json:"name,omitempty"`

	// OperationType: [Output Only] Type of the operation, such as insert,
	// update, and delete.
	OperationType string `json:"operationType,omitempty"`

	// Progress: [Output Only] 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 monotonically
	// increase as the operation progresses.
	Progress int64 `json:"progress,omitempty"`

	// Region: [Output Only] URL of the region where the operation resides.
	// Only applicable for regional resources.
	Region string `json:"region,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// StartTime: [Output Only] The time that this operation was started by
	// the server. This is in RFC3339 text format.
	StartTime string `json:"startTime,omitempty"`

	// Status: [Output Only] Status of the operation. Can be one of the
	// following: PENDING, RUNNING, or DONE.
	//
	// Possible values:
	//   "DONE"
	//   "PENDING"
	//   "RUNNING"
	Status string `json:"status,omitempty"`

	// StatusMessage: [Output Only] An optional textual description of the
	// current status of the operation.
	StatusMessage string `json:"statusMessage,omitempty"`

	// TargetId: [Output Only] Unique target ID which identifies a
	// particular incarnation of the target.
	TargetId uint64 `json:"targetId,omitempty,string"`

	// TargetLink: [Output Only] URL of the resource the operation is
	// mutating.
	TargetLink string `json:"targetLink,omitempty"`

	// User: [Output Only] User who requested the operation, for example:
	// user@example.com.
	User string `json:"user,omitempty"`

	// Warnings: [Output Only] If warning messages are generated during
	// processing of the operation, this field will be populated.
	Warnings []*OperationWarnings `json:"warnings,omitempty"`

	// Zone: [Output Only] URL of the zone where the operation resides.
	Zone string `json:"zone,omitempty"`
}

Operation: An Operation resource, used to manage asynchronous API requests.

type OperationAggregatedList

type OperationAggregatedList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A map of scoped operation lists.
	Items map[string]OperationsScopedList `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always
	// compute#operationAggregatedList for aggregated lists of operations.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

type OperationError

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

OperationError: [Output Only] If errors are generated during processing of the operation, this field will be populated.

type OperationErrorErrors

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

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

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

type OperationList

type OperationList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

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

	// Kind: [Output Only] Type of resource. Always compute#operations for
	// Operations resource.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncate.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

OperationList: Contains a list of Operation resources.

type OperationWarnings

type OperationWarnings struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

type OperationWarningsData

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

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

type OperationsScopedList

type OperationsScopedList struct {
	// Operations: [Output Only] List of operations contained in this scope.
	Operations []*Operation `json:"operations,omitempty"`

	// Warning: [Output Only] Informational warning which replaces the list
	// of operations when the list is empty.
	Warning *OperationsScopedListWarning `json:"warning,omitempty"`
}

type OperationsScopedListWarning

type OperationsScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

OperationsScopedListWarning: [Output Only] Informational warning which replaces the list of operations when the list is empty.

type OperationsScopedListWarningData

type OperationsScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type PathMatcher

type PathMatcher struct {
	// DefaultService: The URL to the BackendService resource. This will be
	// used if none of the 'pathRules' defined by this PathMatcher is met by
	// the URL's path portion.
	DefaultService string `json:"defaultService,omitempty"`

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

	// Name: The name to which this PathMatcher is referred by the HostRule.
	Name string `json:"name,omitempty"`

	// PathRules: The list of path rules.
	PathRules []*PathRule `json:"pathRules,omitempty"`
}

PathMatcher: A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default_service will be used.

type PathRule

type PathRule struct {
	// Paths: The list of path patterns to match. Each must start with / and
	// the only place a * is allowed is at the end following a /. The string
	// fed to the path matcher does not include any text after the first ?
	// or #, and those chars are not allowed here.
	Paths []string `json:"paths,omitempty"`

	// Service: The URL of the BackendService resource if this rule is
	// matched.
	Service string `json:"service,omitempty"`
}

PathRule: A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.

type Project

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

	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

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

	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of the resource. Always compute#project for
	// projects.
	Kind string `json:"kind,omitempty"`

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

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

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// UsageExportLocation: The location in Cloud Storage and naming method
	// of the daily usage report.
	UsageExportLocation *UsageExportLocation `json:"usageExportLocation,omitempty"`
}

Project: A Project resource. Projects can only be created in the Google Developers Console. Unless marked otherwise, values can only be modified in the console.

type ProjectsGetCall

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

func (*ProjectsGetCall) Do

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

func (*ProjectsGetCall) Fields

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

type ProjectsMoveDiskCall

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

func (*ProjectsMoveDiskCall) Do

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

func (*ProjectsMoveDiskCall) Fields

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

type ProjectsMoveInstanceCall

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

func (*ProjectsMoveInstanceCall) Do

func (*ProjectsMoveInstanceCall) Fields

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

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. For details, see https://cloud.google.com/compute/docs/reference/latest/projects/get

func (*ProjectsService) MoveDisk

func (r *ProjectsService) MoveDisk(project string, diskmoverequest *DiskMoveRequest) *ProjectsMoveDiskCall

MoveDisk: Moves a persistent disk from one zone to another.

func (*ProjectsService) MoveInstance

func (r *ProjectsService) MoveInstance(project string, instancemoverequest *InstanceMoveRequest) *ProjectsMoveInstanceCall

MoveInstance: Moves an instance and its attached persistent disks from one zone to another.

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. For details, see https://cloud.google.com/compute/docs/reference/latest/projects/setCommonInstanceMetadata

func (*ProjectsService) SetUsageExportBucket

func (r *ProjectsService) SetUsageExportBucket(project string, usageexportlocation *UsageExportLocation) *ProjectsSetUsageExportBucketCall

SetUsageExportBucket: Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled. For details, see https://cloud.google.com/compute/docs/reference/latest/projects/setUsageExportBucket

type ProjectsSetCommonInstanceMetadataCall

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

func (*ProjectsSetCommonInstanceMetadataCall) Do

func (*ProjectsSetCommonInstanceMetadataCall) Fields

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

type ProjectsSetUsageExportBucketCall

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

func (*ProjectsSetUsageExportBucketCall) Do

func (*ProjectsSetUsageExportBucketCall) Fields

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

type Quota

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

	// Metric: [Output Only] Name of the quota metric.
	//
	// Possible values:
	//   "BACKEND_SERVICES"
	//   "CPUS"
	//   "DISKS_TOTAL_GB"
	//   "FIREWALLS"
	//   "FORWARDING_RULES"
	//   "HEALTH_CHECKS"
	//   "IMAGES"
	//   "INSTANCES"
	//   "INSTANCE_GROUPS"
	//   "INSTANCE_GROUP_MANAGERS"
	//   "INSTANCE_TEMPLATES"
	//   "IN_USE_ADDRESSES"
	//   "LOCAL_SSD_TOTAL_GB"
	//   "NETWORKS"
	//   "ROUTES"
	//   "SNAPSHOTS"
	//   "SSD_TOTAL_GB"
	//   "STATIC_ADDRESSES"
	//   "TARGET_HTTP_PROXIES"
	//   "TARGET_INSTANCES"
	//   "TARGET_POOLS"
	//   "TARGET_VPN_GATEWAYS"
	//   "URL_MAPS"
	//   "VPN_TUNNELS"
	Metric string `json:"metric,omitempty"`

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

Quota: A quotas entry.

type Region

type Region struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Deprecated: [Output Only] The deprecation status associated with this
	// region.
	Deprecated *DeprecationStatus `json:"deprecated,omitempty"`

	// Description: [Output Only] Textual description of the resource.
	Description string `json:"description,omitempty"`

	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server .
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of the resource. Always compute#region for
	// regions.
	Kind string `json:"kind,omitempty"`

	// Name: [Output Only] Name of the resource.
	Name string `json:"name,omitempty"`

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

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// Status: [Output Only] Status of the region, either UP or DOWN.
	//
	// Possible values:
	//   "DOWN"
	//   "UP"
	Status string `json:"status,omitempty"`

	// Zones: [Output Only] A list of zones available in this region, in the
	// form of resource URLs.
	Zones []string `json:"zones,omitempty"`
}

Region: Region resource.

type RegionList

type RegionList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of Region resources.
	Items []*Region `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#regionList for
	// lists of regions.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

RegionList: Contains a list of region resources.

type RegionOperationsDeleteCall

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

func (*RegionOperationsDeleteCall) Do

func (*RegionOperationsDeleteCall) Fields

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

type RegionOperationsGetCall

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

func (*RegionOperationsGetCall) Do

func (*RegionOperationsGetCall) Fields

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

type RegionOperationsListCall

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

func (*RegionOperationsListCall) Do

func (*RegionOperationsListCall) Fields

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

func (*RegionOperationsListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*RegionOperationsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*RegionOperationsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type RegionOperationsService

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

func NewRegionOperationsService

func NewRegionOperationsService(s *Service) *RegionOperationsService

func (*RegionOperationsService) Delete

func (r *RegionOperationsService) Delete(project string, region string, operation string) *RegionOperationsDeleteCall

Delete: Deletes the specified region-specific Operations resource. For details, see https://cloud.google.com/compute/docs/reference/latest/regionOperations/delete

func (*RegionOperationsService) Get

func (r *RegionOperationsService) Get(project string, region string, operation string) *RegionOperationsGetCall

Get: Retrieves the specified region-specific Operations resource. For details, see https://cloud.google.com/compute/docs/reference/latest/regionOperations/get

func (*RegionOperationsService) List

List: Retrieves the list of Operation resources contained within the specified region. For details, see https://cloud.google.com/compute/docs/reference/latest/regionOperations/list

type RegionsGetCall

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

func (*RegionsGetCall) Do

func (c *RegionsGetCall) Do() (*Region, error)

func (*RegionsGetCall) Fields

func (c *RegionsGetCall) Fields(s ...googleapi.Field) *RegionsGetCall

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

type RegionsListCall

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

func (*RegionsListCall) Do

func (c *RegionsListCall) Do() (*RegionList, error)

func (*RegionsListCall) Fields

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

func (*RegionsListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*RegionsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*RegionsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type RegionsService

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

func NewRegionsService

func NewRegionsService(s *Service) *RegionsService

func (*RegionsService) Get

func (r *RegionsService) Get(project string, region string) *RegionsGetCall

Get: Returns the specified region resource. For details, see https://cloud.google.com/compute/docs/reference/latest/regions/get

func (*RegionsService) List

func (r *RegionsService) List(project string) *RegionsListCall

List: Retrieves the list of region resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/regions/list

type ResourceGroupReference

type ResourceGroupReference struct {
	// Group: A URI referencing one of the resource views listed in the
	// backend service.
	Group string `json:"group,omitempty"`
}

type Route

type Route struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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: The destination range of outgoing packets that this route
	// applies to.
	DestRange string `json:"destRange,omitempty"`

	// Id: [Output Only] Unique identifier for the resource. Defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of this resource. Always compute#routes for
	// Route resources.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// Network: Fully-qualified URL of the network that this route applies
	// to.
	Network string `json:"network,omitempty"`

	// NextHopGateway: The URL to a gateway that should handle matching
	// packets. Currently, this is only the internet gateway:
	// projects/<project-id>/global/gateways/default-internet-gateway
	NextHopGateway string `json:"nextHopGateway,omitempty"`

	// NextHopInstance: The fully-qualified URL to an instance that should
	// handle matching packets. For
	// example:
	// https://www.googleapis.com/compute/v1/projects/project/zones/
	// zone/instances/
	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"`

	// NextHopVpnTunnel: The URL to a VpnTunnel that should handle matching
	// packets.
	NextHopVpnTunnel string `json:"nextHopVpnTunnel,omitempty"`

	// Priority: Breaks ties between Routes of equal specificity. Routes
	// with smaller values win when tied with routes with larger values.
	// Default value is 1000. A valid range is between 0 and 65535.
	Priority int64 `json:"priority,omitempty"`

	// SelfLink: [Output Only] Server-defined fully-qualified URL for this
	// resource.
	SelfLink string `json:"selfLink,omitempty"`

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

	// Warnings: [Output Only] If potential misconfigurations are detected
	// for this route, this field will be populated with warning messages.
	Warnings []*RouteWarnings `json:"warnings,omitempty"`
}

Route: The route resource. A Route is a rule that specifies how certain packets should be handled by the virtual network. Routes are associated with VMs by tag and the set of Routes for a particular VM is called its routing table. For each packet leaving a VM, the system searches that VM's routing table for a single best matching Route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the Route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching Routes. The packet is then forwarded as specified by the nextHop field of the winning Route -- either to another VM destination, a VM gateway or a GCE operated gateway. Packets that do not match any Route in the sending VM's routing table are dropped.

type RouteList

type RouteList struct {
	// Id: [Output Only] Unique identifier for the resource. Defined by the
	// server.
	Id string `json:"id,omitempty"`

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

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

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

RouteList: Contains a list of route resources.

type RouteWarnings

type RouteWarnings struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

type RouteWarningsData

type RouteWarningsData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type RoutesDeleteCall

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

func (*RoutesDeleteCall) Do

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

func (*RoutesDeleteCall) Fields

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

type RoutesGetCall

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

func (*RoutesGetCall) Do

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

func (*RoutesGetCall) Fields

func (c *RoutesGetCall) Fields(s ...googleapi.Field) *RoutesGetCall

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

type RoutesInsertCall

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

func (*RoutesInsertCall) Do

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

func (*RoutesInsertCall) Fields

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

type RoutesListCall

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

func (*RoutesListCall) Do

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

func (*RoutesListCall) Fields

func (c *RoutesListCall) Fields(s ...googleapi.Field) *RoutesListCall

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

func (*RoutesListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*RoutesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*RoutesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by 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. For details, see https://cloud.google.com/compute/docs/reference/latest/routes/delete

func (*RoutesService) Get

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

Get: Returns the specified route resource. For details, see https://cloud.google.com/compute/docs/reference/latest/routes/get

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. For details, see https://cloud.google.com/compute/docs/reference/latest/routes/insert

func (*RoutesService) List

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

List: Retrieves the list of route resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/routes/list

type Scheduling

type Scheduling struct {
	// AutomaticRestart: Specifies whether the instance should be
	// automatically restarted if it is terminated by Compute Engine (not
	// terminated by a user).
	AutomaticRestart bool `json:"automaticRestart,omitempty"`

	// OnHostMaintenance: Defines the maintenance behavior for this
	// instance. The default behavior is MIGRATE. For more information, see
	// Setting maintenance behavior.
	//
	// Possible values:
	//   "MIGRATE"
	//   "TERMINATE"
	OnHostMaintenance string `json:"onHostMaintenance,omitempty"`

	// Preemptible: Whether the Instance is preemptible.
	Preemptible bool `json:"preemptible,omitempty"`
}

Scheduling: Sets the scheduling options for an Instance.

type SerialPortOutput

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

	// Kind: [Output Only] Type of the resource. Always
	// compute#serialPortOutput for serial port output.
	Kind string `json:"kind,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`
}

SerialPortOutput: An instance's serial console output.

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Addresses *AddressesService

	Autoscalers *AutoscalersService

	BackendServices *BackendServicesService

	DiskTypes *DiskTypesService

	Disks *DisksService

	Firewalls *FirewallsService

	ForwardingRules *ForwardingRulesService

	GlobalAddresses *GlobalAddressesService

	GlobalForwardingRules *GlobalForwardingRulesService

	GlobalOperations *GlobalOperationsService

	HttpHealthChecks *HttpHealthChecksService

	Images *ImagesService

	InstanceGroupManagers *InstanceGroupManagersService

	InstanceGroups *InstanceGroupsService

	InstanceTemplates *InstanceTemplatesService

	Instances *InstancesService

	Licenses *LicensesService

	MachineTypes *MachineTypesService

	Networks *NetworksService

	Projects *ProjectsService

	RegionOperations *RegionOperationsService

	Regions *RegionsService

	Routes *RoutesService

	Snapshots *SnapshotsService

	TargetHttpProxies *TargetHttpProxiesService

	TargetInstances *TargetInstancesService

	TargetPools *TargetPoolsService

	TargetVpnGateways *TargetVpnGatewaysService

	UrlMaps *UrlMapsService

	VpnTunnels *VpnTunnelsService

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

ServiceAccount: A service account.

type Snapshot

type Snapshot struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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: [Output Only] Size of the snapshot, specified in GB.
	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`

	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of the resource. Always compute#snapshot for
	// Snapshot resources.
	Kind string `json:"kind,omitempty"`

	// Licenses: Public visible licenses.
	Licenses []string `json:"licenses,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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// SelfLink: [Output Only] Server-defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// SourceDisk: The source disk used to create this snapshot.
	SourceDisk string `json:"sourceDisk,omitempty"`

	// SourceDiskId: [Output Only] 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: [Output Only] The status of the snapshot.
	//
	// Possible values:
	//   "CREATING"
	//   "DELETING"
	//   "FAILED"
	//   "READY"
	//   "UPLOADING"
	Status string `json:"status,omitempty"`

	// StorageBytes: [Output Only] A size of the the storage used by the
	// snapshot. As snapshots share storage, this number is expected to
	// change with snapshot creation/deletion.
	StorageBytes int64 `json:"storageBytes,omitempty,string"`

	// StorageBytesStatus: [Output Only] An indicator whether storageBytes
	// is in a stable state or it is being adjusted as a result of shared
	// storage reallocation.
	//
	// Possible values:
	//   "UPDATING"
	//   "UP_TO_DATE"
	StorageBytesStatus string `json:"storageBytesStatus,omitempty"`
}

Snapshot: A persistent disk snapshot resource.

type SnapshotList

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

	// Items: A list of 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"`
}

SnapshotList: Contains a list of Snapshot resources.

type SnapshotsDeleteCall

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

func (*SnapshotsDeleteCall) Do

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

func (*SnapshotsDeleteCall) Fields

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

type SnapshotsGetCall

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

func (*SnapshotsGetCall) Do

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

func (*SnapshotsGetCall) Fields

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

type SnapshotsListCall

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

func (*SnapshotsListCall) Do

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

func (*SnapshotsListCall) Fields

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

func (*SnapshotsListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*SnapshotsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*SnapshotsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by 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 Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot.

For more information, see Deleting snaphots. For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/delete

func (*SnapshotsService) Get

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

Get: Returns the specified Snapshot resource. For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/get

func (*SnapshotsService) List

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

List: Retrieves the list of Snapshot resources contained within the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/snapshots/list

type Tags

type Tags struct {
	// Fingerprint: Specifies a fingerprint for this request, which is
	// essentially a hash of the metadata's contents and used for optimistic
	// locking. The fingerprint is initially generated by Compute Engine and
	// changes after every request to modify or update metadata. You must
	// always provide an up-to-date fingerprint hash in order to update or
	// change metadata.
	//
	// To see the latest fingerprint, make get() request to the instance.
	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"`
}

Tags: A set of instance tags.

type TargetHttpProxiesDeleteCall

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

func (*TargetHttpProxiesDeleteCall) Do

func (*TargetHttpProxiesDeleteCall) Fields

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

type TargetHttpProxiesGetCall

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

func (*TargetHttpProxiesGetCall) Do

func (*TargetHttpProxiesGetCall) Fields

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

type TargetHttpProxiesInsertCall

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

func (*TargetHttpProxiesInsertCall) Do

func (*TargetHttpProxiesInsertCall) Fields

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

type TargetHttpProxiesListCall

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

func (*TargetHttpProxiesListCall) Do

func (*TargetHttpProxiesListCall) Fields

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

func (*TargetHttpProxiesListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*TargetHttpProxiesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*TargetHttpProxiesListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type TargetHttpProxiesService

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

func NewTargetHttpProxiesService

func NewTargetHttpProxiesService(s *Service) *TargetHttpProxiesService

func (*TargetHttpProxiesService) Delete

func (r *TargetHttpProxiesService) Delete(project string, targetHttpProxy string) *TargetHttpProxiesDeleteCall

Delete: Deletes the specified TargetHttpProxy resource. For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/delete

func (*TargetHttpProxiesService) Get

func (r *TargetHttpProxiesService) Get(project string, targetHttpProxy string) *TargetHttpProxiesGetCall

Get: Returns the specified TargetHttpProxy resource. For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/get

func (*TargetHttpProxiesService) Insert

func (r *TargetHttpProxiesService) Insert(project string, targethttpproxy *TargetHttpProxy) *TargetHttpProxiesInsertCall

Insert: Creates a TargetHttpProxy resource in the specified project using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/insert

func (*TargetHttpProxiesService) List

List: Retrieves the list of TargetHttpProxy resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/list

func (*TargetHttpProxiesService) SetUrlMap

func (r *TargetHttpProxiesService) SetUrlMap(project string, targetHttpProxy string, urlmapreference *UrlMapReference) *TargetHttpProxiesSetUrlMapCall

SetUrlMap: Changes the URL map for TargetHttpProxy. For details, see https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies/setUrlMap

type TargetHttpProxiesSetUrlMapCall

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

func (*TargetHttpProxiesSetUrlMapCall) Do

func (*TargetHttpProxiesSetUrlMapCall) Fields

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

type TargetHttpProxy

type TargetHttpProxy struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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: [Output Only] Unique identifier for the resource. Defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of resource. Always compute#Operation for
	// Operation resources.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// UrlMap: URL to the UrlMap resource that defines the mapping from URL
	// to the BackendService.
	UrlMap string `json:"urlMap,omitempty"`
}

TargetHttpProxy: A TargetHttpProxy resource. This resource defines an HTTP proxy.

type TargetHttpProxyList

type TargetHttpProxyList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

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

	// Kind: Type of resource. Always compute#targetHttpProxyList for lists
	// of Target HTTP proxies.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server-defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

TargetHttpProxyList: A list of TargetHttpProxy resources.

type TargetInstance

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

	// Instance: The URL to the instance that terminates the relevant
	// traffic.
	Instance string `json:"instance,omitempty"`

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

	// NatPolicy: NAT option controlling how IPs are NAT'ed to the VM.
	// Currently only NO_NAT (default value) is supported.
	//
	// Possible values:
	//   "NO_NAT"
	NatPolicy string `json:"natPolicy,omitempty"`

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

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

TargetInstance: A TargetInstance resource. This resource defines an endpoint VM that terminates traffic of certain protocols.

type TargetInstanceAggregatedList

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

	// Items: A map of scoped target instance lists.
	Items map[string]TargetInstancesScopedList `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 TargetInstanceList

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

	// Items: A list of TargetInstance resources.
	Items []*TargetInstance `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"`
}

TargetInstanceList: Contains a list of TargetInstance resources.

type TargetInstancesAggregatedListCall

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

func (*TargetInstancesAggregatedListCall) Do

func (*TargetInstancesAggregatedListCall) Fields

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

func (*TargetInstancesAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*TargetInstancesAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*TargetInstancesAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type TargetInstancesDeleteCall

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

func (*TargetInstancesDeleteCall) Do

func (*TargetInstancesDeleteCall) Fields

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

type TargetInstancesGetCall

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

func (*TargetInstancesGetCall) Do

func (*TargetInstancesGetCall) Fields

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

type TargetInstancesInsertCall

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

func (*TargetInstancesInsertCall) Do

func (*TargetInstancesInsertCall) Fields

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

type TargetInstancesListCall

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

func (*TargetInstancesListCall) Do

func (*TargetInstancesListCall) Fields

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

func (*TargetInstancesListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*TargetInstancesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*TargetInstancesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type TargetInstancesScopedList

type TargetInstancesScopedList struct {
	// TargetInstances: List of target instances contained in this scope.
	TargetInstances []*TargetInstance `json:"targetInstances,omitempty"`

	// Warning: Informational warning which replaces the list of addresses
	// when the list is empty.
	Warning *TargetInstancesScopedListWarning `json:"warning,omitempty"`
}

type TargetInstancesScopedListWarning

type TargetInstancesScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

TargetInstancesScopedListWarning: Informational warning which replaces the list of addresses when the list is empty.

type TargetInstancesScopedListWarningData

type TargetInstancesScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type TargetInstancesService

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

func NewTargetInstancesService

func NewTargetInstancesService(s *Service) *TargetInstancesService

func (*TargetInstancesService) AggregatedList

AggregatedList: Retrieves the list of target instances grouped by scope. For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/aggregatedList

func (*TargetInstancesService) Delete

func (r *TargetInstancesService) Delete(project string, zone string, targetInstance string) *TargetInstancesDeleteCall

Delete: Deletes the specified TargetInstance resource. For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/delete

func (*TargetInstancesService) Get

func (r *TargetInstancesService) Get(project string, zone string, targetInstance string) *TargetInstancesGetCall

Get: Returns the specified TargetInstance resource. For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/get

func (*TargetInstancesService) Insert

func (r *TargetInstancesService) Insert(project string, zone string, targetinstance *TargetInstance) *TargetInstancesInsertCall

Insert: Creates a TargetInstance resource in the specified project and zone using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/insert

func (*TargetInstancesService) List

List: Retrieves the list of TargetInstance resources available to the specified project and zone. For details, see https://cloud.google.com/compute/docs/reference/latest/targetInstances/list

type TargetPool

type TargetPool struct {
	// BackupPool: This field is applicable only when the containing target
	// pool is serving a forwarding rule as the primary pool, and its
	// 'failoverRatio' field is properly set to a value between [0,
	// 1].
	//
	// 'backupPool' and 'failoverRatio' together define the fallback
	// behavior of the primary target pool: if the ratio of the healthy VMs
	// in the primary pool is at or below 'failoverRatio', traffic arriving
	// at the load-balanced IP will be directed to the backup pool.
	//
	// In case where 'failoverRatio' and 'backupPool' are not set, or all
	// the VMs in the backup pool are unhealthy, the traffic will be
	// directed back to the primary pool in the "force" mode, where traffic
	// will be spread to the healthy VMs with the best effort, or to all VMs
	// when no VM is healthy.
	BackupPool string `json:"backupPool,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"`

	// FailoverRatio: This field is applicable only when the containing
	// target pool is serving a forwarding rule as the primary pool (i.e.,
	// not as a backup pool to some other target pool). The value of the
	// field must be in [0, 1].
	//
	// If set, 'backupPool' must also be set. They together define the
	// fallback behavior of the primary target pool: if the ratio of the
	// healthy VMs in the primary pool is at or below this number, traffic
	// arriving at the load-balanced IP will be directed to the backup
	// pool.
	//
	// In case where 'failoverRatio' is not set or all the VMs in the backup
	// pool are unhealthy, the traffic will be directed back to the primary
	// pool in the "force" mode, where traffic will be spread to the healthy
	// VMs with the best effort, or to all VMs when no VM is healthy.
	FailoverRatio float64 `json:"failoverRatio,omitempty"`

	// HealthChecks: A list of URLs to the HttpHealthCheck resource. A
	// member VM in this pool is considered healthy if and only if all
	// specified health checks pass. An empty list means all member VMs will
	// be considered healthy at all times.
	HealthChecks []string `json:"healthChecks,omitempty"`

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

	// Instances: A list of resource URLs to the member VMs serving this
	// pool. They must live in zones contained in the same region as this
	// pool.
	Instances []string `json:"instances,omitempty"`

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

	// Region: URL of the region where the target pool resides (output
	// only).
	Region string `json:"region,omitempty"`

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

	// SessionAffinity: Sesssion affinity option, must be one of the
	// following values: 'NONE': Connections from the same client IP may go
	// to any VM in the pool; 'CLIENT_IP': Connections from the same client
	// IP will go to the same VM in the pool while that VM remains healthy.
	// 'CLIENT_IP_PROTO': Connections from the same client IP with the same
	// IP protocol will go to the same VM in the pool while that VM remains
	// healthy.
	//
	// Possible values:
	//   "CLIENT_IP"
	//   "CLIENT_IP_PROTO"
	//   "NONE"
	SessionAffinity string `json:"sessionAffinity,omitempty"`
}

TargetPool: A TargetPool resource. This resource defines a pool of VMs, associated HttpHealthCheck resources, and the fallback TargetPool.

type TargetPoolAggregatedList

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

	// Items: A map of scoped target pool lists.
	Items map[string]TargetPoolsScopedList `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 TargetPoolInstanceHealth

type TargetPoolInstanceHealth struct {
	HealthStatus []*HealthStatus `json:"healthStatus,omitempty"`

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

type TargetPoolList

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

	// Items: A list of TargetPool resources.
	Items []*TargetPool `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"`
}

TargetPoolList: Contains a list of TargetPool resources.

type TargetPoolsAddHealthCheckCall

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

func (*TargetPoolsAddHealthCheckCall) Do

func (*TargetPoolsAddHealthCheckCall) Fields

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

type TargetPoolsAddHealthCheckRequest

type TargetPoolsAddHealthCheckRequest struct {
	// HealthChecks: Health check URLs to be added to targetPool.
	HealthChecks []*HealthCheckReference `json:"healthChecks,omitempty"`
}

type TargetPoolsAddInstanceCall

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

func (*TargetPoolsAddInstanceCall) Do

func (*TargetPoolsAddInstanceCall) Fields

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

type TargetPoolsAddInstanceRequest

type TargetPoolsAddInstanceRequest struct {
	// Instances: URLs of the instances to be added to targetPool.
	Instances []*InstanceReference `json:"instances,omitempty"`
}

type TargetPoolsAggregatedListCall

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

func (*TargetPoolsAggregatedListCall) Do

func (*TargetPoolsAggregatedListCall) Fields

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

func (*TargetPoolsAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*TargetPoolsAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*TargetPoolsAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type TargetPoolsDeleteCall

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

func (*TargetPoolsDeleteCall) Do

func (*TargetPoolsDeleteCall) Fields

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

type TargetPoolsGetCall

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

func (*TargetPoolsGetCall) Do

func (c *TargetPoolsGetCall) Do() (*TargetPool, error)

func (*TargetPoolsGetCall) Fields

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

type TargetPoolsGetHealthCall

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

func (*TargetPoolsGetHealthCall) Do

func (*TargetPoolsGetHealthCall) Fields

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

type TargetPoolsInsertCall

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

func (*TargetPoolsInsertCall) Do

func (*TargetPoolsInsertCall) Fields

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

type TargetPoolsListCall

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

func (*TargetPoolsListCall) Do

func (*TargetPoolsListCall) Fields

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

func (*TargetPoolsListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*TargetPoolsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*TargetPoolsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type TargetPoolsRemoveHealthCheckCall

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

func (*TargetPoolsRemoveHealthCheckCall) Do

func (*TargetPoolsRemoveHealthCheckCall) Fields

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

type TargetPoolsRemoveHealthCheckRequest

type TargetPoolsRemoveHealthCheckRequest struct {
	// HealthChecks: Health check URLs to be removed from targetPool.
	HealthChecks []*HealthCheckReference `json:"healthChecks,omitempty"`
}

type TargetPoolsRemoveInstanceCall

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

func (*TargetPoolsRemoveInstanceCall) Do

func (*TargetPoolsRemoveInstanceCall) Fields

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

type TargetPoolsRemoveInstanceRequest

type TargetPoolsRemoveInstanceRequest struct {
	// Instances: URLs of the instances to be removed from targetPool.
	Instances []*InstanceReference `json:"instances,omitempty"`
}

type TargetPoolsScopedList

type TargetPoolsScopedList struct {
	// TargetPools: List of target pools contained in this scope.
	TargetPools []*TargetPool `json:"targetPools,omitempty"`

	// Warning: Informational warning which replaces the list of addresses
	// when the list is empty.
	Warning *TargetPoolsScopedListWarning `json:"warning,omitempty"`
}

type TargetPoolsScopedListWarning

type TargetPoolsScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

TargetPoolsScopedListWarning: Informational warning which replaces the list of addresses when the list is empty.

type TargetPoolsScopedListWarningData

type TargetPoolsScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type TargetPoolsService

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

func NewTargetPoolsService

func NewTargetPoolsService(s *Service) *TargetPoolsService

func (*TargetPoolsService) AddHealthCheck

func (r *TargetPoolsService) AddHealthCheck(project string, region string, targetPool string, targetpoolsaddhealthcheckrequest *TargetPoolsAddHealthCheckRequest) *TargetPoolsAddHealthCheckCall

AddHealthCheck: Adds health check URL to targetPool. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/addHealthCheck

func (*TargetPoolsService) AddInstance

func (r *TargetPoolsService) AddInstance(project string, region string, targetPool string, targetpoolsaddinstancerequest *TargetPoolsAddInstanceRequest) *TargetPoolsAddInstanceCall

AddInstance: Adds instance url to targetPool. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/addInstance

func (*TargetPoolsService) AggregatedList

func (r *TargetPoolsService) AggregatedList(project string) *TargetPoolsAggregatedListCall

AggregatedList: Retrieves the list of target pools grouped by scope. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/aggregatedList

func (*TargetPoolsService) Delete

func (r *TargetPoolsService) Delete(project string, region string, targetPool string) *TargetPoolsDeleteCall

Delete: Deletes the specified TargetPool resource. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/delete

func (*TargetPoolsService) Get

func (r *TargetPoolsService) Get(project string, region string, targetPool string) *TargetPoolsGetCall

Get: Returns the specified TargetPool resource. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/get

func (*TargetPoolsService) GetHealth

func (r *TargetPoolsService) GetHealth(project string, region string, targetPool string, instancereference *InstanceReference) *TargetPoolsGetHealthCall

GetHealth: Gets the most recent health check results for each IP for the given instance that is referenced by given TargetPool. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/getHealth

func (*TargetPoolsService) Insert

func (r *TargetPoolsService) Insert(project string, region string, targetpool *TargetPool) *TargetPoolsInsertCall

Insert: Creates a TargetPool resource in the specified project and region using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/insert

func (*TargetPoolsService) List

func (r *TargetPoolsService) List(project string, region string) *TargetPoolsListCall

List: Retrieves the list of TargetPool resources available to the specified project and region. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/list

func (*TargetPoolsService) RemoveHealthCheck

func (r *TargetPoolsService) RemoveHealthCheck(project string, region string, targetPool string, targetpoolsremovehealthcheckrequest *TargetPoolsRemoveHealthCheckRequest) *TargetPoolsRemoveHealthCheckCall

RemoveHealthCheck: Removes health check URL from targetPool. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/removeHealthCheck

func (*TargetPoolsService) RemoveInstance

func (r *TargetPoolsService) RemoveInstance(project string, region string, targetPool string, targetpoolsremoveinstancerequest *TargetPoolsRemoveInstanceRequest) *TargetPoolsRemoveInstanceCall

RemoveInstance: Removes instance URL from targetPool. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/removeInstance

func (*TargetPoolsService) SetBackup

func (r *TargetPoolsService) SetBackup(project string, region string, targetPool string, targetreference *TargetReference) *TargetPoolsSetBackupCall

SetBackup: Changes backup pool configurations. For details, see https://cloud.google.com/compute/docs/reference/latest/targetPools/setBackup

type TargetPoolsSetBackupCall

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

func (*TargetPoolsSetBackupCall) Do

func (*TargetPoolsSetBackupCall) FailoverRatio

func (c *TargetPoolsSetBackupCall) FailoverRatio(failoverRatio float64) *TargetPoolsSetBackupCall

FailoverRatio sets the optional parameter "failoverRatio": New failoverRatio value for the containing target pool.

func (*TargetPoolsSetBackupCall) Fields

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

type TargetReference

type TargetReference struct {
	Target string `json:"target,omitempty"`
}

type TargetVpnGateway

type TargetVpnGateway struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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"`

	// ForwardingRules: [Output Only] A list of URLs to the ForwardingRule
	// resources. ForwardingRules are created using
	// compute.forwardingRules.insert and associated to a VPN gateway.
	ForwardingRules []string `json:"forwardingRules,omitempty"`

	// Id: [Output Only] Unique identifier for the resource. Defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of resource. Always compute#targetVpnGateway
	// for target VPN gateways.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// Network: URL of the network to which this VPN gateway is attached.
	// Provided by the client when the VPN gateway is created.
	Network string `json:"network,omitempty"`

	// Region: [Output Only] URL of the region where the target VPN gateway
	// resides.
	Region string `json:"region,omitempty"`

	// SelfLink: [Output Only] Server-defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// Status: [Output Only] The status of the VPN gateway.
	//
	// Possible values:
	//   "CREATING"
	//   "DELETING"
	//   "FAILED"
	//   "READY"
	Status string `json:"status,omitempty"`

	// Tunnels: [Output Only] A list of URLs to VpnTunnel resources.
	// VpnTunnels are created using compute.vpntunnels.insert and associated
	// to a VPN gateway.
	Tunnels []string `json:"tunnels,omitempty"`
}

type TargetVpnGatewayAggregatedList

type TargetVpnGatewayAggregatedList struct {
	// Id: [Output Only] Unique identifier for the resource. Defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: A map of scoped target vpn gateway lists.
	Items map[string]TargetVpnGatewaysScopedList `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#targetVpnGateway
	// for target VPN gateways.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server-defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`
}

type TargetVpnGatewayList

type TargetVpnGatewayList struct {
	// Id: [Output Only] Unique identifier for the resource. Defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of TargetVpnGateway resources.
	Items []*TargetVpnGateway `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#targetVpnGateway
	// for target VPN gateways.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server-defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`
}

TargetVpnGatewayList: Contains a list of TargetVpnGateway resources.

type TargetVpnGatewaysAggregatedListCall

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

func (*TargetVpnGatewaysAggregatedListCall) Do

func (*TargetVpnGatewaysAggregatedListCall) Fields

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

func (*TargetVpnGatewaysAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*TargetVpnGatewaysAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*TargetVpnGatewaysAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type TargetVpnGatewaysDeleteCall

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

func (*TargetVpnGatewaysDeleteCall) Do

func (*TargetVpnGatewaysDeleteCall) Fields

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

type TargetVpnGatewaysGetCall

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

func (*TargetVpnGatewaysGetCall) Do

func (*TargetVpnGatewaysGetCall) Fields

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

type TargetVpnGatewaysInsertCall

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

func (*TargetVpnGatewaysInsertCall) Do

func (*TargetVpnGatewaysInsertCall) Fields

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

type TargetVpnGatewaysListCall

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

func (*TargetVpnGatewaysListCall) Do

func (*TargetVpnGatewaysListCall) Fields

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

func (*TargetVpnGatewaysListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*TargetVpnGatewaysListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*TargetVpnGatewaysListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type TargetVpnGatewaysScopedList

type TargetVpnGatewaysScopedList struct {
	// TargetVpnGateways: [Output Only] List of target vpn gateways
	// contained in this scope.
	TargetVpnGateways []*TargetVpnGateway `json:"targetVpnGateways,omitempty"`

	// Warning: [Output Only] Informational warning which replaces the list
	// of addresses when the list is empty.
	Warning *TargetVpnGatewaysScopedListWarning `json:"warning,omitempty"`
}

type TargetVpnGatewaysScopedListWarning

type TargetVpnGatewaysScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

TargetVpnGatewaysScopedListWarning: [Output Only] Informational warning which replaces the list of addresses when the list is empty.

type TargetVpnGatewaysScopedListWarningData

type TargetVpnGatewaysScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type TargetVpnGatewaysService

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

func NewTargetVpnGatewaysService

func NewTargetVpnGatewaysService(s *Service) *TargetVpnGatewaysService

func (*TargetVpnGatewaysService) AggregatedList

AggregatedList: Retrieves the list of target VPN gateways grouped by scope.

func (*TargetVpnGatewaysService) Delete

func (r *TargetVpnGatewaysService) Delete(project string, region string, targetVpnGateway string) *TargetVpnGatewaysDeleteCall

Delete: Deletes the specified TargetVpnGateway resource.

func (*TargetVpnGatewaysService) Get

func (r *TargetVpnGatewaysService) Get(project string, region string, targetVpnGateway string) *TargetVpnGatewaysGetCall

Get: Returns the specified TargetVpnGateway resource.

func (*TargetVpnGatewaysService) Insert

func (r *TargetVpnGatewaysService) Insert(project string, region string, targetvpngateway *TargetVpnGateway) *TargetVpnGatewaysInsertCall

Insert: Creates a TargetVpnGateway resource in the specified project and region using the data included in the request.

func (*TargetVpnGatewaysService) List

List: Retrieves the list of TargetVpnGateway resources available to the specified project and region.

type TestFailure

type TestFailure struct {
	ActualService string `json:"actualService,omitempty"`

	ExpectedService string `json:"expectedService,omitempty"`

	Host string `json:"host,omitempty"`

	Path string `json:"path,omitempty"`
}

type UrlMap

type UrlMap struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// DefaultService: The URL of the BackendService resource if none of the
	// hostRules match.
	DefaultService string `json:"defaultService,omitempty"`

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

	// Fingerprint: Fingerprint of this resource. A hash of the contents
	// stored in this object. This field is used in optimistic locking. This
	// field will be ignored when inserting a UrlMap. An up-to-date
	// fingerprint must be provided in order to update the UrlMap.
	Fingerprint string `json:"fingerprint,omitempty"`

	// HostRules: The list of HostRules to use against the URL.
	HostRules []*HostRule `json:"hostRules,omitempty"`

	// Id: [Output Only] Unique identifier for the resource. Set by the
	// server.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// PathMatchers: The list of named PathMatchers to use against the URL.
	PathMatchers []*PathMatcher `json:"pathMatchers,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// Tests: The list of expected URL mappings. Request to update this
	// UrlMap will succeed only all of the test cases pass.
	Tests []*UrlMapTest `json:"tests,omitempty"`
}

UrlMap: A UrlMap resource. This resource defines the mapping from URL to the BackendService resource, based on the "longest-match" of the URL's host and path.

type UrlMapList

type UrlMapList struct {
	// Id: [Output Only] Unique identifier for the resource. Set by the
	// server.
	Id string `json:"id,omitempty"`

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

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

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

UrlMapList: Contains a list of UrlMap resources.

type UrlMapReference

type UrlMapReference struct {
	UrlMap string `json:"urlMap,omitempty"`
}

type UrlMapTest

type UrlMapTest struct {
	// Description: Description of this test case.
	Description string `json:"description,omitempty"`

	// Host: Host portion of the URL.
	Host string `json:"host,omitempty"`

	// Path: Path portion of the URL.
	Path string `json:"path,omitempty"`

	// Service: Expected BackendService resource the given URL should be
	// mapped to.
	Service string `json:"service,omitempty"`
}

UrlMapTest: Message for the expected URL mappings.

type UrlMapValidationResult

type UrlMapValidationResult struct {
	LoadErrors []string `json:"loadErrors,omitempty"`

	// LoadSucceeded: Whether the given UrlMap can be successfully loaded.
	// If false, 'loadErrors' indicates the reasons.
	LoadSucceeded bool `json:"loadSucceeded,omitempty"`

	TestFailures []*TestFailure `json:"testFailures,omitempty"`

	// TestPassed: If successfully loaded, this field indicates whether the
	// test passed. If false, 'testFailures's indicate the reason of
	// failure.
	TestPassed bool `json:"testPassed,omitempty"`
}

UrlMapValidationResult: Message representing the validation result for a UrlMap.

type UrlMapsDeleteCall

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

func (*UrlMapsDeleteCall) Do

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

func (*UrlMapsDeleteCall) Fields

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

type UrlMapsGetCall

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

func (*UrlMapsGetCall) Do

func (c *UrlMapsGetCall) Do() (*UrlMap, error)

func (*UrlMapsGetCall) Fields

func (c *UrlMapsGetCall) Fields(s ...googleapi.Field) *UrlMapsGetCall

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

type UrlMapsInsertCall

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

func (*UrlMapsInsertCall) Do

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

func (*UrlMapsInsertCall) Fields

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

type UrlMapsListCall

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

func (*UrlMapsListCall) Do

func (c *UrlMapsListCall) Do() (*UrlMapList, error)

func (*UrlMapsListCall) Fields

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

func (*UrlMapsListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*UrlMapsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*UrlMapsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type UrlMapsPatchCall

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

func (*UrlMapsPatchCall) Do

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

func (*UrlMapsPatchCall) Fields

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

type UrlMapsService

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

func NewUrlMapsService

func NewUrlMapsService(s *Service) *UrlMapsService

func (*UrlMapsService) Delete

func (r *UrlMapsService) Delete(project string, urlMap string) *UrlMapsDeleteCall

Delete: Deletes the specified UrlMap resource. For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/delete

func (*UrlMapsService) Get

func (r *UrlMapsService) Get(project string, urlMap string) *UrlMapsGetCall

Get: Returns the specified UrlMap resource. For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/get

func (*UrlMapsService) Insert

func (r *UrlMapsService) Insert(project string, urlmap *UrlMap) *UrlMapsInsertCall

Insert: Creates a UrlMap resource in the specified project using the data included in the request. For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/insert

func (*UrlMapsService) List

func (r *UrlMapsService) List(project string) *UrlMapsListCall

List: Retrieves the list of UrlMap resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/list

func (*UrlMapsService) Patch

func (r *UrlMapsService) Patch(project string, urlMap string, urlmap *UrlMap) *UrlMapsPatchCall

Patch: Update the entire content of the UrlMap resource. This method supports patch semantics. For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/patch

func (*UrlMapsService) Update

func (r *UrlMapsService) Update(project string, urlMap string, urlmap *UrlMap) *UrlMapsUpdateCall

Update: Update the entire content of the UrlMap resource. For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/update

func (*UrlMapsService) Validate

func (r *UrlMapsService) Validate(project string, urlMap string, urlmapsvalidaterequest *UrlMapsValidateRequest) *UrlMapsValidateCall

Validate: Run static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap. For details, see https://cloud.google.com/compute/docs/reference/latest/urlMaps/validate

type UrlMapsUpdateCall

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

func (*UrlMapsUpdateCall) Do

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

func (*UrlMapsUpdateCall) Fields

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

type UrlMapsValidateCall

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

func (*UrlMapsValidateCall) Do

func (*UrlMapsValidateCall) Fields

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

type UrlMapsValidateRequest

type UrlMapsValidateRequest struct {
	// Resource: Content of the UrlMap to be validated.
	Resource *UrlMap `json:"resource,omitempty"`
}

type UrlMapsValidateResponse

type UrlMapsValidateResponse struct {
	Result *UrlMapValidationResult `json:"result,omitempty"`
}

type UsageExportLocation

type UsageExportLocation struct {
	// BucketName: The name of an existing bucket in Cloud Storage where the
	// usage report object is stored. The Google Service Account is granted
	// write access to this bucket. This is just the bucket name, with no
	// gs:// or https://storage.googleapis.com/ in front of it.
	BucketName string `json:"bucketName,omitempty"`

	// ReportNamePrefix: An optional prefix for the name of the usage report
	// object stored in bucketName. If not supplied, defaults to usage. The
	// report is stored as a CSV file named
	// report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the
	// usage according to Pacific Time. If you supply a prefix, it should
	// conform to Cloud Storage object naming conventions.
	ReportNamePrefix string `json:"reportNamePrefix,omitempty"`
}

UsageExportLocation: The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.

type VpnTunnel

type VpnTunnel struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	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"`

	// DetailedStatus: [Output Only] Detailed status message for the VPN
	// tunnel.
	DetailedStatus string `json:"detailedStatus,omitempty"`

	// Id: [Output Only] Unique identifier for the resource. Defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// IkeNetworks: IKE networks to use when establishing the VPN tunnel
	// with peer VPN gateway. The value should be a CIDR formatted string,
	// for example: 192.168.0.0/16. The ranges should be disjoint.
	IkeNetworks []string `json:"ikeNetworks,omitempty"`

	// IkeVersion: IKE protocol version to use when establishing the VPN
	// tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2.
	// Default version is 2.
	IkeVersion int64 `json:"ikeVersion,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#vpnTunnel for
	// VPN tunnels.
	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. Specifically, the name must be 1-63 characters long and
	// match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means
	// the first character must be a lowercase letter, and all following
	// characters must be a dash, lowercase letter, or digit, except the
	// last character, which cannot be a dash.
	Name string `json:"name,omitempty"`

	// PeerIp: IP address of the peer VPN gateway.
	PeerIp string `json:"peerIp,omitempty"`

	// Region: [Output Only] URL of the region where the VPN tunnel resides.
	Region string `json:"region,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// SharedSecret: Shared secret used to set the secure session between
	// the GCE VPN gateway and the peer VPN gateway.
	SharedSecret string `json:"sharedSecret,omitempty"`

	// SharedSecretHash: Hash of the shared secret.
	SharedSecretHash string `json:"sharedSecretHash,omitempty"`

	// Status: [Output Only] The status of the VPN tunnel.
	//
	// Possible values:
	//   "AUTHORIZATION_ERROR"
	//   "DEPROVISIONING"
	//   "ESTABLISHED"
	//   "FAILED"
	//   "FIRST_HANDSHAKE"
	//   "NEGOTIATION_FAILURE"
	//   "NETWORK_ERROR"
	//   "NO_INCOMING_PACKETS"
	//   "PROVISIONING"
	//   "REJECTED"
	//   "WAITING_FOR_FULL_CONFIG"
	Status string `json:"status,omitempty"`

	// TargetVpnGateway: URL of the VPN gateway to which this VPN tunnel is
	// associated. Provided by the client when the VPN tunnel is created.
	TargetVpnGateway string `json:"targetVpnGateway,omitempty"`
}

type VpnTunnelAggregatedList

type VpnTunnelAggregatedList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A map of scoped vpn tunnel lists.
	Items map[string]VpnTunnelsScopedList `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#vpnTunnel for
	// VPN tunnels.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server defined URL for this resource.
	SelfLink string `json:"selfLink,omitempty"`
}

type VpnTunnelList

type VpnTunnelList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of VpnTunnel resources.
	Items []*VpnTunnel `json:"items,omitempty"`

	// Kind: [Output Only] Type of resource. Always compute#vpnTunnel for
	// VPN tunnels.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: [Output Only] Server-defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`
}

VpnTunnelList: Contains a list of VpnTunnel resources.

type VpnTunnelsAggregatedListCall

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

func (*VpnTunnelsAggregatedListCall) Do

func (*VpnTunnelsAggregatedListCall) Fields

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

func (*VpnTunnelsAggregatedListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*VpnTunnelsAggregatedListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*VpnTunnelsAggregatedListCall) PageToken

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type VpnTunnelsDeleteCall

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

func (*VpnTunnelsDeleteCall) Do

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

func (*VpnTunnelsDeleteCall) Fields

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

type VpnTunnelsGetCall

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

func (*VpnTunnelsGetCall) Do

func (c *VpnTunnelsGetCall) Do() (*VpnTunnel, error)

func (*VpnTunnelsGetCall) Fields

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

type VpnTunnelsInsertCall

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

func (*VpnTunnelsInsertCall) Do

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

func (*VpnTunnelsInsertCall) Fields

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

type VpnTunnelsListCall

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

func (*VpnTunnelsListCall) Do

func (*VpnTunnelsListCall) Fields

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

func (*VpnTunnelsListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*VpnTunnelsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*VpnTunnelsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.

type VpnTunnelsScopedList

type VpnTunnelsScopedList struct {
	// VpnTunnels: List of vpn tunnels contained in this scope.
	VpnTunnels []*VpnTunnel `json:"vpnTunnels,omitempty"`

	// Warning: Informational warning which replaces the list of addresses
	// when the list is empty.
	Warning *VpnTunnelsScopedListWarning `json:"warning,omitempty"`
}

type VpnTunnelsScopedListWarning

type VpnTunnelsScopedListWarning struct {
	// Code: [Output Only] The warning type identifier for this warning.
	//
	// Possible values:
	//   "DEPRECATED_RESOURCE_USED"
	//   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
	//   "INJECTED_KERNELS_DEPRECATED"
	//   "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
	//   "NEXT_HOP_CANNOT_IP_FORWARD"
	//   "NEXT_HOP_INSTANCE_NOT_FOUND"
	//   "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
	//   "NEXT_HOP_NOT_RUNNING"
	//   "NOT_CRITICAL_ERROR"
	//   "NO_RESULTS_ON_PAGE"
	//   "REQUIRED_TOS_AGREEMENT"
	//   "RESOURCE_NOT_DELETED"
	//   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
	//   "UNREACHABLE"
	Code string `json:"code,omitempty"`

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

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

VpnTunnelsScopedListWarning: Informational warning which replaces the list of addresses when the list is empty.

type VpnTunnelsScopedListWarningData

type VpnTunnelsScopedListWarningData struct {
	// Key: [Output Only] A key for the warning data.
	Key string `json:"key,omitempty"`

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

type VpnTunnelsService

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

func NewVpnTunnelsService

func NewVpnTunnelsService(s *Service) *VpnTunnelsService

func (*VpnTunnelsService) AggregatedList

func (r *VpnTunnelsService) AggregatedList(project string) *VpnTunnelsAggregatedListCall

AggregatedList: Retrieves the list of VPN tunnels grouped by scope.

func (*VpnTunnelsService) Delete

func (r *VpnTunnelsService) Delete(project string, region string, vpnTunnel string) *VpnTunnelsDeleteCall

Delete: Deletes the specified VpnTunnel resource.

func (*VpnTunnelsService) Get

func (r *VpnTunnelsService) Get(project string, region string, vpnTunnel string) *VpnTunnelsGetCall

Get: Returns the specified VpnTunnel resource.

func (*VpnTunnelsService) Insert

func (r *VpnTunnelsService) Insert(project string, region string, vpntunnel *VpnTunnel) *VpnTunnelsInsertCall

Insert: Creates a VpnTunnel resource in the specified project and region using the data included in the request.

func (*VpnTunnelsService) List

func (r *VpnTunnelsService) List(project string, region string) *VpnTunnelsListCall

List: Retrieves the list of VpnTunnel resources contained in the specified project and region.

type Zone

type Zone struct {
	// CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text
	// format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

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

	// Description: [Output Only] Textual description of the resource.
	Description string `json:"description,omitempty"`

	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id uint64 `json:"id,omitempty,string"`

	// Kind: [Output Only] Type of the resource. Always kind#zone for zones.
	Kind string `json:"kind,omitempty"`

	// MaintenanceWindows: [Output Only] Any scheduled maintenance windows
	// for this zone. When the zone is in a maintenance window, all
	// resources which reside in the zone will be unavailable. For more
	// information, see Maintenance Windows
	MaintenanceWindows []*ZoneMaintenanceWindows `json:"maintenanceWindows,omitempty"`

	// Name: [Output Only] Name of the resource.
	Name string `json:"name,omitempty"`

	// Region: [Output Only] Full URL reference to the region which hosts
	// the zone.
	Region string `json:"region,omitempty"`

	// SelfLink: [Output Only] Server defined URL for the resource.
	SelfLink string `json:"selfLink,omitempty"`

	// Status: [Output Only] Status of the zone, either UP or DOWN.
	//
	// Possible values:
	//   "DOWN"
	//   "UP"
	Status string `json:"status,omitempty"`
}

Zone: A Zone resource.

type ZoneList

type ZoneList struct {
	// Id: [Output Only] Unique identifier for the resource; defined by the
	// server.
	Id string `json:"id,omitempty"`

	// Items: [Output Only] A list of Zone resources.
	Items []*Zone `json:"items,omitempty"`

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

	// NextPageToken: [Output Only] A token used to continue a truncated
	// list request.
	NextPageToken string `json:"nextPageToken,omitempty"`

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

ZoneList: Contains a list of zone resources.

type ZoneMaintenanceWindows

type ZoneMaintenanceWindows struct {
	// BeginTime: [Output Only] Starting time of the maintenance window, in
	// RFC3339 format.
	BeginTime string `json:"beginTime,omitempty"`

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

	// EndTime: [Output Only] Ending time of the maintenance window, in
	// RFC3339 format.
	EndTime string `json:"endTime,omitempty"`

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

type ZoneOperationsDeleteCall

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

func (*ZoneOperationsDeleteCall) Do

func (*ZoneOperationsDeleteCall) Fields

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

type ZoneOperationsGetCall

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

func (*ZoneOperationsGetCall) Do

func (*ZoneOperationsGetCall) Fields

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

type ZoneOperationsListCall

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

func (*ZoneOperationsListCall) Do

func (*ZoneOperationsListCall) Fields

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

func (*ZoneOperationsListCall) Filter

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*ZoneOperationsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*ZoneOperationsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by 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 Operations resource. For details, see https://cloud.google.com/compute/docs/reference/latest/zoneOperations/delete

func (*ZoneOperationsService) Get

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

Get: Retrieves the specified zone-specific Operations resource. For details, see https://cloud.google.com/compute/docs/reference/latest/zoneOperations/get

func (*ZoneOperationsService) List

List: Retrieves the list of Operation resources contained within the specified zone. For details, see https://cloud.google.com/compute/docs/reference/latest/zoneOperations/list

type ZonesGetCall

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

func (*ZonesGetCall) Do

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

func (*ZonesGetCall) Fields

func (c *ZonesGetCall) Fields(s ...googleapi.Field) *ZonesGetCall

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

type ZonesListCall

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

func (*ZonesListCall) Do

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

func (*ZonesListCall) Fields

func (c *ZonesListCall) Fields(s ...googleapi.Field) *ZonesListCall

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

func (*ZonesListCall) Filter

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

Filter sets the optional parameter "filter": Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING

- FIELD_NAME: The name of the field you want to compare. The field name must be valid for the type of resource being filtered. Only atomic field types are supported (string, number, boolean). Array and object fields are not currently supported. - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not equals). - LITERAL_STRING: The literal string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, you can filter by the name of a resource: filter=name ne example-instance The above filter returns only results whose name field does not equal example-instance. You can also enclose your literal string in single, double, or no quotes.

func (*ZonesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum count of results to be returned.

func (*ZonesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by 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. For details, see https://cloud.google.com/compute/docs/reference/latest/zones/get

func (*ZonesService) List

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

List: Retrieves the list of zone resources available to the specified project. For details, see https://cloud.google.com/compute/docs/reference/latest/zones/list

Jump to

Keyboard shortcuts

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