From f26a60c56f148a32e87f3f4591c8ebf834b5561f Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 29 Dec 2018 00:08:44 +0000 Subject: [PATCH] all: autogenerated update (2018-12-29) Update: - bigquery/v2 - cloudfunctions/v1 - cloudfunctions/v1beta2 - pubsub/v1 - servicenetworking/v1beta --- bigquery/v2/bigquery-api.json | 29 +++++++++++-- bigquery/v2/bigquery-gen.go | 41 ++++++++++++++++++- cloudfunctions/v1/cloudfunctions-api.json | 6 +-- cloudfunctions/v1/cloudfunctions-gen.go | 15 +++---- .../v1beta2/cloudfunctions-api.json | 6 +-- cloudfunctions/v1beta2/cloudfunctions-gen.go | 15 +++---- pubsub/v1/pubsub-api.json | 4 +- pubsub/v1/pubsub-gen.go | 9 ++-- .../v1beta/servicenetworking-api.json | 10 +++-- .../v1beta/servicenetworking-gen.go | 13 ++++-- 10 files changed, 109 insertions(+), 39 deletions(-) diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index ec32ac0fd00..0b991b83c63 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -32,7 +32,7 @@ "description": "A data platform for customers to create, manage, share and query data.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/bigquery/", - "etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/3Jagobv31vWqlbqTQmqlK0yJxxs\"", + "etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/eFeCSA4VWy7K7nrpB2R4OL12KqY\"", "icons": { "x16": "https://www.google.com/images/icons/product/search-16.gif", "x32": "https://www.google.com/images/icons/product/search-32.gif" @@ -998,7 +998,7 @@ } } }, - "revision": "20181202", + "revision": "20181216", "rootUrl": "https://www.googleapis.com/", "schemas": { "BigQueryModelTraining": { @@ -2251,6 +2251,24 @@ }, "type": "array" }, + "reservationUsage": { + "description": "[Output-only] Job resource usage breakdown by reservation.", + "items": { + "properties": { + "name": { + "description": "[Output-only] Reservation name or \"unreserved\" for on-demand resources usage.", + "type": "string" + }, + "slotMs": { + "description": "[Output-only] Slot-milliseconds the job spent in the given reservation.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, "startTime": { "description": "[Output-only] Start time of this job, in milliseconds since the epoch. This field will be present when the job transitions from the PENDING state to either RUNNING or DONE.", "format": "int64", @@ -2260,6 +2278,11 @@ "description": "[Output-only] [Deprecated] Use the bytes processed in the query statistics instead.", "format": "int64", "type": "string" + }, + "totalSlotMs": { + "description": "[Output-only] Slot-milliseconds for the job.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -2345,7 +2368,7 @@ "description": "[Output-only] The schema of the results. Present only for successful dry run of non-legacy SQL queries." }, "statementType": { - "description": "The type of query statement, if valid. Possible values (new values might be added in the future): \"SELECT\": SELECT query. \"INSERT\": INSERT query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language \"UPDATE\": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language \"DELETE\": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language \"MERGE\": MERGE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language \"CREATE_TABLE\": CREATE [OR REPLACE] TABLE without AS SELECT. \"CREATE_TABLE_AS_SELECT\": CREATE [OR REPLACE] TABLE ... AS SELECT ... \"DROP_TABLE\": DROP TABLE query. \"CREATE_VIEW\": CREATE [OR REPLACE] VIEW ... AS SELECT ... \"DROP_VIEW\": DROP VIEW query.", + "description": "The type of query statement, if valid. Possible values (new values might be added in the future): \"SELECT\": SELECT query. \"INSERT\": INSERT query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. \"UPDATE\": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. \"DELETE\": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. \"MERGE\": MERGE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. \"CREATE_TABLE\": CREATE [OR REPLACE] TABLE without AS SELECT. \"CREATE_TABLE_AS_SELECT\": CREATE [OR REPLACE] TABLE ... AS SELECT ... . \"DROP_TABLE\": DROP TABLE query. \"CREATE_VIEW\": CREATE [OR REPLACE] VIEW ... AS SELECT ... . \"DROP_VIEW\": DROP VIEW query. \"ALTER_TABLE\": ALTER TABLE query. \"ALTER_VIEW\": ALTER VIEW query.", "type": "string" }, "timeline": { diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index 9e659e4eded..b66a9d769ae 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -2162,6 +2162,10 @@ type JobStatistics struct { // time. QuotaDeferments []string `json:"quotaDeferments,omitempty"` + // ReservationUsage: [Output-only] Job resource usage breakdown by + // reservation. + ReservationUsage []*JobStatisticsReservationUsage `json:"reservationUsage,omitempty"` + // StartTime: [Output-only] Start time of this job, in milliseconds // since the epoch. This field will be present when the job transitions // from the PENDING state to either RUNNING or DONE. @@ -2171,6 +2175,9 @@ type JobStatistics struct { // processed in the query statistics instead. TotalBytesProcessed int64 `json:"totalBytesProcessed,omitempty,string"` + // TotalSlotMs: [Output-only] Slot-milliseconds for the job. + TotalSlotMs int64 `json:"totalSlotMs,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CompletionRatio") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -2209,6 +2216,38 @@ func (s *JobStatistics) UnmarshalJSON(data []byte) error { return nil } +type JobStatisticsReservationUsage struct { + // Name: [Output-only] Reservation name or "unreserved" for on-demand + // resources usage. + Name string `json:"name,omitempty"` + + // SlotMs: [Output-only] Slot-milliseconds the job spent in the given + // reservation. + SlotMs int64 `json:"slotMs,omitempty,string"` + + // 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 *JobStatisticsReservationUsage) MarshalJSON() ([]byte, error) { + type NoMethod JobStatisticsReservationUsage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type JobStatistics2 struct { // BillingTier: [Output-only] Billing tier for the job. BillingTier int64 `json:"billingTier,omitempty"` @@ -2272,7 +2311,7 @@ type JobStatistics2 struct { // StatementType: The type of query statement, if valid. Possible values // (new values might be added in the future): "SELECT": SELECT query. // "INSERT": INSERT query; see - // https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "UPDATE": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "MERGE": MERGE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... "DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... "DROP_VIEW": DROP VIEW + // https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "UPDATE": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "MERGE": MERGE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... . "DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... . "DROP_VIEW": DROP VIEW query. "ALTER_TABLE": ALTER TABLE query. "ALTER_VIEW": ALTER VIEW // query. StatementType string `json:"statementType,omitempty"` diff --git a/cloudfunctions/v1/cloudfunctions-api.json b/cloudfunctions/v1/cloudfunctions-api.json index 8ddee58524d..963af7e9538 100644 --- a/cloudfunctions/v1/cloudfunctions-api.json +++ b/cloudfunctions/v1/cloudfunctions-api.json @@ -139,12 +139,12 @@ "parameterOrder": [], "parameters": { "filter": { - "description": "Required. A filter for matching the requested operations.\u003cbr\u003e\u003cbr\u003e The supported formats of \u003cb\u003efilter\u003c/b\u003e are:\u003cbr\u003e To query for specific function: \u003ccode\u003eproject:*,location:*,function:*\u003c/code\u003e\u003cbr\u003e To query for all of the latest operations for a project: \u003ccode\u003eproject:*,latest:true\u003c/code\u003e", + "description": "The standard list filter.", "location": "query", "type": "string" }, "name": { - "description": "Must not be set.", + "description": "The name of the operation's parent resource.", "location": "query", "type": "string" }, @@ -539,7 +539,7 @@ } } }, - "revision": "20181212", + "revision": "20181202", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index 7088f55965b..fc234443b6d 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -1840,18 +1840,15 @@ func (r *OperationsService) List() *OperationsListCall { return c } -// Filter sets the optional parameter "filter": Required. A filter for -// matching the requested operations.

The supported formats of -// filter are:
To query for specific function: -// project:*,location:*,function:*
To query for all of -// the latest operations for a project: -// project:*,latest:true +// Filter sets the optional parameter "filter": The standard list +// filter. func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c } -// Name sets the optional parameter "name": Must not be set. +// Name sets the optional parameter "name": The name of the operation's +// parent resource. func (c *OperationsListCall) Name(name string) *OperationsListCall { c.urlParams_.Set("name", name) return c @@ -1973,12 +1970,12 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // "parameterOrder": [], // "parameters": { // "filter": { - // "description": "Required. A filter for matching the requested operations.\u003cbr\u003e\u003cbr\u003e The supported formats of \u003cb\u003efilter\u003c/b\u003e are:\u003cbr\u003e To query for specific function: \u003ccode\u003eproject:*,location:*,function:*\u003c/code\u003e\u003cbr\u003e To query for all of the latest operations for a project: \u003ccode\u003eproject:*,latest:true\u003c/code\u003e", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, // "name": { - // "description": "Must not be set.", + // "description": "The name of the operation's parent resource.", // "location": "query", // "type": "string" // }, diff --git a/cloudfunctions/v1beta2/cloudfunctions-api.json b/cloudfunctions/v1beta2/cloudfunctions-api.json index 73235781e19..d2b6a1a1b5e 100644 --- a/cloudfunctions/v1beta2/cloudfunctions-api.json +++ b/cloudfunctions/v1beta2/cloudfunctions-api.json @@ -139,12 +139,12 @@ "parameterOrder": [], "parameters": { "filter": { - "description": "Required. A filter for matching the requested operations.\u003cbr\u003e\u003cbr\u003e The supported formats of \u003cb\u003efilter\u003c/b\u003e are:\u003cbr\u003e To query for specific function: \u003ccode\u003eproject:*,location:*,function:*\u003c/code\u003e\u003cbr\u003e To query for all of the latest operations for a project: \u003ccode\u003eproject:*,latest:true\u003c/code\u003e", + "description": "The standard list filter.", "location": "query", "type": "string" }, "name": { - "description": "Must not be set.", + "description": "The name of the operation's parent resource.", "location": "query", "type": "string" }, @@ -452,7 +452,7 @@ } } }, - "revision": "20181212", + "revision": "20181202", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "CallFunctionRequest": { diff --git a/cloudfunctions/v1beta2/cloudfunctions-gen.go b/cloudfunctions/v1beta2/cloudfunctions-gen.go index 5260448257b..2d0ad20f4d3 100644 --- a/cloudfunctions/v1beta2/cloudfunctions-gen.go +++ b/cloudfunctions/v1beta2/cloudfunctions-gen.go @@ -1347,18 +1347,15 @@ func (r *OperationsService) List() *OperationsListCall { return c } -// Filter sets the optional parameter "filter": Required. A filter for -// matching the requested operations.

The supported formats of -// filter are:
To query for specific function: -// project:*,location:*,function:*
To query for all of -// the latest operations for a project: -// project:*,latest:true +// Filter sets the optional parameter "filter": The standard list +// filter. func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c } -// Name sets the optional parameter "name": Must not be set. +// Name sets the optional parameter "name": The name of the operation's +// parent resource. func (c *OperationsListCall) Name(name string) *OperationsListCall { c.urlParams_.Set("name", name) return c @@ -1480,12 +1477,12 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // "parameterOrder": [], // "parameters": { // "filter": { - // "description": "Required. A filter for matching the requested operations.\u003cbr\u003e\u003cbr\u003e The supported formats of \u003cb\u003efilter\u003c/b\u003e are:\u003cbr\u003e To query for specific function: \u003ccode\u003eproject:*,location:*,function:*\u003c/code\u003e\u003cbr\u003e To query for all of the latest operations for a project: \u003ccode\u003eproject:*,latest:true\u003c/code\u003e", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, // "name": { - // "description": "Must not be set.", + // "description": "The name of the operation's parent resource.", // "location": "query", // "type": "string" // }, diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index b9fb6a8f9e6..5e2bb2a98e4 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -1074,7 +1074,7 @@ } } }, - "revision": "20181203", + "revision": "20181219", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -1267,7 +1267,7 @@ "id": "ModifyAckDeadlineRequest", "properties": { "ackDeadlineSeconds": { - "description": "The new ack deadline with respect to the time this request was sent to\nthe Pub/Sub system. For example, if the value is 10, the new\nack deadline will expire 10 seconds after the `ModifyAckDeadline` call\nwas made. Specifying zero may immediately make the message available for\nanother pull request.\nThe minimum deadline you can specify is 0 seconds.\nThe maximum deadline you can specify is 600 seconds (10 minutes).", + "description": "The new ack deadline with respect to the time this request was sent to\nthe Pub/Sub system. For example, if the value is 10, the new\nack deadline will expire 10 seconds after the `ModifyAckDeadline` call\nwas made. Specifying zero might immediately make the message available for\ndelivery to another subscriber client. This typically results in an\nincrease in the rate of message redeliveries (that is, duplicates).\nThe minimum deadline you can specify is 0 seconds.\nThe maximum deadline you can specify is 600 seconds (10 minutes).", "format": "int32", "type": "integer" }, diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index c961656c4e3..17c8920789d 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -631,9 +631,12 @@ type ModifyAckDeadlineRequest struct { // the Pub/Sub system. For example, if the value is 10, the new // ack deadline will expire 10 seconds after the `ModifyAckDeadline` // call - // was made. Specifying zero may immediately make the message available - // for - // another pull request. + // was made. Specifying zero might immediately make the message + // available for + // delivery to another subscriber client. This typically results in + // an + // increase in the rate of message redeliveries (that is, + // duplicates). // The minimum deadline you can specify is 0 seconds. // The maximum deadline you can specify is 600 seconds (10 minutes). AckDeadlineSeconds int64 `json:"ackDeadlineSeconds,omitempty"` diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index 12a49813d09..785e5688860 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -140,7 +140,7 @@ "services": { "methods": { "addSubnetwork": { - "description": "For service producers, provisions a new subnet in a\npeered service's shared VPC network in the requested region and with the\nrequested size that's expressed as a CIDR range (number of leading bits of\nipV4 network mask). The method checks against the assigned allocated ranges\nto find a non-conflicting IP address range. The method will reuse a subnet\nif subsequent calls contain the same subnet name, region, prefix length.\nThis method will make producer's tenant project to be a shared VPC service\nproject as needed.\nThe response from the `get` operation will be of type `Subnetwork` if the\noperation successfully completes.", + "description": "For service producers, provisions a new subnet in a\npeered service's shared VPC network in the requested region and with the\nrequested size that's expressed as a CIDR range (number of leading bits of\nipV4 network mask). The method checks against the assigned allocated ranges\nto find a non-conflicting IP address range. The method will reuse a subnet\nif subsequent calls contain the same subnet name, region, and prefix length.\nThis method will make producer's tenant project to be a shared VPC service\nproject as needed.\nThe response from the `get` operation will be of type `Subnetwork` if the\noperation successfully completes.", "flatPath": "v1beta/services/{servicesId}/{servicesId1}/{servicesId2}:addSubnetwork", "httpMethod": "POST", "id": "servicenetworking.services.addSubnetwork", @@ -306,7 +306,7 @@ } } }, - "revision": "20181217", + "revision": "20181220", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddSubnetworkRequest": { @@ -1804,7 +1804,7 @@ "type": "object" }, "Subnetwork": { - "description": "Represents a subnet that was created by a peered service.", + "description": "Represents a subnet that was created or discovered by a private access\nmanagement service.", "id": "Subnetwork", "properties": { "ipCidrRange": { @@ -1818,6 +1818,10 @@ "network": { "description": "In the Shared VPC host project, the VPC network that's peered with the\nconsumer network. For example:\n`projects/1234321/global/networks/host-network`", "type": "string" + }, + "outsideAllocation": { + "description": "This is a discovered subnet that is not within the current consumer\nallocated ranges.", + "type": "boolean" } }, "type": "object" diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 1633887b0bb..ca9b58e9f69 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -3891,7 +3891,9 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Subnetwork: Represents a subnet that was created by a peered service. +// Subnetwork: Represents a subnet that was created or discovered by a +// private access +// management service. type Subnetwork struct { // IpCidrRange: Subnetwork CIDR range in `10.x.x.x/y` format. IpCidrRange string `json:"ipCidrRange,omitempty"` @@ -3907,6 +3909,11 @@ type Subnetwork struct { // `projects/1234321/global/networks/host-network` Network string `json:"network,omitempty"` + // OutsideAllocation: This is a discovered subnet that is not within the + // current consumer + // allocated ranges. + OutsideAllocation bool `json:"outsideAllocation,omitempty"` + // ForceSendFields is a list of field names (e.g. "IpCidrRange") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, @@ -4435,7 +4442,7 @@ type ServicesAddSubnetworkCall struct { // ranges // to find a non-conflicting IP address range. The method will reuse a // subnet -// if subsequent calls contain the same subnet name, region, prefix +// if subsequent calls contain the same subnet name, region, and prefix // length. // This method will make producer's tenant project to be a shared VPC // service @@ -4540,7 +4547,7 @@ func (c *ServicesAddSubnetworkCall) Do(opts ...googleapi.CallOption) (*Operation } return ret, nil // { - // "description": "For service producers, provisions a new subnet in a\npeered service's shared VPC network in the requested region and with the\nrequested size that's expressed as a CIDR range (number of leading bits of\nipV4 network mask). The method checks against the assigned allocated ranges\nto find a non-conflicting IP address range. The method will reuse a subnet\nif subsequent calls contain the same subnet name, region, prefix length.\nThis method will make producer's tenant project to be a shared VPC service\nproject as needed.\nThe response from the `get` operation will be of type `Subnetwork` if the\noperation successfully completes.", + // "description": "For service producers, provisions a new subnet in a\npeered service's shared VPC network in the requested region and with the\nrequested size that's expressed as a CIDR range (number of leading bits of\nipV4 network mask). The method checks against the assigned allocated ranges\nto find a non-conflicting IP address range. The method will reuse a subnet\nif subsequent calls contain the same subnet name, region, and prefix length.\nThis method will make producer's tenant project to be a shared VPC service\nproject as needed.\nThe response from the `get` operation will be of type `Subnetwork` if the\noperation successfully completes.", // "flatPath": "v1beta/services/{servicesId}/{servicesId1}/{servicesId2}:addSubnetwork", // "httpMethod": "POST", // "id": "servicenetworking.services.addSubnetwork",