api: google.golang.org/api/compute/v1 Index | Files

package compute

import "google.golang.org/api/compute/v1"

Package compute provides access to the Compute Engine API.

For product documentation, see: https://developers.google.com/compute/docs/reference/latest/

Creating a client

Usage example:

import "google.golang.org/api/compute/v1"
...
ctx := context.Background()
computeService, err := compute.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:

computeService, err := compute.NewService(ctx, option.WithScopes(compute.DevstorageReadWriteScope))

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

computeService, err := compute.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
computeService, err := compute.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Package Files

compute-gen.go

Constants

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.

type AcceleratorConfig Uses

type AcceleratorConfig struct {
    // AcceleratorCount: The number of the guest accelerator cards exposed
    // to this instance.
    AcceleratorCount int64 `json:"acceleratorCount,omitempty"`

    // AcceleratorType: Full or partial URL of the accelerator type resource
    // to attach to this instance. For example:
    // projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-
    // p100 If you are creating an instance template, specify only the
    // accelerator name. See GPUs on Compute Engine for a full list of
    // accelerator types.
    AcceleratorType string `json:"acceleratorType,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AcceleratorCount") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AcceleratorConfig: A specification of the type and number of accelerator cards attached to the instance.

func (*AcceleratorConfig) MarshalJSON Uses

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

type AcceleratorType Uses

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

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

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

    // Id: [Output Only] The unique identifier for the resource. This
    // identifier is defined by the server.
    Id  uint64 `json:"id,omitempty,string"`

    // Kind: [Output Only] The type of the resource. Always
    // compute#acceleratorType for accelerator types.
    Kind string `json:"kind,omitempty"`

    // MaximumCardsPerInstance: [Output Only] Maximum accelerator cards
    // allowed per instance.
    MaximumCardsPerInstance int64 `json:"maximumCardsPerInstance,omitempty"`

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

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

    // Zone: [Output Only] The name of the zone where the accelerator type
    // resides, such as us-central1-a. You must specify this field as part
    // of the HTTP request URL. It is not settable as a field in the request
    // body.
    Zone string `json:"zone,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CreationTimestamp")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreationTimestamp") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AcceleratorType: Represents an Accelerator Type resource.

Google Cloud Platform provides graphics processing units (accelerators) that you can add to VM instances to improve or accelerate performance when working with intensive workloads. For more information, read GPUs on Compute Engine. (== resource_for beta.acceleratorTypes ==) (== resource_for v1.acceleratorTypes ==)

func (*AcceleratorType) MarshalJSON Uses

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

type AcceleratorTypeAggregatedList Uses

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

    // Items: A list of AcceleratorTypesScopedList resources.
    Items map[string]AcceleratorTypesScopedList `json:"items,omitempty"`

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

    // NextPageToken: [Output Only] This token allows you to get the next
    // page of results for list requests. If the number of results is larger
    // than maxResults, use the nextPageToken as a value for the query
    // parameter pageToken in the next list request. Subsequent list
    // requests will have their own nextPageToken to continue paging through
    // the results.
    NextPageToken string `json:"nextPageToken,omitempty"`

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

    // Warning: [Output Only] Informational warning message.
    Warning *AcceleratorTypeAggregatedListWarning `json:"warning,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Id") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Id") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AcceleratorTypeAggregatedList) MarshalJSON Uses

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

type AcceleratorTypeAggregatedListWarning Uses

type AcceleratorTypeAggregatedListWarning struct {
    // Code: [Output Only] A warning code, if applicable. For example,
    // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in
    // the response.
    //
    // Possible values:
    //   "CLEANUP_FAILED"
    //   "DEPRECATED_RESOURCE_USED"
    //   "DEPRECATED_TYPE_USED"
    //   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
    //   "EXPERIMENTAL_TYPE_USED"
    //   "EXTERNAL_API_WARNING"
    //   "FIELD_VALUE_OVERRIDEN"
    //   "INJECTED_KERNELS_DEPRECATED"
    //   "MISSING_TYPE_DEPENDENCY"
    //   "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_IN_USE_BY_OTHER_RESOURCE_WARNING"
    //   "RESOURCE_NOT_DELETED"
    //   "SCHEMA_VALIDATION_IGNORED"
    //   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
    //   "UNDECLARED_PROPERTIES"
    //   "UNREACHABLE"
    Code string `json:"code,omitempty"`

    // Data: [Output Only] Metadata about this warning in key: value format.
    // For example:
    // "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    Data []*AcceleratorTypeAggregatedListWarningData `json:"data,omitempty"`

    // Message: [Output Only] A human-readable description of the warning
    // code.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Code") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AcceleratorTypeAggregatedListWarning: [Output Only] Informational warning message.

func (*AcceleratorTypeAggregatedListWarning) MarshalJSON Uses

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

type AcceleratorTypeAggregatedListWarningData Uses

type AcceleratorTypeAggregatedListWarningData struct {
    // Key: [Output Only] A key that provides more detail on the warning
    // being returned. For example, for warnings where there are no results
    // in a list request for a particular zone, this key might be scope and
    // the key value might be the zone name. Other examples might be a key
    // indicating a deprecated resource and a suggested replacement, or a
    // warning about invalid network settings (for example, if an instance
    // attempts to perform IP forwarding but is not enabled for IP
    // forwarding).
    Key string `json:"key,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Key") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AcceleratorTypeAggregatedListWarningData) MarshalJSON Uses

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

type AcceleratorTypeList Uses

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

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

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

    // NextPageToken: [Output Only] This token allows you to get the next
    // page of results for list requests. If the number of results is larger
    // than maxResults, use the nextPageToken as a value for the query
    // parameter pageToken in the next list request. Subsequent list
    // requests will have their own nextPageToken to continue paging through
    // the results.
    NextPageToken string `json:"nextPageToken,omitempty"`

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

    // Warning: [Output Only] Informational warning message.
    Warning *AcceleratorTypeListWarning `json:"warning,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Id") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Id") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AcceleratorTypeList: Contains a list of accelerator types.

func (*AcceleratorTypeList) MarshalJSON Uses

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

type AcceleratorTypeListWarning Uses

type AcceleratorTypeListWarning struct {
    // Code: [Output Only] A warning code, if applicable. For example,
    // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in
    // the response.
    //
    // Possible values:
    //   "CLEANUP_FAILED"
    //   "DEPRECATED_RESOURCE_USED"
    //   "DEPRECATED_TYPE_USED"
    //   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
    //   "EXPERIMENTAL_TYPE_USED"
    //   "EXTERNAL_API_WARNING"
    //   "FIELD_VALUE_OVERRIDEN"
    //   "INJECTED_KERNELS_DEPRECATED"
    //   "MISSING_TYPE_DEPENDENCY"
    //   "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_IN_USE_BY_OTHER_RESOURCE_WARNING"
    //   "RESOURCE_NOT_DELETED"
    //   "SCHEMA_VALIDATION_IGNORED"
    //   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
    //   "UNDECLARED_PROPERTIES"
    //   "UNREACHABLE"
    Code string `json:"code,omitempty"`

    // Data: [Output Only] Metadata about this warning in key: value format.
    // For example:
    // "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    Data []*AcceleratorTypeListWarningData `json:"data,omitempty"`

    // Message: [Output Only] A human-readable description of the warning
    // code.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Code") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AcceleratorTypeListWarning: [Output Only] Informational warning message.

func (*AcceleratorTypeListWarning) MarshalJSON Uses

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

type AcceleratorTypeListWarningData Uses

type AcceleratorTypeListWarningData struct {
    // Key: [Output Only] A key that provides more detail on the warning
    // being returned. For example, for warnings where there are no results
    // in a list request for a particular zone, this key might be scope and
    // the key value might be the zone name. Other examples might be a key
    // indicating a deprecated resource and a suggested replacement, or a
    // warning about invalid network settings (for example, if an instance
    // attempts to perform IP forwarding but is not enabled for IP
    // forwarding).
    Key string `json:"key,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Key") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AcceleratorTypeListWarningData) MarshalJSON Uses

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

type AcceleratorTypesAggregatedListCall Uses

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

func (*AcceleratorTypesAggregatedListCall) Context Uses

func (c *AcceleratorTypesAggregatedListCall) Context(ctx context.Context) *AcceleratorTypesAggregatedListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AcceleratorTypesAggregatedListCall) Do Uses

func (c *AcceleratorTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeAggregatedList, error)

Do executes the "compute.acceleratorTypes.aggregatedList" call. Exactly one of *AcceleratorTypeAggregatedList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AcceleratorTypeAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AcceleratorTypesAggregatedListCall) Fields Uses

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

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

func (*AcceleratorTypesAggregatedListCall) Filter Uses

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

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true).

func (*AcceleratorTypesAggregatedListCall) Header Uses

func (c *AcceleratorTypesAggregatedListCall) Header() http.Header

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

func (*AcceleratorTypesAggregatedListCall) IfNoneMatch Uses

func (c *AcceleratorTypesAggregatedListCall) IfNoneMatch(entityTag string) *AcceleratorTypesAggregatedListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AcceleratorTypesAggregatedListCall) MaxResults Uses

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

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)

func (*AcceleratorTypesAggregatedListCall) OrderBy Uses

func (c *AcceleratorTypesAggregatedListCall) OrderBy(orderBy string) *AcceleratorTypesAggregatedListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*AcceleratorTypesAggregatedListCall) PageToken Uses

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

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

func (*AcceleratorTypesAggregatedListCall) Pages Uses

func (c *AcceleratorTypesAggregatedListCall) Pages(ctx context.Context, f func(*AcceleratorTypeAggregatedList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AcceleratorTypesGetCall Uses

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

func (*AcceleratorTypesGetCall) Context Uses

func (c *AcceleratorTypesGetCall) Context(ctx context.Context) *AcceleratorTypesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AcceleratorTypesGetCall) Do Uses

func (c *AcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*AcceleratorType, error)

Do executes the "compute.acceleratorTypes.get" call. Exactly one of *AcceleratorType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AcceleratorType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AcceleratorTypesGetCall) Fields Uses

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

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

func (*AcceleratorTypesGetCall) Header Uses

func (c *AcceleratorTypesGetCall) Header() http.Header

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

func (*AcceleratorTypesGetCall) IfNoneMatch Uses

func (c *AcceleratorTypesGetCall) IfNoneMatch(entityTag string) *AcceleratorTypesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AcceleratorTypesListCall Uses

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

func (*AcceleratorTypesListCall) Context Uses

func (c *AcceleratorTypesListCall) Context(ctx context.Context) *AcceleratorTypesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AcceleratorTypesListCall) Do Uses

func (c *AcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeList, error)

Do executes the "compute.acceleratorTypes.list" call. Exactly one of *AcceleratorTypeList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AcceleratorTypeList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AcceleratorTypesListCall) Fields Uses

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

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

func (*AcceleratorTypesListCall) Filter Uses

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

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true).

func (*AcceleratorTypesListCall) Header Uses

func (c *AcceleratorTypesListCall) Header() http.Header

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

func (*AcceleratorTypesListCall) IfNoneMatch Uses

func (c *AcceleratorTypesListCall) IfNoneMatch(entityTag string) *AcceleratorTypesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AcceleratorTypesListCall) MaxResults Uses

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

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)

func (*AcceleratorTypesListCall) OrderBy Uses

func (c *AcceleratorTypesListCall) OrderBy(orderBy string) *AcceleratorTypesListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*AcceleratorTypesListCall) PageToken Uses

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

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

func (*AcceleratorTypesListCall) Pages Uses

func (c *AcceleratorTypesListCall) Pages(ctx context.Context, f func(*AcceleratorTypeList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AcceleratorTypesScopedList Uses

type AcceleratorTypesScopedList struct {
    // AcceleratorTypes: [Output Only] A list of accelerator types contained
    // in this scope.
    AcceleratorTypes []*AcceleratorType `json:"acceleratorTypes,omitempty"`

    // Warning: [Output Only] An informational warning that appears when the
    // accelerator types list is empty.
    Warning *AcceleratorTypesScopedListWarning `json:"warning,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AcceleratorTypes") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AcceleratorTypes") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*AcceleratorTypesScopedList) MarshalJSON Uses

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

type AcceleratorTypesScopedListWarning Uses

type AcceleratorTypesScopedListWarning struct {
    // Code: [Output Only] A warning code, if applicable. For example,
    // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in
    // the response.
    //
    // Possible values:
    //   "CLEANUP_FAILED"
    //   "DEPRECATED_RESOURCE_USED"
    //   "DEPRECATED_TYPE_USED"
    //   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
    //   "EXPERIMENTAL_TYPE_USED"
    //   "EXTERNAL_API_WARNING"
    //   "FIELD_VALUE_OVERRIDEN"
    //   "INJECTED_KERNELS_DEPRECATED"
    //   "MISSING_TYPE_DEPENDENCY"
    //   "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_IN_USE_BY_OTHER_RESOURCE_WARNING"
    //   "RESOURCE_NOT_DELETED"
    //   "SCHEMA_VALIDATION_IGNORED"
    //   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
    //   "UNDECLARED_PROPERTIES"
    //   "UNREACHABLE"
    Code string `json:"code,omitempty"`

    // Data: [Output Only] Metadata about this warning in key: value format.
    // For example:
    // "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    Data []*AcceleratorTypesScopedListWarningData `json:"data,omitempty"`

    // Message: [Output Only] A human-readable description of the warning
    // code.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Code") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AcceleratorTypesScopedListWarning: [Output Only] An informational warning that appears when the accelerator types list is empty.

func (*AcceleratorTypesScopedListWarning) MarshalJSON Uses

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

type AcceleratorTypesScopedListWarningData Uses

type AcceleratorTypesScopedListWarningData struct {
    // Key: [Output Only] A key that provides more detail on the warning
    // being returned. For example, for warnings where there are no results
    // in a list request for a particular zone, this key might be scope and
    // the key value might be the zone name. Other examples might be a key
    // indicating a deprecated resource and a suggested replacement, or a
    // warning about invalid network settings (for example, if an instance
    // attempts to perform IP forwarding but is not enabled for IP
    // forwarding).
    Key string `json:"key,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Key") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AcceleratorTypesScopedListWarningData) MarshalJSON Uses

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

type AcceleratorTypesService Uses

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

func NewAcceleratorTypesService Uses

func NewAcceleratorTypesService(s *Service) *AcceleratorTypesService

func (*AcceleratorTypesService) AggregatedList Uses

func (r *AcceleratorTypesService) AggregatedList(project string) *AcceleratorTypesAggregatedListCall

AggregatedList: Retrieves an aggregated list of accelerator types.

func (*AcceleratorTypesService) Get Uses

func (r *AcceleratorTypesService) Get(project string, zone string, acceleratorType string) *AcceleratorTypesGetCall

Get: Returns the specified accelerator type.

func (*AcceleratorTypesService) List Uses

func (r *AcceleratorTypesService) List(project string, zone string) *AcceleratorTypesListCall

List: Retrieves a list of accelerator types available to the specified project.

type AccessConfig Uses

type AccessConfig struct {
    // Kind: [Output Only] Type of the resource. Always compute#accessConfig
    // for access configs.
    Kind string `json:"kind,omitempty"`

    // Name: The name of this access configuration. The default and
    // recommended name is External NAT, but you can use any arbitrary
    // string, such as My external IP or Network Access.
    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"`

    // NetworkTier: This signifies the networking tier used for configuring
    // this access configuration and can only take the following values:
    // PREMIUM, STANDARD.
    //
    // If an AccessConfig is specified without a valid external IP address,
    // an ephemeral IP will be created with this networkTier.
    //
    // If an AccessConfig with a valid external IP address is specified, it
    // must match that of the networkTier associated with the Address
    // resource owning that IP.
    //
    // Possible values:
    //   "PREMIUM"
    //   "STANDARD"
    NetworkTier string `json:"networkTier,omitempty"`

    // PublicPtrDomainName: The DNS domain name for the public PTR record.
    // You can set this field only if the `setPublicPtr` field is enabled.
    PublicPtrDomainName string `json:"publicPtrDomainName,omitempty"`

    // SetPublicPtr: Specifies whether a public DNS 'PTR' record should be
    // created to map the external IP address of the instance to a DNS
    // domain name.
    SetPublicPtr bool `json:"setPublicPtr,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"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AccessConfig: An access configuration attached to an instance's network interface. Only one access config per instance is supported.

func (*AccessConfig) MarshalJSON Uses

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

type Address Uses

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

    // AddressType: The type of address to reserve, either INTERNAL or
    // EXTERNAL. If unspecified, defaults to EXTERNAL.
    //
    // Possible values:
    //   "EXTERNAL"
    //   "INTERNAL"
    //   "UNSPECIFIED_TYPE"
    AddressType string `json:"addressType,omitempty"`

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

    // Description: An optional description of this resource. Provide this
    // field when you create the resource.
    Description string `json:"description,omitempty"`

    // Id: [Output Only] The unique identifier for the resource. This
    // identifier is defined by the server.
    Id  uint64 `json:"id,omitempty,string"`

    // IpVersion: The IP version that will be used by this address. Valid
    // options are IPV4 or IPV6. This can only be specified for a global
    // address.
    //
    // Possible values:
    //   "IPV4"
    //   "IPV6"
    //   "UNSPECIFIED_VERSION"
    IpVersion string `json:"ipVersion,omitempty"`

    // 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])?`. The first
    // character must be a lowercase letter, and all following characters
    // (except for the last character) must be a dash, lowercase letter, or
    // digit. The last character must be a lowercase letter or digit.
    Name string `json:"name,omitempty"`

    // Network: The URL of the network in which to reserve the address. This
    // field can only be used with INTERNAL type with the VPC_PEERING
    // purpose.
    Network string `json:"network,omitempty"`

    // NetworkTier: This signifies the networking tier used for configuring
    // this address and can only take the following values: PREMIUM or
    // STANDARD. Global forwarding rules can only be Premium Tier. Regional
    // forwarding rules can be either Premium or Standard Tier. Standard
    // Tier addresses applied to regional forwarding rules can be used with
    // any external load balancer. Regional forwarding rules in Premium Tier
    // can only be used with a network load balancer.
    //
    // If this field is not specified, it is assumed to be PREMIUM.
    //
    // Possible values:
    //   "PREMIUM"
    //   "STANDARD"
    NetworkTier string `json:"networkTier,omitempty"`

    // PrefixLength: The prefix length if the resource reprensents an IP
    // range.
    PrefixLength int64 `json:"prefixLength,omitempty"`

    // Purpose: The purpose of this resource, which can be one of the
    // following values:
    // - `GCE_ENDPOINT` for addresses that are used by VM instances, alias
    // IP ranges, internal load balancers, and similar resources.
    // - `DNS_RESOLVER` for a DNS resolver address in a subnetwork
    // - `VPC_PEERING` for addresses that are reserved for VPC peer
    // networks.
    // - `NAT_AUTO` for addresses that are external IP addresses
    // automatically reserved for Cloud NAT.
    //
    // Possible values:
    //   "DNS_RESOLVER"
    //   "GCE_ENDPOINT"
    //   "NAT_AUTO"
    //   "VPC_PEERING"
    Purpose string `json:"purpose,omitempty"`

    // Region: [Output Only] The URL of the region where the regional
    // address resides. This field is not applicable to global addresses.
    // You must specify this field as part of the HTTP request URL.
    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 one of
    // RESERVING, RESERVED, or IN_USE. An address that is RESERVING is
    // currently in the process of being reserved. A RESERVED address 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"
    //   "RESERVING"
    Status string `json:"status,omitempty"`

    // Subnetwork: The URL of the subnetwork in which to reserve the
    // address. If an IP address is specified, it must be within the
    // subnetwork's IP range. This field can only be used with INTERNAL type
    // with a GCE_ENDPOINT or DNS_RESOLVER purpose.
    Subnetwork string `json:"subnetwork,omitempty"`

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Address") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Address") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Address: Represents an IP Address resource.

An address resource represents a regional internal IP address. Regional internal IP addresses are RFC 1918 addresses that come from either a primary or secondary IP range of a subnet in a VPC network. Regional external IP addresses can be assigned to GCP VM instances, Cloud VPN gateways, regional external forwarding rules for network load balancers (in either Standard or Premium Tier), and regional external forwarding rules for HTTP(S), SSL Proxy, and TCP Proxy load balancers in Standard Tier. For more information, read IP addresses.

A globalAddresses resource represent a global external IP address. Global external IP addresses are IPv4 or IPv6 addresses. They can only be assigned to global forwarding rules for HTTP(S), SSL Proxy, or TCP Proxy load balancers in Premium Tier. For more information, read Global resources. (== resource_for beta.addresses ==) (== resource_for v1.addresses ==) (== resource_for beta.globalAddresses ==) (== resource_for v1.globalAddresses ==)

func (*Address) MarshalJSON Uses

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

type AddressAggregatedList Uses

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

    // Items: A list of AddressesScopedList resources.
    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] This token allows you to get the next
    // page of results for list requests. If the number of results is larger
    // than maxResults, use the nextPageToken as a value for the query
    // parameter pageToken in the next list request. Subsequent list
    // requests will have their own nextPageToken to continue paging through
    // the results.
    NextPageToken string `json:"nextPageToken,omitempty"`

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

    // Warning: [Output Only] Informational warning message.
    Warning *AddressAggregatedListWarning `json:"warning,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Id") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Id") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AddressAggregatedList) MarshalJSON Uses

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

type AddressAggregatedListWarning Uses

type AddressAggregatedListWarning struct {
    // Code: [Output Only] A warning code, if applicable. For example,
    // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in
    // the response.
    //
    // Possible values:
    //   "CLEANUP_FAILED"
    //   "DEPRECATED_RESOURCE_USED"
    //   "DEPRECATED_TYPE_USED"
    //   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
    //   "EXPERIMENTAL_TYPE_USED"
    //   "EXTERNAL_API_WARNING"
    //   "FIELD_VALUE_OVERRIDEN"
    //   "INJECTED_KERNELS_DEPRECATED"
    //   "MISSING_TYPE_DEPENDENCY"
    //   "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_IN_USE_BY_OTHER_RESOURCE_WARNING"
    //   "RESOURCE_NOT_DELETED"
    //   "SCHEMA_VALIDATION_IGNORED"
    //   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
    //   "UNDECLARED_PROPERTIES"
    //   "UNREACHABLE"
    Code string `json:"code,omitempty"`

    // Data: [Output Only] Metadata about this warning in key: value format.
    // For example:
    // "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    Data []*AddressAggregatedListWarningData `json:"data,omitempty"`

    // Message: [Output Only] A human-readable description of the warning
    // code.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Code") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AddressAggregatedListWarning: [Output Only] Informational warning message.

func (*AddressAggregatedListWarning) MarshalJSON Uses

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

type AddressAggregatedListWarningData Uses

type AddressAggregatedListWarningData struct {
    // Key: [Output Only] A key that provides more detail on the warning
    // being returned. For example, for warnings where there are no results
    // in a list request for a particular zone, this key might be scope and
    // the key value might be the zone name. Other examples might be a key
    // indicating a deprecated resource and a suggested replacement, or a
    // warning about invalid network settings (for example, if an instance
    // attempts to perform IP forwarding but is not enabled for IP
    // forwarding).
    Key string `json:"key,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Key") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AddressAggregatedListWarningData) MarshalJSON Uses

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

type AddressList Uses

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

    // Items: 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] This token allows you to get the next
    // page of results for list requests. If the number of results is larger
    // than maxResults, use the nextPageToken as a value for the query
    // parameter pageToken in the next list request. Subsequent list
    // requests will have their own nextPageToken to continue paging through
    // the results.
    NextPageToken string `json:"nextPageToken,omitempty"`

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

    // Warning: [Output Only] Informational warning message.
    Warning *AddressListWarning `json:"warning,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Id") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Id") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AddressList: Contains a list of addresses.

func (*AddressList) MarshalJSON Uses

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

type AddressListWarning Uses

type AddressListWarning struct {
    // Code: [Output Only] A warning code, if applicable. For example,
    // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in
    // the response.
    //
    // Possible values:
    //   "CLEANUP_FAILED"
    //   "DEPRECATED_RESOURCE_USED"
    //   "DEPRECATED_TYPE_USED"
    //   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
    //   "EXPERIMENTAL_TYPE_USED"
    //   "EXTERNAL_API_WARNING"
    //   "FIELD_VALUE_OVERRIDEN"
    //   "INJECTED_KERNELS_DEPRECATED"
    //   "MISSING_TYPE_DEPENDENCY"
    //   "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_IN_USE_BY_OTHER_RESOURCE_WARNING"
    //   "RESOURCE_NOT_DELETED"
    //   "SCHEMA_VALIDATION_IGNORED"
    //   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
    //   "UNDECLARED_PROPERTIES"
    //   "UNREACHABLE"
    Code string `json:"code,omitempty"`

    // Data: [Output Only] Metadata about this warning in key: value format.
    // For example:
    // "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    Data []*AddressListWarningData `json:"data,omitempty"`

    // Message: [Output Only] A human-readable description of the warning
    // code.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Code") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AddressListWarning: [Output Only] Informational warning message.

func (*AddressListWarning) MarshalJSON Uses

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

type AddressListWarningData Uses

type AddressListWarningData struct {
    // Key: [Output Only] A key that provides more detail on the warning
    // being returned. For example, for warnings where there are no results
    // in a list request for a particular zone, this key might be scope and
    // the key value might be the zone name. Other examples might be a key
    // indicating a deprecated resource and a suggested replacement, or a
    // warning about invalid network settings (for example, if an instance
    // attempts to perform IP forwarding but is not enabled for IP
    // forwarding).
    Key string `json:"key,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Key") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AddressListWarningData) MarshalJSON Uses

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

type AddressesAggregatedListCall Uses

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

func (*AddressesAggregatedListCall) Context Uses

func (c *AddressesAggregatedListCall) Context(ctx context.Context) *AddressesAggregatedListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AddressesAggregatedListCall) Do Uses

func (c *AddressesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AddressAggregatedList, error)

Do executes the "compute.addresses.aggregatedList" call. Exactly one of *AddressAggregatedList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AddressAggregatedList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AddressesAggregatedListCall) Fields Uses

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

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

func (*AddressesAggregatedListCall) Filter Uses

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

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true).

func (*AddressesAggregatedListCall) Header Uses

func (c *AddressesAggregatedListCall) Header() http.Header

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

func (*AddressesAggregatedListCall) IfNoneMatch Uses

func (c *AddressesAggregatedListCall) IfNoneMatch(entityTag string) *AddressesAggregatedListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AddressesAggregatedListCall) MaxResults Uses

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

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)

func (*AddressesAggregatedListCall) OrderBy Uses

func (c *AddressesAggregatedListCall) OrderBy(orderBy string) *AddressesAggregatedListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*AddressesAggregatedListCall) PageToken Uses

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

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

func (*AddressesAggregatedListCall) Pages Uses

func (c *AddressesAggregatedListCall) Pages(ctx context.Context, f func(*AddressAggregatedList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AddressesDeleteCall Uses

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

func (*AddressesDeleteCall) Context Uses

func (c *AddressesDeleteCall) Context(ctx context.Context) *AddressesDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AddressesDeleteCall) Do Uses

func (c *AddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "compute.addresses.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AddressesDeleteCall) Fields Uses

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

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

func (*AddressesDeleteCall) Header Uses

func (c *AddressesDeleteCall) Header() http.Header

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

func (*AddressesDeleteCall) RequestId Uses

func (c *AddressesDeleteCall) RequestId(requestId string) *AddressesDeleteCall

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type AddressesGetCall Uses

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

func (*AddressesGetCall) Context Uses

func (c *AddressesGetCall) Context(ctx context.Context) *AddressesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AddressesGetCall) Do Uses

func (c *AddressesGetCall) Do(opts ...googleapi.CallOption) (*Address, error)

Do executes the "compute.addresses.get" call. Exactly one of *Address or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Address.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AddressesGetCall) Fields Uses

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

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

func (*AddressesGetCall) Header Uses

func (c *AddressesGetCall) Header() http.Header

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

func (*AddressesGetCall) IfNoneMatch Uses

func (c *AddressesGetCall) IfNoneMatch(entityTag string) *AddressesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AddressesInsertCall Uses

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

func (*AddressesInsertCall) Context Uses

func (c *AddressesInsertCall) Context(ctx context.Context) *AddressesInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AddressesInsertCall) Do Uses

func (c *AddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error)

Do executes the "compute.addresses.insert" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AddressesInsertCall) Fields Uses

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

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

func (*AddressesInsertCall) Header Uses

func (c *AddressesInsertCall) Header() http.Header

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

func (*AddressesInsertCall) RequestId Uses

func (c *AddressesInsertCall) RequestId(requestId string) *AddressesInsertCall

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type AddressesListCall Uses

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

func (*AddressesListCall) Context Uses

func (c *AddressesListCall) Context(ctx context.Context) *AddressesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AddressesListCall) Do Uses

func (c *AddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, error)

Do executes the "compute.addresses.list" call. Exactly one of *AddressList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AddressList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AddressesListCall) Fields Uses

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

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

func (*AddressesListCall) Filter Uses

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

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true).

func (*AddressesListCall) Header Uses

func (c *AddressesListCall) Header() http.Header

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

func (*AddressesListCall) IfNoneMatch Uses

func (c *AddressesListCall) IfNoneMatch(entityTag string) *AddressesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AddressesListCall) MaxResults Uses

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

MaxResults sets the optional parameter "maxResults": The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)

func (*AddressesListCall) OrderBy Uses

func (c *AddressesListCall) OrderBy(orderBy string) *AddressesListCall

OrderBy sets the optional parameter "orderBy": Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.

You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.

Currently, only sorting by name or creationTimestamp desc is supported.

func (*AddressesListCall) PageToken Uses

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

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

func (*AddressesListCall) Pages Uses

func (c *AddressesListCall) Pages(ctx context.Context, f func(*AddressList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AddressesScopedList Uses

type AddressesScopedList struct {
    // Addresses: [Output Only] A 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"`

    // ForceSendFields is a list of field names (e.g. "Addresses") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Addresses") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AddressesScopedList) MarshalJSON Uses

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

type AddressesScopedListWarning Uses

type AddressesScopedListWarning struct {
    // Code: [Output Only] A warning code, if applicable. For example,
    // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in
    // the response.
    //
    // Possible values:
    //   "CLEANUP_FAILED"
    //   "DEPRECATED_RESOURCE_USED"
    //   "DEPRECATED_TYPE_USED"
    //   "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
    //   "EXPERIMENTAL_TYPE_USED"
    //   "EXTERNAL_API_WARNING"
    //   "FIELD_VALUE_OVERRIDEN"
    //   "INJECTED_KERNELS_DEPRECATED"
    //   "MISSING_TYPE_DEPENDENCY"
    //   "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_IN_USE_BY_OTHER_RESOURCE_WARNING"
    //   "RESOURCE_NOT_DELETED"
    //   "SCHEMA_VALIDATION_IGNORED"
    //   "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
    //   "UNDECLARED_PROPERTIES"
    //   "UNREACHABLE"
    Code string `json:"code,omitempty"`

    // Data: [Output Only] Metadata about this warning in key: value format.
    // For example:
    // "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    Data []*AddressesScopedListWarningData `json:"data,omitempty"`

    // Message: [Output Only] A human-readable description of the warning
    // code.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Code") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*AddressesScopedListWarning) MarshalJSON Uses

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

type AddressesScopedListWarningData Uses

type AddressesScopedListWarningData struct {
    // Key: [Output Only] A key that provides more detail on the warning
    // being returned. For example, for warnings where there are no results
    // in a list request for a particular zone, this key might be scope and
    // the key value might be the zone name. Other examples might be a key
    // indicating a deprecated resource and a suggested replacement, or a
    // warning about invalid network settings (for example, if an instance
    // attempts to perform IP forwarding but is not enabled for IP
    // forwarding).
    Key string `json:"key,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Key") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AddressesScopedListWarningData) MarshalJSON Uses

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

type AddressesService Uses

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

func NewAddressesService Uses

func NewAddressesService(s *Service) *AddressesService

func (*AddressesService) AggregatedList Uses

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

AggregatedList: Retrieves an aggregated list of addresses. For details, see https://cloud.google.com/compute/docs/reference/latest/addresses/aggregatedList

func (*AddressesService) Delete Uses

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 Uses

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 Uses

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

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

func (*AddressesService) List Uses

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

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

type AliasIpRange Uses

type AliasIpRange struct {
    // IpCidrRange: The IP alias ranges to allocate for this interface. This
    // IP CIDR range must belong to the specified subnetwork and cannot
    // contain IP addresses reserved by system or used by other network
    // interfaces. This range may be a single IP address (such as 10.2.3.4),
    // a netmask (such as /24) or a CIDR-formatted string (such as
    // 10.1.2.0/24).
    IpCidrRange string `json:"ipCidrRange,omitempty"`

    // SubnetworkRangeName: The name of a subnetwork secondary IP range from
    // which to allocate an IP alias range. If not specified, the primary
    // range of the subnetwork is used.
    SubnetworkRangeName string `json:"subnetworkRangeName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "IpCidrRange") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "IpCidrRange") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AliasIpRange: An alias IP range attached to an instance's network interface.

func (*AliasIpRange) MarshalJSON Uses

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

type AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk Uses

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

    // Interface: Specifies the disk interface to use for attaching this
    // disk, which is either SCSI or NVME. The default is SCSI. For
    // performance characteristics of SCSI over NVMe, see Local SSD
    // performance.
    //
    // Possible values:
    //   "NVME"
    //   "SCSI"
    Interface string `json:"interface,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DiskSizeGb") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk) MarshalJSON Uses

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

type AllocationSpecificSKUAllocationReservedInstanceProperties Uses

type AllocationSpecificSKUAllocationReservedInstanceProperties struct {
    // GuestAccelerators: Specifies accelerator type and count.
    GuestAccelerators []*AcceleratorConfig `json:"guestAccelerators,omitempty"`

    // LocalSsds: Specifies amount of local ssd to reserve with each
    // instance. The type of disk is local-ssd.
    LocalSsds []*AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk `json:"localSsds,omitempty"`

    // MachineType: Specifies type of machine (name only) which has fixed
    // number of vCPUs and fixed amount of memory. This also includes
    // specifying custom machine type following
    // custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
    MachineType string `json:"machineType,omitempty"`

    // MinCpuPlatform: Minimum cpu platform the reservation.
    MinCpuPlatform string `json:"minCpuPlatform,omitempty"`

    // ForceSendFields is a list of field names (e.g. "GuestAccelerators")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "GuestAccelerators") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AllocationSpecificSKUAllocationReservedInstanceProperties: Properties of the SKU instances being reserved.

func (*AllocationSpecificSKUAllocationReservedInstanceProperties) MarshalJSON Uses

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

type AllocationSpecificSKUReservation Uses

type AllocationSpecificSKUReservation struct {
    // Count: Specifies the number of resources that are allocated.
    Count int64 `json:"count,omitempty,string"`

    // InUseCount: [OutputOnly] Indicates how many instances are in use.
    InUseCount int64 `json:"inUseCount,omitempty,string"`

    // InstanceProperties: The instance properties for the reservation.
    InstanceProperties *AllocationSpecificSKUAllocationReservedInstanceProperties `json:"instanceProperties,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Count") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Count") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AllocationSpecificSKUReservation: This reservation type allows to pre allocate specific instance configuration.

func (*AllocationSpecificSKUReservation) MarshalJSON Uses

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

type AttachedDisk Uses

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/disk/by-id/google-* 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-disk-x, where x is a number
    // assigned by Google Compute Engine. This field is only applicable for
    // persistent disks.
    DeviceName string `json:"deviceName,omitempty"`

    // DiskEncryptionKey: Encrypts or decrypts a disk using a
    // customer-supplied encryption key.
    //
    // If you are creating a new disk, this field encrypts the new disk
    // using an encryption key that you provide. If you are attaching an
    // existing disk that is already encrypted, this field decrypts the disk
    // using the customer-supplied encryption key.
    //
    // If you encrypt a disk using a customer-supplied key, you must provide
    // the same key again when you attempt to use this resource at a later
    // time. For example, you must provide the key when you create a
    // snapshot or an image from the disk or when you attach the disk to a
    // virtual machine instance.
    //
    // If you do not provide an encryption key, then the disk will be
    // encrypted using an automatically generated key and you do not need to
    // provide a key to use the disk later.
    //
    // Instance templates do not store customer-supplied encryption keys, so
    // you cannot use your own keys to encrypt disks in a managed instance
    // group.
    DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"`

    // GuestOsFeatures: A list of features to enable on the guest operating
    // system. Applicable only for bootable images. Read  Enabling guest
    // operating system features to see a list of available options.
    GuestOsFeatures []*GuestOsFeature `json:"guestOsFeatures,omitempty"`

    // Index: [Output Only] A zero-based index to this disk, where 0 is
    // reserved for the boot disk. If you have many disks attached to an
    // instance, each disk would have a unique index number.
    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"`

    // Interface: Specifies the disk interface to use for attaching this
    // disk, which is either SCSI or NVME. The default is SCSI. Persistent
    // disks must always use SCSI and the request will fail if you attempt
    // to attach a persistent disk in any other format than SCSI. Local SSDs
    // can use either NVME or SCSI. For performance characteristics of SCSI
    // over NVMe, see Local SSD performance. TODO(b/131765817): Update
    // documentation when NVME is supported.
    //
    // 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. When creating a new instance, one of
    // initializeParams.sourceImage or initializeParams.sourceSnapshot or
    // disks.source is required except for local SSD.
    //
    // If desired, you can also attach existing non-root persistent disks
    // using this property. This field is only applicable for persistent
    // disks.
    //
    // Note that for InstanceTemplate, specify the disk name, not the URL
    // for the disk.
    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"`

    // ForceSendFields is a list of field names (e.g. "AutoDelete") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AutoDelete") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AttachedDisk: An instance-attached disk resource.

func (*AttachedDisk) MarshalJSON Uses

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

type AttachedDiskInitializeParams Uses

type AttachedDiskInitializeParams struct {
    // Description: An optional description. Provide this property when
    // creating the disk.
    Description string `json:"description,omitempty"`

    // DiskName: Specifies the disk name. If not specified, the default is
    // to use the name of the instance. If the disk with the instance name
    // exists already in the given zone/region, a new name will be
    // automatically generated.
    DiskName string `json:"diskName,omitempty"`

    // DiskSizeGb: Specifies the size of the disk in base-2 GB. If not
    // specified, the d