Update dependency

This commit is contained in:
Yang Guo 2018-06-04 14:54:06 -07:00
parent 5014881054
commit a7474e8059
22 changed files with 58724 additions and 10623 deletions

32
Godeps/Godeps.json generated
View File

@ -1709,34 +1709,42 @@
}, },
{ {
"ImportPath": "github.com/google/certificate-transparency-go", "ImportPath": "github.com/google/certificate-transparency-go",
"Comment": "v1.0.10",
"Rev": "1bec4527572c443752ad4f2830bef88be0533236" "Rev": "1bec4527572c443752ad4f2830bef88be0533236"
}, },
{ {
"ImportPath": "github.com/google/certificate-transparency-go/asn1", "ImportPath": "github.com/google/certificate-transparency-go/asn1",
"Comment": "v1.0.10",
"Rev": "1bec4527572c443752ad4f2830bef88be0533236" "Rev": "1bec4527572c443752ad4f2830bef88be0533236"
}, },
{ {
"ImportPath": "github.com/google/certificate-transparency-go/client", "ImportPath": "github.com/google/certificate-transparency-go/client",
"Comment": "v1.0.10",
"Rev": "1bec4527572c443752ad4f2830bef88be0533236" "Rev": "1bec4527572c443752ad4f2830bef88be0533236"
}, },
{ {
"ImportPath": "github.com/google/certificate-transparency-go/client/configpb", "ImportPath": "github.com/google/certificate-transparency-go/client/configpb",
"Comment": "v1.0.10",
"Rev": "1bec4527572c443752ad4f2830bef88be0533236" "Rev": "1bec4527572c443752ad4f2830bef88be0533236"
}, },
{ {
"ImportPath": "github.com/google/certificate-transparency-go/jsonclient", "ImportPath": "github.com/google/certificate-transparency-go/jsonclient",
"Comment": "v1.0.10",
"Rev": "1bec4527572c443752ad4f2830bef88be0533236" "Rev": "1bec4527572c443752ad4f2830bef88be0533236"
}, },
{ {
"ImportPath": "github.com/google/certificate-transparency-go/tls", "ImportPath": "github.com/google/certificate-transparency-go/tls",
"Comment": "v1.0.10",
"Rev": "1bec4527572c443752ad4f2830bef88be0533236" "Rev": "1bec4527572c443752ad4f2830bef88be0533236"
}, },
{ {
"ImportPath": "github.com/google/certificate-transparency-go/x509", "ImportPath": "github.com/google/certificate-transparency-go/x509",
"Comment": "v1.0.10",
"Rev": "1bec4527572c443752ad4f2830bef88be0533236" "Rev": "1bec4527572c443752ad4f2830bef88be0533236"
}, },
{ {
"ImportPath": "github.com/google/certificate-transparency-go/x509/pkix", "ImportPath": "github.com/google/certificate-transparency-go/x509/pkix",
"Comment": "v1.0.10",
"Rev": "1bec4527572c443752ad4f2830bef88be0533236" "Rev": "1bec4527572c443752ad4f2830bef88be0533236"
}, },
{ {
@ -3084,47 +3092,47 @@
}, },
{ {
"ImportPath": "google.golang.org/api/compute/v0.alpha", "ImportPath": "google.golang.org/api/compute/v0.alpha",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/api/compute/v0.beta", "ImportPath": "google.golang.org/api/compute/v0.beta",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/api/compute/v1", "ImportPath": "google.golang.org/api/compute/v1",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/api/container/v1", "ImportPath": "google.golang.org/api/container/v1",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/api/gensupport", "ImportPath": "google.golang.org/api/gensupport",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/api/googleapi", "ImportPath": "google.golang.org/api/googleapi",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/api/googleapi/internal/uritemplates", "ImportPath": "google.golang.org/api/googleapi/internal/uritemplates",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/api/logging/v2beta1", "ImportPath": "google.golang.org/api/logging/v2beta1",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/api/monitoring/v3", "ImportPath": "google.golang.org/api/monitoring/v3",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/api/pubsub/v1", "ImportPath": "google.golang.org/api/pubsub/v1",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/api/tpu/v1alpha1", "ImportPath": "google.golang.org/api/tpu/v1",
"Rev": "7f657476956314fee258816aaf81c0ff65cf8bee" "Rev": "8e296ef260056b6323d10727db40512dac6d92d5"
}, },
{ {
"ImportPath": "google.golang.org/genproto/googleapis/api/annotations", "ImportPath": "google.golang.org/genproto/googleapis/api/annotations",

2
Godeps/LICENSES generated
View File

@ -93345,7 +93345,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
================================================================================ ================================================================================
= vendor/google.golang.org/api/tpu/v1alpha1 licensed under: = = vendor/google.golang.org/api/tpu/v1 licensed under: =
Copyright (c) 2011 Google Inc. All rights reserved. Copyright (c) 2011 Google Inc. All rights reserved.

View File

@ -70,7 +70,7 @@ go_library(
"//vendor/google.golang.org/api/compute/v1:go_default_library", "//vendor/google.golang.org/api/compute/v1:go_default_library",
"//vendor/google.golang.org/api/container/v1:go_default_library", "//vendor/google.golang.org/api/container/v1:go_default_library",
"//vendor/google.golang.org/api/googleapi:go_default_library", "//vendor/google.golang.org/api/googleapi:go_default_library",
"//vendor/google.golang.org/api/tpu/v1alpha1:go_default_library", "//vendor/google.golang.org/api/tpu/v1:go_default_library",
"//vendor/gopkg.in/gcfg.v1:go_default_library", "//vendor/gopkg.in/gcfg.v1:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library", "//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library", "//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",

2
vendor/BUILD vendored
View File

@ -402,7 +402,7 @@ filegroup(
"//vendor/google.golang.org/api/logging/v2beta1:all-srcs", "//vendor/google.golang.org/api/logging/v2beta1:all-srcs",
"//vendor/google.golang.org/api/monitoring/v3:all-srcs", "//vendor/google.golang.org/api/monitoring/v3:all-srcs",
"//vendor/google.golang.org/api/pubsub/v1:all-srcs", "//vendor/google.golang.org/api/pubsub/v1:all-srcs",
"//vendor/google.golang.org/api/tpu/v1alpha1:all-srcs", "//vendor/google.golang.org/api/tpu/v1:all-srcs",
"//vendor/google.golang.org/genproto/googleapis/api/annotations:all-srcs", "//vendor/google.golang.org/genproto/googleapis/api/annotations:all-srcs",
"//vendor/google.golang.org/genproto/googleapis/rpc/status:all-srcs", "//vendor/google.golang.org/genproto/googleapis/rpc/status:all-srcs",
"//vendor/google.golang.org/grpc:all-srcs", "//vendor/google.golang.org/grpc:all-srcs",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,7 @@ import (
"net/http" "net/http"
"net/textproto" "net/textproto"
"strings" "strings"
"sync"
"google.golang.org/api/googleapi" "google.golang.org/api/googleapi"
) )
@ -105,12 +106,13 @@ type typeReader struct {
typ string typ string
} }
// multipartReader combines the contents of multiple readers to creat a multipart/related HTTP body. // multipartReader combines the contents of multiple readers to create a multipart/related HTTP body.
// Close must be called if reads from the multipartReader are abandoned before reaching EOF. // Close must be called if reads from the multipartReader are abandoned before reaching EOF.
type multipartReader struct { type multipartReader struct {
pr *io.PipeReader pr *io.PipeReader
pipeOpen bool
ctype string ctype string
mu sync.Mutex
pipeOpen bool
} }
func newMultipartReader(parts []typeReader) *multipartReader { func newMultipartReader(parts []typeReader) *multipartReader {
@ -146,10 +148,13 @@ func (mp *multipartReader) Read(data []byte) (n int, err error) {
} }
func (mp *multipartReader) Close() error { func (mp *multipartReader) Close() error {
mp.mu.Lock()
if !mp.pipeOpen { if !mp.pipeOpen {
mp.mu.Unlock()
return nil return nil
} }
mp.pipeOpen = false mp.pipeOpen = false
mp.mu.Unlock()
return mp.pr.Close() return mp.pr.Close()
} }

View File

@ -224,7 +224,7 @@
] ]
}, },
"write": { "write": {
"description": "Log entry resourcesWrites log entries to Stackdriver Logging. This API method is the only way to send log entries to Stackdriver Logging. This method is used, directly or indirectly, by the Stackdriver Logging agent (fluentd) and all logging libraries configured to use Stackdriver Logging.", "description": "Writes log entries to Stackdriver Logging. This API method is the only way to send log entries to Stackdriver Logging. This method is used, directly or indirectly, by the Stackdriver Logging agent (fluentd) and all logging libraries configured to use Stackdriver Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)",
"flatPath": "v2beta1/entries:write", "flatPath": "v2beta1/entries:write",
"httpMethod": "POST", "httpMethod": "POST",
"id": "logging.entries.write", "id": "logging.entries.write",
@ -755,7 +755,7 @@
} }
} }
}, },
"revision": "20180213", "revision": "20180424",
"rootUrl": "https://logging.googleapis.com/", "rootUrl": "https://logging.googleapis.com/",
"schemas": { "schemas": {
"BucketOptions": { "BucketOptions": {
@ -1102,6 +1102,10 @@
"description": "Required. The resource name of the log to which this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\nA project number may optionally be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be URL-encoded within log_name. Example: \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". [LOG_ID] must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period.For backward compatibility, if log_name begins with a forward-slash, such as /projects/..., then the log entry is ingested as usual but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leading slash will never return any results.", "description": "Required. The resource name of the log to which this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\nA project number may optionally be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be URL-encoded within log_name. Example: \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". [LOG_ID] must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period.For backward compatibility, if log_name begins with a forward-slash, such as /projects/..., then the log entry is ingested as usual but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leading slash will never return any results.",
"type": "string" "type": "string"
}, },
"metadata": {
"$ref": "MonitoredResourceMetadata",
"description": "Output only. Additional metadata about the monitored resource. Only k8s_container, k8s_pod, and k8s_node MonitoredResources have this field populated."
},
"operation": { "operation": {
"$ref": "LogEntryOperation", "$ref": "LogEntryOperation",
"description": "Optional. Information about an operation associated with the log entry, if applicable." "description": "Optional. Information about an operation associated with the log entry, if applicable."
@ -1121,7 +1125,7 @@
}, },
"resource": { "resource": {
"$ref": "MonitoredResource", "$ref": "MonitoredResource",
"description": "Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error." "description": "Required. The primary monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error."
}, },
"severity": { "severity": {
"description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT.", "description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT.",
@ -1162,7 +1166,7 @@
"type": "string" "type": "string"
}, },
"timestamp": { "timestamp": {
"description": "Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time.Incoming log entries should have timestamps that are no more than the logs retention period in the past, and no more than 24 hours in the future. Log entries outside those time boundaries will not be available when calling entries.list, but those log entries can still be exported with LogSinks.", "description": "Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time. Timestamps have nanosecond accuracy, but trailing zeros in the fractional seconds might be omitted when the timestamp is displayed.Incoming log entries should have timestamps that are no more than the logs retention period in the past, and no more than 24 hours in the future. Log entries outside those time boundaries will not be available when calling entries.list, but those log entries can still be exported with LogSinks.",
"format": "google-datetime", "format": "google-datetime",
"type": "string" "type": "string"
}, },
@ -1483,6 +1487,28 @@
}, },
"type": "object" "type": "object"
}, },
"MonitoredResourceMetadata": {
"description": "Auxiliary metadata for a MonitoredResource object. MonitoredResource objects contain the minimum set of information to uniquely identify a monitored resource instance. There is some other useful auxiliary metadata. Google Stackdriver Monitoring \u0026 Logging uses an ingestion pipeline to extract metadata for cloud resources of all types , and stores the metadata in this message.",
"id": "MonitoredResourceMetadata",
"properties": {
"systemLabels": {
"additionalProperties": {
"description": "Properties of the object.",
"type": "any"
},
"description": "Output only. Values for predefined system metadata labels. System labels are a kind of metadata extracted by Google Stackdriver. Stackdriver determines what system labels are useful and how to obtain their values. Some examples: \"machine_image\", \"vpc\", \"subnet_id\", \"security_group\", \"name\", etc. System label values can be only strings, Boolean values, or a list of strings. For example:\n{ \"name\": \"my-test-instance\",\n \"security_group\": [\"a\", \"b\", \"c\"],\n \"spot_instance\": false }\n",
"type": "object"
},
"userLabels": {
"additionalProperties": {
"type": "string"
},
"description": "Output only. A map of user-defined metadata labels.",
"type": "object"
}
},
"type": "object"
},
"RequestLog": { "RequestLog": {
"description": "Complete log information about a single HTTP request to an App Engine application.", "description": "Complete log information about a single HTTP request to an App Engine application.",
"id": "RequestLog", "id": "RequestLog",

View File

@ -865,6 +865,11 @@ type LogEntry struct {
// never return any results. // never return any results.
LogName string `json:"logName,omitempty"` LogName string `json:"logName,omitempty"`
// Metadata: Output only. Additional metadata about the monitored
// resource. Only k8s_container, k8s_pod, and k8s_node
// MonitoredResources have this field populated.
Metadata *MonitoredResourceMetadata `json:"metadata,omitempty"`
// Operation: Optional. Information about an operation associated with // Operation: Optional. Information about an operation associated with
// the log entry, if applicable. // the log entry, if applicable.
Operation *LogEntryOperation `json:"operation,omitempty"` Operation *LogEntryOperation `json:"operation,omitempty"`
@ -878,10 +883,10 @@ type LogEntry struct {
// Stackdriver Logging. // Stackdriver Logging.
ReceiveTimestamp string `json:"receiveTimestamp,omitempty"` ReceiveTimestamp string `json:"receiveTimestamp,omitempty"`
// Resource: Required. The monitored resource associated with this log // Resource: Required. The primary monitored resource associated with
// entry. Example: a log entry that reports a database error would be // this log entry. Example: a log entry that reports a database error
// associated with the monitored resource designating the particular // would be associated with the monitored resource designating the
// database that reported the error. // particular database that reported the error.
Resource *MonitoredResource `json:"resource,omitempty"` Resource *MonitoredResource `json:"resource,omitempty"`
// Severity: Optional. The severity of the log entry. The default value // Severity: Optional. The severity of the log entry. The default value
@ -919,12 +924,14 @@ type LogEntry struct {
// Timestamp: Optional. The time the event described by the log entry // Timestamp: Optional. The time the event described by the log entry
// occurred. This time is used to compute the log entry's age and to // occurred. This time is used to compute the log entry's age and to
// enforce the logs retention period. If this field is omitted in a new // enforce the logs retention period. If this field is omitted in a new
// log entry, then Stackdriver Logging assigns it the current // log entry, then Stackdriver Logging assigns it the current time.
// time.Incoming log entries should have timestamps that are no more // Timestamps have nanosecond accuracy, but trailing zeros in the
// than the logs retention period in the past, and no more than 24 hours // fractional seconds might be omitted when the timestamp is
// in the future. Log entries outside those time boundaries will not be // displayed.Incoming log entries should have timestamps that are no
// available when calling entries.list, but those log entries can still // more than the logs retention period in the past, and no more than 24
// be exported with LogSinks. // hours in the future. Log entries outside those time boundaries will
// not be available when calling entries.list, but those log entries can
// still be exported with LogSinks.
Timestamp string `json:"timestamp,omitempty"` Timestamp string `json:"timestamp,omitempty"`
// Trace: Optional. Resource name of the trace associated with the log // Trace: Optional. Resource name of the trace associated with the log
@ -1575,6 +1582,52 @@ func (s *MonitoredResourceDescriptor) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
} }
// MonitoredResourceMetadata: Auxiliary metadata for a MonitoredResource
// object. MonitoredResource objects contain the minimum set of
// information to uniquely identify a monitored resource instance. There
// is some other useful auxiliary metadata. Google Stackdriver
// Monitoring & Logging uses an ingestion pipeline to extract metadata
// for cloud resources of all types , and stores the metadata in this
// message.
type MonitoredResourceMetadata struct {
// SystemLabels: Output only. Values for predefined system metadata
// labels. System labels are a kind of metadata extracted by Google
// Stackdriver. Stackdriver determines what system labels are useful and
// how to obtain their values. Some examples: "machine_image", "vpc",
// "subnet_id", "security_group", "name", etc. System label values can
// be only strings, Boolean values, or a list of strings. For example:
// { "name": "my-test-instance",
// "security_group": ["a", "b", "c"],
// "spot_instance": false }
//
SystemLabels googleapi.RawMessage `json:"systemLabels,omitempty"`
// UserLabels: Output only. A map of user-defined metadata labels.
UserLabels map[string]string `json:"userLabels,omitempty"`
// ForceSendFields is a list of field names (e.g. "SystemLabels") 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. "SystemLabels") 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 (s *MonitoredResourceMetadata) MarshalJSON() ([]byte, error) {
type NoMethod MonitoredResourceMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RequestLog: Complete log information about a single HTTP request to // RequestLog: Complete log information about a single HTTP request to
// an App Engine application. // an App Engine application.
type RequestLog struct { type RequestLog struct {
@ -2385,11 +2438,13 @@ type EntriesWriteCall struct {
header_ http.Header header_ http.Header
} }
// Write: Log entry resourcesWrites log entries to Stackdriver Logging. // Write: Writes log entries to Stackdriver Logging. This API method is
// This API method is the only way to send log entries to Stackdriver // the only way to send log entries to Stackdriver Logging. This method
// Logging. This method is used, directly or indirectly, by the // is used, directly or indirectly, by the Stackdriver Logging agent
// Stackdriver Logging agent (fluentd) and all logging libraries // (fluentd) and all logging libraries configured to use Stackdriver
// configured to use Stackdriver Logging. // Logging. A single request may contain log entries for a maximum of
// 1000 different resources (projects, organizations, billing accounts
// or folders)
func (r *EntriesService) Write(writelogentriesrequest *WriteLogEntriesRequest) *EntriesWriteCall { func (r *EntriesService) Write(writelogentriesrequest *WriteLogEntriesRequest) *EntriesWriteCall {
c := &EntriesWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c := &EntriesWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.writelogentriesrequest = writelogentriesrequest c.writelogentriesrequest = writelogentriesrequest
@ -2479,7 +2534,7 @@ func (c *EntriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteLogEntriesRes
} }
return ret, nil return ret, nil
// { // {
// "description": "Log entry resourcesWrites log entries to Stackdriver Logging. This API method is the only way to send log entries to Stackdriver Logging. This method is used, directly or indirectly, by the Stackdriver Logging agent (fluentd) and all logging libraries configured to use Stackdriver Logging.", // "description": "Writes log entries to Stackdriver Logging. This API method is the only way to send log entries to Stackdriver Logging. This method is used, directly or indirectly, by the Stackdriver Logging agent (fluentd) and all logging libraries configured to use Stackdriver Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)",
// "flatPath": "v2beta1/entries:write", // "flatPath": "v2beta1/entries:write",
// "httpMethod": "POST", // "httpMethod": "POST",
// "id": "logging.entries.write", // "id": "logging.entries.write",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -122,7 +122,7 @@
"snapshots": { "snapshots": {
"methods": { "methods": {
"create": { "create": {
"description": "Creates a snapshot from the requested subscription.\nIf the snapshot already exists, returns `ALREADY_EXISTS`.\nIf the requested subscription doesn't exist, returns `NOT_FOUND`.\nIf the backlog in the subscription is too old -- and the resulting snapshot\nwould expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.\nSee also the `Snapshot.expire_time` field.\n\nIf the name is not provided in the request, the server will assign a random\nname for this snapshot on the same project as the subscription, conforming\nto the\n[resource name\nformat](https://cloud.google.com/pubsub/docs/overview#names). The generated\nname is populated in the returned Snapshot object. Note that for REST API\nrequests, you must specify a name in the request.", "description": "Creates a snapshot from the requested subscription.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nIf the snapshot already exists, returns `ALREADY_EXISTS`.\nIf the requested subscription doesn't exist, returns `NOT_FOUND`.\nIf the backlog in the subscription is too old -- and the resulting snapshot\nwould expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.\nSee also the `Snapshot.expire_time` field. If the name is not provided in\nthe request, the server will assign a random\nname for this snapshot on the same project as the subscription, conforming\nto the [resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated\nname is populated in the returned Snapshot object. Note that for REST API\nrequests, you must specify a name in the request.",
"flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}", "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
"httpMethod": "PUT", "httpMethod": "PUT",
"id": "pubsub.projects.snapshots.create", "id": "pubsub.projects.snapshots.create",
@ -151,7 +151,7 @@
] ]
}, },
"delete": { "delete": {
"description": "Removes an existing snapshot. All messages retained in the snapshot\nare immediately dropped. After a snapshot is deleted, a new one may be\ncreated with the same name, but the new one has no association with the old\nsnapshot or its subscription, unless the same subscription is specified.", "description": "Removes an existing snapshot. \u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nWhen the snapshot is deleted, all messages retained in the snapshot\nare immediately dropped. After a snapshot is deleted, a new one may be\ncreated with the same name, but the new one has no association with the old\nsnapshot or its subscription, unless the same subscription is specified.",
"flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}", "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
"httpMethod": "DELETE", "httpMethod": "DELETE",
"id": "pubsub.projects.snapshots.delete", "id": "pubsub.projects.snapshots.delete",
@ -177,7 +177,7 @@
] ]
}, },
"get": { "get": {
"description": "Gets the configuration details of a snapshot.", "description": "Gets the configuration details of a snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}", "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
"httpMethod": "GET", "httpMethod": "GET",
"id": "pubsub.projects.snapshots.get", "id": "pubsub.projects.snapshots.get",
@ -229,7 +229,7 @@
] ]
}, },
"list": { "list": {
"description": "Lists the existing snapshots.", "description": "Lists the existing snapshots.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"flatPath": "v1/projects/{projectsId}/snapshots", "flatPath": "v1/projects/{projectsId}/snapshots",
"httpMethod": "GET", "httpMethod": "GET",
"id": "pubsub.projects.snapshots.list", "id": "pubsub.projects.snapshots.list",
@ -266,7 +266,7 @@
] ]
}, },
"patch": { "patch": {
"description": "Updates an existing snapshot. Note that certain properties of a\nsnapshot are not modifiable.", "description": "Updates an existing snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nNote that certain properties of a snapshot are not modifiable.",
"flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}", "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
"httpMethod": "PATCH", "httpMethod": "PATCH",
"id": "pubsub.projects.snapshots.patch", "id": "pubsub.projects.snapshots.patch",
@ -386,7 +386,7 @@
] ]
}, },
"create": { "create": {
"description": "Creates a subscription to a given topic.\nIf the subscription already exists, returns `ALREADY_EXISTS`.\nIf the corresponding topic doesn't exist, returns `NOT_FOUND`.\n\nIf the name is not provided in the request, the server will assign a random\nname for this subscription on the same project as the topic, conforming\nto the\n[resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated name is populated in the returned Subscription object.\nNote that for REST API requests, you must specify a name in the request.", "description": "Creates a subscription to a given topic. See the\n\u003ca href=\"/pubsub/docs/admin#resource_names\"\u003e resource name rules\u003c/a\u003e.\nIf the subscription already exists, returns `ALREADY_EXISTS`.\nIf the corresponding topic doesn't exist, returns `NOT_FOUND`.\n\nIf the name is not provided in the request, the server will assign a random\nname for this subscription on the same project as the topic, conforming\nto the\n[resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated name is populated in the returned Subscription object.\nNote that for REST API requests, you must specify a name in the request.",
"flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}", "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}",
"httpMethod": "PUT", "httpMethod": "PUT",
"id": "pubsub.projects.subscriptions.create", "id": "pubsub.projects.subscriptions.create",
@ -646,7 +646,7 @@
] ]
}, },
"seek": { "seek": {
"description": "Seeks an existing subscription to a point in time or to a given snapshot,\nwhichever is provided in the request.", "description": "Seeks an existing subscription to a point in time or to a given snapshot,\nwhichever is provided in the request.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:seek", "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:seek",
"httpMethod": "POST", "httpMethod": "POST",
"id": "pubsub.projects.subscriptions.seek", "id": "pubsub.projects.subscriptions.seek",
@ -737,7 +737,7 @@
"topics": { "topics": {
"methods": { "methods": {
"create": { "create": {
"description": "Creates the given topic with the given name.", "description": "Creates the given topic with the given name. See the\n\u003ca href=\"/pubsub/docs/admin#resource_names\"\u003e resource name rules\u003c/a\u003e.",
"flatPath": "v1/projects/{projectsId}/topics/{topicsId}", "flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
"httpMethod": "PUT", "httpMethod": "PUT",
"id": "pubsub.projects.topics.create", "id": "pubsub.projects.topics.create",
@ -972,7 +972,7 @@
"snapshots": { "snapshots": {
"methods": { "methods": {
"list": { "list": {
"description": "Lists the names of the snapshots on this topic.", "description": "Lists the names of the snapshots on this topic.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"flatPath": "v1/projects/{projectsId}/topics/{topicsId}/snapshots", "flatPath": "v1/projects/{projectsId}/topics/{topicsId}/snapshots",
"httpMethod": "GET", "httpMethod": "GET",
"id": "pubsub.projects.topics.snapshots.list", "id": "pubsub.projects.topics.snapshots.list",
@ -1056,7 +1056,7 @@
} }
} }
}, },
"revision": "20180129", "revision": "20180522",
"rootUrl": "https://pubsub.googleapis.com/", "rootUrl": "https://pubsub.googleapis.com/",
"schemas": { "schemas": {
"AcknowledgeRequest": { "AcknowledgeRequest": {
@ -1078,7 +1078,7 @@
"id": "Binding", "id": "Binding",
"properties": { "properties": {
"members": { "members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n", "description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
"items": { "items": {
"type": "string" "type": "string"
}, },
@ -1092,7 +1092,7 @@
"type": "object" "type": "object"
}, },
"CreateSnapshotRequest": { "CreateSnapshotRequest": {
"description": "Request for the `CreateSnapshot` method.", "description": "Request for the `CreateSnapshot` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be changed in\nbackward-incompatible ways and is not recommended for production use.\nIt is not subject to any SLA or deprecation policy.",
"id": "CreateSnapshotRequest", "id": "CreateSnapshotRequest",
"properties": { "properties": {
"subscription": { "subscription": {
@ -1109,7 +1109,7 @@
"type": "object" "type": "object"
}, },
"ListSnapshotsResponse": { "ListSnapshotsResponse": {
"description": "Response for the `ListSnapshots` method.", "description": "Response for the `ListSnapshots` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"id": "ListSnapshotsResponse", "id": "ListSnapshotsResponse",
"properties": { "properties": {
"nextPageToken": { "nextPageToken": {
@ -1145,7 +1145,7 @@
"type": "object" "type": "object"
}, },
"ListTopicSnapshotsResponse": { "ListTopicSnapshotsResponse": {
"description": "Response for the `ListTopicSnapshots` method.", "description": "Response for the `ListTopicSnapshots` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"id": "ListTopicSnapshotsResponse", "id": "ListTopicSnapshotsResponse",
"properties": { "properties": {
"nextPageToken": { "nextPageToken": {
@ -1229,7 +1229,7 @@
"type": "object" "type": "object"
}, },
"Policy": { "Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).", "description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy", "id": "Policy",
"properties": { "properties": {
"bindings": { "bindings": {
@ -1372,7 +1372,7 @@
"type": "object" "type": "object"
}, },
"SeekRequest": { "SeekRequest": {
"description": "Request for the `Seek` method.", "description": "Request for the `Seek` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"id": "SeekRequest", "id": "SeekRequest",
"properties": { "properties": {
"snapshot": { "snapshot": {
@ -1404,7 +1404,7 @@
"type": "object" "type": "object"
}, },
"Snapshot": { "Snapshot": {
"description": "A snapshot resource.", "description": "A snapshot resource.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"id": "Snapshot", "id": "Snapshot",
"properties": { "properties": {
"expireTime": { "expireTime": {
@ -1433,7 +1433,7 @@
"type": "integer" "type": "integer"
}, },
"messageRetentionDuration": { "messageRetentionDuration": {
"description": "How long to retain unacknowledged messages in the subscription's backlog,\nfrom the moment a message is published.\nIf `retain_acked_messages` is true, then this also configures the retention\nof acknowledged messages, and thus configures how far back in time a `Seek`\ncan be done. Defaults to 7 days. Cannot be more than 7 days or less than 10\nminutes.", "description": "How long to retain unacknowledged messages in the subscription's backlog,\nfrom the moment a message is published.\nIf `retain_acked_messages` is true, then this also configures the retention\nof acknowledged messages, and thus configures how far back in time a `Seek`\ncan be done. Defaults to 7 days. Cannot be more than 7 days or less than 10\nminutes.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"format": "google-duration", "format": "google-duration",
"type": "string" "type": "string"
}, },
@ -1446,7 +1446,7 @@
"description": "If push delivery is used with this subscription, this field is\nused to configure it. An empty `pushConfig` signifies that the subscriber\nwill pull and ack messages using API methods." "description": "If push delivery is used with this subscription, this field is\nused to configure it. An empty `pushConfig` signifies that the subscriber\nwill pull and ack messages using API methods."
}, },
"retainAckedMessages": { "retainAckedMessages": {
"description": "Indicates whether to retain acknowledged messages. If true, then\nmessages are not expunged from the subscription's backlog, even if they are\nacknowledged, until they fall out of the `message_retention_duration`\nwindow.", "description": "Indicates whether to retain acknowledged messages. If true, then\nmessages are not expunged from the subscription's backlog, even if they are\nacknowledged, until they fall out of the `message_retention_duration`\nwindow.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"type": "boolean" "type": "boolean"
}, },
"topic": { "topic": {
@ -1496,12 +1496,12 @@
"type": "object" "type": "object"
}, },
"UpdateSnapshotRequest": { "UpdateSnapshotRequest": {
"description": "Request for the UpdateSnapshot method.", "description": "Request for the UpdateSnapshot method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
"id": "UpdateSnapshotRequest", "id": "UpdateSnapshotRequest",
"properties": { "properties": {
"snapshot": { "snapshot": {
"$ref": "Snapshot", "$ref": "Snapshot",
"description": "The updated snpashot object." "description": "The updated snapshot object."
}, },
"updateMask": { "updateMask": {
"description": "Indicates which fields in the provided snapshot to update.\nMust be specified and non-empty.", "description": "Indicates which fields in the provided snapshot to update.\nMust be specified and non-empty.",
@ -1529,6 +1529,6 @@
} }
}, },
"servicePath": "", "servicePath": "",
"title": "Google Cloud Pub/Sub API", "title": "Cloud Pub/Sub API",
"version": "v1" "version": "v1"
} }

View File

@ -1,4 +1,4 @@
// Package pubsub provides access to the Google Cloud Pub/Sub API. // Package pubsub provides access to the Cloud Pub/Sub API.
// //
// See https://cloud.google.com/pubsub/docs // See https://cloud.google.com/pubsub/docs
// //
@ -193,7 +193,7 @@ type Binding struct {
// //
// * `user:{emailid}`: An email address that represents a specific // * `user:{emailid}`: An email address that represents a specific
// Google // Google
// account. For example, `alice@gmail.com` or `joe@example.com`. // account. For example, `alice@gmail.com` .
// //
// //
// * `serviceAccount:{emailid}`: An email address that represents a // * `serviceAccount:{emailid}`: An email address that represents a
@ -243,7 +243,13 @@ func (s *Binding) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
} }
// CreateSnapshotRequest: Request for the `CreateSnapshot` method. // CreateSnapshotRequest: Request for the `CreateSnapshot`
// method.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be changed in
// backward-incompatible ways and is not recommended for production
// use.
// It is not subject to any SLA or deprecation policy.
type CreateSnapshotRequest struct { type CreateSnapshotRequest struct {
// Subscription: The subscription whose backlog the snapshot // Subscription: The subscription whose backlog the snapshot
// retains. // retains.
@ -300,7 +306,13 @@ type Empty struct {
googleapi.ServerResponse `json:"-"` googleapi.ServerResponse `json:"-"`
} }
// ListSnapshotsResponse: Response for the `ListSnapshots` method. // ListSnapshotsResponse: Response for the `ListSnapshots`
// method.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
type ListSnapshotsResponse struct { type ListSnapshotsResponse struct {
// NextPageToken: If not empty, indicates that there may be more // NextPageToken: If not empty, indicates that there may be more
// snapshot that match the // snapshot that match the
@ -378,7 +390,12 @@ func (s *ListSubscriptionsResponse) MarshalJSON() ([]byte, error) {
} }
// ListTopicSnapshotsResponse: Response for the `ListTopicSnapshots` // ListTopicSnapshotsResponse: Response for the `ListTopicSnapshots`
// method. // method.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
type ListTopicSnapshotsResponse struct { type ListTopicSnapshotsResponse struct {
// NextPageToken: If not empty, indicates that there may be more // NextPageToken: If not empty, indicates that there may be more
// snapshots that match // snapshots that match
@ -573,7 +590,7 @@ func (s *ModifyPushConfigRequest) MarshalJSON() ([]byte, error) {
// specify access control policies for Cloud Platform resources. // specify access control policies for Cloud Platform resources.
// //
// //
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list // A `Policy` consists of a list of `bindings`. A `binding` binds a list
// of // of
// `members` to a `role`, where the members can be user accounts, Google // `members` to a `role`, where the members can be user accounts, Google
// groups, // groups,
@ -581,7 +598,7 @@ func (s *ModifyPushConfigRequest) MarshalJSON() ([]byte, error) {
// permissions // permissions
// defined by IAM. // defined by IAM.
// //
// **Example** // **JSON Example**
// //
// { // {
// "bindings": [ // "bindings": [
@ -592,7 +609,7 @@ func (s *ModifyPushConfigRequest) MarshalJSON() ([]byte, error) {
// "group:admins@example.com", // "group:admins@example.com",
// "domain:google.com", // "domain:google.com",
// //
// "serviceAccount:my-other-app@appspot.gserviceaccount.com", // "serviceAccount:my-other-app@appspot.gserviceaccount.com"
// ] // ]
// }, // },
// { // {
@ -602,6 +619,20 @@ func (s *ModifyPushConfigRequest) MarshalJSON() ([]byte, error) {
// ] // ]
// } // }
// //
// **YAML Example**
//
// bindings:
// - members:
// - user:mike@example.com
// - group:admins@example.com
// - domain:google.com
// - serviceAccount:my-other-app@appspot.gserviceaccount.com
// role: roles/owner
// - members:
// - user:sean@example.com
// role: roles/viewer
//
//
// For a description of IAM and its features, see the // For a description of IAM and its features, see the
// [IAM developer's guide](https://cloud.google.com/iam/docs). // [IAM developer's guide](https://cloud.google.com/iam/docs).
type Policy struct { type Policy struct {
@ -951,7 +982,12 @@ func (s *ReceivedMessage) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
} }
// SeekRequest: Request for the `Seek` method. // SeekRequest: Request for the `Seek` method.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
type SeekRequest struct { type SeekRequest struct {
// Snapshot: The snapshot to seek to. The snapshot's topic must be the // Snapshot: The snapshot to seek to. The snapshot's topic must be the
// same as that of // same as that of
@ -1042,7 +1078,12 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
} }
// Snapshot: A snapshot resource. // Snapshot: A snapshot resource.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
type Snapshot struct { type Snapshot struct {
// ExpireTime: The snapshot is guaranteed to exist up until this time. // ExpireTime: The snapshot is guaranteed to exist up until this time.
// A newly-created snapshot expires no later than 7 days from the time // A newly-created snapshot expires no later than 7 days from the time
@ -1141,7 +1182,12 @@ type Subscription struct {
// `Seek` // `Seek`
// can be done. Defaults to 7 days. Cannot be more than 7 days or less // can be done. Defaults to 7 days. Cannot be more than 7 days or less
// than 10 // than 10
// minutes. // minutes.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
MessageRetentionDuration string `json:"messageRetentionDuration,omitempty"` MessageRetentionDuration string `json:"messageRetentionDuration,omitempty"`
// Name: The name of the subscription. It must have the // Name: The name of the subscription. It must have the
@ -1170,7 +1216,12 @@ type Subscription struct {
// they are // they are
// acknowledged, until they fall out of the // acknowledged, until they fall out of the
// `message_retention_duration` // `message_retention_duration`
// window. // window.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
RetainAckedMessages bool `json:"retainAckedMessages,omitempty"` RetainAckedMessages bool `json:"retainAckedMessages,omitempty"`
// Topic: The name of the topic from which this subscription is // Topic: The name of the topic from which this subscription is
@ -1321,9 +1372,15 @@ func (s *Topic) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
} }
// UpdateSnapshotRequest: Request for the UpdateSnapshot method. // UpdateSnapshotRequest: Request for the UpdateSnapshot
// method.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
type UpdateSnapshotRequest struct { type UpdateSnapshotRequest struct {
// Snapshot: The updated snpashot object. // Snapshot: The updated snapshot object.
Snapshot *Snapshot `json:"snapshot,omitempty"` Snapshot *Snapshot `json:"snapshot,omitempty"`
// UpdateMask: Indicates which fields in the provided snapshot to // UpdateMask: Indicates which fields in the provided snapshot to
@ -1398,24 +1455,27 @@ type ProjectsSnapshotsCreateCall struct {
header_ http.Header header_ http.Header
} }
// Create: Creates a snapshot from the requested subscription. // Create: Creates a snapshot from the requested
// subscription.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
// If the snapshot already exists, returns `ALREADY_EXISTS`. // If the snapshot already exists, returns `ALREADY_EXISTS`.
// If the requested subscription doesn't exist, returns `NOT_FOUND`. // If the requested subscription doesn't exist, returns `NOT_FOUND`.
// If the backlog in the subscription is too old -- and the resulting // If the backlog in the subscription is too old -- and the resulting
// snapshot // snapshot
// would expire in less than 1 hour -- then `FAILED_PRECONDITION` is // would expire in less than 1 hour -- then `FAILED_PRECONDITION` is
// returned. // returned.
// See also the `Snapshot.expire_time` field. // See also the `Snapshot.expire_time` field. If the name is not
// // provided in
// If the name is not provided in the request, the server will assign a // the request, the server will assign a random
// random
// name for this snapshot on the same project as the subscription, // name for this snapshot on the same project as the subscription,
// conforming // conforming
// to the // to the [resource name
// [resource // format](https://cloud.google.com/pubsub/docs/overview#names).
// name // The generated
// format](https://cloud.google.com/pubsub/docs/overview#names). The
// generated
// name is populated in the returned Snapshot object. Note that for REST // name is populated in the returned Snapshot object. Note that for REST
// API // API
// requests, you must specify a name in the request. // requests, you must specify a name in the request.
@ -1512,7 +1572,7 @@ func (c *ProjectsSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*Snapsho
} }
return ret, nil return ret, nil
// { // {
// "description": "Creates a snapshot from the requested subscription.\nIf the snapshot already exists, returns `ALREADY_EXISTS`.\nIf the requested subscription doesn't exist, returns `NOT_FOUND`.\nIf the backlog in the subscription is too old -- and the resulting snapshot\nwould expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.\nSee also the `Snapshot.expire_time` field.\n\nIf the name is not provided in the request, the server will assign a random\nname for this snapshot on the same project as the subscription, conforming\nto the\n[resource name\nformat](https://cloud.google.com/pubsub/docs/overview#names). The generated\nname is populated in the returned Snapshot object. Note that for REST API\nrequests, you must specify a name in the request.", // "description": "Creates a snapshot from the requested subscription.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nIf the snapshot already exists, returns `ALREADY_EXISTS`.\nIf the requested subscription doesn't exist, returns `NOT_FOUND`.\nIf the backlog in the subscription is too old -- and the resulting snapshot\nwould expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.\nSee also the `Snapshot.expire_time` field. If the name is not provided in\nthe request, the server will assign a random\nname for this snapshot on the same project as the subscription, conforming\nto the [resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated\nname is populated in the returned Snapshot object. Note that for REST API\nrequests, you must specify a name in the request.",
// "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}", // "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
// "httpMethod": "PUT", // "httpMethod": "PUT",
// "id": "pubsub.projects.snapshots.create", // "id": "pubsub.projects.snapshots.create",
@ -1553,7 +1613,13 @@ type ProjectsSnapshotsDeleteCall struct {
header_ http.Header header_ http.Header
} }
// Delete: Removes an existing snapshot. All messages retained in the // Delete: Removes an existing snapshot. <br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
// When the snapshot is deleted, all messages retained in the
// snapshot // snapshot
// are immediately dropped. After a snapshot is deleted, a new one may // are immediately dropped. After a snapshot is deleted, a new one may
// be // be
@ -1648,7 +1714,7 @@ func (c *ProjectsSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,
} }
return ret, nil return ret, nil
// { // {
// "description": "Removes an existing snapshot. All messages retained in the snapshot\nare immediately dropped. After a snapshot is deleted, a new one may be\ncreated with the same name, but the new one has no association with the old\nsnapshot or its subscription, unless the same subscription is specified.", // "description": "Removes an existing snapshot. \u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nWhen the snapshot is deleted, all messages retained in the snapshot\nare immediately dropped. After a snapshot is deleted, a new one may be\ncreated with the same name, but the new one has no association with the old\nsnapshot or its subscription, unless the same subscription is specified.",
// "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}", // "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
// "httpMethod": "DELETE", // "httpMethod": "DELETE",
// "id": "pubsub.projects.snapshots.delete", // "id": "pubsub.projects.snapshots.delete",
@ -1687,7 +1753,13 @@ type ProjectsSnapshotsGetCall struct {
header_ http.Header header_ http.Header
} }
// Get: Gets the configuration details of a snapshot. // Get: Gets the configuration details of a
// snapshot.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
func (r *ProjectsSnapshotsService) Get(snapshot string) *ProjectsSnapshotsGetCall { func (r *ProjectsSnapshotsService) Get(snapshot string) *ProjectsSnapshotsGetCall {
c := &ProjectsSnapshotsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c := &ProjectsSnapshotsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.snapshot = snapshot c.snapshot = snapshot
@ -1788,7 +1860,7 @@ func (c *ProjectsSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*Snapshot,
} }
return ret, nil return ret, nil
// { // {
// "description": "Gets the configuration details of a snapshot.", // "description": "Gets the configuration details of a snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
// "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}", // "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "pubsub.projects.snapshots.get", // "id": "pubsub.projects.snapshots.get",
@ -1970,7 +2042,12 @@ type ProjectsSnapshotsListCall struct {
header_ http.Header header_ http.Header
} }
// List: Lists the existing snapshots. // List: Lists the existing snapshots.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
func (r *ProjectsSnapshotsService) List(project string) *ProjectsSnapshotsListCall { func (r *ProjectsSnapshotsService) List(project string) *ProjectsSnapshotsListCall {
c := &ProjectsSnapshotsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c := &ProjectsSnapshotsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project c.project = project
@ -2088,7 +2165,7 @@ func (c *ProjectsSnapshotsListCall) Do(opts ...googleapi.CallOption) (*ListSnaps
} }
return ret, nil return ret, nil
// { // {
// "description": "Lists the existing snapshots.", // "description": "Lists the existing snapshots.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
// "flatPath": "v1/projects/{projectsId}/snapshots", // "flatPath": "v1/projects/{projectsId}/snapshots",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "pubsub.projects.snapshots.list", // "id": "pubsub.projects.snapshots.list",
@ -2159,9 +2236,13 @@ type ProjectsSnapshotsPatchCall struct {
header_ http.Header header_ http.Header
} }
// Patch: Updates an existing snapshot. Note that certain properties of // Patch: Updates an existing snapshot.<br><br>
// a // <b>ALPHA:</b> This feature is part of an alpha release. This API
// snapshot are not modifiable. // might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
// Note that certain properties of a snapshot are not modifiable.
func (r *ProjectsSnapshotsService) Patch(name string, updatesnapshotrequest *UpdateSnapshotRequest) *ProjectsSnapshotsPatchCall { func (r *ProjectsSnapshotsService) Patch(name string, updatesnapshotrequest *UpdateSnapshotRequest) *ProjectsSnapshotsPatchCall {
c := &ProjectsSnapshotsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c := &ProjectsSnapshotsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name c.name = name
@ -2255,7 +2336,7 @@ func (c *ProjectsSnapshotsPatchCall) Do(opts ...googleapi.CallOption) (*Snapshot
} }
return ret, nil return ret, nil
// { // {
// "description": "Updates an existing snapshot. Note that certain properties of a\nsnapshot are not modifiable.", // "description": "Updates an existing snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nNote that certain properties of a snapshot are not modifiable.",
// "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}", // "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
// "httpMethod": "PATCH", // "httpMethod": "PATCH",
// "id": "pubsub.projects.snapshots.patch", // "id": "pubsub.projects.snapshots.patch",
@ -2727,7 +2808,9 @@ type ProjectsSubscriptionsCreateCall struct {
header_ http.Header header_ http.Header
} }
// Create: Creates a subscription to a given topic. // Create: Creates a subscription to a given topic. See the
// <a href="/pubsub/docs/admin#resource_names"> resource name
// rules</a>.
// If the subscription already exists, returns `ALREADY_EXISTS`. // If the subscription already exists, returns `ALREADY_EXISTS`.
// If the corresponding topic doesn't exist, returns `NOT_FOUND`. // If the corresponding topic doesn't exist, returns `NOT_FOUND`.
// //
@ -2835,7 +2918,7 @@ func (c *ProjectsSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*Sub
} }
return ret, nil return ret, nil
// { // {
// "description": "Creates a subscription to a given topic.\nIf the subscription already exists, returns `ALREADY_EXISTS`.\nIf the corresponding topic doesn't exist, returns `NOT_FOUND`.\n\nIf the name is not provided in the request, the server will assign a random\nname for this subscription on the same project as the topic, conforming\nto the\n[resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated name is populated in the returned Subscription object.\nNote that for REST API requests, you must specify a name in the request.", // "description": "Creates a subscription to a given topic. See the\n\u003ca href=\"/pubsub/docs/admin#resource_names\"\u003e resource name rules\u003c/a\u003e.\nIf the subscription already exists, returns `ALREADY_EXISTS`.\nIf the corresponding topic doesn't exist, returns `NOT_FOUND`.\n\nIf the name is not provided in the request, the server will assign a random\nname for this subscription on the same project as the topic, conforming\nto the\n[resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated name is populated in the returned Subscription object.\nNote that for REST API requests, you must specify a name in the request.",
// "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}", // "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}",
// "httpMethod": "PUT", // "httpMethod": "PUT",
// "id": "pubsub.projects.subscriptions.create", // "id": "pubsub.projects.subscriptions.create",
@ -4055,7 +4138,12 @@ type ProjectsSubscriptionsSeekCall struct {
// Seek: Seeks an existing subscription to a point in time or to a given // Seek: Seeks an existing subscription to a point in time or to a given
// snapshot, // snapshot,
// whichever is provided in the request. // whichever is provided in the request.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
func (r *ProjectsSubscriptionsService) Seek(subscription string, seekrequest *SeekRequest) *ProjectsSubscriptionsSeekCall { func (r *ProjectsSubscriptionsService) Seek(subscription string, seekrequest *SeekRequest) *ProjectsSubscriptionsSeekCall {
c := &ProjectsSubscriptionsSeekCall{s: r.s, urlParams_: make(gensupport.URLParams)} c := &ProjectsSubscriptionsSeekCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.subscription = subscription c.subscription = subscription
@ -4149,7 +4237,7 @@ func (c *ProjectsSubscriptionsSeekCall) Do(opts ...googleapi.CallOption) (*SeekR
} }
return ret, nil return ret, nil
// { // {
// "description": "Seeks an existing subscription to a point in time or to a given snapshot,\nwhichever is provided in the request.", // "description": "Seeks an existing subscription to a point in time or to a given snapshot,\nwhichever is provided in the request.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
// "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:seek", // "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:seek",
// "httpMethod": "POST", // "httpMethod": "POST",
// "id": "pubsub.projects.subscriptions.seek", // "id": "pubsub.projects.subscriptions.seek",
@ -4475,7 +4563,8 @@ type ProjectsTopicsCreateCall struct {
header_ http.Header header_ http.Header
} }
// Create: Creates the given topic with the given name. // Create: Creates the given topic with the given name. See the
// <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
func (r *ProjectsTopicsService) Create(name string, topic *Topic) *ProjectsTopicsCreateCall { func (r *ProjectsTopicsService) Create(name string, topic *Topic) *ProjectsTopicsCreateCall {
c := &ProjectsTopicsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c := &ProjectsTopicsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name c.name = name
@ -4569,7 +4658,7 @@ func (c *ProjectsTopicsCreateCall) Do(opts ...googleapi.CallOption) (*Topic, err
} }
return ret, nil return ret, nil
// { // {
// "description": "Creates the given topic with the given name.", // "description": "Creates the given topic with the given name. See the\n\u003ca href=\"/pubsub/docs/admin#resource_names\"\u003e resource name rules\u003c/a\u003e.",
// "flatPath": "v1/projects/{projectsId}/topics/{topicsId}", // "flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
// "httpMethod": "PUT", // "httpMethod": "PUT",
// "id": "pubsub.projects.topics.create", // "id": "pubsub.projects.topics.create",
@ -5641,7 +5730,13 @@ type ProjectsTopicsSnapshotsListCall struct {
header_ http.Header header_ http.Header
} }
// List: Lists the names of the snapshots on this topic. // List: Lists the names of the snapshots on this
// topic.<br><br>
// <b>ALPHA:</b> This feature is part of an alpha release. This API
// might be
// changed in backward-incompatible ways and is not recommended for
// production
// use. It is not subject to any SLA or deprecation policy.
func (r *ProjectsTopicsSnapshotsService) List(topic string) *ProjectsTopicsSnapshotsListCall { func (r *ProjectsTopicsSnapshotsService) List(topic string) *ProjectsTopicsSnapshotsListCall {
c := &ProjectsTopicsSnapshotsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c := &ProjectsTopicsSnapshotsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.topic = topic c.topic = topic
@ -5759,7 +5854,7 @@ func (c *ProjectsTopicsSnapshotsListCall) Do(opts ...googleapi.CallOption) (*Lis
} }
return ret, nil return ret, nil
// { // {
// "description": "Lists the names of the snapshots on this topic.", // "description": "Lists the names of the snapshots on this topic.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
// "flatPath": "v1/projects/{projectsId}/topics/{topicsId}/snapshots", // "flatPath": "v1/projects/{projectsId}/topics/{topicsId}/snapshots",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "pubsub.projects.topics.snapshots.list", // "id": "pubsub.projects.topics.snapshots.list",

View File

@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library( go_library(
name = "go_default_library", name = "go_default_library",
srcs = ["tpu-gen.go"], srcs = ["tpu-gen.go"],
importpath = "google.golang.org/api/tpu/v1alpha1", importpath = "google.golang.org/api/tpu/v1",
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [
"//vendor/golang.org/x/net/context:go_default_library", "//vendor/golang.org/x/net/context:go_default_library",

View File

@ -20,7 +20,7 @@
"x16": "http://www.google.com/images/icons/product/search-16.gif", "x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif" "x32": "http://www.google.com/images/icons/product/search-32.gif"
}, },
"id": "tpu:v1alpha1", "id": "tpu:v1",
"kind": "discovery#restDescription", "kind": "discovery#restDescription",
"name": "tpu", "name": "tpu",
"ownerDomain": "google.com", "ownerDomain": "google.com",
@ -60,11 +60,6 @@
"location": "query", "location": "query",
"type": "string" "type": "string"
}, },
"bearer_token": {
"description": "OAuth bearer token.",
"location": "query",
"type": "string"
},
"callback": { "callback": {
"description": "JSONP", "description": "JSONP",
"location": "query", "location": "query",
@ -85,12 +80,6 @@
"location": "query", "location": "query",
"type": "string" "type": "string"
}, },
"pp": {
"default": "true",
"description": "Pretty-print response.",
"location": "query",
"type": "boolean"
},
"prettyPrint": { "prettyPrint": {
"default": "true", "default": "true",
"description": "Returns response with indentations and line breaks.", "description": "Returns response with indentations and line breaks.",
@ -120,8 +109,8 @@
"locations": { "locations": {
"methods": { "methods": {
"get": { "get": {
"description": "Get information about a location.", "description": "Gets information about a location.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
"httpMethod": "GET", "httpMethod": "GET",
"id": "tpu.projects.locations.get", "id": "tpu.projects.locations.get",
"parameterOrder": [ "parameterOrder": [
@ -136,7 +125,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}", "path": "v1/{+name}",
"response": { "response": {
"$ref": "Location" "$ref": "Location"
}, },
@ -146,7 +135,7 @@
}, },
"list": { "list": {
"description": "Lists information about the supported locations for this service.", "description": "Lists information about the supported locations for this service.",
"flatPath": "v1alpha1/projects/{projectsId}/locations", "flatPath": "v1/projects/{projectsId}/locations",
"httpMethod": "GET", "httpMethod": "GET",
"id": "tpu.projects.locations.list", "id": "tpu.projects.locations.list",
"parameterOrder": [ "parameterOrder": [
@ -177,7 +166,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}/locations", "path": "v1/{+name}/locations",
"response": { "response": {
"$ref": "ListLocationsResponse" "$ref": "ListLocationsResponse"
}, },
@ -187,11 +176,86 @@
} }
}, },
"resources": { "resources": {
"acceleratorTypes": {
"methods": {
"get": {
"description": "Gets AcceleratorType.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/acceleratorTypes/{acceleratorTypesId}",
"httpMethod": "GET",
"id": "tpu.projects.locations.acceleratorTypes.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/acceleratorTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "AcceleratorType"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists accelerator types supported by this API.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/acceleratorTypes",
"httpMethod": "GET",
"id": "tpu.projects.locations.acceleratorTypes.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "List filter.",
"location": "query",
"type": "string"
},
"orderBy": {
"description": "Sort results.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "The maximum number of items to return.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The next_page_token value returned from a previous List request, if any.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The parent resource name.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/acceleratorTypes",
"response": {
"$ref": "ListAcceleratorTypesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"nodes": { "nodes": {
"methods": { "methods": {
"create": { "create": {
"description": "Creates a node.", "description": "Creates a node.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes",
"httpMethod": "POST", "httpMethod": "POST",
"id": "tpu.projects.locations.nodes.create", "id": "tpu.projects.locations.nodes.create",
"parameterOrder": [ "parameterOrder": [
@ -211,7 +275,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+parent}/nodes", "path": "v1/{+parent}/nodes",
"request": { "request": {
"$ref": "Node" "$ref": "Node"
}, },
@ -224,7 +288,7 @@
}, },
"delete": { "delete": {
"description": "Deletes a node.", "description": "Deletes a node.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}",
"httpMethod": "DELETE", "httpMethod": "DELETE",
"id": "tpu.projects.locations.nodes.delete", "id": "tpu.projects.locations.nodes.delete",
"parameterOrder": [ "parameterOrder": [
@ -239,7 +303,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}", "path": "v1/{+name}",
"response": { "response": {
"$ref": "Operation" "$ref": "Operation"
}, },
@ -249,7 +313,7 @@
}, },
"get": { "get": {
"description": "Gets the details of a node.", "description": "Gets the details of a node.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}",
"httpMethod": "GET", "httpMethod": "GET",
"id": "tpu.projects.locations.nodes.get", "id": "tpu.projects.locations.nodes.get",
"parameterOrder": [ "parameterOrder": [
@ -264,7 +328,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}", "path": "v1/{+name}",
"response": { "response": {
"$ref": "Node" "$ref": "Node"
}, },
@ -274,7 +338,7 @@
}, },
"list": { "list": {
"description": "Lists nodes.", "description": "Lists nodes.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes",
"httpMethod": "GET", "httpMethod": "GET",
"id": "tpu.projects.locations.nodes.list", "id": "tpu.projects.locations.nodes.list",
"parameterOrder": [ "parameterOrder": [
@ -300,7 +364,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+parent}/nodes", "path": "v1/{+parent}/nodes",
"response": { "response": {
"$ref": "ListNodesResponse" "$ref": "ListNodesResponse"
}, },
@ -310,7 +374,7 @@
}, },
"reimage": { "reimage": {
"description": "Reimages a node's OS.", "description": "Reimages a node's OS.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reimage", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reimage",
"httpMethod": "POST", "httpMethod": "POST",
"id": "tpu.projects.locations.nodes.reimage", "id": "tpu.projects.locations.nodes.reimage",
"parameterOrder": [ "parameterOrder": [
@ -325,7 +389,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}:reimage", "path": "v1/{+name}:reimage",
"request": { "request": {
"$ref": "ReimageNodeRequest" "$ref": "ReimageNodeRequest"
}, },
@ -338,7 +402,7 @@
}, },
"reset": { "reset": {
"description": "Resets a node, which stops and starts the VM.", "description": "Resets a node, which stops and starts the VM.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reset", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reset",
"httpMethod": "POST", "httpMethod": "POST",
"id": "tpu.projects.locations.nodes.reset", "id": "tpu.projects.locations.nodes.reset",
"parameterOrder": [ "parameterOrder": [
@ -353,7 +417,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}:reset", "path": "v1/{+name}:reset",
"request": { "request": {
"$ref": "ResetNodeRequest" "$ref": "ResetNodeRequest"
}, },
@ -366,7 +430,7 @@
}, },
"start": { "start": {
"description": "Starts a node.", "description": "Starts a node.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:start", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:start",
"httpMethod": "POST", "httpMethod": "POST",
"id": "tpu.projects.locations.nodes.start", "id": "tpu.projects.locations.nodes.start",
"parameterOrder": [ "parameterOrder": [
@ -381,7 +445,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}:start", "path": "v1/{+name}:start",
"request": { "request": {
"$ref": "StartNodeRequest" "$ref": "StartNodeRequest"
}, },
@ -394,7 +458,7 @@
}, },
"stop": { "stop": {
"description": "Stops a node.", "description": "Stops a node.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:stop", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:stop",
"httpMethod": "POST", "httpMethod": "POST",
"id": "tpu.projects.locations.nodes.stop", "id": "tpu.projects.locations.nodes.stop",
"parameterOrder": [ "parameterOrder": [
@ -409,7 +473,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}:stop", "path": "v1/{+name}:stop",
"request": { "request": {
"$ref": "StopNodeRequest" "$ref": "StopNodeRequest"
}, },
@ -426,7 +490,7 @@
"methods": { "methods": {
"cancel": { "cancel": {
"description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", "description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
"httpMethod": "POST", "httpMethod": "POST",
"id": "tpu.projects.locations.operations.cancel", "id": "tpu.projects.locations.operations.cancel",
"parameterOrder": [ "parameterOrder": [
@ -441,7 +505,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}:cancel", "path": "v1/{+name}:cancel",
"response": { "response": {
"$ref": "Empty" "$ref": "Empty"
}, },
@ -451,7 +515,7 @@
}, },
"delete": { "delete": {
"description": "Deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.", "description": "Deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
"httpMethod": "DELETE", "httpMethod": "DELETE",
"id": "tpu.projects.locations.operations.delete", "id": "tpu.projects.locations.operations.delete",
"parameterOrder": [ "parameterOrder": [
@ -466,7 +530,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}", "path": "v1/{+name}",
"response": { "response": {
"$ref": "Empty" "$ref": "Empty"
}, },
@ -476,7 +540,7 @@
}, },
"get": { "get": {
"description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
"httpMethod": "GET", "httpMethod": "GET",
"id": "tpu.projects.locations.operations.get", "id": "tpu.projects.locations.operations.get",
"parameterOrder": [ "parameterOrder": [
@ -491,7 +555,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}", "path": "v1/{+name}",
"response": { "response": {
"$ref": "Operation" "$ref": "Operation"
}, },
@ -501,7 +565,7 @@
}, },
"list": { "list": {
"description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations",
"httpMethod": "GET", "httpMethod": "GET",
"id": "tpu.projects.locations.operations.list", "id": "tpu.projects.locations.operations.list",
"parameterOrder": [ "parameterOrder": [
@ -532,7 +596,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}/operations", "path": "v1/{+name}/operations",
"response": { "response": {
"$ref": "ListOperationsResponse" "$ref": "ListOperationsResponse"
}, },
@ -546,7 +610,7 @@
"methods": { "methods": {
"get": { "get": {
"description": "Gets TensorFlow Version.", "description": "Gets TensorFlow Version.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions/{tensorflowVersionsId}", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions/{tensorflowVersionsId}",
"httpMethod": "GET", "httpMethod": "GET",
"id": "tpu.projects.locations.tensorflowVersions.get", "id": "tpu.projects.locations.tensorflowVersions.get",
"parameterOrder": [ "parameterOrder": [
@ -561,7 +625,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+name}", "path": "v1/{+name}",
"response": { "response": {
"$ref": "TensorFlowVersion" "$ref": "TensorFlowVersion"
}, },
@ -570,8 +634,8 @@
] ]
}, },
"list": { "list": {
"description": "Lists TensorFlow versions supported by this API.", "description": "List TensorFlow versions supported by this API.",
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions",
"httpMethod": "GET", "httpMethod": "GET",
"id": "tpu.projects.locations.tensorflowVersions.list", "id": "tpu.projects.locations.tensorflowVersions.list",
"parameterOrder": [ "parameterOrder": [
@ -607,7 +671,7 @@
"type": "string" "type": "string"
} }
}, },
"path": "v1alpha1/{+parent}/tensorflowVersions", "path": "v1/{+parent}/tensorflowVersions",
"response": { "response": {
"$ref": "ListTensorFlowVersionsResponse" "$ref": "ListTensorFlowVersionsResponse"
}, },
@ -622,15 +686,48 @@
} }
} }
}, },
"revision": "20180202", "revision": "20180601",
"rootUrl": "https://tpu.googleapis.com/", "rootUrl": "https://tpu.googleapis.com/",
"schemas": { "schemas": {
"AcceleratorType": {
"description": "A accelerator type that a Node can be configured with.",
"id": "AcceleratorType",
"properties": {
"name": {
"description": "The resource name.",
"type": "string"
},
"type": {
"description": "the accelerator type.",
"type": "string"
}
},
"type": "object"
},
"Empty": { "Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"id": "Empty", "id": "Empty",
"properties": {}, "properties": {},
"type": "object" "type": "object"
}, },
"ListAcceleratorTypesResponse": {
"description": "Response for ListAcceleratorTypes.",
"id": "ListAcceleratorTypesResponse",
"properties": {
"acceleratorTypes": {
"description": "The listed nodes.",
"items": {
"$ref": "AcceleratorType"
},
"type": "array"
},
"nextPageToken": {
"description": "The next page token or empty if none.",
"type": "string"
}
},
"type": "object"
},
"ListLocationsResponse": { "ListLocationsResponse": {
"description": "The response message for Locations.ListLocations.", "description": "The response message for Locations.ListLocations.",
"id": "ListLocationsResponse", "id": "ListLocationsResponse",
@ -707,6 +804,10 @@
"description": "A resource that represents Google Cloud Platform location.", "description": "A resource that represents Google Cloud Platform location.",
"id": "Location", "id": "Location",
"properties": { "properties": {
"displayName": {
"description": "The friendly name for this location, typically a nearby city name.\nFor example, \"Tokyo\".",
"type": "string"
},
"labels": { "labels": {
"additionalProperties": { "additionalProperties": {
"type": "string" "type": "string"
@ -820,6 +921,9 @@
"description": "Output only.\nDEPRECATED! Use network_endpoints instead.\nThe network port for the TPU Node as visible to Compute Engine instances.", "description": "Output only.\nDEPRECATED! Use network_endpoints instead.\nThe network port for the TPU Node as visible to Compute Engine instances.",
"type": "string" "type": "string"
}, },
"schedulingConfig": {
"$ref": "SchedulingConfig"
},
"serviceAccount": { "serviceAccount": {
"description": "Output only.\nThe service account used to run the tensor flow services within the node.\nTo share resources, including Google Cloud Storage data, with the\nTensorflow job running in the Node, this account must have permissions to\nthat data.", "description": "Output only.\nThe service account used to run the tensor flow services within the node.\nTo share resources, including Google Cloud Storage data, with the\nTensorflow job running in the Node, this account must have permissions to\nthat data.",
"type": "string" "type": "string"
@ -834,7 +938,9 @@
"REIMAGING", "REIMAGING",
"DELETING", "DELETING",
"REPAIRING", "REPAIRING",
"STOPPED" "STOPPED",
"STOPPING",
"STARTING"
], ],
"enumDescriptions": [ "enumDescriptions": [
"TPU node state is not known/set.", "TPU node state is not known/set.",
@ -844,7 +950,9 @@
"TPU node is undergoing reimaging.", "TPU node is undergoing reimaging.",
"TPU node is being deleted.", "TPU node is being deleted.",
"TPU node is being repaired and may be unusable. Details can be\nfound in the `help_description` field.", "TPU node is being repaired and may be unusable. Details can be\nfound in the `help_description` field.",
"7 - Reserved. Was SUSPENDED.\nTPU node is stopped." "7 - Reserved. Was SUSPENDED.\nTPU node is stopped.",
"TPU node is currently stopping.",
"TPU node is currently starting."
], ],
"type": "string" "type": "string"
}, },
@ -944,6 +1052,15 @@
"properties": {}, "properties": {},
"type": "object" "type": "object"
}, },
"SchedulingConfig": {
"id": "SchedulingConfig",
"properties": {
"preemptible": {
"type": "boolean"
}
},
"type": "object"
},
"StartNodeRequest": { "StartNodeRequest": {
"description": "Request for StartNode.", "description": "Request for StartNode.",
"id": "StartNodeRequest", "id": "StartNodeRequest",
@ -1001,6 +1118,6 @@
}, },
"servicePath": "", "servicePath": "",
"title": "Cloud TPU API", "title": "Cloud TPU API",
"version": "v1alpha1", "version": "v1",
"version_module": true "version_module": true
} }

View File

@ -4,7 +4,7 @@
// //
// Usage example: // Usage example:
// //
// import "google.golang.org/api/tpu/v1alpha1" // import "google.golang.org/api/tpu/v1"
// ... // ...
// tpuService, err := tpu.New(oauthHttpClient) // tpuService, err := tpu.New(oauthHttpClient)
package tpu package tpu
@ -40,9 +40,9 @@ var _ = strings.Replace
var _ = context.Canceled var _ = context.Canceled
var _ = ctxhttp.Do var _ = ctxhttp.Do
const apiId = "tpu:v1alpha1" const apiId = "tpu:v1"
const apiName = "tpu" const apiName = "tpu"
const apiVersion = "v1alpha1" const apiVersion = "v1"
const basePath = "https://tpu.googleapis.com/" const basePath = "https://tpu.googleapis.com/"
// OAuth2 scopes used by this API. // OAuth2 scopes used by this API.
@ -89,6 +89,7 @@ type ProjectsService struct {
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s} rs := &ProjectsLocationsService{s: s}
rs.AcceleratorTypes = NewProjectsLocationsAcceleratorTypesService(s)
rs.Nodes = NewProjectsLocationsNodesService(s) rs.Nodes = NewProjectsLocationsNodesService(s)
rs.Operations = NewProjectsLocationsOperationsService(s) rs.Operations = NewProjectsLocationsOperationsService(s)
rs.TensorflowVersions = NewProjectsLocationsTensorflowVersionsService(s) rs.TensorflowVersions = NewProjectsLocationsTensorflowVersionsService(s)
@ -98,6 +99,8 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
type ProjectsLocationsService struct { type ProjectsLocationsService struct {
s *Service s *Service
AcceleratorTypes *ProjectsLocationsAcceleratorTypesService
Nodes *ProjectsLocationsNodesService Nodes *ProjectsLocationsNodesService
Operations *ProjectsLocationsOperationsService Operations *ProjectsLocationsOperationsService
@ -105,6 +108,15 @@ type ProjectsLocationsService struct {
TensorflowVersions *ProjectsLocationsTensorflowVersionsService TensorflowVersions *ProjectsLocationsTensorflowVersionsService
} }
func NewProjectsLocationsAcceleratorTypesService(s *Service) *ProjectsLocationsAcceleratorTypesService {
rs := &ProjectsLocationsAcceleratorTypesService{s: s}
return rs
}
type ProjectsLocationsAcceleratorTypesService struct {
s *Service
}
func NewProjectsLocationsNodesService(s *Service) *ProjectsLocationsNodesService { func NewProjectsLocationsNodesService(s *Service) *ProjectsLocationsNodesService {
rs := &ProjectsLocationsNodesService{s: s} rs := &ProjectsLocationsNodesService{s: s}
return rs return rs
@ -132,6 +144,42 @@ type ProjectsLocationsTensorflowVersionsService struct {
s *Service s *Service
} }
// AcceleratorType: A accelerator type that a Node can be configured
// with.
type AcceleratorType struct {
// Name: The resource name.
Name string `json:"name,omitempty"`
// Type: the accelerator type.
Type string `json:"type,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Name") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AcceleratorType) MarshalJSON() ([]byte, error) {
type NoMethod AcceleratorType
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Empty: A generic empty message that you can re-use to avoid defining // Empty: A generic empty message that you can re-use to avoid defining
// duplicated // duplicated
// empty messages in your APIs. A typical example is to use it as the // empty messages in your APIs. A typical example is to use it as the
@ -150,6 +198,42 @@ type Empty struct {
googleapi.ServerResponse `json:"-"` googleapi.ServerResponse `json:"-"`
} }
// ListAcceleratorTypesResponse: Response for ListAcceleratorTypes.
type ListAcceleratorTypesResponse struct {
// AcceleratorTypes: The listed nodes.
AcceleratorTypes []*AcceleratorType `json:"acceleratorTypes,omitempty"`
// NextPageToken: The next page token or empty if none.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "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 (s *ListAcceleratorTypesResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListAcceleratorTypesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListLocationsResponse: The response message for // ListLocationsResponse: The response message for
// Locations.ListLocations. // Locations.ListLocations.
type ListLocationsResponse struct { type ListLocationsResponse struct {
@ -296,6 +380,11 @@ func (s *ListTensorFlowVersionsResponse) MarshalJSON() ([]byte, error) {
// Location: A resource that represents Google Cloud Platform location. // Location: A resource that represents Google Cloud Platform location.
type Location struct { type Location struct {
// DisplayName: The friendly name for this location, typically a nearby
// city name.
// For example, "Tokyo".
DisplayName string `json:"displayName,omitempty"`
// Labels: Cross-service attributes for the location. For example // Labels: Cross-service attributes for the location. For example
// //
// {"cloud.googleapis.com/region": "us-east1"} // {"cloud.googleapis.com/region": "us-east1"}
@ -319,7 +408,7 @@ type Location struct {
// server. // server.
googleapi.ServerResponse `json:"-"` googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Labels") to // ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with // unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer, // empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the // non-interface field appearing in ForceSendFields will be sent to the
@ -327,10 +416,10 @@ type Location struct {
// used to include empty fields in Patch requests. // used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"` ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Labels") to include in API // NullFields is a list of field names (e.g. "DisplayName") to include
// requests with the JSON null value. By default, fields with empty // in API requests with the JSON null value. By default, fields with
// values are omitted from API requests. However, any field with an // empty values are omitted from API requests. However, any field with
// empty value appearing in NullFields will be sent to the server as // 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. // 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. // This may be used to include null fields in Patch requests.
NullFields []string `json:"-"` NullFields []string `json:"-"`
@ -457,6 +546,8 @@ type Node struct {
// instances. // instances.
Port string `json:"port,omitempty"` Port string `json:"port,omitempty"`
SchedulingConfig *SchedulingConfig `json:"schedulingConfig,omitempty"`
// ServiceAccount: Output only. // ServiceAccount: Output only.
// The service account used to run the tensor flow services within the // The service account used to run the tensor flow services within the
// node. // node.
@ -482,6 +573,8 @@ type Node struct {
// found in the `help_description` field. // found in the `help_description` field.
// "STOPPED" - 7 - Reserved. Was SUSPENDED. // "STOPPED" - 7 - Reserved. Was SUSPENDED.
// TPU node is stopped. // TPU node is stopped.
// "STOPPING" - TPU node is currently stopping.
// "STARTING" - TPU node is currently starting.
State string `json:"state,omitempty"` State string `json:"state,omitempty"`
// TensorflowVersion: The version of Tensorflow running in the // TensorflowVersion: The version of Tensorflow running in the
@ -680,6 +773,32 @@ func (s *ReimageNodeRequest) MarshalJSON() ([]byte, error) {
type ResetNodeRequest struct { type ResetNodeRequest struct {
} }
type SchedulingConfig struct {
Preemptible bool `json:"preemptible,omitempty"`
// ForceSendFields is a list of field names (e.g. "Preemptible") 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. "Preemptible") 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 (s *SchedulingConfig) MarshalJSON() ([]byte, error) {
type NoMethod SchedulingConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StartNodeRequest: Request for StartNode. // StartNodeRequest: Request for StartNode.
type StartNodeRequest struct { type StartNodeRequest struct {
} }
@ -854,7 +973,7 @@ type ProjectsLocationsGetCall struct {
header_ http.Header header_ http.Header
} }
// Get: Get information about a location. // Get: Gets information about a location.
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name c.name = name
@ -907,7 +1026,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error)
} }
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body) req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -955,8 +1074,8 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,
} }
return ret, nil return ret, nil
// { // {
// "description": "Get information about a location.", // "description": "Gets information about a location.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "tpu.projects.locations.get", // "id": "tpu.projects.locations.get",
// "parameterOrder": [ // "parameterOrder": [
@ -971,7 +1090,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}", // "path": "v1/{+name}",
// "response": { // "response": {
// "$ref": "Location" // "$ref": "Location"
// }, // },
@ -1068,7 +1187,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error
} }
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}/locations") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body) req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -1117,7 +1236,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat
return ret, nil return ret, nil
// { // {
// "description": "Lists information about the supported locations for this service.", // "description": "Lists information about the supported locations for this service.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations", // "flatPath": "v1/projects/{projectsId}/locations",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "tpu.projects.locations.list", // "id": "tpu.projects.locations.list",
// "parameterOrder": [ // "parameterOrder": [
@ -1148,7 +1267,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}/locations", // "path": "v1/{+name}/locations",
// "response": { // "response": {
// "$ref": "ListLocationsResponse" // "$ref": "ListLocationsResponse"
// }, // },
@ -1180,6 +1299,352 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat
} }
} }
// method id "tpu.projects.locations.acceleratorTypes.get":
type ProjectsLocationsAcceleratorTypesGetCall struct {
s *Service
name string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Gets AcceleratorType.
func (r *ProjectsLocationsAcceleratorTypesService) Get(name string) *ProjectsLocationsAcceleratorTypesGetCall {
c := &ProjectsLocationsAcceleratorTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.name = name
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ProjectsLocationsAcceleratorTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAcceleratorTypesGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ProjectsLocationsAcceleratorTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAcceleratorTypesGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *ProjectsLocationsAcceleratorTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAcceleratorTypesGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ProjectsLocationsAcceleratorTypesGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "tpu.projects.locations.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 (c *ProjectsLocationsAcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*AcceleratorType, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &AcceleratorType{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets AcceleratorType.",
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/acceleratorTypes/{acceleratorTypesId}",
// "httpMethod": "GET",
// "id": "tpu.projects.locations.acceleratorTypes.get",
// "parameterOrder": [
// "name"
// ],
// "parameters": {
// "name": {
// "description": "The resource name.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+/acceleratorTypes/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/{+name}",
// "response": {
// "$ref": "AcceleratorType"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// method id "tpu.projects.locations.acceleratorTypes.list":
type ProjectsLocationsAcceleratorTypesListCall struct {
s *Service
parent string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Lists accelerator types supported by this API.
func (r *ProjectsLocationsAcceleratorTypesService) List(parent string) *ProjectsLocationsAcceleratorTypesListCall {
c := &ProjectsLocationsAcceleratorTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
return c
}
// Filter sets the optional parameter "filter": List filter.
func (c *ProjectsLocationsAcceleratorTypesListCall) Filter(filter string) *ProjectsLocationsAcceleratorTypesListCall {
c.urlParams_.Set("filter", filter)
return c
}
// OrderBy sets the optional parameter "orderBy": Sort results.
func (c *ProjectsLocationsAcceleratorTypesListCall) OrderBy(orderBy string) *ProjectsLocationsAcceleratorTypesListCall {
c.urlParams_.Set("orderBy", orderBy)
return c
}
// PageSize sets the optional parameter "pageSize": The maximum number
// of items to return.
func (c *ProjectsLocationsAcceleratorTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAcceleratorTypesListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": The
// next_page_token value returned from a previous List request, if any.
func (c *ProjectsLocationsAcceleratorTypesListCall) PageToken(pageToken string) *ProjectsLocationsAcceleratorTypesListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ProjectsLocationsAcceleratorTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAcceleratorTypesListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ProjectsLocationsAcceleratorTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAcceleratorTypesListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *ProjectsLocationsAcceleratorTypesListCall) Context(ctx context.Context) *ProjectsLocationsAcceleratorTypesListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ProjectsLocationsAcceleratorTypesListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/acceleratorTypes")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "tpu.projects.locations.acceleratorTypes.list" call.
// Exactly one of *ListAcceleratorTypesResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *ListAcceleratorTypesResponse.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 (c *ProjectsLocationsAcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*ListAcceleratorTypesResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListAcceleratorTypesResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Lists accelerator types supported by this API.",
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/acceleratorTypes",
// "httpMethod": "GET",
// "id": "tpu.projects.locations.acceleratorTypes.list",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "filter": {
// "description": "List filter.",
// "location": "query",
// "type": "string"
// },
// "orderBy": {
// "description": "Sort results.",
// "location": "query",
// "type": "string"
// },
// "pageSize": {
// "description": "The maximum number of items to return.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "The next_page_token value returned from a previous List request, if any.",
// "location": "query",
// "type": "string"
// },
// "parent": {
// "description": "The parent resource name.",
// "location": "path",
// "pattern": "^projects/[^/]+/locations/[^/]+$",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/{+parent}/acceleratorTypes",
// "response": {
// "$ref": "ListAcceleratorTypesResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
// ]
// }
}
// 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.
func (c *ProjectsLocationsAcceleratorTypesListCall) Pages(ctx context.Context, f func(*ListAcceleratorTypesResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "tpu.projects.locations.nodes.create": // method id "tpu.projects.locations.nodes.create":
type ProjectsLocationsNodesCreateCall struct { type ProjectsLocationsNodesCreateCall struct {
@ -1244,7 +1709,7 @@ func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response
} }
reqHeaders.Set("Content-Type", "application/json") reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/nodes") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/nodes")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body) req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -1293,7 +1758,7 @@ func (c *ProjectsLocationsNodesCreateCall) Do(opts ...googleapi.CallOption) (*Op
return ret, nil return ret, nil
// { // {
// "description": "Creates a node.", // "description": "Creates a node.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes",
// "httpMethod": "POST", // "httpMethod": "POST",
// "id": "tpu.projects.locations.nodes.create", // "id": "tpu.projects.locations.nodes.create",
// "parameterOrder": [ // "parameterOrder": [
@ -1313,7 +1778,7 @@ func (c *ProjectsLocationsNodesCreateCall) Do(opts ...googleapi.CallOption) (*Op
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+parent}/nodes", // "path": "v1/{+parent}/nodes",
// "request": { // "request": {
// "$ref": "Node" // "$ref": "Node"
// }, // },
@ -1377,7 +1842,7 @@ func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response
reqHeaders.Set("User-Agent", c.s.userAgent()) reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body) req, _ := http.NewRequest("DELETE", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -1426,7 +1891,7 @@ func (c *ProjectsLocationsNodesDeleteCall) Do(opts ...googleapi.CallOption) (*Op
return ret, nil return ret, nil
// { // {
// "description": "Deletes a node.", // "description": "Deletes a node.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}",
// "httpMethod": "DELETE", // "httpMethod": "DELETE",
// "id": "tpu.projects.locations.nodes.delete", // "id": "tpu.projects.locations.nodes.delete",
// "parameterOrder": [ // "parameterOrder": [
@ -1441,7 +1906,7 @@ func (c *ProjectsLocationsNodesDeleteCall) Do(opts ...googleapi.CallOption) (*Op
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}", // "path": "v1/{+name}",
// "response": { // "response": {
// "$ref": "Operation" // "$ref": "Operation"
// }, // },
@ -1516,7 +1981,7 @@ func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, e
} }
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body) req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -1565,7 +2030,7 @@ func (c *ProjectsLocationsNodesGetCall) Do(opts ...googleapi.CallOption) (*Node,
return ret, nil return ret, nil
// { // {
// "description": "Gets the details of a node.", // "description": "Gets the details of a node.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "tpu.projects.locations.nodes.get", // "id": "tpu.projects.locations.nodes.get",
// "parameterOrder": [ // "parameterOrder": [
@ -1580,7 +2045,7 @@ func (c *ProjectsLocationsNodesGetCall) Do(opts ...googleapi.CallOption) (*Node,
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}", // "path": "v1/{+name}",
// "response": { // "response": {
// "$ref": "Node" // "$ref": "Node"
// }, // },
@ -1669,7 +2134,7 @@ func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response,
} }
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/nodes") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/nodes")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body) req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -1718,7 +2183,7 @@ func (c *ProjectsLocationsNodesListCall) Do(opts ...googleapi.CallOption) (*List
return ret, nil return ret, nil
// { // {
// "description": "Lists nodes.", // "description": "Lists nodes.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "tpu.projects.locations.nodes.list", // "id": "tpu.projects.locations.nodes.list",
// "parameterOrder": [ // "parameterOrder": [
@ -1744,7 +2209,7 @@ func (c *ProjectsLocationsNodesListCall) Do(opts ...googleapi.CallOption) (*List
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+parent}/nodes", // "path": "v1/{+parent}/nodes",
// "response": { // "response": {
// "$ref": "ListNodesResponse" // "$ref": "ListNodesResponse"
// }, // },
@ -1833,7 +2298,7 @@ func (c *ProjectsLocationsNodesReimageCall) doRequest(alt string) (*http.Respons
} }
reqHeaders.Set("Content-Type", "application/json") reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:reimage") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:reimage")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body) req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -1882,7 +2347,7 @@ func (c *ProjectsLocationsNodesReimageCall) Do(opts ...googleapi.CallOption) (*O
return ret, nil return ret, nil
// { // {
// "description": "Reimages a node's OS.", // "description": "Reimages a node's OS.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reimage", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reimage",
// "httpMethod": "POST", // "httpMethod": "POST",
// "id": "tpu.projects.locations.nodes.reimage", // "id": "tpu.projects.locations.nodes.reimage",
// "parameterOrder": [ // "parameterOrder": [
@ -1897,7 +2362,7 @@ func (c *ProjectsLocationsNodesReimageCall) Do(opts ...googleapi.CallOption) (*O
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}:reimage", // "path": "v1/{+name}:reimage",
// "request": { // "request": {
// "$ref": "ReimageNodeRequest" // "$ref": "ReimageNodeRequest"
// }, // },
@ -1968,7 +2433,7 @@ func (c *ProjectsLocationsNodesResetCall) doRequest(alt string) (*http.Response,
} }
reqHeaders.Set("Content-Type", "application/json") reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:reset") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:reset")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body) req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -2017,7 +2482,7 @@ func (c *ProjectsLocationsNodesResetCall) Do(opts ...googleapi.CallOption) (*Ope
return ret, nil return ret, nil
// { // {
// "description": "Resets a node, which stops and starts the VM.", // "description": "Resets a node, which stops and starts the VM.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reset", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reset",
// "httpMethod": "POST", // "httpMethod": "POST",
// "id": "tpu.projects.locations.nodes.reset", // "id": "tpu.projects.locations.nodes.reset",
// "parameterOrder": [ // "parameterOrder": [
@ -2032,7 +2497,7 @@ func (c *ProjectsLocationsNodesResetCall) Do(opts ...googleapi.CallOption) (*Ope
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}:reset", // "path": "v1/{+name}:reset",
// "request": { // "request": {
// "$ref": "ResetNodeRequest" // "$ref": "ResetNodeRequest"
// }, // },
@ -2103,7 +2568,7 @@ func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response,
} }
reqHeaders.Set("Content-Type", "application/json") reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:start") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:start")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body) req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -2152,7 +2617,7 @@ func (c *ProjectsLocationsNodesStartCall) Do(opts ...googleapi.CallOption) (*Ope
return ret, nil return ret, nil
// { // {
// "description": "Starts a node.", // "description": "Starts a node.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:start", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:start",
// "httpMethod": "POST", // "httpMethod": "POST",
// "id": "tpu.projects.locations.nodes.start", // "id": "tpu.projects.locations.nodes.start",
// "parameterOrder": [ // "parameterOrder": [
@ -2167,7 +2632,7 @@ func (c *ProjectsLocationsNodesStartCall) Do(opts ...googleapi.CallOption) (*Ope
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}:start", // "path": "v1/{+name}:start",
// "request": { // "request": {
// "$ref": "StartNodeRequest" // "$ref": "StartNodeRequest"
// }, // },
@ -2238,7 +2703,7 @@ func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response,
} }
reqHeaders.Set("Content-Type", "application/json") reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:stop") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:stop")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body) req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -2287,7 +2752,7 @@ func (c *ProjectsLocationsNodesStopCall) Do(opts ...googleapi.CallOption) (*Oper
return ret, nil return ret, nil
// { // {
// "description": "Stops a node.", // "description": "Stops a node.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:stop", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:stop",
// "httpMethod": "POST", // "httpMethod": "POST",
// "id": "tpu.projects.locations.nodes.stop", // "id": "tpu.projects.locations.nodes.stop",
// "parameterOrder": [ // "parameterOrder": [
@ -2302,7 +2767,7 @@ func (c *ProjectsLocationsNodesStopCall) Do(opts ...googleapi.CallOption) (*Oper
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}:stop", // "path": "v1/{+name}:stop",
// "request": { // "request": {
// "$ref": "StopNodeRequest" // "$ref": "StopNodeRequest"
// }, // },
@ -2383,7 +2848,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res
reqHeaders.Set("User-Agent", c.s.userAgent()) reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:cancel") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body) req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -2432,7 +2897,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption)
return ret, nil return ret, nil
// { // {
// "description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", // "description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
// "httpMethod": "POST", // "httpMethod": "POST",
// "id": "tpu.projects.locations.operations.cancel", // "id": "tpu.projects.locations.operations.cancel",
// "parameterOrder": [ // "parameterOrder": [
@ -2447,7 +2912,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption)
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}:cancel", // "path": "v1/{+name}:cancel",
// "response": { // "response": {
// "$ref": "Empty" // "$ref": "Empty"
// }, // },
@ -2514,7 +2979,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res
reqHeaders.Set("User-Agent", c.s.userAgent()) reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body) req, _ := http.NewRequest("DELETE", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -2563,7 +3028,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption)
return ret, nil return ret, nil
// { // {
// "description": "Deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.", // "description": "Deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
// "httpMethod": "DELETE", // "httpMethod": "DELETE",
// "id": "tpu.projects.locations.operations.delete", // "id": "tpu.projects.locations.operations.delete",
// "parameterOrder": [ // "parameterOrder": [
@ -2578,7 +3043,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption)
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}", // "path": "v1/{+name}",
// "response": { // "response": {
// "$ref": "Empty" // "$ref": "Empty"
// }, // },
@ -2657,7 +3122,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon
} }
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body) req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -2706,7 +3171,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*
return ret, nil return ret, nil
// { // {
// "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "tpu.projects.locations.operations.get", // "id": "tpu.projects.locations.operations.get",
// "parameterOrder": [ // "parameterOrder": [
@ -2721,7 +3186,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}", // "path": "v1/{+name}",
// "response": { // "response": {
// "$ref": "Operation" // "$ref": "Operation"
// }, // },
@ -2833,7 +3298,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo
} }
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}/operations") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body) req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -2882,7 +3347,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (
return ret, nil return ret, nil
// { // {
// "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "tpu.projects.locations.operations.list", // "id": "tpu.projects.locations.operations.list",
// "parameterOrder": [ // "parameterOrder": [
@ -2913,7 +3378,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}/operations", // "path": "v1/{+name}/operations",
// "response": { // "response": {
// "$ref": "ListOperationsResponse" // "$ref": "ListOperationsResponse"
// }, // },
@ -3009,7 +3474,7 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) doRequest(alt string) (*htt
} }
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body) req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -3058,7 +3523,7 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) Do(opts ...googleapi.CallOp
return ret, nil return ret, nil
// { // {
// "description": "Gets TensorFlow Version.", // "description": "Gets TensorFlow Version.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions/{tensorflowVersionsId}", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions/{tensorflowVersionsId}",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "tpu.projects.locations.tensorflowVersions.get", // "id": "tpu.projects.locations.tensorflowVersions.get",
// "parameterOrder": [ // "parameterOrder": [
@ -3073,7 +3538,7 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) Do(opts ...googleapi.CallOp
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+name}", // "path": "v1/{+name}",
// "response": { // "response": {
// "$ref": "TensorFlowVersion" // "$ref": "TensorFlowVersion"
// }, // },
@ -3095,7 +3560,7 @@ type ProjectsLocationsTensorflowVersionsListCall struct {
header_ http.Header header_ http.Header
} }
// List: Lists TensorFlow versions supported by this API. // List: List TensorFlow versions supported by this API.
func (r *ProjectsLocationsTensorflowVersionsService) List(parent string) *ProjectsLocationsTensorflowVersionsListCall { func (r *ProjectsLocationsTensorflowVersionsService) List(parent string) *ProjectsLocationsTensorflowVersionsListCall {
c := &ProjectsLocationsTensorflowVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c := &ProjectsLocationsTensorflowVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent c.parent = parent
@ -3174,7 +3639,7 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) doRequest(alt string) (*ht
} }
var body io.Reader = nil var body io.Reader = nil
c.urlParams_.Set("alt", alt) c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/tensorflowVersions") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tensorflowVersions")
urls += "?" + c.urlParams_.Encode() urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body) req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders req.Header = reqHeaders
@ -3222,8 +3687,8 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) Do(opts ...googleapi.CallO
} }
return ret, nil return ret, nil
// { // {
// "description": "Lists TensorFlow versions supported by this API.", // "description": "List TensorFlow versions supported by this API.",
// "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions",
// "httpMethod": "GET", // "httpMethod": "GET",
// "id": "tpu.projects.locations.tensorflowVersions.list", // "id": "tpu.projects.locations.tensorflowVersions.list",
// "parameterOrder": [ // "parameterOrder": [
@ -3259,7 +3724,7 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) Do(opts ...googleapi.CallO
// "type": "string" // "type": "string"
// } // }
// }, // },
// "path": "v1alpha1/{+parent}/tensorflowVersions", // "path": "v1/{+parent}/tensorflowVersions",
// "response": { // "response": {
// "$ref": "ListTensorFlowVersionsResponse" // "$ref": "ListTensorFlowVersionsResponse"
// }, // },