From 62ceaad2ceec932061195d173a3e1cef74e5c0bf Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 6 Feb 2024 00:24:15 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2401) --- .../v1/androidmanagement-api.json | 105 +++-- androidmanagement/v1/androidmanagement-gen.go | 288 +++++++------- bigtableadmin/v2/bigtableadmin-api.json | 8 +- bigtableadmin/v2/bigtableadmin-gen.go | 10 +- cloudscheduler/v1/cloudscheduler-api.json | 6 +- cloudscheduler/v1/cloudscheduler-gen.go | 16 +- .../v1beta1/cloudscheduler-api.json | 6 +- cloudscheduler/v1beta1/cloudscheduler-gen.go | 16 +- .../v1beta/dataportability-api.json | 82 +++- dataportability/v1beta/dataportability-gen.go | 93 ++++- datastore/v1/datastore-api.json | 72 +--- datastore/v1/datastore-gen.go | 103 ----- datastore/v1beta3/datastore-api.json | 72 +--- datastore/v1beta3/datastore-gen.go | 103 ----- dfareporting/v4/dfareporting-api.json | 49 ++- dfareporting/v4/dfareporting-gen.go | 92 ++++- firestore/v1/firestore-api.json | 72 +--- firestore/v1/firestore-gen.go | 135 +------ firestore/v1beta1/firestore-api.json | 72 +--- firestore/v1beta1/firestore-gen.go | 135 +------ networkservices/v1/networkservices-api.json | 4 +- networkservices/v1/networkservices-gen.go | 2 +- .../v1beta1/networkservices-api.json | 4 +- .../v1beta1/networkservices-gen.go | 2 +- sasportal/v1alpha1/sasportal-api.json | 76 ++-- sasportal/v1alpha1/sasportal-gen.go | 374 ++++++++++-------- storage/v1/storage-api.json | 12 +- storage/v1/storage-gen.go | 3 - walletobjects/v1/walletobjects-api.json | 32 +- walletobjects/v1/walletobjects-gen.go | 141 ------- workstations/v1/workstations-api.json | 4 +- workstations/v1/workstations-gen.go | 6 +- workstations/v1beta/workstations-api.json | 8 +- workstations/v1beta/workstations-gen.go | 9 +- 34 files changed, 831 insertions(+), 1381 deletions(-) diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index afeaaee5fe1..832ccd331f5 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -512,31 +512,6 @@ "https://www.googleapis.com/auth/androidmanagement" ] }, - "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", - "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "androidmanagement.enterprises.devices.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/androidmanagement" - ] - }, "get": { "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations/{operationsId}", @@ -1188,7 +1163,7 @@ } } }, - "revision": "20240115", + "revision": "20240129", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -1209,7 +1184,7 @@ "type": "object" }, "AdvancedSecurityOverrides": { - "description": "Security policies set to secure values by default. To maintain the security posture of a device, we don't recommend overriding any of the default values.", + "description": "Advanced security settings. In most cases, setting these is not needed.", "id": "AdvancedSecurityOverrides", "properties": { "commonCriteriaMode": { @@ -1692,7 +1667,7 @@ "enumDescriptions": [ "Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.", "Prompt the user to grant a permission.", - "Automatically grant a permission.", + "Automatically grant a permission.On Android 12 and above, Manifest.permission.READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: Manifest.permission.ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) Manifest.permission.ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) Manifest.permission.ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) Manifest.permission.CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) Manifest.permission.RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) Manifest.permission.ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) Manifest.permission.BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)", "Automatically deny a permission." ], "type": "string" @@ -1736,6 +1711,18 @@ "$ref": "ExtensionConfig", "description": "Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app." }, + "installConstraint": { + "description": "Optional. The constraints for installing the app. You can specify a maximum of one InstallConstraint. Multiple constraints are rejected.", + "items": { + "$ref": "InstallConstraint" + }, + "type": "array" + }, + "installPriority": { + "description": "Optional. Amongst apps with installTypeset to:FORCE_INSTALLEDPREINSTALLED this controls the relative priority of installation. A value of 0 (default) means this app has no priority over other apps. For values between 1 and 10,000, a lower value means a higher priority. Values outside of the range 0 to 10,000 inclusive are rejected.", + "format": "int32", + "type": "integer" + }, "installType": { "description": "The type of installation to perform.", "enum": [ @@ -2547,7 +2534,7 @@ "type": "string" }, "memoryEvents": { - "description": "Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy.", + "description": "Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy.Events are retained for a certain period of time and old events are deleted.", "items": { "$ref": "MemoryEvent" }, @@ -3340,6 +3327,55 @@ }, "type": "object" }, + "InstallConstraint": { + "description": "Amongst apps with InstallTypeset to:FORCE_INSTALLEDPREINSTALLED this defines a set of restrictions for the app installation. At least one of the fields must be set. When multiple fields are set, then all the constraints need to be satisfied for the app to be installed.", + "id": "InstallConstraint", + "properties": { + "chargingConstraint": { + "description": "Optional. Charging constraint.", + "enum": [ + "CHARGING_CONSTRAINT_UNSPECIFIED", + "CHARGING_NOT_REQUIRED", + "INSTALL_ONLY_WHEN_CHARGING" + ], + "enumDescriptions": [ + "Unspecified. Default to CHARGING_NOT_REQUIRED.", + "Device doesn't have to be charging.", + "Device has to be charging." + ], + "type": "string" + }, + "deviceIdleConstraint": { + "description": "Optional. Device idle constraint.", + "enum": [ + "DEVICE_IDLE_CONSTRAINT_UNSPECIFIED", + "DEVICE_IDLE_NOT_REQUIRED", + "INSTALL_ONLY_WHEN_DEVICE_IDLE" + ], + "enumDescriptions": [ + "Unspecified. Default to DEVICE_IDLE_NOT_REQUIRED.", + "Device doesn't have to be idle, app can be installed while the user is interacting with the device.", + "Device has to be idle." + ], + "type": "string" + }, + "networkTypeConstraint": { + "description": "Optional. Network type constraint.", + "enum": [ + "NETWORK_TYPE_CONSTRAINT_UNSPECIFIED", + "INSTALL_ON_ANY_NETWORK", + "INSTALL_ONLY_ON_UNMETERED_NETWORK" + ], + "enumDescriptions": [ + "Unspecified. Default to INSTALL_ON_ANY_NETWORK.", + "Any active networks (Wi-Fi, cellular, etc.).", + "Any unmetered network (e.g. Wi-FI)." + ], + "type": "string" + } + }, + "type": "object" + }, "IssueCommandResponse": { "description": "Response on issuing a command. This is currently empty as a placeholder.", "id": "IssueCommandResponse", @@ -3894,7 +3930,7 @@ "type": "object" }, "MemoryEvent": { - "description": "An event related to memory and storage measurements.", + "description": "An event related to memory and storage measurements.To distinguish between new and old events, we recommend using the createTime field.", "id": "MemoryEvent", "properties": { "byteCount": { @@ -4530,7 +4566,7 @@ "enumDescriptions": [ "Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.", "Prompt the user to grant a permission.", - "Automatically grant a permission.", + "Automatically grant a permission.On Android 12 and above, Manifest.permission.READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: Manifest.permission.ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) Manifest.permission.ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) Manifest.permission.ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) Manifest.permission.CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) Manifest.permission.RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) Manifest.permission.ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) Manifest.permission.BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)", "Automatically deny a permission." ], "type": "string" @@ -4665,14 +4701,15 @@ }, "advancedSecurityOverrides": { "$ref": "AdvancedSecurityOverrides", - "description": "Security policies set to secure values by default. To maintain the security posture of a device, we don't recommend overriding any of the default values." + "description": "Advanced security settings. In most cases, setting these is not needed." }, "alwaysOnVpnPackage": { "$ref": "AlwaysOnVpnPackage", "description": "Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting." }, "androidDevicePolicyTracks": { - "description": "The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track.", + "deprecated": true, + "description": "This setting is not supported. Any value is ignored.", "items": { "enum": [ "APP_TRACK_UNSPECIFIED", @@ -4821,7 +4858,7 @@ "enumDescriptions": [ "Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.", "Prompt the user to grant a permission.", - "Automatically grant a permission.", + "Automatically grant a permission.On Android 12 and above, Manifest.permission.READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: Manifest.permission.ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) Manifest.permission.ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) Manifest.permission.ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) Manifest.permission.CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) Manifest.permission.RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) Manifest.permission.ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) Manifest.permission.BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)", "Automatically deny a permission." ], "type": "string" diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 1d5b68c0669..91a912adc89 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -319,9 +319,8 @@ func (s *AdbShellCommandEvent) MarshalJSON() ([]byte, error) { type AdbShellInteractiveEvent struct { } -// AdvancedSecurityOverrides: Security policies set to secure values by -// default. To maintain the security posture of a device, we don't -// recommend overriding any of the default values. +// AdvancedSecurityOverrides: Advanced security settings. In most cases, +// setting these is not needed. type AdvancedSecurityOverrides struct { // CommonCriteriaMode: Controls Common Criteria Mode—security // standards defined in the Common Criteria for Information Technology @@ -937,7 +936,24 @@ type ApplicationPolicy struct { // policy is specified for a permission at any level, then the PROMPT // behavior is used by default. // "PROMPT" - Prompt the user to grant a permission. - // "GRANT" - Automatically grant a permission. + // "GRANT" - Automatically grant a permission.On Android 12 and above, + // Manifest.permission.READ_SMS + // (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) + // and following sensor-related permissions can only be granted on fully + // managed devices: Manifest.permission.ACCESS_FINE_LOCATION + // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) + // Manifest.permission.ACCESS_BACKGROUND_LOCATION + // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) + // Manifest.permission.ACCESS_COARSE_LOCATION + // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) + // Manifest.permission.CAMERA + // (https://developer.android.com/reference/android/Manifest.permission#CAMERA) + // Manifest.permission.RECORD_AUDIO + // (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) + // Manifest.permission.ACTIVITY_RECOGNITION + // (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) + // Manifest.permission.BODY_SENSORS + // (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS) // "DENY" - Automatically deny a permission. DefaultPermissionPolicy string `json:"defaultPermissionPolicy,omitempty"` @@ -1004,6 +1020,19 @@ type ApplicationPolicy struct { // offline.This field can be set for at most one app. ExtensionConfig *ExtensionConfig `json:"extensionConfig,omitempty"` + // InstallConstraint: Optional. The constraints for installing the app. + // You can specify a maximum of one InstallConstraint. Multiple + // constraints are rejected. + InstallConstraint []*InstallConstraint `json:"installConstraint,omitempty"` + + // InstallPriority: Optional. Amongst apps with installTypeset + // to:FORCE_INSTALLEDPREINSTALLED this controls the relative priority of + // installation. A value of 0 (default) means this app has no priority + // over other apps. For values between 1 and 10,000, a lower value means + // a higher priority. Values outside of the range 0 to 10,000 inclusive + // are rejected. + InstallPriority int64 `json:"installPriority,omitempty"` + // InstallType: The type of installation to perform. // // Possible values: @@ -2220,7 +2249,8 @@ type Device struct { // MemoryEvents: Events related to memory and storage measurements in // chronological order. This information is only available if - // memoryInfoEnabled is true in the device's policy. + // memoryInfoEnabled is true in the device's policy.Events are retained + // for a certain period of time and old events are deleted. MemoryEvents []*MemoryEvent `json:"memoryEvents,omitempty"` // MemoryInfo: Memory information: contains information about device @@ -3407,6 +3437,66 @@ func (s *HardwareStatus) UnmarshalJSON(data []byte) error { return nil } +// InstallConstraint: Amongst apps with InstallTypeset +// to:FORCE_INSTALLEDPREINSTALLED this defines a set of restrictions for +// the app installation. At least one of the fields must be set. When +// multiple fields are set, then all the constraints need to be +// satisfied for the app to be installed. +type InstallConstraint struct { + // ChargingConstraint: Optional. Charging constraint. + // + // Possible values: + // "CHARGING_CONSTRAINT_UNSPECIFIED" - Unspecified. Default to + // CHARGING_NOT_REQUIRED. + // "CHARGING_NOT_REQUIRED" - Device doesn't have to be charging. + // "INSTALL_ONLY_WHEN_CHARGING" - Device has to be charging. + ChargingConstraint string `json:"chargingConstraint,omitempty"` + + // DeviceIdleConstraint: Optional. Device idle constraint. + // + // Possible values: + // "DEVICE_IDLE_CONSTRAINT_UNSPECIFIED" - Unspecified. Default to + // DEVICE_IDLE_NOT_REQUIRED. + // "DEVICE_IDLE_NOT_REQUIRED" - Device doesn't have to be idle, app + // can be installed while the user is interacting with the device. + // "INSTALL_ONLY_WHEN_DEVICE_IDLE" - Device has to be idle. + DeviceIdleConstraint string `json:"deviceIdleConstraint,omitempty"` + + // NetworkTypeConstraint: Optional. Network type constraint. + // + // Possible values: + // "NETWORK_TYPE_CONSTRAINT_UNSPECIFIED" - Unspecified. Default to + // INSTALL_ON_ANY_NETWORK. + // "INSTALL_ON_ANY_NETWORK" - Any active networks (Wi-Fi, cellular, + // etc.). + // "INSTALL_ONLY_ON_UNMETERED_NETWORK" - Any unmetered network (e.g. + // Wi-FI). + NetworkTypeConstraint string `json:"networkTypeConstraint,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChargingConstraint") + // to unconditionally include in API requests. By default, fields with + // empty or default 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. "ChargingConstraint") 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 *InstallConstraint) MarshalJSON() ([]byte, error) { + type NoMethod InstallConstraint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // IssueCommandResponse: Response on issuing a command. This is // currently empty as a placeholder. type IssueCommandResponse struct { @@ -4351,7 +4441,9 @@ func (s *MediaUnmountEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MemoryEvent: An event related to memory and storage measurements. +// MemoryEvent: An event related to memory and storage measurements.To +// distinguish between new and old events, we recommend using the +// createTime field. type MemoryEvent struct { // ByteCount: The number of free bytes in the medium, or for // EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage @@ -5285,7 +5377,24 @@ type PermissionGrant struct { // policy is specified for a permission at any level, then the PROMPT // behavior is used by default. // "PROMPT" - Prompt the user to grant a permission. - // "GRANT" - Automatically grant a permission. + // "GRANT" - Automatically grant a permission.On Android 12 and above, + // Manifest.permission.READ_SMS + // (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) + // and following sensor-related permissions can only be granted on fully + // managed devices: Manifest.permission.ACCESS_FINE_LOCATION + // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) + // Manifest.permission.ACCESS_BACKGROUND_LOCATION + // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) + // Manifest.permission.ACCESS_COARSE_LOCATION + // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) + // Manifest.permission.CAMERA + // (https://developer.android.com/reference/android/Manifest.permission#CAMERA) + // Manifest.permission.RECORD_AUDIO + // (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) + // Manifest.permission.ACTIVITY_RECOGNITION + // (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) + // Manifest.permission.BODY_SENSORS + // (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS) // "DENY" - Automatically deny a permission. Policy string `json:"policy,omitempty"` @@ -5482,19 +5591,16 @@ type Policy struct { // disabled. Also mutes the device. AdjustVolumeDisabled bool `json:"adjustVolumeDisabled,omitempty"` - // AdvancedSecurityOverrides: Security policies set to secure values by - // default. To maintain the security posture of a device, we don't - // recommend overriding any of the default values. + // AdvancedSecurityOverrides: Advanced security settings. In most cases, + // setting these is not needed. AdvancedSecurityOverrides *AdvancedSecurityOverrides `json:"advancedSecurityOverrides,omitempty"` // AlwaysOnVpnPackage: Configuration for an always-on VPN connection. // Use with vpn_config_disabled to prevent modification of this setting. AlwaysOnVpnPackage *AlwaysOnVpnPackage `json:"alwaysOnVpnPackage,omitempty"` - // AndroidDevicePolicyTracks: The app tracks for Android Device Policy - // the device can access. The device receives the latest version among - // all accessible tracks. If no tracks are specified, then the device - // only uses the production track. + // AndroidDevicePolicyTracks: This setting is not supported. Any value + // is ignored. // // Possible values: // "APP_TRACK_UNSPECIFIED" - This value is ignored. @@ -5638,7 +5744,24 @@ type Policy struct { // policy is specified for a permission at any level, then the PROMPT // behavior is used by default. // "PROMPT" - Prompt the user to grant a permission. - // "GRANT" - Automatically grant a permission. + // "GRANT" - Automatically grant a permission.On Android 12 and above, + // Manifest.permission.READ_SMS + // (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) + // and following sensor-related permissions can only be granted on fully + // managed devices: Manifest.permission.ACCESS_FINE_LOCATION + // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) + // Manifest.permission.ACCESS_BACKGROUND_LOCATION + // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) + // Manifest.permission.ACCESS_COARSE_LOCATION + // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) + // Manifest.permission.CAMERA + // (https://developer.android.com/reference/android/Manifest.permission#CAMERA) + // Manifest.permission.RECORD_AUDIO + // (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) + // Manifest.permission.ACTIVITY_RECOGNITION + // (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) + // Manifest.permission.BODY_SENSORS + // (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS) // "DENY" - Automatically deny a permission. DefaultPermissionPolicy string `json:"defaultPermissionPolicy,omitempty"` @@ -9695,141 +9818,6 @@ func (c *EnterprisesDevicesOperationsCancelCall) Do(opts ...googleapi.CallOption } -// method id "androidmanagement.enterprises.devices.operations.delete": - -type EnterprisesDevicesOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns google.rpc.Code.UNIMPLEMENTED. -// -// - name: The name of the operation resource to be deleted. -func (r *EnterprisesDevicesOperationsService) Delete(name string) *EnterprisesDevicesOperationsDeleteCall { - c := &EnterprisesDevicesOperationsDeleteCall{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 *EnterprisesDevicesOperationsDeleteCall) Fields(s ...googleapi.Field) *EnterprisesDevicesOperationsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - 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 *EnterprisesDevicesOperationsDeleteCall) Context(ctx context.Context) *EnterprisesDevicesOperationsDeleteCall { - 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 *EnterprisesDevicesOperationsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *EnterprisesDevicesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) - if err != nil { - return nil, err - } - 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 "androidmanagement.enterprises.devices.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.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 *EnterprisesDevicesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, 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, gensupport.WrapError(&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, gensupport.WrapError(err) - } - ret := &Empty{ - 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": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", - // "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "androidmanagement.enterprises.devices.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/androidmanagement" - // ] - // } - -} - // method id "androidmanagement.enterprises.devices.operations.get": type EnterprisesDevicesOperationsGetCall struct { diff --git a/bigtableadmin/v2/bigtableadmin-api.json b/bigtableadmin/v2/bigtableadmin-api.json index d723beff1e2..923977214f8 100644 --- a/bigtableadmin/v2/bigtableadmin-api.json +++ b/bigtableadmin/v2/bigtableadmin-api.json @@ -1875,7 +1875,7 @@ } } }, - "revision": "20240120", + "revision": "20240126", "rootUrl": "https://bigtableadmin.googleapis.com/", "schemas": { "AppProfile": { @@ -2039,7 +2039,7 @@ "type": "string" }, "sourceBackup": { - "description": "Output only. Name of the backup from which this backup was copied. If a backup is not created by copying a backup, this field will be empty. Values are of the form: projects//instances//backups/.", + "description": "Output only. Name of the backup from which this backup was copied. If a backup is not created by copying a backup, this field will be empty. Values are of the form: projects//instances//clusters//backups/", "readOnly": true, "type": "string" }, @@ -2087,7 +2087,7 @@ "type": "string" }, "sourceBackup": { - "description": "Output only. Name of the backup from which this backup was copied. If a backup is not created by copying a backup, this field will be empty. Values are of the form: projects//instances//backups/.", + "description": "Output only. Name of the backup from which this backup was copied. If a backup is not created by copying a backup, this field will be empty. Values are of the form: projects//instances//clusters//backups/", "readOnly": true, "type": "string" }, @@ -2121,7 +2121,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index e115aaa0f24..f6680a19823 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -597,7 +597,7 @@ type Backup struct { // SourceBackup: Output only. Name of the backup from which this backup // was copied. If a backup is not created by copying a backup, this // field will be empty. Values are of the form: - // projects//instances//backups/. + // projects//instances//clusters//backups/ SourceBackup string `json:"sourceBackup,omitempty"` // SourceTable: Required. Immutable. Name of the table from which this @@ -661,7 +661,7 @@ type BackupInfo struct { // SourceBackup: Output only. Name of the backup from which this backup // was copied. If a backup is not created by copying a backup, this // field will be empty. Values are of the form: - // projects//instances//backups/. + // projects//instances//clusters//backups/ SourceBackup string `json:"sourceBackup,omitempty"` // SourceTable: Output only. Name of the table the backup was created @@ -775,7 +775,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/cloudscheduler/v1/cloudscheduler-api.json b/cloudscheduler/v1/cloudscheduler-api.json index 3bbf3c96644..36fc4bbad55 100644 --- a/cloudscheduler/v1/cloudscheduler-api.json +++ b/cloudscheduler/v1/cloudscheduler-api.json @@ -418,7 +418,7 @@ } } }, - "revision": "20231201", + "revision": "20240126", "rootUrl": "https://cloudscheduler.googleapis.com/", "schemas": { "AppEngineHttpTarget": { @@ -765,7 +765,7 @@ "type": "string" }, "messageId": { - "description": "Optional. ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a `PubsubMessage` via a `Pull` call or a push delivery. It must not be populated by the publisher in a `Publish` call.", + "description": "ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a `PubsubMessage` via a `Pull` call or a push delivery. It must not be populated by the publisher in a `Publish` call.", "type": "string" }, "orderingKey": { @@ -773,7 +773,7 @@ "type": "string" }, "publishTime": { - "description": "Optional. The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call.", + "description": "The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call.", "format": "google-datetime", "type": "string" } diff --git a/cloudscheduler/v1/cloudscheduler-gen.go b/cloudscheduler/v1/cloudscheduler-gen.go index b24b092e881..9081ae1e068 100644 --- a/cloudscheduler/v1/cloudscheduler-gen.go +++ b/cloudscheduler/v1/cloudscheduler-gen.go @@ -834,11 +834,11 @@ type PubsubMessage struct { // message must contain at least one attribute. Data string `json:"data,omitempty"` - // MessageId: Optional. ID of this message, assigned by the server when - // the message is published. Guaranteed to be unique within the topic. - // This value may be read by a subscriber that receives a - // `PubsubMessage` via a `Pull` call or a push delivery. It must not be - // populated by the publisher in a `Publish` call. + // MessageId: ID of this message, assigned by the server when the + // message is published. Guaranteed to be unique within the topic. This + // value may be read by a subscriber that receives a `PubsubMessage` via + // a `Pull` call or a push delivery. It must not be populated by the + // publisher in a `Publish` call. MessageId string `json:"messageId,omitempty"` // OrderingKey: Optional. If non-empty, identifies related messages for @@ -851,9 +851,9 @@ type PubsubMessage struct { // messages (https://cloud.google.com/pubsub/docs/ordering). OrderingKey string `json:"orderingKey,omitempty"` - // PublishTime: Optional. The time at which the message was published, - // populated by the server when it receives the `Publish` call. It must - // not be populated by the publisher in a `Publish` call. + // PublishTime: The time at which the message was published, populated + // by the server when it receives the `Publish` call. It must not be + // populated by the publisher in a `Publish` call. PublishTime string `json:"publishTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Attributes") to diff --git a/cloudscheduler/v1beta1/cloudscheduler-api.json b/cloudscheduler/v1beta1/cloudscheduler-api.json index 121a2d134bc..9ec00a58201 100644 --- a/cloudscheduler/v1beta1/cloudscheduler-api.json +++ b/cloudscheduler/v1beta1/cloudscheduler-api.json @@ -433,7 +433,7 @@ } } }, - "revision": "20231201", + "revision": "20240126", "rootUrl": "https://cloudscheduler.googleapis.com/", "schemas": { "AppEngineHttpTarget": { @@ -784,7 +784,7 @@ "type": "string" }, "messageId": { - "description": "Optional. ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a `PubsubMessage` via a `Pull` call or a push delivery. It must not be populated by the publisher in a `Publish` call.", + "description": "ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a `PubsubMessage` via a `Pull` call or a push delivery. It must not be populated by the publisher in a `Publish` call.", "type": "string" }, "orderingKey": { @@ -792,7 +792,7 @@ "type": "string" }, "publishTime": { - "description": "Optional. The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call.", + "description": "The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call.", "format": "google-datetime", "type": "string" } diff --git a/cloudscheduler/v1beta1/cloudscheduler-gen.go b/cloudscheduler/v1beta1/cloudscheduler-gen.go index 1bd0063736d..020409cda8b 100644 --- a/cloudscheduler/v1beta1/cloudscheduler-gen.go +++ b/cloudscheduler/v1beta1/cloudscheduler-gen.go @@ -841,11 +841,11 @@ type PubsubMessage struct { // message must contain at least one attribute. Data string `json:"data,omitempty"` - // MessageId: Optional. ID of this message, assigned by the server when - // the message is published. Guaranteed to be unique within the topic. - // This value may be read by a subscriber that receives a - // `PubsubMessage` via a `Pull` call or a push delivery. It must not be - // populated by the publisher in a `Publish` call. + // MessageId: ID of this message, assigned by the server when the + // message is published. Guaranteed to be unique within the topic. This + // value may be read by a subscriber that receives a `PubsubMessage` via + // a `Pull` call or a push delivery. It must not be populated by the + // publisher in a `Publish` call. MessageId string `json:"messageId,omitempty"` // OrderingKey: Optional. If non-empty, identifies related messages for @@ -858,9 +858,9 @@ type PubsubMessage struct { // messages (https://cloud.google.com/pubsub/docs/ordering). OrderingKey string `json:"orderingKey,omitempty"` - // PublishTime: Optional. The time at which the message was published, - // populated by the server when it receives the `Publish` call. It must - // not be populated by the publisher in a `Publish` call. + // PublishTime: The time at which the message was published, populated + // by the server when it receives the `Publish` call. It must not be + // populated by the publisher in a `Publish` call. PublishTime string `json:"publishTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Attributes") to diff --git a/dataportability/v1beta/dataportability-api.json b/dataportability/v1beta/dataportability-api.json index ed621367dc9..112e9a834c8 100644 --- a/dataportability/v1beta/dataportability-api.json +++ b/dataportability/v1beta/dataportability-api.json @@ -5,6 +5,30 @@ "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations": { "description": "Move a copy of messages between you and the businesses you have conversations with." }, + "https://www.googleapis.com/auth/dataportability.maps.commute_routes": { + "description": "Move a copy of your pinned trips on Maps." + }, + "https://www.googleapis.com/auth/dataportability.maps.commute_settings": { + "description": "Move a copy of your commute settings on Maps." + }, + "https://www.googleapis.com/auth/dataportability.maps.ev_profile": { + "description": "Move a copy of your electric vehicle profile on Maps." + }, + "https://www.googleapis.com/auth/dataportability.maps.offering_contributions": { + "description": "Move a copy of your updates to places on Maps." + }, + "https://www.googleapis.com/auth/dataportability.maps.photos_videos": { + "description": "Move a copy of the photos and videos you posted on Maps." + }, + "https://www.googleapis.com/auth/dataportability.maps.reviews": { + "description": "Move a copy of your reviews and posts on Maps." + }, + "https://www.googleapis.com/auth/dataportability.maps.starred_places": { + "description": "Move a copy of your Starred places list on Maps." + }, + "https://www.googleapis.com/auth/dataportability.myactivity.maps": { + "description": "Move a copy of your Maps activity." + }, "https://www.googleapis.com/auth/dataportability.myactivity.search": { "description": "Move a copy of your search activity." }, @@ -21,40 +45,40 @@ "description": "Move a copy of reviews you wrote about products or online stores." }, "https://www.googleapis.com/auth/dataportability.youtube.channel": { - "description": "Move a copy of information about your channel." + "description": "Move a copy of information about your YouTube channel." }, "https://www.googleapis.com/auth/dataportability.youtube.comments": { - "description": "Move a copy of your comments." + "description": "Move a copy of your YouTube comments." }, "https://www.googleapis.com/auth/dataportability.youtube.live_chat": { - "description": "Move a copy of your messages in live chat." + "description": "Move a copy of your YouTube messages in live chat." }, "https://www.googleapis.com/auth/dataportability.youtube.music": { - "description": "Move a copy of your uploaded YouTube Music tracks and your YouTube Music library." + "description": "Move a copy of your uploaded YouTube music tracks and your YouTube music library." }, "https://www.googleapis.com/auth/dataportability.youtube.private_playlists": { - "description": "Move a copy of your private playlists." + "description": "Move a copy of your YouTube private playlists." }, "https://www.googleapis.com/auth/dataportability.youtube.private_videos": { - "description": "Move a copy of your private videos and information about them." + "description": "Move a copy of your private YouTube videos and information about them." }, "https://www.googleapis.com/auth/dataportability.youtube.public_playlists": { - "description": "Move a copy of your public playlists." + "description": "Move a copy of your public YouTube playlists." }, "https://www.googleapis.com/auth/dataportability.youtube.public_videos": { - "description": "Move a copy of your public videos and information about them." + "description": "Move a copy of your public YouTube videos and information about them." }, "https://www.googleapis.com/auth/dataportability.youtube.shopping": { - "description": "Move a copy of YouTube Shopping Wishlists, and wishlist items." + "description": "Move a copy of your YouTube shopping wishlists, and wishlist items." }, "https://www.googleapis.com/auth/dataportability.youtube.subscriptions": { - "description": "Move a copy of your channel subscriptions, even if they're private." + "description": "Move a copy of your YouTube channel subscriptions, even if they're private." }, "https://www.googleapis.com/auth/dataportability.youtube.unlisted_playlists": { - "description": "Move a copy of your unlisted playlists." + "description": "Move a copy of your unlisted YouTube playlists." }, "https://www.googleapis.com/auth/dataportability.youtube.unlisted_videos": { - "description": "Move a copy of your unlisted videos and information about them." + "description": "Move a copy of your unlisted YouTube videos and information about them." } } } @@ -181,6 +205,14 @@ }, "scopes": [ "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + "https://www.googleapis.com/auth/dataportability.maps.commute_routes", + "https://www.googleapis.com/auth/dataportability.maps.commute_settings", + "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", + "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.reviews", + "https://www.googleapis.com/auth/dataportability.maps.starred_places", + "https://www.googleapis.com/auth/dataportability.myactivity.maps", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", @@ -226,6 +258,14 @@ }, "scopes": [ "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + "https://www.googleapis.com/auth/dataportability.maps.commute_routes", + "https://www.googleapis.com/auth/dataportability.maps.commute_settings", + "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", + "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.reviews", + "https://www.googleapis.com/auth/dataportability.maps.starred_places", + "https://www.googleapis.com/auth/dataportability.myactivity.maps", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", @@ -265,6 +305,14 @@ }, "scopes": [ "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + "https://www.googleapis.com/auth/dataportability.maps.commute_routes", + "https://www.googleapis.com/auth/dataportability.maps.commute_settings", + "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", + "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.reviews", + "https://www.googleapis.com/auth/dataportability.maps.starred_places", + "https://www.googleapis.com/auth/dataportability.myactivity.maps", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", @@ -304,6 +352,14 @@ }, "scopes": [ "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + "https://www.googleapis.com/auth/dataportability.maps.commute_routes", + "https://www.googleapis.com/auth/dataportability.maps.commute_settings", + "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", + "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.reviews", + "https://www.googleapis.com/auth/dataportability.maps.starred_places", + "https://www.googleapis.com/auth/dataportability.myactivity.maps", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", @@ -326,7 +382,7 @@ } } }, - "revision": "20240131", + "revision": "20240204", "rootUrl": "https://dataportability.googleapis.com/", "schemas": { "Empty": { diff --git a/dataportability/v1beta/dataportability-gen.go b/dataportability/v1beta/dataportability-gen.go index dc9b1ce07fb..e798542d079 100644 --- a/dataportability/v1beta/dataportability-gen.go +++ b/dataportability/v1beta/dataportability-gen.go @@ -105,6 +105,30 @@ const ( // conversations with. DataportabilityBusinessmessagingConversationsScope = "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations" + // Move a copy of your pinned trips on Maps. + DataportabilityMapsCommuteRoutesScope = "https://www.googleapis.com/auth/dataportability.maps.commute_routes" + + // Move a copy of your commute settings on Maps. + DataportabilityMapsCommuteSettingsScope = "https://www.googleapis.com/auth/dataportability.maps.commute_settings" + + // Move a copy of your electric vehicle profile on Maps. + DataportabilityMapsEvProfileScope = "https://www.googleapis.com/auth/dataportability.maps.ev_profile" + + // Move a copy of your updates to places on Maps. + DataportabilityMapsOfferingContributionsScope = "https://www.googleapis.com/auth/dataportability.maps.offering_contributions" + + // Move a copy of the photos and videos you posted on Maps. + DataportabilityMapsPhotosVideosScope = "https://www.googleapis.com/auth/dataportability.maps.photos_videos" + + // Move a copy of your reviews and posts on Maps. + DataportabilityMapsReviewsScope = "https://www.googleapis.com/auth/dataportability.maps.reviews" + + // Move a copy of your Starred places list on Maps. + DataportabilityMapsStarredPlacesScope = "https://www.googleapis.com/auth/dataportability.maps.starred_places" + + // Move a copy of your Maps activity. + DataportabilityMyactivityMapsScope = "https://www.googleapis.com/auth/dataportability.myactivity.maps" + // Move a copy of your search activity. DataportabilityMyactivitySearchScope = "https://www.googleapis.com/auth/dataportability.myactivity.search" @@ -120,41 +144,44 @@ const ( // Move a copy of reviews you wrote about products or online stores. DataportabilityShoppingReviewsScope = "https://www.googleapis.com/auth/dataportability.shopping.reviews" - // Move a copy of information about your channel. + // Move a copy of information about your YouTube channel. DataportabilityYoutubeChannelScope = "https://www.googleapis.com/auth/dataportability.youtube.channel" - // Move a copy of your comments. + // Move a copy of your YouTube comments. DataportabilityYoutubeCommentsScope = "https://www.googleapis.com/auth/dataportability.youtube.comments" - // Move a copy of your messages in live chat. + // Move a copy of your YouTube messages in live chat. DataportabilityYoutubeLiveChatScope = "https://www.googleapis.com/auth/dataportability.youtube.live_chat" - // Move a copy of your uploaded YouTube Music tracks and your YouTube - // Music library. + // Move a copy of your uploaded YouTube music tracks and your YouTube + // music library. DataportabilityYoutubeMusicScope = "https://www.googleapis.com/auth/dataportability.youtube.music" - // Move a copy of your private playlists. + // Move a copy of your YouTube private playlists. DataportabilityYoutubePrivatePlaylistsScope = "https://www.googleapis.com/auth/dataportability.youtube.private_playlists" - // Move a copy of your private videos and information about them. + // Move a copy of your private YouTube videos and information about + // them. DataportabilityYoutubePrivateVideosScope = "https://www.googleapis.com/auth/dataportability.youtube.private_videos" - // Move a copy of your public playlists. + // Move a copy of your public YouTube playlists. DataportabilityYoutubePublicPlaylistsScope = "https://www.googleapis.com/auth/dataportability.youtube.public_playlists" - // Move a copy of your public videos and information about them. + // Move a copy of your public YouTube videos and information about them. DataportabilityYoutubePublicVideosScope = "https://www.googleapis.com/auth/dataportability.youtube.public_videos" - // Move a copy of YouTube Shopping Wishlists, and wishlist items. + // Move a copy of your YouTube shopping wishlists, and wishlist items. DataportabilityYoutubeShoppingScope = "https://www.googleapis.com/auth/dataportability.youtube.shopping" - // Move a copy of your channel subscriptions, even if they're private. + // Move a copy of your YouTube channel subscriptions, even if they're + // private. DataportabilityYoutubeSubscriptionsScope = "https://www.googleapis.com/auth/dataportability.youtube.subscriptions" - // Move a copy of your unlisted playlists. + // Move a copy of your unlisted YouTube playlists. DataportabilityYoutubeUnlistedPlaylistsScope = "https://www.googleapis.com/auth/dataportability.youtube.unlisted_playlists" - // Move a copy of your unlisted videos and information about them. + // Move a copy of your unlisted YouTube videos and information about + // them. DataportabilityYoutubeUnlistedVideosScope = "https://www.googleapis.com/auth/dataportability.youtube.unlisted_videos" ) @@ -162,6 +189,14 @@ const ( func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + "https://www.googleapis.com/auth/dataportability.maps.commute_routes", + "https://www.googleapis.com/auth/dataportability.maps.commute_settings", + "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", + "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + "https://www.googleapis.com/auth/dataportability.maps.reviews", + "https://www.googleapis.com/auth/dataportability.maps.starred_places", + "https://www.googleapis.com/auth/dataportability.myactivity.maps", "https://www.googleapis.com/auth/dataportability.myactivity.search", "https://www.googleapis.com/auth/dataportability.myactivity.shopping", "https://www.googleapis.com/auth/dataportability.myactivity.youtube", @@ -575,6 +610,14 @@ func (c *ArchiveJobsGetPortabilityArchiveStateCall) Do(opts ...googleapi.CallOpt // }, // "scopes": [ // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", + // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", + // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", + // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.reviews", + // "https://www.googleapis.com/auth/dataportability.maps.starred_places", + // "https://www.googleapis.com/auth/dataportability.myactivity.maps", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", @@ -736,6 +779,14 @@ func (c *ArchiveJobsRetryCall) Do(opts ...googleapi.CallOption) (*RetryPortabili // }, // "scopes": [ // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", + // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", + // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", + // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.reviews", + // "https://www.googleapis.com/auth/dataportability.maps.starred_places", + // "https://www.googleapis.com/auth/dataportability.myactivity.maps", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", @@ -883,6 +934,14 @@ func (c *AuthorizationResetCall) Do(opts ...googleapi.CallOption) (*Empty, error // }, // "scopes": [ // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", + // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", + // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", + // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.reviews", + // "https://www.googleapis.com/auth/dataportability.maps.starred_places", + // "https://www.googleapis.com/auth/dataportability.myactivity.maps", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", @@ -1027,6 +1086,14 @@ func (c *PortabilityArchiveInitiateCall) Do(opts ...googleapi.CallOption) (*Init // }, // "scopes": [ // "https://www.googleapis.com/auth/dataportability.businessmessaging.conversations", + // "https://www.googleapis.com/auth/dataportability.maps.commute_routes", + // "https://www.googleapis.com/auth/dataportability.maps.commute_settings", + // "https://www.googleapis.com/auth/dataportability.maps.ev_profile", + // "https://www.googleapis.com/auth/dataportability.maps.offering_contributions", + // "https://www.googleapis.com/auth/dataportability.maps.photos_videos", + // "https://www.googleapis.com/auth/dataportability.maps.reviews", + // "https://www.googleapis.com/auth/dataportability.maps.starred_places", + // "https://www.googleapis.com/auth/dataportability.myactivity.maps", // "https://www.googleapis.com/auth/dataportability.myactivity.search", // "https://www.googleapis.com/auth/dataportability.myactivity.shopping", // "https://www.googleapis.com/auth/dataportability.myactivity.youtube", diff --git a/datastore/v1/datastore-api.json b/datastore/v1/datastore-api.json index ced5fa406c0..e0cdf974e46 100644 --- a/datastore/v1/datastore-api.json +++ b/datastore/v1/datastore-api.json @@ -654,7 +654,7 @@ } } }, - "revision": "20240109", + "revision": "20240131", "rootUrl": "https://datastore.googleapis.com/", "schemas": { "Aggregation": { @@ -2119,21 +2119,6 @@ }, "type": "object" }, - "QueryPlan": { - "description": "Plan for the query.", - "id": "QueryPlan", - "properties": { - "planInfo": { - "additionalProperties": { - "description": "Properties of the object.", - "type": "any" - }, - "description": "Planning phase information for the query. It will include: { \"indexes_used\": [ {\"query_scope\": \"Collection\", \"properties\": \"(foo ASC, __name__ ASC)\"}, {\"query_scope\": \"Collection\", \"properties\": \"(bar ASC, __name__ ASC)\"} ] }", - "type": "object" - } - }, - "type": "object" - }, "QueryResultBatch": { "description": "A batch of results produced by a query.", "id": "QueryResultBatch", @@ -2290,25 +2275,6 @@ "properties": {}, "type": "object" }, - "ResultSetStats": { - "description": "Planning and execution statistics for the query.", - "id": "ResultSetStats", - "properties": { - "queryPlan": { - "$ref": "QueryPlan", - "description": "Plan for the query." - }, - "queryStats": { - "additionalProperties": { - "description": "Properties of the object.", - "type": "any" - }, - "description": "Aggregated statistics from the execution of the query. This will only be present when the request specifies `PROFILE` mode. For example, a query will return the statistics including: { \"results_returned\": \"20\", \"documents_scanned\": \"20\", \"indexes_entries_scanned\": \"10050\", \"total_execution_time\": \"100.7 msecs\" }", - "type": "object" - } - }, - "type": "object" - }, "RollbackRequest": { "description": "The request for Datastore.Rollback.", "id": "RollbackRequest", @@ -2347,20 +2313,6 @@ "$ref": "GqlQuery", "description": "The GQL query to run. This query must be an aggregation query." }, - "mode": { - "description": "Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.", - "enum": [ - "NORMAL", - "PLAN", - "PROFILE" - ], - "enumDescriptions": [ - "The default mode. Only the query results are returned.", - "This mode returns only the query plan, without any results or execution statistics information.", - "This mode returns both the query plan and the execution statistics along with the results." - ], - "type": "string" - }, "partitionId": { "$ref": "PartitionId", "description": "Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID." @@ -2384,10 +2336,6 @@ "$ref": "AggregationQuery", "description": "The parsed form of the `GqlQuery` from the request, if it was set." }, - "stats": { - "$ref": "ResultSetStats", - "description": "Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`." - }, "transaction": { "description": "The identifier of the transaction that was started as part of this RunAggregationQuery request. Set only when ReadOptions.new_transaction was set in RunAggregationQueryRequest.read_options.", "format": "byte", @@ -2408,20 +2356,6 @@ "$ref": "GqlQuery", "description": "The GQL query to run. This query must be a non-aggregation query." }, - "mode": { - "description": "Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.", - "enum": [ - "NORMAL", - "PLAN", - "PROFILE" - ], - "enumDescriptions": [ - "The default mode. Only the query results are returned.", - "This mode returns only the query plan, without any results or execution statistics information.", - "This mode returns both the query plan and the execution statistics along with the results." - ], - "type": "string" - }, "partitionId": { "$ref": "PartitionId", "description": "Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID." @@ -2449,10 +2383,6 @@ "$ref": "Query", "description": "The parsed form of the `GqlQuery` from the request, if it was set." }, - "stats": { - "$ref": "ResultSetStats", - "description": "Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`." - }, "transaction": { "description": "The identifier of the transaction that was started as part of this RunQuery request. Set only when ReadOptions.new_transaction was set in RunQueryRequest.read_options.", "format": "byte", diff --git a/datastore/v1/datastore-gen.go b/datastore/v1/datastore-gen.go index f485a0994a3..4eb8dcb16d5 100644 --- a/datastore/v1/datastore-gen.go +++ b/datastore/v1/datastore-gen.go @@ -2728,37 +2728,6 @@ func (s *Query) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// QueryPlan: Plan for the query. -type QueryPlan struct { - // PlanInfo: Planning phase information for the query. It will include: - // { "indexes_used": [ {"query_scope": "Collection", "properties": "(foo - // ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": - // "(bar ASC, __name__ ASC)"} ] } - PlanInfo googleapi.RawMessage `json:"planInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PlanInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default 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. "PlanInfo") 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 *QueryPlan) MarshalJSON() ([]byte, error) { - type NoMethod QueryPlan - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // QueryResultBatch: A batch of results produced by a query. type QueryResultBatch struct { // EndCursor: A cursor that points to the position after the last result @@ -3000,42 +2969,6 @@ type ReserveIdsResponse struct { googleapi.ServerResponse `json:"-"` } -// ResultSetStats: Planning and execution statistics for the query. -type ResultSetStats struct { - // QueryPlan: Plan for the query. - QueryPlan *QueryPlan `json:"queryPlan,omitempty"` - - // QueryStats: Aggregated statistics from the execution of the query. - // This will only be present when the request specifies `PROFILE` mode. - // For example, a query will return the statistics including: { - // "results_returned": "20", "documents_scanned": "20", - // "indexes_entries_scanned": "10050", "total_execution_time": "100.7 - // msecs" } - QueryStats googleapi.RawMessage `json:"queryStats,omitempty"` - - // ForceSendFields is a list of field names (e.g. "QueryPlan") to - // unconditionally include in API requests. By default, fields with - // empty or default 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. "QueryPlan") 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 *ResultSetStats) MarshalJSON() ([]byte, error) { - type NoMethod ResultSetStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // RollbackRequest: The request for Datastore.Rollback. type RollbackRequest struct { // DatabaseId: The ID of the database against which to make the request. @@ -3093,19 +3026,6 @@ type RunAggregationQueryRequest struct { // query. GqlQuery *GqlQuery `json:"gqlQuery,omitempty"` - // Mode: Optional. The mode in which the query request is processed. - // This field is optional, and when not provided, it defaults to - // `NORMAL` mode where no additional statistics will be returned with - // the query results. - // - // Possible values: - // "NORMAL" - The default mode. Only the query results are returned. - // "PLAN" - This mode returns only the query plan, without any results - // or execution statistics information. - // "PROFILE" - This mode returns both the query plan and the execution - // statistics along with the results. - Mode string `json:"mode,omitempty"` - // PartitionId: Entities are partitioned into subsets, identified by a // partition ID. Queries are scoped to a single partition. This // partition ID is normalized with the standard default context @@ -3149,11 +3069,6 @@ type RunAggregationQueryResponse struct { // set. Query *AggregationQuery `json:"query,omitempty"` - // Stats: Query plan and execution statistics. Note that the returned - // stats are subject to change as Firestore evolves. This is only - // present when the request specifies a mode other than `NORMAL`. - Stats *ResultSetStats `json:"stats,omitempty"` - // Transaction: The identifier of the transaction that was started as // part of this RunAggregationQuery request. Set only when // ReadOptions.new_transaction was set in @@ -3198,19 +3113,6 @@ type RunQueryRequest struct { // query. GqlQuery *GqlQuery `json:"gqlQuery,omitempty"` - // Mode: Optional. The mode in which the query request is processed. - // This field is optional, and when not provided, it defaults to - // `NORMAL` mode where no additional statistics will be returned with - // the query results. - // - // Possible values: - // "NORMAL" - The default mode. Only the query results are returned. - // "PLAN" - This mode returns only the query plan, without any results - // or execution statistics information. - // "PROFILE" - This mode returns both the query plan and the execution - // statistics along with the results. - Mode string `json:"mode,omitempty"` - // PartitionId: Entities are partitioned into subsets, identified by a // partition ID. Queries are scoped to a single partition. This // partition ID is normalized with the standard default context @@ -3255,11 +3157,6 @@ type RunQueryResponse struct { // set. Query *Query `json:"query,omitempty"` - // Stats: Query plan and execution statistics. Note that the returned - // stats are subject to change as Firestore evolves. This is only - // present when the request specifies a mode other than `NORMAL`. - Stats *ResultSetStats `json:"stats,omitempty"` - // Transaction: The identifier of the transaction that was started as // part of this RunQuery request. Set only when // ReadOptions.new_transaction was set in RunQueryRequest.read_options. diff --git a/datastore/v1beta3/datastore-api.json b/datastore/v1beta3/datastore-api.json index c46f73f6a22..01eaf351f07 100644 --- a/datastore/v1beta3/datastore-api.json +++ b/datastore/v1beta3/datastore-api.json @@ -336,7 +336,7 @@ } } }, - "revision": "20240109", + "revision": "20240131", "rootUrl": "https://datastore.googleapis.com/", "schemas": { "Aggregation": { @@ -1565,21 +1565,6 @@ }, "type": "object" }, - "QueryPlan": { - "description": "Plan for the query.", - "id": "QueryPlan", - "properties": { - "planInfo": { - "additionalProperties": { - "description": "Properties of the object.", - "type": "any" - }, - "description": "Planning phase information for the query. It will include: { \"indexes_used\": [ {\"query_scope\": \"Collection\", \"properties\": \"(foo ASC, __name__ ASC)\"}, {\"query_scope\": \"Collection\", \"properties\": \"(bar ASC, __name__ ASC)\"} ] }", - "type": "object" - } - }, - "type": "object" - }, "QueryResultBatch": { "description": "A batch of results produced by a query.", "id": "QueryResultBatch", @@ -1732,25 +1717,6 @@ "properties": {}, "type": "object" }, - "ResultSetStats": { - "description": "Planning and execution statistics for the query.", - "id": "ResultSetStats", - "properties": { - "queryPlan": { - "$ref": "QueryPlan", - "description": "Plan for the query." - }, - "queryStats": { - "additionalProperties": { - "description": "Properties of the object.", - "type": "any" - }, - "description": "Aggregated statistics from the execution of the query. This will only be present when the request specifies `PROFILE` mode. For example, a query will return the statistics including: { \"results_returned\": \"20\", \"documents_scanned\": \"20\", \"indexes_entries_scanned\": \"10050\", \"total_execution_time\": \"100.7 msecs\" }", - "type": "object" - } - }, - "type": "object" - }, "RollbackRequest": { "description": "The request for Datastore.Rollback.", "id": "RollbackRequest", @@ -1781,20 +1747,6 @@ "$ref": "GqlQuery", "description": "The GQL query to run. This query must be an aggregation query." }, - "mode": { - "description": "Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.", - "enum": [ - "NORMAL", - "PLAN", - "PROFILE" - ], - "enumDescriptions": [ - "The default mode. Only the query results are returned.", - "This mode returns only the query plan, without any results or execution statistics information.", - "This mode returns both the query plan and the execution statistics along with the results." - ], - "type": "string" - }, "partitionId": { "$ref": "PartitionId", "description": "Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID." @@ -1817,10 +1769,6 @@ "query": { "$ref": "AggregationQuery", "description": "The parsed form of the `GqlQuery` from the request, if it was set." - }, - "stats": { - "$ref": "ResultSetStats", - "description": "Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`." } }, "type": "object" @@ -1833,20 +1781,6 @@ "$ref": "GqlQuery", "description": "The GQL query to run. This query must be a non-aggregation query." }, - "mode": { - "description": "Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.", - "enum": [ - "NORMAL", - "PLAN", - "PROFILE" - ], - "enumDescriptions": [ - "The default mode. Only the query results are returned.", - "This mode returns only the query plan, without any results or execution statistics information.", - "This mode returns both the query plan and the execution statistics along with the results." - ], - "type": "string" - }, "partitionId": { "$ref": "PartitionId", "description": "Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID." @@ -1873,10 +1807,6 @@ "query": { "$ref": "Query", "description": "The parsed form of the `GqlQuery` from the request, if it was set." - }, - "stats": { - "$ref": "ResultSetStats", - "description": "Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`." } }, "type": "object" diff --git a/datastore/v1beta3/datastore-gen.go b/datastore/v1beta3/datastore-gen.go index bf71f043ed6..a430fd57b0d 100644 --- a/datastore/v1beta3/datastore-gen.go +++ b/datastore/v1beta3/datastore-gen.go @@ -2311,37 +2311,6 @@ func (s *Query) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// QueryPlan: Plan for the query. -type QueryPlan struct { - // PlanInfo: Planning phase information for the query. It will include: - // { "indexes_used": [ {"query_scope": "Collection", "properties": "(foo - // ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": - // "(bar ASC, __name__ ASC)"} ] } - PlanInfo googleapi.RawMessage `json:"planInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PlanInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default 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. "PlanInfo") 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 *QueryPlan) MarshalJSON() ([]byte, error) { - type NoMethod QueryPlan - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // QueryResultBatch: A batch of results produced by a query. type QueryResultBatch struct { // EndCursor: A cursor that points to the position after the last result @@ -2577,42 +2546,6 @@ type ReserveIdsResponse struct { googleapi.ServerResponse `json:"-"` } -// ResultSetStats: Planning and execution statistics for the query. -type ResultSetStats struct { - // QueryPlan: Plan for the query. - QueryPlan *QueryPlan `json:"queryPlan,omitempty"` - - // QueryStats: Aggregated statistics from the execution of the query. - // This will only be present when the request specifies `PROFILE` mode. - // For example, a query will return the statistics including: { - // "results_returned": "20", "documents_scanned": "20", - // "indexes_entries_scanned": "10050", "total_execution_time": "100.7 - // msecs" } - QueryStats googleapi.RawMessage `json:"queryStats,omitempty"` - - // ForceSendFields is a list of field names (e.g. "QueryPlan") to - // unconditionally include in API requests. By default, fields with - // empty or default 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. "QueryPlan") 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 *ResultSetStats) MarshalJSON() ([]byte, error) { - type NoMethod ResultSetStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // RollbackRequest: The request for Datastore.Rollback. type RollbackRequest struct { // Transaction: Required. The transaction identifier, returned by a call @@ -2660,19 +2593,6 @@ type RunAggregationQueryRequest struct { // query. GqlQuery *GqlQuery `json:"gqlQuery,omitempty"` - // Mode: Optional. The mode in which the query request is processed. - // This field is optional, and when not provided, it defaults to - // `NORMAL` mode where no additional statistics will be returned with - // the query results. - // - // Possible values: - // "NORMAL" - The default mode. Only the query results are returned. - // "PLAN" - This mode returns only the query plan, without any results - // or execution statistics information. - // "PROFILE" - This mode returns both the query plan and the execution - // statistics along with the results. - Mode string `json:"mode,omitempty"` - // PartitionId: Entities are partitioned into subsets, identified by a // partition ID. Queries are scoped to a single partition. This // partition ID is normalized with the standard default context @@ -2716,11 +2636,6 @@ type RunAggregationQueryResponse struct { // set. Query *AggregationQuery `json:"query,omitempty"` - // Stats: Query plan and execution statistics. Note that the returned - // stats are subject to change as Firestore evolves. This is only - // present when the request specifies a mode other than `NORMAL`. - Stats *ResultSetStats `json:"stats,omitempty"` - // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -2754,19 +2669,6 @@ type RunQueryRequest struct { // query. GqlQuery *GqlQuery `json:"gqlQuery,omitempty"` - // Mode: Optional. The mode in which the query request is processed. - // This field is optional, and when not provided, it defaults to - // `NORMAL` mode where no additional statistics will be returned with - // the query results. - // - // Possible values: - // "NORMAL" - The default mode. Only the query results are returned. - // "PLAN" - This mode returns only the query plan, without any results - // or execution statistics information. - // "PROFILE" - This mode returns both the query plan and the execution - // statistics along with the results. - Mode string `json:"mode,omitempty"` - // PartitionId: Entities are partitioned into subsets, identified by a // partition ID. Queries are scoped to a single partition. This // partition ID is normalized with the standard default context @@ -2811,11 +2713,6 @@ type RunQueryResponse struct { // set. Query *Query `json:"query,omitempty"` - // Stats: Query plan and execution statistics. Note that the returned - // stats are subject to change as Firestore evolves. This is only - // present when the request specifies a mode other than `NORMAL`. - Stats *ResultSetStats `json:"stats,omitempty"` - // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/dfareporting/v4/dfareporting-api.json b/dfareporting/v4/dfareporting-api.json index 0911611b13a..4a8fd187699 100644 --- a/dfareporting/v4/dfareporting-api.json +++ b/dfareporting/v4/dfareporting-api.json @@ -10067,7 +10067,7 @@ } } }, - "revision": "20230918", + "revision": "20240201", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -12094,6 +12094,18 @@ "description": "A Conversion represents when a user successfully performs a desired action after seeing an ad.", "id": "Conversion", "properties": { + "adUserDataConsent": { + "description": "This represents consent for ad user data.", + "enum": [ + "GRANTED", + "DENIED" + ], + "enumDescriptions": [ + "Granted.", + "Denied." + ], + "type": "string" + }, "childDirectedTreatment": { "description": "Whether this particular request may come from a user under the age of 13, under COPPA compliance.", "type": "boolean" @@ -17861,6 +17873,10 @@ "format": "int64", "type": "string" }, + "conversionDomainOverride": { + "$ref": "PlacementConversionDomainOverride", + "description": "Optional. Conversion domain overrides for a placement." + }, "createInfo": { "$ref": "LastModifiedInfo", "description": "Information about the creation of this placement. This is a read-only field." @@ -18105,6 +18121,18 @@ }, "type": "object" }, + "PlacementConversionDomainOverride": { + "id": "PlacementConversionDomainOverride", + "properties": { + "conversionDomains": { + "items": { + "$ref": "PlacementSingleConversionDomain" + }, + "type": "array" + } + }, + "type": "object" + }, "PlacementGroup": { "description": "Contains properties of a package or roadblock.", "id": "PlacementGroup", @@ -18274,6 +18302,19 @@ }, "type": "object" }, + "PlacementSingleConversionDomain": { + "id": "PlacementSingleConversionDomain", + "properties": { + "conversionDomainId": { + "format": "int64", + "type": "string" + }, + "conversionDomainValue": { + "type": "string" + } + }, + "type": "object" + }, "PlacementStrategiesListResponse": { "description": "Placement Strategy List Response", "id": "PlacementStrategiesListResponse", @@ -20351,7 +20392,7 @@ "type": "string" }, "includeClickThroughUrls": { - "description": "Whether static landing page URLs should be included in the tags. This setting applies only to placements.", + "description": "Whether static landing page URLs should be included in the tags. New placements will default to the value set on their site.", "type": "boolean" }, "includeClickTracking": { @@ -20759,12 +20800,14 @@ "OTHER", "AD_ID_OFFICIAL", "CLEARCAST", - "DCM" + "DCM", + "ARPP" ], "enumDescriptions": [ "", "", "", + "", "" ], "type": "string" diff --git a/dfareporting/v4/dfareporting-gen.go b/dfareporting/v4/dfareporting-gen.go index 7ff51b29bb2..693404f1d59 100644 --- a/dfareporting/v4/dfareporting-gen.go +++ b/dfareporting/v4/dfareporting-gen.go @@ -3801,6 +3801,13 @@ func (s *ContentCategory) MarshalJSON() ([]byte, error) { // Conversion: A Conversion represents when a user successfully performs // a desired action after seeing an ad. type Conversion struct { + // AdUserDataConsent: This represents consent for ad user data. + // + // Possible values: + // "GRANTED" - Granted. + // "DENIED" - Denied. + AdUserDataConsent string `json:"adUserDataConsent,omitempty"` + // ChildDirectedTreatment: Whether this particular request may come from // a user under the age of 13, under COPPA compliance. ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"` @@ -3909,19 +3916,18 @@ type Conversion struct { // Value: The value of the conversion. This is a required field. Value float64 `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ChildDirectedTreatment") to unconditionally include in API requests. - // By default, fields with empty or default 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 is a list of field names (e.g. "AdUserDataConsent") + // to unconditionally include in API requests. By default, fields with + // empty or default 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. "ChildDirectedTreatment") - // 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 + // NullFields is a list of field names (e.g. "AdUserDataConsent") 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. @@ -10847,6 +10853,10 @@ type Placement struct { // placement. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` + // ConversionDomainOverride: Optional. Conversion domain overrides for a + // placement. + ConversionDomainOverride *PlacementConversionDomainOverride `json:"conversionDomainOverride,omitempty"` + // CreateInfo: Information about the creation of this placement. This is // a read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` @@ -11117,6 +11127,33 @@ func (s *PlacementAssignment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type PlacementConversionDomainOverride struct { + ConversionDomains []*PlacementSingleConversionDomain `json:"conversionDomains,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConversionDomains") + // to unconditionally include in API requests. By default, fields with + // empty or default 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. "ConversionDomains") 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 *PlacementConversionDomainOverride) MarshalJSON() ([]byte, error) { + type NoMethod PlacementConversionDomainOverride + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PlacementGroup: Contains properties of a package or roadblock. type PlacementGroup struct { // AccountId: Account ID of this placement group. This is a read-only @@ -11315,6 +11352,35 @@ func (s *PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type PlacementSingleConversionDomain struct { + ConversionDomainId int64 `json:"conversionDomainId,omitempty,string"` + + ConversionDomainValue string `json:"conversionDomainValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConversionDomainId") + // to unconditionally include in API requests. By default, fields with + // empty or default 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. "ConversionDomainId") 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 *PlacementSingleConversionDomain) MarshalJSON() ([]byte, error) { + type NoMethod PlacementSingleConversionDomain + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PlacementStrategiesListResponse: Placement Strategy List Response type PlacementStrategiesListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed @@ -14129,7 +14195,8 @@ type TagSetting struct { AdditionalKeyValues string `json:"additionalKeyValues,omitempty"` // IncludeClickThroughUrls: Whether static landing page URLs should be - // included in the tags. This setting applies only to placements. + // included in the tags. New placements will default to the value set on + // their site. IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"` // IncludeClickTracking: Whether click-tracking string should be @@ -14723,6 +14790,7 @@ type UniversalAdId struct { // "AD_ID_OFFICIAL" // "CLEARCAST" // "DCM" + // "ARPP" Registry string `json:"registry,omitempty"` // Value: ID value for this creative. Only alphanumeric characters and diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index 5f26795ff82..d4aade4c674 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -1672,7 +1672,7 @@ } } }, - "revision": "20240117", + "revision": "20240131", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -3712,21 +3712,6 @@ }, "type": "object" }, - "QueryPlan": { - "description": "Plan for the query.", - "id": "QueryPlan", - "properties": { - "planInfo": { - "additionalProperties": { - "description": "Properties of the object.", - "type": "any" - }, - "description": "Planning phase information for the query. It will include: { \"indexes_used\": [ {\"query_scope\": \"Collection\", \"properties\": \"(foo ASC, __name__ ASC)\"}, {\"query_scope\": \"Collection\", \"properties\": \"(bar ASC, __name__ ASC)\"} ] }", - "type": "object" - } - }, - "type": "object" - }, "QueryTarget": { "description": "A target specified by a query.", "id": "QueryTarget", @@ -3766,25 +3751,6 @@ }, "type": "object" }, - "ResultSetStats": { - "description": "Planning and execution statistics for the query.", - "id": "ResultSetStats", - "properties": { - "queryPlan": { - "$ref": "QueryPlan", - "description": "Plan for the query." - }, - "queryStats": { - "additionalProperties": { - "description": "Properties of the object.", - "type": "any" - }, - "description": "Aggregated statistics from the execution of the query. This will only be present when the request specifies `PROFILE` mode. For example, a query will return the statistics including: { \"results_returned\": \"20\", \"documents_scanned\": \"20\", \"indexes_entries_scanned\": \"10050\", \"total_execution_time\": \"100.7 msecs\" }", - "type": "object" - } - }, - "type": "object" - }, "RollbackRequest": { "description": "The request for Firestore.Rollback.", "id": "RollbackRequest", @@ -3801,20 +3767,6 @@ "description": "The request for Firestore.RunAggregationQuery.", "id": "RunAggregationQueryRequest", "properties": { - "mode": { - "description": "Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.", - "enum": [ - "NORMAL", - "PLAN", - "PROFILE" - ], - "enumDescriptions": [ - "The default mode. Only the query results are returned.", - "This mode returns only the query plan, without any results or execution statistics information.", - "This mode returns both the query plan and the execution statistics along with the results." - ], - "type": "string" - }, "newTransaction": { "$ref": "TransactionOptions", "description": "Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream." @@ -3849,10 +3801,6 @@ "$ref": "AggregationResult", "description": "A single aggregation result. Not present when reporting partial progress." }, - "stats": { - "$ref": "ResultSetStats", - "description": "Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL` and is sent only once with the last response in the stream." - }, "transaction": { "description": "The transaction that was started as part of this request. Only present on the first response when the request requested to start a new transaction.", "format": "byte", @@ -3865,20 +3813,6 @@ "description": "The request for Firestore.RunQuery.", "id": "RunQueryRequest", "properties": { - "mode": { - "description": "Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.", - "enum": [ - "NORMAL", - "PLAN", - "PROFILE" - ], - "enumDescriptions": [ - "The default mode. Only the query results are returned.", - "This mode returns only the query plan, without any results or execution statistics information.", - "This mode returns both the query plan and the execution statistics along with the results." - ], - "type": "string" - }, "newTransaction": { "$ref": "TransactionOptions", "description": "Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream." @@ -3922,10 +3856,6 @@ "format": "int32", "type": "integer" }, - "stats": { - "$ref": "ResultSetStats", - "description": "Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL` and is sent only once with the last response in the stream." - }, "transaction": { "description": "The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response.", "format": "byte", diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 435a8c8bbf4..c77cbd6bb9e 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -3778,37 +3778,6 @@ func (s *Projection) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// QueryPlan: Plan for the query. -type QueryPlan struct { - // PlanInfo: Planning phase information for the query. It will include: - // { "indexes_used": [ {"query_scope": "Collection", "properties": "(foo - // ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": - // "(bar ASC, __name__ ASC)"} ] } - PlanInfo googleapi.RawMessage `json:"planInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PlanInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default 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. "PlanInfo") 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 *QueryPlan) MarshalJSON() ([]byte, error) { - type NoMethod QueryPlan - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // QueryTarget: A target specified by a query. type QueryTarget struct { // Parent: The parent resource name. In the format: @@ -3909,42 +3878,6 @@ func (s *ReadWrite) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ResultSetStats: Planning and execution statistics for the query. -type ResultSetStats struct { - // QueryPlan: Plan for the query. - QueryPlan *QueryPlan `json:"queryPlan,omitempty"` - - // QueryStats: Aggregated statistics from the execution of the query. - // This will only be present when the request specifies `PROFILE` mode. - // For example, a query will return the statistics including: { - // "results_returned": "20", "documents_scanned": "20", - // "indexes_entries_scanned": "10050", "total_execution_time": "100.7 - // msecs" } - QueryStats googleapi.RawMessage `json:"queryStats,omitempty"` - - // ForceSendFields is a list of field names (e.g. "QueryPlan") to - // unconditionally include in API requests. By default, fields with - // empty or default 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. "QueryPlan") 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 *ResultSetStats) MarshalJSON() ([]byte, error) { - type NoMethod ResultSetStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // RollbackRequest: The request for Firestore.Rollback. type RollbackRequest struct { // Transaction: Required. The transaction to roll back. @@ -3976,19 +3909,6 @@ func (s *RollbackRequest) MarshalJSON() ([]byte, error) { // RunAggregationQueryRequest: The request for // Firestore.RunAggregationQuery. type RunAggregationQueryRequest struct { - // Mode: Optional. The mode in which the query request is processed. - // This field is optional, and when not provided, it defaults to - // `NORMAL` mode where no additional statistics will be returned with - // the query results. - // - // Possible values: - // "NORMAL" - The default mode. Only the query results are returned. - // "PLAN" - This mode returns only the query plan, without any results - // or execution statistics information. - // "PROFILE" - This mode returns both the query plan and the execution - // statistics along with the results. - Mode string `json:"mode,omitempty"` - // NewTransaction: Starts a new transaction as part of the query, // defaulting to read-only. The new transaction ID will be returned as // the first response in the stream. @@ -4008,7 +3928,7 @@ type RunAggregationQueryRequest struct { // the query in. Transaction string `json:"transaction,omitempty"` - // ForceSendFields is a list of field names (e.g. "Mode") to + // ForceSendFields is a list of field names (e.g. "NewTransaction") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4016,12 +3936,13 @@ type RunAggregationQueryRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Mode") 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 is a list of field names (e.g. "NewTransaction") 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:"-"` } @@ -4046,12 +3967,6 @@ type RunAggregationQueryResponse struct { // partial progress. Result *AggregationResult `json:"result,omitempty"` - // Stats: Query plan and execution statistics. Note that the returned - // stats are subject to change as Firestore evolves. This is only - // present when the request specifies a mode other than `NORMAL` and is - // sent only once with the last response in the stream. - Stats *ResultSetStats `json:"stats,omitempty"` - // Transaction: The transaction that was started as part of this // request. Only present on the first response when the request // requested to start a new transaction. @@ -4086,19 +4001,6 @@ func (s *RunAggregationQueryResponse) MarshalJSON() ([]byte, error) { // RunQueryRequest: The request for Firestore.RunQuery. type RunQueryRequest struct { - // Mode: Optional. The mode in which the query request is processed. - // This field is optional, and when not provided, it defaults to - // `NORMAL` mode where no additional statistics will be returned with - // the query results. - // - // Possible values: - // "NORMAL" - The default mode. Only the query results are returned. - // "PLAN" - This mode returns only the query plan, without any results - // or execution statistics information. - // "PROFILE" - This mode returns both the query plan and the execution - // statistics along with the results. - Mode string `json:"mode,omitempty"` - // NewTransaction: Starts a new transaction and reads the documents. // Defaults to a read-only transaction. The new transaction ID will be // returned as the first response in the stream. @@ -4117,7 +4019,7 @@ type RunQueryRequest struct { // value here is the opaque transaction ID to execute the query in. Transaction string `json:"transaction,omitempty"` - // ForceSendFields is a list of field names (e.g. "Mode") to + // ForceSendFields is a list of field names (e.g. "NewTransaction") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4125,12 +4027,13 @@ type RunQueryRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Mode") 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 is a list of field names (e.g. "NewTransaction") 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:"-"` } @@ -4161,12 +4064,6 @@ type RunQueryResponse struct { // an offset between the last response and the current response. SkippedResults int64 `json:"skippedResults,omitempty"` - // Stats: Query plan and execution statistics. Note that the returned - // stats are subject to change as Firestore evolves. This is only - // present when the request specifies a mode other than `NORMAL` and is - // sent only once with the last response in the stream. - Stats *ResultSetStats `json:"stats,omitempty"` - // Transaction: The transaction that was started as part of this // request. Can only be set in the first response, and only if // RunQueryRequest.new_transaction was set in the request. If set, no diff --git a/firestore/v1beta1/firestore-api.json b/firestore/v1beta1/firestore-api.json index d043df69b68..4c38f8cce62 100644 --- a/firestore/v1beta1/firestore-api.json +++ b/firestore/v1beta1/firestore-api.json @@ -950,7 +950,7 @@ } } }, - "revision": "20240117", + "revision": "20240131", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -2253,21 +2253,6 @@ }, "type": "object" }, - "QueryPlan": { - "description": "Plan for the query.", - "id": "QueryPlan", - "properties": { - "planInfo": { - "additionalProperties": { - "description": "Properties of the object.", - "type": "any" - }, - "description": "Planning phase information for the query. It will include: { \"indexes_used\": [ {\"query_scope\": \"Collection\", \"properties\": \"(foo ASC, __name__ ASC)\"}, {\"query_scope\": \"Collection\", \"properties\": \"(bar ASC, __name__ ASC)\"} ] }", - "type": "object" - } - }, - "type": "object" - }, "QueryTarget": { "description": "A target specified by a query.", "id": "QueryTarget", @@ -2307,25 +2292,6 @@ }, "type": "object" }, - "ResultSetStats": { - "description": "Planning and execution statistics for the query.", - "id": "ResultSetStats", - "properties": { - "queryPlan": { - "$ref": "QueryPlan", - "description": "Plan for the query." - }, - "queryStats": { - "additionalProperties": { - "description": "Properties of the object.", - "type": "any" - }, - "description": "Aggregated statistics from the execution of the query. This will only be present when the request specifies `PROFILE` mode. For example, a query will return the statistics including: { \"results_returned\": \"20\", \"documents_scanned\": \"20\", \"indexes_entries_scanned\": \"10050\", \"total_execution_time\": \"100.7 msecs\" }", - "type": "object" - } - }, - "type": "object" - }, "RollbackRequest": { "description": "The request for Firestore.Rollback.", "id": "RollbackRequest", @@ -2342,20 +2308,6 @@ "description": "The request for Firestore.RunAggregationQuery.", "id": "RunAggregationQueryRequest", "properties": { - "mode": { - "description": "Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.", - "enum": [ - "NORMAL", - "PLAN", - "PROFILE" - ], - "enumDescriptions": [ - "The default mode. Only the query results are returned.", - "This mode returns only the query plan, without any results or execution statistics information.", - "This mode returns both the query plan and the execution statistics along with the results." - ], - "type": "string" - }, "newTransaction": { "$ref": "TransactionOptions", "description": "Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream." @@ -2390,10 +2342,6 @@ "$ref": "AggregationResult", "description": "A single aggregation result. Not present when reporting partial progress." }, - "stats": { - "$ref": "ResultSetStats", - "description": "Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL` and is sent only once with the last response in the stream." - }, "transaction": { "description": "The transaction that was started as part of this request. Only present on the first response when the request requested to start a new transaction.", "format": "byte", @@ -2406,20 +2354,6 @@ "description": "The request for Firestore.RunQuery.", "id": "RunQueryRequest", "properties": { - "mode": { - "description": "Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.", - "enum": [ - "NORMAL", - "PLAN", - "PROFILE" - ], - "enumDescriptions": [ - "The default mode. Only the query results are returned.", - "This mode returns only the query plan, without any results or execution statistics information.", - "This mode returns both the query plan and the execution statistics along with the results." - ], - "type": "string" - }, "newTransaction": { "$ref": "TransactionOptions", "description": "Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream." @@ -2463,10 +2397,6 @@ "format": "int32", "type": "integer" }, - "stats": { - "$ref": "ResultSetStats", - "description": "Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL` and is sent only once with the last response in the stream." - }, "transaction": { "description": "The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response.", "format": "byte", diff --git a/firestore/v1beta1/firestore-gen.go b/firestore/v1beta1/firestore-gen.go index 1c93954264f..1352bf54e22 100644 --- a/firestore/v1beta1/firestore-gen.go +++ b/firestore/v1beta1/firestore-gen.go @@ -2583,37 +2583,6 @@ func (s *Projection) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// QueryPlan: Plan for the query. -type QueryPlan struct { - // PlanInfo: Planning phase information for the query. It will include: - // { "indexes_used": [ {"query_scope": "Collection", "properties": "(foo - // ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": - // "(bar ASC, __name__ ASC)"} ] } - PlanInfo googleapi.RawMessage `json:"planInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PlanInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default 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. "PlanInfo") 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 *QueryPlan) MarshalJSON() ([]byte, error) { - type NoMethod QueryPlan - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // QueryTarget: A target specified by a query. type QueryTarget struct { // Parent: The parent resource name. In the format: @@ -2714,42 +2683,6 @@ func (s *ReadWrite) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ResultSetStats: Planning and execution statistics for the query. -type ResultSetStats struct { - // QueryPlan: Plan for the query. - QueryPlan *QueryPlan `json:"queryPlan,omitempty"` - - // QueryStats: Aggregated statistics from the execution of the query. - // This will only be present when the request specifies `PROFILE` mode. - // For example, a query will return the statistics including: { - // "results_returned": "20", "documents_scanned": "20", - // "indexes_entries_scanned": "10050", "total_execution_time": "100.7 - // msecs" } - QueryStats googleapi.RawMessage `json:"queryStats,omitempty"` - - // ForceSendFields is a list of field names (e.g. "QueryPlan") to - // unconditionally include in API requests. By default, fields with - // empty or default 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. "QueryPlan") 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 *ResultSetStats) MarshalJSON() ([]byte, error) { - type NoMethod ResultSetStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // RollbackRequest: The request for Firestore.Rollback. type RollbackRequest struct { // Transaction: Required. The transaction to roll back. @@ -2781,19 +2714,6 @@ func (s *RollbackRequest) MarshalJSON() ([]byte, error) { // RunAggregationQueryRequest: The request for // Firestore.RunAggregationQuery. type RunAggregationQueryRequest struct { - // Mode: Optional. The mode in which the query request is processed. - // This field is optional, and when not provided, it defaults to - // `NORMAL` mode where no additional statistics will be returned with - // the query results. - // - // Possible values: - // "NORMAL" - The default mode. Only the query results are returned. - // "PLAN" - This mode returns only the query plan, without any results - // or execution statistics information. - // "PROFILE" - This mode returns both the query plan and the execution - // statistics along with the results. - Mode string `json:"mode,omitempty"` - // NewTransaction: Starts a new transaction as part of the query, // defaulting to read-only. The new transaction ID will be returned as // the first response in the stream. @@ -2813,7 +2733,7 @@ type RunAggregationQueryRequest struct { // the query in. Transaction string `json:"transaction,omitempty"` - // ForceSendFields is a list of field names (e.g. "Mode") to + // ForceSendFields is a list of field names (e.g. "NewTransaction") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2821,12 +2741,13 @@ type RunAggregationQueryRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Mode") 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 is a list of field names (e.g. "NewTransaction") 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:"-"` } @@ -2851,12 +2772,6 @@ type RunAggregationQueryResponse struct { // partial progress. Result *AggregationResult `json:"result,omitempty"` - // Stats: Query plan and execution statistics. Note that the returned - // stats are subject to change as Firestore evolves. This is only - // present when the request specifies a mode other than `NORMAL` and is - // sent only once with the last response in the stream. - Stats *ResultSetStats `json:"stats,omitempty"` - // Transaction: The transaction that was started as part of this // request. Only present on the first response when the request // requested to start a new transaction. @@ -2891,19 +2806,6 @@ func (s *RunAggregationQueryResponse) MarshalJSON() ([]byte, error) { // RunQueryRequest: The request for Firestore.RunQuery. type RunQueryRequest struct { - // Mode: Optional. The mode in which the query request is processed. - // This field is optional, and when not provided, it defaults to - // `NORMAL` mode where no additional statistics will be returned with - // the query results. - // - // Possible values: - // "NORMAL" - The default mode. Only the query results are returned. - // "PLAN" - This mode returns only the query plan, without any results - // or execution statistics information. - // "PROFILE" - This mode returns both the query plan and the execution - // statistics along with the results. - Mode string `json:"mode,omitempty"` - // NewTransaction: Starts a new transaction and reads the documents. // Defaults to a read-only transaction. The new transaction ID will be // returned as the first response in the stream. @@ -2922,7 +2824,7 @@ type RunQueryRequest struct { // value here is the opaque transaction ID to execute the query in. Transaction string `json:"transaction,omitempty"` - // ForceSendFields is a list of field names (e.g. "Mode") to + // ForceSendFields is a list of field names (e.g. "NewTransaction") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2930,12 +2832,13 @@ type RunQueryRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Mode") 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 is a list of field names (e.g. "NewTransaction") 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:"-"` } @@ -2966,12 +2869,6 @@ type RunQueryResponse struct { // an offset between the last response and the current response. SkippedResults int64 `json:"skippedResults,omitempty"` - // Stats: Query plan and execution statistics. Note that the returned - // stats are subject to change as Firestore evolves. This is only - // present when the request specifies a mode other than `NORMAL` and is - // sent only once with the last response in the stream. - Stats *ResultSetStats `json:"stats,omitempty"` - // Transaction: The transaction that was started as part of this // request. Can only be set in the first response, and only if // RunQueryRequest.new_transaction was set in the request. If set, no diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index b4df8eb66c9..e34e66947c5 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -2148,7 +2148,7 @@ } } }, - "revision": "20240118", + "revision": "20240125", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -2379,7 +2379,7 @@ "type": "object" }, "Gateway": { - "description": "Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 29", + "description": "Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 30", "id": "Gateway", "properties": { "addresses": { diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index 44a22db6e7d..a239524fbef 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -829,7 +829,7 @@ func (s *Expr) MarshalJSON() ([]byte, error) { // a load balancer. It captures the ip:port over which the services are // exposed by the proxy, along with any policy configurations. Routes // have reference to to Gateways to dictate how requests should be -// routed by this Gateway. Next id: 29 +// routed by this Gateway. Next id: 30 type Gateway struct { // Addresses: Optional. Zero or one IPv4 or IPv6 address on which the // Gateway will receive the traffic. When no address is provided, an IP diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index 74e0e2cb8a9..c160b52e65a 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -2483,7 +2483,7 @@ } } }, - "revision": "20240118", + "revision": "20240125", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -2760,7 +2760,7 @@ "type": "object" }, "Gateway": { - "description": "Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 29", + "description": "Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 30", "id": "Gateway", "properties": { "addresses": { diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index 04ab67bb9be..1a30222e1d7 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -900,7 +900,7 @@ func (s *ExtensionChainMatchCondition) MarshalJSON() ([]byte, error) { // a load balancer. It captures the ip:port over which the services are // exposed by the proxy, along with any policy configurations. Routes // have reference to to Gateways to dictate how requests should be -// routed by this Gateway. Next id: 29 +// routed by this Gateway. Next id: 30 type Gateway struct { // Addresses: Optional. Zero or one IPv4 or IPv6 address on which the // Gateway will receive the traffic. When no address is provided, an IP diff --git a/sasportal/v1alpha1/sasportal-api.json b/sasportal/v1alpha1/sasportal-api.json index aa6195d0741..0b594deda89 100644 --- a/sasportal/v1alpha1/sasportal-api.json +++ b/sasportal/v1alpha1/sasportal-api.json @@ -109,22 +109,6 @@ "resources": { "customers": { "methods": { - "checkHasProvisionedDeployment": { - "description": "Checks whether a SAS deployment for the authentication context exists.", - "flatPath": "v1alpha1/customers:checkHasProvisionedDeployment", - "httpMethod": "GET", - "id": "sasportal.customers.checkHasProvisionedDeployment", - "parameterOrder": [], - "parameters": {}, - "path": "v1alpha1/customers:checkHasProvisionedDeployment", - "response": { - "$ref": "SasPortalCheckHasProvisionedDeploymentResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/sasportal" - ] - }, "get": { "description": "Returns a requested customer.", "flatPath": "v1alpha1/customers/{customersId}", @@ -179,8 +163,24 @@ "https://www.googleapis.com/auth/sasportal" ] }, + "listGcpProjectDeployments": { + "description": "Returns a list of SAS deployments associated with current GCP project. Includes whether SAS analytics has been enabled or not.", + "flatPath": "v1alpha1/customers:listGcpProjectDeployments", + "httpMethod": "GET", + "id": "sasportal.customers.listGcpProjectDeployments", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha1/customers:listGcpProjectDeployments", + "response": { + "$ref": "SasPortalListGcpProjectDeploymentsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sasportal" + ] + }, "listLegacyOrganizations": { - "description": "Checks whether account is legacy.", + "description": "Returns a list of legacy organizations.", "flatPath": "v1alpha1/customers:listLegacyOrganizations", "httpMethod": "GET", "id": "sasportal.customers.listLegacyOrganizations", @@ -2652,7 +2652,7 @@ } } }, - "revision": "20240110", + "revision": "20240201", "rootUrl": "https://sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { @@ -2689,17 +2689,6 @@ }, "type": "object" }, - "SasPortalCheckHasProvisionedDeploymentResponse": { - "description": "Response for [CheckHasProvisionedDeployment]. [spectrum.sas.portal.v1alpha1.Provisioning.CheckHasProvisionedDeployment].", - "id": "SasPortalCheckHasProvisionedDeploymentResponse", - "properties": { - "hasProvisionedDeployment": { - "description": "Whether a SAS deployment for the authentication context exists.", - "type": "boolean" - } - }, - "type": "object" - }, "SasPortalCreateSignedDeviceRequest": { "description": "Request for CreateSignedDevice.", "id": "SasPortalCreateSignedDeviceRequest", @@ -3148,6 +3137,21 @@ }, "type": "object" }, + "SasPortalGcpProjectDeployment": { + "description": "Deployment associated with the GCP project. Includes whether SAS analytics has been enabled or not.", + "id": "SasPortalGcpProjectDeployment", + "properties": { + "deployment": { + "$ref": "SasPortalDeployment", + "description": "Deployment associated with the GCP project." + }, + "hasEnabledAnalytics": { + "description": "Whether SAS analytics has been enabled.", + "type": "boolean" + } + }, + "type": "object" + }, "SasPortalGenerateSecretRequest": { "description": "Request for GenerateSecret.", "id": "SasPortalGenerateSecretRequest", @@ -3313,6 +3317,20 @@ }, "type": "object" }, + "SasPortalListGcpProjectDeploymentsResponse": { + "description": "Response for [ListGcpProjectDeployments].", + "id": "SasPortalListGcpProjectDeploymentsResponse", + "properties": { + "deployments": { + "description": "Optional. Deployments associated with the GCP project", + "items": { + "$ref": "SasPortalGcpProjectDeployment" + }, + "type": "array" + } + }, + "type": "object" + }, "SasPortalListLegacyOrganizationsResponse": { "description": "Response for [ListLegacyOrganizations]. [spectrum.sas.portal.v1alpha1.Provisioning.ListLegacyOrganizations].", "id": "SasPortalListLegacyOrganizationsResponse", diff --git a/sasportal/v1alpha1/sasportal-gen.go b/sasportal/v1alpha1/sasportal-gen.go index 908bc6cc4e3..aef22b7f205 100644 --- a/sasportal/v1alpha1/sasportal-gen.go +++ b/sasportal/v1alpha1/sasportal-gen.go @@ -482,44 +482,6 @@ func (s *SasPortalChannelWithScore) UnmarshalJSON(data []byte) error { return nil } -// SasPortalCheckHasProvisionedDeploymentResponse: Response for -// [CheckHasProvisionedDeployment]. -// [spectrum.sas.portal.v1alpha1.Provisioning.CheckHasProvisionedDeployme -// nt]. -type SasPortalCheckHasProvisionedDeploymentResponse struct { - // HasProvisionedDeployment: Whether a SAS deployment for the - // authentication context exists. - HasProvisionedDeployment bool `json:"hasProvisionedDeployment,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "HasProvisionedDeployment") to unconditionally include in API - // requests. By default, fields with empty or default 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. "HasProvisionedDeployment") - // 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 *SasPortalCheckHasProvisionedDeploymentResponse) MarshalJSON() ([]byte, error) { - type NoMethod SasPortalCheckHasProvisionedDeploymentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // SasPortalCreateSignedDeviceRequest: Request for CreateSignedDevice. type SasPortalCreateSignedDeviceRequest struct { // EncodedDevice: Required. JSON Web Token signed using a CPI private @@ -1133,6 +1095,38 @@ func (s *SasPortalFrequencyRange) UnmarshalJSON(data []byte) error { return nil } +// SasPortalGcpProjectDeployment: Deployment associated with the GCP +// project. Includes whether SAS analytics has been enabled or not. +type SasPortalGcpProjectDeployment struct { + // Deployment: Deployment associated with the GCP project. + Deployment *SasPortalDeployment `json:"deployment,omitempty"` + + // HasEnabledAnalytics: Whether SAS analytics has been enabled. + HasEnabledAnalytics bool `json:"hasEnabledAnalytics,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Deployment") to + // unconditionally include in API requests. By default, fields with + // empty or default 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. "Deployment") 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 *SasPortalGcpProjectDeployment) MarshalJSON() ([]byte, error) { + type NoMethod SasPortalGcpProjectDeployment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SasPortalGenerateSecretRequest: Request for GenerateSecret. type SasPortalGenerateSecretRequest struct { } @@ -1443,6 +1437,39 @@ func (s *SasPortalListDevicesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SasPortalListGcpProjectDeploymentsResponse: Response for +// [ListGcpProjectDeployments]. +type SasPortalListGcpProjectDeploymentsResponse struct { + // Deployments: Optional. Deployments associated with the GCP project + Deployments []*SasPortalGcpProjectDeployment `json:"deployments,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Deployments") to + // unconditionally include in API requests. By default, fields with + // empty or default 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. "Deployments") 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 *SasPortalListGcpProjectDeploymentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SasPortalListGcpProjectDeploymentsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SasPortalListLegacyOrganizationsResponse: Response for // [ListLegacyOrganizations]. // [spectrum.sas.portal.v1alpha1.Provisioning.ListLegacyOrganizations]. @@ -2316,139 +2343,6 @@ type SasPortalValidateInstallerResponse struct { googleapi.ServerResponse `json:"-"` } -// method id "sasportal.customers.checkHasProvisionedDeployment": - -type CustomersCheckHasProvisionedDeploymentCall struct { - s *Service - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// CheckHasProvisionedDeployment: Checks whether a SAS deployment for -// the authentication context exists. -func (r *CustomersService) CheckHasProvisionedDeployment() *CustomersCheckHasProvisionedDeploymentCall { - c := &CustomersCheckHasProvisionedDeploymentCall{s: r.s, urlParams_: make(gensupport.URLParams)} - 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 *CustomersCheckHasProvisionedDeploymentCall) Fields(s ...googleapi.Field) *CustomersCheckHasProvisionedDeploymentCall { - 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 *CustomersCheckHasProvisionedDeploymentCall) IfNoneMatch(entityTag string) *CustomersCheckHasProvisionedDeploymentCall { - 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 *CustomersCheckHasProvisionedDeploymentCall) Context(ctx context.Context) *CustomersCheckHasProvisionedDeploymentCall { - 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 *CustomersCheckHasProvisionedDeploymentCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *CustomersCheckHasProvisionedDeploymentCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - 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) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/customers:checkHasProvisionedDeployment") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "sasportal.customers.checkHasProvisionedDeployment" call. -// Exactly one of *SasPortalCheckHasProvisionedDeploymentResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *SasPortalCheckHasProvisionedDeploymentResponse.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 *CustomersCheckHasProvisionedDeploymentCall) Do(opts ...googleapi.CallOption) (*SasPortalCheckHasProvisionedDeploymentResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) - } - ret := &SasPortalCheckHasProvisionedDeploymentResponse{ - 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": "Checks whether a SAS deployment for the authentication context exists.", - // "flatPath": "v1alpha1/customers:checkHasProvisionedDeployment", - // "httpMethod": "GET", - // "id": "sasportal.customers.checkHasProvisionedDeployment", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha1/customers:checkHasProvisionedDeployment", - // "response": { - // "$ref": "SasPortalCheckHasProvisionedDeploymentResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sasportal" - // ] - // } - -} - // method id "sasportal.customers.get": type CustomersGetCall struct { @@ -2774,6 +2668,140 @@ func (c *CustomersListCall) Pages(ctx context.Context, f func(*SasPortalListCust } } +// method id "sasportal.customers.listGcpProjectDeployments": + +type CustomersListGcpProjectDeploymentsCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListGcpProjectDeployments: Returns a list of SAS deployments +// associated with current GCP project. Includes whether SAS analytics +// has been enabled or not. +func (r *CustomersService) ListGcpProjectDeployments() *CustomersListGcpProjectDeploymentsCall { + c := &CustomersListGcpProjectDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *CustomersListGcpProjectDeploymentsCall) Fields(s ...googleapi.Field) *CustomersListGcpProjectDeploymentsCall { + 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 *CustomersListGcpProjectDeploymentsCall) IfNoneMatch(entityTag string) *CustomersListGcpProjectDeploymentsCall { + 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 *CustomersListGcpProjectDeploymentsCall) Context(ctx context.Context) *CustomersListGcpProjectDeploymentsCall { + 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 *CustomersListGcpProjectDeploymentsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersListGcpProjectDeploymentsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/customers:listGcpProjectDeployments") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "sasportal.customers.listGcpProjectDeployments" call. +// Exactly one of *SasPortalListGcpProjectDeploymentsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *SasPortalListGcpProjectDeploymentsResponse.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 *CustomersListGcpProjectDeploymentsCall) Do(opts ...googleapi.CallOption) (*SasPortalListGcpProjectDeploymentsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &SasPortalListGcpProjectDeploymentsResponse{ + 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": "Returns a list of SAS deployments associated with current GCP project. Includes whether SAS analytics has been enabled or not.", + // "flatPath": "v1alpha1/customers:listGcpProjectDeployments", + // "httpMethod": "GET", + // "id": "sasportal.customers.listGcpProjectDeployments", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha1/customers:listGcpProjectDeployments", + // "response": { + // "$ref": "SasPortalListGcpProjectDeploymentsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/sasportal" + // ] + // } + +} + // method id "sasportal.customers.listLegacyOrganizations": type CustomersListLegacyOrganizationsCall struct { @@ -2784,7 +2812,7 @@ type CustomersListLegacyOrganizationsCall struct { header_ http.Header } -// ListLegacyOrganizations: Checks whether account is legacy. +// ListLegacyOrganizations: Returns a list of legacy organizations. func (r *CustomersService) ListLegacyOrganizations() *CustomersListLegacyOrganizationsCall { c := &CustomersListLegacyOrganizationsCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c @@ -2888,7 +2916,7 @@ func (c *CustomersListLegacyOrganizationsCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Checks whether account is legacy.", + // "description": "Returns a list of legacy organizations.", // "flatPath": "v1alpha1/customers:listLegacyOrganizations", // "httpMethod": "GET", // "id": "sasportal.customers.listLegacyOrganizations", diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index 25003692209..54b059050fd 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -33,7 +33,7 @@ "location": "me-central2" } ], - "etag": "\"3136323232353032373039383637313835303036\"", + "etag": "\"36373537363133393131323733353738333730\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -4040,7 +4040,7 @@ } } }, - "revision": "20240105", + "revision": "20240202", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AnywhereCache": { @@ -4862,14 +4862,6 @@ "description": "The kind of item this is. For folders, this is always storage#folder.", "type": "string" }, - "metadata": { - "additionalProperties": { - "description": "An individual metadata entry.", - "type": "string" - }, - "description": "User-provided metadata, in key/value pairs.", - "type": "object" - }, "metageneration": { "description": "The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.", "format": "int64", diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index c34ca98c4d5..bd7b76962de 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -1860,9 +1860,6 @@ type Folder struct { // storage#folder. Kind string `json:"kind,omitempty"` - // Metadata: User-provided metadata, in key/value pairs. - Metadata map[string]string `json:"metadata,omitempty"` - // Metageneration: The version of the metadata for this folder. Used for // preconditions and for detecting changes in metadata. Metageneration int64 `json:"metageneration,omitempty,string"` diff --git a/walletobjects/v1/walletobjects-api.json b/walletobjects/v1/walletobjects-api.json index 358987dc253..68382f86999 100644 --- a/walletobjects/v1/walletobjects-api.json +++ b/walletobjects/v1/walletobjects-api.json @@ -2632,24 +2632,6 @@ "resources": { "privateContent": { "methods": { - "setPassUpdateNotice": { - "description": "Provide Google with information about awaiting private pass update. This will allow Google to provide the update notification to the device that currently holds this pass.", - "flatPath": "walletobjects/v1/privateContent/setPassUpdateNotice", - "httpMethod": "POST", - "id": "walletobjects.walletobjects.v1.privateContent.setPassUpdateNotice", - "parameterOrder": [], - "parameters": {}, - "path": "walletobjects/v1/privateContent/setPassUpdateNotice", - "request": { - "$ref": "SetPassUpdateNoticeRequest" - }, - "response": { - "$ref": "SetPassUpdateNoticeResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/wallet_object.issuer" - ] - }, "uploadPrivateData": { "description": "Upload private data (text or URI) and returns an Id to be used in its place.", "flatPath": "walletobjects/v1/privateContent/uploadPrivateData", @@ -2675,7 +2657,7 @@ } } }, - "revision": "20240126", + "revision": "20240205", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -8090,18 +8072,6 @@ }, "type": "object" }, - "SetPassUpdateNoticeRequest": { - "description": "Request to send a private pass update notice information to Google, so that devices can then fetch the notice prompting the user to update a pass.", - "id": "SetPassUpdateNoticeRequest", - "properties": {}, - "type": "object" - }, - "SetPassUpdateNoticeResponse": { - "description": "A response to a request to notify Google of an awaiting update to a private pass.", - "id": "SetPassUpdateNoticeResponse", - "properties": {}, - "type": "object" - }, "SignUpInfo": { "id": "SignUpInfo", "properties": { diff --git a/walletobjects/v1/walletobjects-gen.go b/walletobjects/v1/walletobjects-gen.go index edd1802334f..53bad66d4bd 100644 --- a/walletobjects/v1/walletobjects-gen.go +++ b/walletobjects/v1/walletobjects-gen.go @@ -7748,20 +7748,6 @@ func (s *SecurityAnimation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SetPassUpdateNoticeRequest: Request to send a private pass update -// notice information to Google, so that devices can then fetch the -// notice prompting the user to update a pass. -type SetPassUpdateNoticeRequest struct { -} - -// SetPassUpdateNoticeResponse: A response to a request to notify Google -// of an awaiting update to a private pass. -type SetPassUpdateNoticeResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} - type SignUpInfo struct { // ClassId: ID of the class the user can sign up for. ClassId string `json:"classId,omitempty"` @@ -23255,133 +23241,6 @@ func (c *TransitobjectUpdateCall) Do(opts ...googleapi.CallOption) (*TransitObje } -// method id "walletobjects.walletobjects.v1.privateContent.setPassUpdateNotice": - -type WalletobjectsV1PrivateContentSetPassUpdateNoticeCall struct { - s *Service - setpassupdatenoticerequest *SetPassUpdateNoticeRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SetPassUpdateNotice: Provide Google with information about awaiting -// private pass update. This will allow Google to provide the update -// notification to the device that currently holds this pass. -func (r *WalletobjectsV1PrivateContentService) SetPassUpdateNotice(setpassupdatenoticerequest *SetPassUpdateNoticeRequest) *WalletobjectsV1PrivateContentSetPassUpdateNoticeCall { - c := &WalletobjectsV1PrivateContentSetPassUpdateNoticeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.setpassupdatenoticerequest = setpassupdatenoticerequest - 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 *WalletobjectsV1PrivateContentSetPassUpdateNoticeCall) Fields(s ...googleapi.Field) *WalletobjectsV1PrivateContentSetPassUpdateNoticeCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - 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 *WalletobjectsV1PrivateContentSetPassUpdateNoticeCall) Context(ctx context.Context) *WalletobjectsV1PrivateContentSetPassUpdateNoticeCall { - 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 *WalletobjectsV1PrivateContentSetPassUpdateNoticeCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *WalletobjectsV1PrivateContentSetPassUpdateNoticeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.setpassupdatenoticerequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/privateContent/setPassUpdateNotice") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "walletobjects.walletobjects.v1.privateContent.setPassUpdateNotice" call. -// Exactly one of *SetPassUpdateNoticeResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *SetPassUpdateNoticeResponse.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 *WalletobjectsV1PrivateContentSetPassUpdateNoticeCall) Do(opts ...googleapi.CallOption) (*SetPassUpdateNoticeResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) - } - ret := &SetPassUpdateNoticeResponse{ - 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": "Provide Google with information about awaiting private pass update. This will allow Google to provide the update notification to the device that currently holds this pass.", - // "flatPath": "walletobjects/v1/privateContent/setPassUpdateNotice", - // "httpMethod": "POST", - // "id": "walletobjects.walletobjects.v1.privateContent.setPassUpdateNotice", - // "parameterOrder": [], - // "parameters": {}, - // "path": "walletobjects/v1/privateContent/setPassUpdateNotice", - // "request": { - // "$ref": "SetPassUpdateNoticeRequest" - // }, - // "response": { - // "$ref": "SetPassUpdateNoticeResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/wallet_object.issuer" - // ] - // } - -} - // method id "walletobjects.walletobjects.v1.privateContent.uploadPrivateData": type WalletobjectsV1PrivateContentUploadPrivateDataCall struct { diff --git a/workstations/v1/workstations-api.json b/workstations/v1/workstations-api.json index 4e83495bf8c..e30de981103 100644 --- a/workstations/v1/workstations-api.json +++ b/workstations/v1/workstations-api.json @@ -1195,7 +1195,7 @@ } } }, - "revision": "20240101", + "revision": "20240130", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "AuditConfig": { @@ -1262,7 +1262,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/workstations/v1/workstations-gen.go b/workstations/v1/workstations-gen.go index 840d9a184c3..93b5dd8eccd 100644 --- a/workstations/v1/workstations-gen.go +++ b/workstations/v1/workstations-gen.go @@ -401,7 +401,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/workstations/v1beta/workstations-api.json b/workstations/v1beta/workstations-api.json index 091bf622aef..1ba8cde8608 100644 --- a/workstations/v1beta/workstations-api.json +++ b/workstations/v1beta/workstations-api.json @@ -1127,7 +1127,7 @@ } } }, - "revision": "20240101", + "revision": "20240130", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "Accelerator": { @@ -1210,7 +1210,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, @@ -1362,6 +1362,10 @@ "description": "Optional. When set to true, disables public IP addresses for VMs. If you disable public IP addresses, you must set up Private Google Access or Cloud NAT on your network. If you use Private Google Access and you use `private.googleapis.com` or `restricted.googleapis.com` for Container Registry and Artifact Registry, make sure that you set up DNS records for domains `*.gcr.io` and `*.pkg.dev`. Defaults to false (VMs have public IP addresses).", "type": "boolean" }, + "disableSsh": { + "description": "Optional. Whether to disable SSH access to the VM.", + "type": "boolean" + }, "enableNestedVirtualization": { "description": "Optional. Whether to enable nested virtualization on Cloud Workstations VMs created under this workstation configuration. Nested virtualization lets you run virtual machine (VM) instances inside your workstation. Before enabling nested virtualization, consider the following important considerations. Cloud Workstations instances are subject to the [same restrictions as Compute Engine instances](https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions): * **Organization policy**: projects, folders, or organizations may be restricted from creating nested VMs if the **Disable VM nested virtualization** constraint is enforced in the organization policy. For more information, see the Compute Engine section, [Checking whether nested virtualization is allowed](https://cloud.google.com/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed). * **Performance**: nested VMs might experience a 10% or greater decrease in performance for workloads that are CPU-bound and possibly greater than a 10% decrease for workloads that are input/output bound. * **Machine Type**: nested virtualization can only be enabled on workstation configurations that specify a machine_type in the N1 or N2 machine series. * **GPUs**: nested virtualization may not be enabled on workstation configurations with accelerators. * **Operating System**: Because [Container-Optimized OS](https://cloud.google.com/compute/docs/images/os-details#container-optimized_os_cos) does not support nested virtualization, when nested virtualization is enabled, the underlying Compute Engine VM instances boot from an [Ubuntu LTS](https://cloud.google.com/compute/docs/images/os-details#ubuntu_lts) image.", "type": "boolean" diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go index 4e64b9e0100..d0abd4731d4 100644 --- a/workstations/v1beta/workstations-gen.go +++ b/workstations/v1beta/workstations-gen.go @@ -433,7 +433,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to @@ -749,6 +753,9 @@ type GceInstance struct { // addresses). DisablePublicIpAddresses bool `json:"disablePublicIpAddresses,omitempty"` + // DisableSsh: Optional. Whether to disable SSH access to the VM. + DisableSsh bool `json:"disableSsh,omitempty"` + // EnableNestedVirtualization: Optional. Whether to enable nested // virtualization on Cloud Workstations VMs created under this // workstation configuration. Nested virtualization lets you run virtual