From c38c95e61cf78384dc0076da2456713521664e3a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 13 Jul 2022 07:15:48 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- .../v1/androidmanagement-api.json | 30 +- androidmanagement/v1/androidmanagement-gen.go | 63 ++- api-list.json | 4 +- apigee/v1/apigee-api.json | 7 +- apigee/v1/apigee-gen.go | 42 +- apigeeregistry/v1/apigeeregistry-api.json | 12 +- apigeeregistry/v1/apigeeregistry-gen.go | 26 + assuredworkloads/v1/assuredworkloads-api.json | 4 +- assuredworkloads/v1/assuredworkloads-gen.go | 3 +- chat/v1/chat-api.json | 4 +- chat/v1/chat-gen.go | 4 +- chromemanagement/v1/chromemanagement-api.json | 183 +++++- chromemanagement/v1/chromemanagement-gen.go | 523 ++++++++++++++++++ cloudsearch/v1/cloudsearch-api.json | 9 +- cloudsearch/v1/cloudsearch-gen.go | 12 + connectors/v1/connectors-api.json | 44 +- connectors/v1/connectors-gen.go | 88 ++- .../v1/containeranalysis-api.json | 29 +- containeranalysis/v1/containeranalysis-gen.go | 43 +- .../v1alpha1/containeranalysis-api.json | 6 +- .../v1alpha1/containeranalysis-gen.go | 21 +- .../v1beta1/containeranalysis-api.json | 27 +- .../v1beta1/containeranalysis-gen.go | 41 +- documentai/v1/documentai-api.json | 189 ++++++- documentai/v1/documentai-gen.go | 504 ++++++++++++++++- documentai/v1beta2/documentai-api.json | 86 ++- documentai/v1beta2/documentai-gen.go | 173 +++++- documentai/v1beta3/documentai-api.json | 189 ++++++- documentai/v1beta3/documentai-gen.go | 505 ++++++++++++++++- .../v2/doubleclickbidmanager-api.json | 156 +++--- .../v2/doubleclickbidmanager-gen.go | 198 ++++--- .../v1/mybusinessaccountmanagement-api.json | 6 +- .../v1/mybusinessaccountmanagement-gen.go | 14 +- .../v1/servicenetworking-api.json | 29 +- servicenetworking/v1/servicenetworking-gen.go | 64 ++- .../v1beta/servicenetworking-api.json | 29 +- .../v1beta/servicenetworking-gen.go | 64 ++- youtube/v3/youtube-api.json | 9 +- youtube/v3/youtube-gen.go | 7 +- 39 files changed, 3099 insertions(+), 348 deletions(-) diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index b43c51d2824..e8079647fe7 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1065,7 +1065,7 @@ } } }, - "revision": "20220613", + "revision": "20220704", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -1193,7 +1193,7 @@ "type": "string" }, "packageNames": { - "description": "Package names of all packages that are associated with the particular user id. In most cases, this will be a single package name, the package that has been assigned that user id. If multiple application share a uid then all packages sharing uid will be included.", + "description": "Package names of all packages that are associated with the particular user ID. In most cases, this will be a single package name, the package that has been assigned that user ID. If multiple application share a UID then all packages sharing UID will be included.", "items": { "type": "string" }, @@ -1583,7 +1583,9 @@ "BLOCK_UNINSTALL", "PERMISSION_GRANT", "PACKAGE_ACCESS", - "ENABLE_SYSTEM_APP" + "ENABLE_SYSTEM_APP", + "NETWORK_ACTIVITY_LOGS", + "SECURITY_LOGS" ], "enumDescriptions": [ "No delegation scope specified.", @@ -1592,7 +1594,9 @@ "Grants access to blocking uninstallation.", "Grants access to permission policy and permission grant state.", "Grants access to package access state.", - "Grants access for enabling system apps." + "Grants access for enabling system apps.", + "Grants access to network activity logs. Allows the delegated application to call setNetworkLoggingEnabled (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setNetworkLoggingEnabled%28android.content.ComponentName,%20boolean%29), isNetworkLoggingEnabled (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#isNetworkLoggingEnabled%28android.content.ComponentName%29) and retrieveNetworkLogs (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#retrieveNetworkLogs%28android.content.ComponentName,%20long%29) methods. This scope can be delegated to at most one application. Supported for fully managed devices on Android 10 and above. Supported for a work profile on Android 12 and above. When delegation is supported and set, NETWORK_ACTIVITY_LOGS is ignored.", + "Grants access to security logs. Allows the delegated application to call setSecurityLoggingEnabled (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setSecurityLoggingEnabled%28android.content.ComponentName,%20boolean%29), isSecurityLoggingEnabled (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#isSecurityLoggingEnabled%28android.content.ComponentName%29), retrieveSecurityLogs (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#retrieveSecurityLogs%28android.content.ComponentName%29) and retrievePreRebootSecurityLogs (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#retrievePreRebootSecurityLogs%28android.content.ComponentName%29) methods. This scope can be delegated to at most one application. Supported for fully managed devices and company-owned devices with a work profile on Android 12 and above. When delegation is supported and set, SECURITY_LOGS is ignored." ], "type": "string" }, @@ -2603,7 +2607,7 @@ "type": "string" }, "duration": { - "description": "The length of time the enrollment token is valid, ranging from 1 minute to 90 days. If not specified, the default duration is 1 hour.", + "description": "The length of time the enrollment token is valid, ranging from 1 minute to Durations.MAX_VALUE (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour. Please note that if requested duration causes the resulting expiration_timestamp to exceed Timestamps.MAX_VALUE (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Timestamps.html#MAX_VALUE), then expiration_timestamp is coerced to Timestamps.MAX_VALUE.", "format": "google-duration", "type": "string" }, @@ -5158,8 +5162,8 @@ ], "enumDescriptions": [ "This value is not used.", - "Enable logging of on-device security events, like when the device password is incorrectly entered or removable storage is mounted. See UsageLogEvent for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged.", - "Enable logging of on-device network events, like DNS lookups and TCP connections. See UsageLogEvent for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged." + "Enable logging of on-device security events, like when the device password is incorrectly entered or removable storage is mounted. See UsageLogEvent for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged. Can be overridden by the application delegated scope SECURITY_LOGS", + "Enable logging of on-device network events, like DNS lookups and TCP connections. See UsageLogEvent for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged. Can be overridden by the application delegated scope NETWORK_ACTIVITY_LOGS" ], "type": "string" }, @@ -5175,8 +5179,8 @@ ], "enumDescriptions": [ "This value is not used.", - "Enable logging of on-device security events, like when the device password is incorrectly entered or removable storage is mounted. See UsageLogEvent for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged.", - "Enable logging of on-device network events, like DNS lookups and TCP connections. See UsageLogEvent for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged." + "Enable logging of on-device security events, like when the device password is incorrectly entered or removable storage is mounted. See UsageLogEvent for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged. Can be overridden by the application delegated scope SECURITY_LOGS", + "Enable logging of on-device network events, like DNS lookups and TCP connections. See UsageLogEvent for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged. Can be overridden by the application delegated scope NETWORK_ACTIVITY_LOGS" ], "type": "string" }, @@ -5215,7 +5219,7 @@ }, "connectEvent": { "$ref": "ConnectEvent", - "description": "A TCP connect event was initiated through the standard network stack. Part of NETWORK_LOGS." + "description": "A TCP connect event was initiated through the standard network stack. Part of NETWORK_ACTIVITY_LOGS." }, "cryptoSelfTestCompletedEvent": { "$ref": "CryptoSelfTestCompletedEvent", @@ -5223,7 +5227,7 @@ }, "dnsEvent": { "$ref": "DnsEvent", - "description": "A DNS lookup event was initiated through the standard network stack. Part of NETWORK_LOGS." + "description": "A DNS lookup event was initiated through the standard network stack. Part of NETWORK_ACTIVITY_LOGS." }, "eventId": { "description": "Unique id of the event.", @@ -5369,7 +5373,7 @@ }, "wipeFailureEvent": { "$ref": "WipeFailureEvent", - "description": "The work profile or company-owned device failed to wipe when when requested. This could be user initiated or admin initiated e.g. delete was received. Part of SECURITY_LOGS." + "description": "The work profile or company-owned device failed to wipe when requested. This could be user initiated or admin initiated e.g. delete was received. Part of SECURITY_LOGS." } }, "type": "object" @@ -5537,7 +5541,7 @@ "type": "object" }, "WipeFailureEvent": { - "description": "The work profile or company-owned device failed to wipe when when requested. This could be user initiated or admin initiated e.g. delete was received. Intentionally empty.", + "description": "The work profile or company-owned device failed to wipe when requested. This could be user initiated or admin initiated e.g. delete was received. Intentionally empty.", "id": "WipeFailureEvent", "properties": {}, "type": "object" diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 6e28fd5f311..6c8cb3bdbce 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -444,9 +444,9 @@ type AppProcessInfo struct { ApkSha256Hash string `json:"apkSha256Hash,omitempty"` // PackageNames: Package names of all packages that are associated with - // the particular user id. In most cases, this will be a single package - // name, the package that has been assigned that user id. If multiple - // application share a uid then all packages sharing uid will be + // the particular user ID. In most cases, this will be a single package + // name, the package that has been assigned that user ID. If multiple + // application share a UID then all packages sharing UID will be // included. PackageNames []string `json:"packageNames,omitempty"` @@ -909,6 +909,30 @@ type ApplicationPolicy struct { // permission grant state. // "PACKAGE_ACCESS" - Grants access to package access state. // "ENABLE_SYSTEM_APP" - Grants access for enabling system apps. + // "NETWORK_ACTIVITY_LOGS" - Grants access to network activity logs. + // Allows the delegated application to call setNetworkLoggingEnabled + // (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setNetworkLoggingEnabled%28android.content.ComponentName,%20boolean%29), + // isNetworkLoggingEnabled + // (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#isNetworkLoggingEnabled%28android.content.ComponentName%29) + // and retrieveNetworkLogs + // (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#retrieveNetworkLogs%28android.content.ComponentName,%20long%29) + // methods. This scope can be delegated to at most one application. + // Supported for fully managed devices on Android 10 and above. + // Supported for a work profile on Android 12 and above. When delegation + // is supported and set, NETWORK_ACTIVITY_LOGS is ignored. + // "SECURITY_LOGS" - Grants access to security logs. Allows the + // delegated application to call setSecurityLoggingEnabled + // (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setSecurityLoggingEnabled%28android.content.ComponentName,%20boolean%29), + // isSecurityLoggingEnabled + // (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#isSecurityLoggingEnabled%28android.content.ComponentName%29), + // retrieveSecurityLogs + // (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#retrieveSecurityLogs%28android.content.ComponentName%29) + // and retrievePreRebootSecurityLogs + // (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#retrievePreRebootSecurityLogs%28android.content.ComponentName%29) + // methods. This scope can be delegated to at most one application. + // Supported for fully managed devices and company-owned devices with a + // work profile on Android 12 and above. When delegation is supported + // and set, SECURITY_LOGS is ignored. DelegatedScopes []string `json:"delegatedScopes,omitempty"` // Disabled: Whether the app is disabled. When disabled, the app data is @@ -2332,8 +2356,13 @@ type EnrollmentToken struct { AllowPersonalUsage string `json:"allowPersonalUsage,omitempty"` // Duration: The length of time the enrollment token is valid, ranging - // from 1 minute to 90 days. If not specified, the default duration is 1 - // hour. + // from 1 minute to Durations.MAX_VALUE + // (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), + // approximately 10,000 years. If not specified, the default duration is + // 1 hour. Please note that if requested duration causes the resulting + // expiration_timestamp to exceed Timestamps.MAX_VALUE + // (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Timestamps.html#MAX_VALUE), + // then expiration_timestamp is coerced to Timestamps.MAX_VALUE. Duration string `json:"duration,omitempty"` // ExpirationTimestamp: The expiration time of the token. This is a @@ -6023,13 +6052,15 @@ type UsageLog struct { // logged security events. Supported for fully managed devices on // Android 7 and above. Supported for company-owned devices with a work // profile on Android 12 and above, on which only security events from - // the work profile are logged. + // the work profile are logged. Can be overridden by the application + // delegated scope SECURITY_LOGS // "NETWORK_ACTIVITY_LOGS" - Enable logging of on-device network // events, like DNS lookups and TCP connections. See UsageLogEvent for a // complete description of the logged network events. Supported for // fully managed devices on Android 8 and above. Supported for // company-owned devices with a work profile on Android 12 and above, on - // which only network events from the work profile are logged. + // which only network events from the work profile are logged. Can be + // overridden by the application delegated scope NETWORK_ACTIVITY_LOGS EnabledLogTypes []string `json:"enabledLogTypes,omitempty"` // UploadOnCellularAllowed: Specifies which of the enabled log types can @@ -6044,13 +6075,15 @@ type UsageLog struct { // logged security events. Supported for fully managed devices on // Android 7 and above. Supported for company-owned devices with a work // profile on Android 12 and above, on which only security events from - // the work profile are logged. + // the work profile are logged. Can be overridden by the application + // delegated scope SECURITY_LOGS // "NETWORK_ACTIVITY_LOGS" - Enable logging of on-device network // events, like DNS lookups and TCP connections. See UsageLogEvent for a // complete description of the logged network events. Supported for // fully managed devices on Android 8 and above. Supported for // company-owned devices with a work profile on Android 12 and above, on - // which only network events from the work profile are logged. + // which only network events from the work profile are logged. Can be + // overridden by the application delegated scope NETWORK_ACTIVITY_LOGS UploadOnCellularAllowed []string `json:"uploadOnCellularAllowed,omitempty"` // ForceSendFields is a list of field names (e.g. "EnabledLogTypes") to @@ -6107,7 +6140,7 @@ type UsageLogEvent struct { CertValidationFailureEvent *CertValidationFailureEvent `json:"certValidationFailureEvent,omitempty"` // ConnectEvent: A TCP connect event was initiated through the standard - // network stack. Part of NETWORK_LOGS. + // network stack. Part of NETWORK_ACTIVITY_LOGS. ConnectEvent *ConnectEvent `json:"connectEvent,omitempty"` // CryptoSelfTestCompletedEvent: Validates whether Android’s built-in @@ -6117,7 +6150,7 @@ type UsageLogEvent struct { CryptoSelfTestCompletedEvent *CryptoSelfTestCompletedEvent `json:"cryptoSelfTestCompletedEvent,omitempty"` // DnsEvent: A DNS lookup event was initiated through the standard - // network stack. Part of NETWORK_LOGS. + // network stack. Part of NETWORK_ACTIVITY_LOGS. DnsEvent *DnsEvent `json:"dnsEvent,omitempty"` // EventId: Unique id of the event. @@ -6243,8 +6276,8 @@ type UsageLogEvent struct { RemoteLockEvent *RemoteLockEvent `json:"remoteLockEvent,omitempty"` // WipeFailureEvent: The work profile or company-owned device failed to - // wipe when when requested. This could be user initiated or admin - // initiated e.g. delete was received. Part of SECURITY_LOGS. + // wipe when requested. This could be user initiated or admin initiated + // e.g. delete was received. Part of SECURITY_LOGS. WipeFailureEvent *WipeFailureEvent `json:"wipeFailureEvent,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -6557,8 +6590,8 @@ func (s *WipeAction) MarshalJSON() ([]byte, error) { } // WipeFailureEvent: The work profile or company-owned device failed to -// wipe when when requested. This could be user initiated or admin -// initiated e.g. delete was received. Intentionally empty. +// wipe when requested. This could be user initiated or admin initiated +// e.g. delete was received. Intentionally empty. type WipeFailureEvent struct { } diff --git a/api-list.json b/api-list.json index a3402545c61..c82666d5afe 100644 --- a/api-list.json +++ b/api-list.json @@ -622,7 +622,7 @@ "name": "beyondcorp", "version": "v1alpha", "title": "BeyondCorp API", - "description": "Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution.", + "description": "Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity solutions.", "discoveryRestUrl": "https://beyondcorp.googleapis.com/$discovery/rest?version=v1alpha", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -637,7 +637,7 @@ "name": "beyondcorp", "version": "v1", "title": "BeyondCorp API", - "description": "Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution.", + "description": "Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity solutions.", "discoveryRestUrl": "https://beyondcorp.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 40941af1595..3926711fbc8 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -3490,7 +3490,7 @@ ] }, "delete": { - "description": "Deletes an environment from an organization. **Note**: You must delete all key value maps and key value entries before you can delete an environment.", + "description": "Deletes an environment from an organization. **Warning: You must delete all key value maps and key value entries before you delete an environment.** Otherwise, if you re-create the environment the key value map entry operations will encounter encryption/decryption discrepancies.", "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}", "httpMethod": "DELETE", "id": "apigee.organizations.environments.delete", @@ -8515,7 +8515,7 @@ } } }, - "revision": "20220623", + "revision": "20220707", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -8797,6 +8797,7 @@ "id": "GoogleCloudApigeeV1ApiProduct", "properties": { "apiResources": { + "description": "Comma-separated list of API resources to be bundled in the API product. By default, the resource paths are mapped from the `proxy.pathsuffix` variable. The proxy path suffix is defined as the URI fragment following the ProxyEndpoint base path. For example, if the `apiResources` element is defined to be `/forecastrss` and the base path defined for the API proxy is `/weather`, then only requests to `/weather/forecastrss` are permitted by the API product. You can select a specific path, or you can select all subpaths with the following wildcard: - `/**`: Indicates that all sub-URIs are included. - `/*` : Indicates that only URIs one level down are included. By default, / supports the same resources as /** as well as the base path defined by the API proxy. For example, if the base path of the API proxy is `/v1/weatherapikey`, then the API product supports requests to `/v1/weatherapikey` and to any sub-URIs, such as `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and so on. For more information, see Managing API products.", "items": { "type": "string" }, @@ -8819,7 +8820,7 @@ "type": "string" }, "description": { - "description": "Description of the API product. Include key information about the API product that is not captured by other fields. Comma-separated list of API resources to be bundled in the API product. By default, the resource paths are mapped from the `proxy.pathsuffix` variable. The proxy path suffix is defined as the URI fragment following the ProxyEndpoint base path. For example, if the `apiResources` element is defined to be `/forecastrss` and the base path defined for the API proxy is `/weather`, then only requests to `/weather/forecastrss` are permitted by the API product. You can select a specific path, or you can select all subpaths with the following wildcard: - `/**`: Indicates that all sub-URIs are included. - `/*` : Indicates that only URIs one level down are included. By default, / supports the same resources as /** as well as the base path defined by the API proxy. For example, if the base path of the API proxy is `/v1/weatherapikey`, then the API product supports requests to `/v1/weatherapikey` and to any sub-URIs, such as `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and so on. For more information, see Managing API products.", + "description": "Description of the API product. Include key information about the API product that is not captured by other fields.", "type": "string" }, "displayName": { diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index ddb24ad5269..40bdaa6e9ce 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -1619,6 +1619,22 @@ func (s *GoogleCloudApigeeV1ApiCategoryData) MarshalJSON() ([]byte, error) { } type GoogleCloudApigeeV1ApiProduct struct { + // ApiResources: Comma-separated list of API resources to be bundled in + // the API product. By default, the resource paths are mapped from the + // `proxy.pathsuffix` variable. The proxy path suffix is defined as the + // URI fragment following the ProxyEndpoint base path. For example, if + // the `apiResources` element is defined to be `/forecastrss` and the + // base path defined for the API proxy is `/weather`, then only requests + // to `/weather/forecastrss` are permitted by the API product. You can + // select a specific path, or you can select all subpaths with the + // following wildcard: - `/**`: Indicates that all sub-URIs are + // included. - `/*` : Indicates that only URIs one level down are + // included. By default, / supports the same resources as /** as well as + // the base path defined by the API proxy. For example, if the base path + // of the API proxy is `/v1/weatherapikey`, then the API product + // supports requests to `/v1/weatherapikey` and to any sub-URIs, such as + // `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and + // so on. For more information, see Managing API products. ApiResources []string `json:"apiResources,omitempty"` // ApprovalType: Flag that specifies how API keys are approved to access @@ -1649,22 +1665,6 @@ type GoogleCloudApigeeV1ApiProduct struct { // Description: Description of the API product. Include key information // about the API product that is not captured by other fields. - // Comma-separated list of API resources to be bundled in the API - // product. By default, the resource paths are mapped from the - // `proxy.pathsuffix` variable. The proxy path suffix is defined as the - // URI fragment following the ProxyEndpoint base path. For example, if - // the `apiResources` element is defined to be `/forecastrss` and the - // base path defined for the API proxy is `/weather`, then only requests - // to `/weather/forecastrss` are permitted by the API product. You can - // select a specific path, or you can select all subpaths with the - // following wildcard: - `/**`: Indicates that all sub-URIs are - // included. - `/*` : Indicates that only URIs one level down are - // included. By default, / supports the same resources as /** as well as - // the base path defined by the API proxy. For example, if the base path - // of the API proxy is `/v1/weatherapikey`, then the API product - // supports requests to `/v1/weatherapikey` and to any sub-URIs, such as - // `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and - // so on. For more information, see Managing API products. Description string `json:"description,omitempty"` // DisplayName: Name displayed in the UI or developer portal to @@ -28687,9 +28687,11 @@ type OrganizationsEnvironmentsDeleteCall struct { header_ http.Header } -// Delete: Deletes an environment from an organization. **Note**: You -// must delete all key value maps and key value entries before you can -// delete an environment. +// Delete: Deletes an environment from an organization. **Warning: You +// must delete all key value maps and key value entries before you +// delete an environment.** Otherwise, if you re-create the environment +// the key value map entry operations will encounter +// encryption/decryption discrepancies. // // - name: Name of the environment. Use the following structure in your // request: `organizations/{org}/environments/{env}`. @@ -28785,7 +28787,7 @@ func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Deletes an environment from an organization. **Note**: You must delete all key value maps and key value entries before you can delete an environment.", + // "description": "Deletes an environment from an organization. **Warning: You must delete all key value maps and key value entries before you delete an environment.** Otherwise, if you re-create the environment the key value map entry operations will encounter encryption/decryption discrepancies.", // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}", // "httpMethod": "DELETE", // "id": "apigee.organizations.environments.delete", diff --git a/apigeeregistry/v1/apigeeregistry-api.json b/apigeeregistry/v1/apigeeregistry-api.json index 0763ea83ac1..751eca8c744 100644 --- a/apigeeregistry/v1/apigeeregistry-api.json +++ b/apigeeregistry/v1/apigeeregistry-api.json @@ -221,6 +221,11 @@ "name" ], "parameters": { + "force": { + "description": "If set to true, any child resources will also be deleted. (Otherwise, the request will only work if there are no child resources.)", + "location": "query", + "type": "boolean" + }, "name": { "description": "Required. The name of the API to delete. Format: projects/*/locations/*/apis/*", "location": "path", @@ -1302,6 +1307,11 @@ "name" ], "parameters": { + "force": { + "description": "If set to true, any child resources will also be deleted. (Otherwise, the request will only work if there are no child resources.)", + "location": "query", + "type": "boolean" + }, "name": { "description": "Required. The name of the version to delete. Format: projects/*/locations/*/apis/*/versions/*", "location": "path", @@ -3116,7 +3126,7 @@ } } }, - "revision": "20220509", + "revision": "20220706", "rootUrl": "https://apigeeregistry.googleapis.com/", "schemas": { "Api": { diff --git a/apigeeregistry/v1/apigeeregistry-gen.go b/apigeeregistry/v1/apigeeregistry-gen.go index f68ad765b78..94d4e621dbc 100644 --- a/apigeeregistry/v1/apigeeregistry-gen.go +++ b/apigeeregistry/v1/apigeeregistry-gen.go @@ -2427,6 +2427,14 @@ func (r *ProjectsLocationsApisService) Delete(name string) *ProjectsLocationsApi return c } +// Force sets the optional parameter "force": If set to true, any child +// resources will also be deleted. (Otherwise, the request will only +// work if there are no child resources.) +func (c *ProjectsLocationsApisDeleteCall) Force(force bool) *ProjectsLocationsApisDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -2521,6 +2529,11 @@ func (c *ProjectsLocationsApisDeleteCall) Do(opts ...googleapi.CallOption) (*Emp // "name" // ], // "parameters": { + // "force": { + // "description": "If set to true, any child resources will also be deleted. (Otherwise, the request will only work if there are no child resources.)", + // "location": "query", + // "type": "boolean" + // }, // "name": { // "description": "Required. The name of the API to delete. Format: projects/*/locations/*/apis/*", // "location": "path", @@ -8002,6 +8015,14 @@ func (r *ProjectsLocationsApisVersionsService) Delete(name string) *ProjectsLoca return c } +// Force sets the optional parameter "force": If set to true, any child +// resources will also be deleted. (Otherwise, the request will only +// work if there are no child resources.) +func (c *ProjectsLocationsApisVersionsDeleteCall) Force(force bool) *ProjectsLocationsApisVersionsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -8096,6 +8117,11 @@ func (c *ProjectsLocationsApisVersionsDeleteCall) Do(opts ...googleapi.CallOptio // "name" // ], // "parameters": { + // "force": { + // "description": "If set to true, any child resources will also be deleted. (Otherwise, the request will only work if there are no child resources.)", + // "location": "query", + // "type": "boolean" + // }, // "name": { // "description": "Required. The name of the version to delete. Format: projects/*/locations/*/apis/*/versions/*", // "location": "path", diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index a047962da0f..ae42be414d8 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -379,7 +379,7 @@ } } }, - "revision": "20220623", + "revision": "20220707", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata": { @@ -1271,7 +1271,7 @@ "id": "GoogleCloudAssuredworkloadsVersioningV1mainWorkloadComplianceStatus", "properties": { "activeViolationCount": { - "description": "Optional. Count of active Violations in the Workload.", + "description": "Count of active Violations in the Workload.", "format": "int32", "type": "integer" } diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 0d1c45a7495..459c343485f 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -1391,8 +1391,7 @@ func (s *GoogleCloudAssuredworkloadsVersioningV1mainWorkloadCJISSettings) Marsha // GoogleCloudAssuredworkloadsVersioningV1mainWorkloadComplianceStatus: // Represents the Compliance Status of this workload type GoogleCloudAssuredworkloadsVersioningV1mainWorkloadComplianceStatus struct { - // ActiveViolationCount: Optional. Count of active Violations in the - // Workload. + // ActiveViolationCount: Count of active Violations in the Workload. ActiveViolationCount int64 `json:"activeViolationCount,omitempty"` // ForceSendFields is a list of field names (e.g. diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 1325da03e29..dd85da76913 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -642,7 +642,7 @@ } } }, - "revision": "20220701", + "revision": "20220706", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -2518,7 +2518,7 @@ "type": "string" }, "lastUpdateTime": { - "description": "Output only. The time at which the message was last updated. If the message was never updated, this field matches `create_time`.", + "description": "Output only. The time at which the message was last edited by a user. If the message has never been edited, this field is empty.", "format": "google-datetime", "readOnly": true, "type": "string" diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 60a398d53ad..c4609ad13e9 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -3217,8 +3217,8 @@ type Message struct { FallbackText string `json:"fallbackText,omitempty"` // LastUpdateTime: Output only. The time at which the message was last - // updated. If the message was never updated, this field matches - // `create_time`. + // edited by a user. If the message has never been edited, this field is + // empty. LastUpdateTime string `json:"lastUpdateTime,omitempty"` // MatchedUrl: Output only. A URL in `spaces.messages.text` that matches diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index 4e03c664131..caf72c389c2 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -254,6 +254,82 @@ }, "reports": { "methods": { + "countChromeDevicesReachingAutoExpirationDate": { + "description": "Generate report of the number of devices expiring in each month of the selected time frame. Devices are grouped by auto update expiration date and model. Further information can be found [here](https://support.google.com/chrome/a/answer/10564947).", + "flatPath": "v1/customers/{customersId}/reports:countChromeDevicesReachingAutoExpirationDate", + "httpMethod": "GET", + "id": "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate", + "parameterOrder": [ + "customer" + ], + "parameters": { + "customer": { + "description": "Required. The customer ID or \"my_customer\" prefixed with \"customers/\".", + "location": "path", + "pattern": "^customers/[^/]+$", + "required": true, + "type": "string" + }, + "maxAueDate": { + "description": "Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or earlier than the maximum date.", + "location": "query", + "type": "string" + }, + "minAueDate": { + "description": "Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or later than the minimum date.", + "location": "query", + "type": "string" + }, + "orgUnitId": { + "description": "Optional. The organizational unit ID, if omitted, will return data for all organizational units.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+customer}/reports:countChromeDevicesReachingAutoExpirationDate", + "response": { + "$ref": "GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/chrome.management.reports.readonly" + ] + }, + "countChromeDevicesThatNeedAttention": { + "description": "Counts of ChromeOS devices that have not synced policies or have lacked user activity in the past 28 days, are out of date, or are not complaint. Further information can be found here https://support.google.com/chrome/a/answer/10564947", + "flatPath": "v1/customers/{customersId}/reports:countChromeDevicesThatNeedAttention", + "httpMethod": "GET", + "id": "chromemanagement.customers.reports.countChromeDevicesThatNeedAttention", + "parameterOrder": [ + "customer" + ], + "parameters": { + "customer": { + "description": "Required. The customer ID or \"my_customer\" prefixed with \"customers/\".", + "location": "path", + "pattern": "^customers/[^/]+$", + "required": true, + "type": "string" + }, + "orgUnitId": { + "description": "Optional. The ID of the organizational unit. If omitted, all data will be returned.", + "location": "query", + "type": "string" + }, + "readMask": { + "description": "Required. Mask of the fields that should be populated in the returned report.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+customer}/reports:countChromeDevicesThatNeedAttention", + "response": { + "$ref": "GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/chrome.management.reports.readonly" + ] + }, "countChromeVersions": { "description": "Generate report of installed Chrome versions.", "flatPath": "v1/customers/{customersId}/reports:countChromeVersions", @@ -519,7 +595,7 @@ } } }, - "revision": "20220708", + "revision": "20220711", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -1087,6 +1163,52 @@ }, "type": "object" }, + "GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse": { + "description": "Response containing a list of devices expiring in each month of a selected time frame. Counts are grouped by model and Auto Update Expiration date.", + "id": "GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse", + "properties": { + "deviceAueCountReports": { + "description": "The list of reports sorted by auto update expiration date in ascending order.", + "items": { + "$ref": "GoogleChromeManagementV1DeviceAueCountReport" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse": { + "description": "Response containing counts for devices that need attention.", + "id": "GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse", + "properties": { + "noRecentPolicySyncCount": { + "description": "Number of ChromeOS devices have not synced policies in the past 28 days.", + "format": "int64", + "type": "string" + }, + "noRecentUserActivityCount": { + "description": "Number of ChromeOS devices that have not seen any user activity in the past 28 days.", + "format": "int64", + "type": "string" + }, + "osVersionNotCompliantCount": { + "description": "Number of devices whose OS version is not compliant.", + "format": "int64", + "type": "string" + }, + "pendingUpdate": { + "description": "Number of devices that are pending an OS update.", + "format": "int64", + "type": "string" + }, + "unsupportedPolicyCount": { + "description": "Number of devices that are unable to apply a policy due to an OS version mismatch.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleChromeManagementV1CountChromeVersionsResponse": { "description": "Response containing requested browser versions details and counts.", "id": "GoogleChromeManagementV1CountChromeVersionsResponse", @@ -1242,6 +1364,65 @@ }, "type": "object" }, + "GoogleChromeManagementV1DeviceAueCountReport": { + "description": "Report for CountChromeDevicesPerAueDateResponse, contains the count of devices of a specific model and auto update expiration range.", + "id": "GoogleChromeManagementV1DeviceAueCountReport", + "properties": { + "aueMonth": { + "description": "Enum value of month corresponding to the auto update expiration date in UTC time zone. If the device is already expired, this field is empty.", + "enum": [ + "MONTH_UNSPECIFIED", + "JANUARY", + "FEBRUARY", + "MARCH", + "APRIL", + "MAY", + "JUNE", + "JULY", + "AUGUST", + "SEPTEMBER", + "OCTOBER", + "NOVEMBER", + "DECEMBER" + ], + "enumDescriptions": [ + "The unspecified month.", + "The month of January.", + "The month of February.", + "The month of March.", + "The month of April.", + "The month of May.", + "The month of June.", + "The month of July.", + "The month of August.", + "The month of September.", + "The month of October.", + "The month of November.", + "The month of December." + ], + "type": "string" + }, + "aueYear": { + "description": "Int value of year corresponding to the Auto Update Expiration date in UTC time zone. If the device is already expired, this field is empty.", + "format": "int64", + "type": "string" + }, + "count": { + "description": "Count of devices of this model.", + "format": "int64", + "type": "string" + }, + "expired": { + "description": "Boolean value for whether or not the device has already expired.", + "type": "boolean" + }, + "model": { + "description": "Public model name of the devices.", + "type": "string" + } + }, + "type": "object" + }, "GoogleChromeManagementV1DiskInfo": { "description": "Status of the single storage device.", "id": "GoogleChromeManagementV1DiskInfo", diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index c81fdff7a57..3c1ccf9966c 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -909,6 +909,95 @@ func (s *GoogleChromeManagementV1CountChromeAppRequestsResponse) MarshalJSON() ( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateRe +// sponse: Response containing a list of devices expiring in each month +// of a selected time frame. Counts are grouped by model and Auto Update +// Expiration date. +type GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse struct { + // DeviceAueCountReports: The list of reports sorted by auto update + // expiration date in ascending order. + DeviceAueCountReports []*GoogleChromeManagementV1DeviceAueCountReport `json:"deviceAueCountReports,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "DeviceAueCountReports") 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. "DeviceAueCountReports") 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 *GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse: +// Response containing counts for devices that need attention. +type GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse struct { + // NoRecentPolicySyncCount: Number of ChromeOS devices have not synced + // policies in the past 28 days. + NoRecentPolicySyncCount int64 `json:"noRecentPolicySyncCount,omitempty,string"` + + // NoRecentUserActivityCount: Number of ChromeOS devices that have not + // seen any user activity in the past 28 days. + NoRecentUserActivityCount int64 `json:"noRecentUserActivityCount,omitempty,string"` + + // OsVersionNotCompliantCount: Number of devices whose OS version is not + // compliant. + OsVersionNotCompliantCount int64 `json:"osVersionNotCompliantCount,omitempty,string"` + + // PendingUpdate: Number of devices that are pending an OS update. + PendingUpdate int64 `json:"pendingUpdate,omitempty,string"` + + // UnsupportedPolicyCount: Number of devices that are unable to apply a + // policy due to an OS version mismatch. + UnsupportedPolicyCount int64 `json:"unsupportedPolicyCount,omitempty,string"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "NoRecentPolicySyncCount") 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. "NoRecentPolicySyncCount") + // 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 *GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromeManagementV1CountChromeVersionsResponse: Response // containing requested browser versions details and counts. type GoogleChromeManagementV1CountChromeVersionsResponse struct { @@ -1144,6 +1233,68 @@ func (s *GoogleChromeManagementV1Device) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1DeviceAueCountReport: Report for +// CountChromeDevicesPerAueDateResponse, contains the count of devices +// of a specific model and auto update expiration range. +type GoogleChromeManagementV1DeviceAueCountReport struct { + // AueMonth: Enum value of month corresponding to the auto update + // expiration date in UTC time zone. If the device is already expired, + // this field is empty. + // + // Possible values: + // "MONTH_UNSPECIFIED" - The unspecified month. + // "JANUARY" - The month of January. + // "FEBRUARY" - The month of February. + // "MARCH" - The month of March. + // "APRIL" - The month of April. + // "MAY" - The month of May. + // "JUNE" - The month of June. + // "JULY" - The month of July. + // "AUGUST" - The month of August. + // "SEPTEMBER" - The month of September. + // "OCTOBER" - The month of October. + // "NOVEMBER" - The month of November. + // "DECEMBER" - The month of December. + AueMonth string `json:"aueMonth,omitempty"` + + // AueYear: Int value of year corresponding to the Auto Update + // Expiration date in UTC time zone. If the device is already expired, + // this field is empty. + AueYear int64 `json:"aueYear,omitempty,string"` + + // Count: Count of devices of this model. + Count int64 `json:"count,omitempty,string"` + + // Expired: Boolean value for whether or not the device has already + // expired. + Expired bool `json:"expired,omitempty"` + + // Model: Public model name of the devices. + Model string `json:"model,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AueMonth") 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. "AueMonth") 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 *GoogleChromeManagementV1DeviceAueCountReport) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1DeviceAueCountReport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromeManagementV1DiskInfo: Status of the single storage // device. type GoogleChromeManagementV1DiskInfo struct { @@ -3007,6 +3158,378 @@ func (c *CustomersAppsWebGetCall) Do(opts ...googleapi.CallOption) (*GoogleChrom } +// method id "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate": + +type CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall struct { + s *Service + customer string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CountChromeDevicesReachingAutoExpirationDate: Generate report of the +// number of devices expiring in each month of the selected time frame. +// Devices are grouped by auto update expiration date and model. Further +// information can be found here +// (https://support.google.com/chrome/a/answer/10564947). +// +// - customer: The customer ID or "my_customer" prefixed with +// "customers/". +func (r *CustomersReportsService) CountChromeDevicesReachingAutoExpirationDate(customer string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { + c := &CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.customer = customer + return c +} + +// MaxAueDate sets the optional parameter "maxAueDate": Maximum +// expiration date in format yyyy-mm-dd in UTC timezone. If included +// returns all devices that have already expired and devices with auto +// expiration date equal to or earlier than the maximum date. +func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) MaxAueDate(maxAueDate string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { + c.urlParams_.Set("maxAueDate", maxAueDate) + return c +} + +// MinAueDate sets the optional parameter "minAueDate": Maximum +// expiration date in format yyyy-mm-dd in UTC timezone. If included +// returns all devices that have already expired and devices with auto +// expiration date equal to or later than the minimum date. +func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) MinAueDate(minAueDate string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { + c.urlParams_.Set("minAueDate", minAueDate) + return c +} + +// OrgUnitId sets the optional parameter "orgUnitId": The organizational +// unit ID, if omitted, will return data for all organizational units. +func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { + c.urlParams_.Set("orgUnitId", orgUnitId) + 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 *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { + 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 *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { + 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 *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) Context(ctx context.Context) *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall { + 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 *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) 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, "v1/{+customer}/reports:countChromeDevicesReachingAutoExpirationDate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "customer": c.customer, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate" call. +// Exactly one of +// *GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateR +// esponse or error will be non-nil. Any non-2xx status code is an +// error. Response headers are in either +// *GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateR +// esponse.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 *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse{ + 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": "Generate report of the number of devices expiring in each month of the selected time frame. Devices are grouped by auto update expiration date and model. Further information can be found [here](https://support.google.com/chrome/a/answer/10564947).", + // "flatPath": "v1/customers/{customersId}/reports:countChromeDevicesReachingAutoExpirationDate", + // "httpMethod": "GET", + // "id": "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate", + // "parameterOrder": [ + // "customer" + // ], + // "parameters": { + // "customer": { + // "description": "Required. The customer ID or \"my_customer\" prefixed with \"customers/\".", + // "location": "path", + // "pattern": "^customers/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "maxAueDate": { + // "description": "Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or earlier than the maximum date.", + // "location": "query", + // "type": "string" + // }, + // "minAueDate": { + // "description": "Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or later than the minimum date.", + // "location": "query", + // "type": "string" + // }, + // "orgUnitId": { + // "description": "Optional. The organizational unit ID, if omitted, will return data for all organizational units.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+customer}/reports:countChromeDevicesReachingAutoExpirationDate", + // "response": { + // "$ref": "GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chrome.management.reports.readonly" + // ] + // } + +} + +// method id "chromemanagement.customers.reports.countChromeDevicesThatNeedAttention": + +type CustomersReportsCountChromeDevicesThatNeedAttentionCall struct { + s *Service + customer string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CountChromeDevicesThatNeedAttention: Counts of ChromeOS devices that +// have not synced policies or have lacked user activity in the past 28 +// days, are out of date, or are not complaint. Further information can +// be found here https://support.google.com/chrome/a/answer/10564947 +// +// - customer: The customer ID or "my_customer" prefixed with +// "customers/". +func (r *CustomersReportsService) CountChromeDevicesThatNeedAttention(customer string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { + c := &CustomersReportsCountChromeDevicesThatNeedAttentionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.customer = customer + return c +} + +// OrgUnitId sets the optional parameter "orgUnitId": The ID of the +// organizational unit. If omitted, all data will be returned. +func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) OrgUnitId(orgUnitId string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { + c.urlParams_.Set("orgUnitId", orgUnitId) + return c +} + +// ReadMask sets the optional parameter "readMask": Required. Mask of +// the fields that should be populated in the returned report. +func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) ReadMask(readMask string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { + c.urlParams_.Set("readMask", readMask) + 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 *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Fields(s ...googleapi.Field) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { + 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 *CustomersReportsCountChromeDevicesThatNeedAttentionCall) IfNoneMatch(entityTag string) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { + 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 *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Context(ctx context.Context) *CustomersReportsCountChromeDevicesThatNeedAttentionCall { + 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 *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) 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, "v1/{+customer}/reports:countChromeDevicesThatNeedAttention") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "customer": c.customer, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "chromemanagement.customers.reports.countChromeDevicesThatNeedAttention" call. +// Exactly one of +// *GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse.S +// erverResponse.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 *CustomersReportsCountChromeDevicesThatNeedAttentionCall) Do(opts ...googleapi.CallOption) (*GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse{ + 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": "Counts of ChromeOS devices that have not synced policies or have lacked user activity in the past 28 days, are out of date, or are not complaint. Further information can be found here https://support.google.com/chrome/a/answer/10564947", + // "flatPath": "v1/customers/{customersId}/reports:countChromeDevicesThatNeedAttention", + // "httpMethod": "GET", + // "id": "chromemanagement.customers.reports.countChromeDevicesThatNeedAttention", + // "parameterOrder": [ + // "customer" + // ], + // "parameters": { + // "customer": { + // "description": "Required. The customer ID or \"my_customer\" prefixed with \"customers/\".", + // "location": "path", + // "pattern": "^customers/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "orgUnitId": { + // "description": "Optional. The ID of the organizational unit. If omitted, all data will be returned.", + // "location": "query", + // "type": "string" + // }, + // "readMask": { + // "description": "Required. Mask of the fields that should be populated in the returned report.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+customer}/reports:countChromeDevicesThatNeedAttention", + // "response": { + // "$ref": "GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chrome.management.reports.readonly" + // ] + // } + +} + // method id "chromemanagement.customers.reports.countChromeVersions": type CustomersReportsCountChromeVersionsCall struct { diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index 50e341e13a0..e6222dcba80 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -1994,7 +1994,7 @@ } } }, - "revision": "20220613", + "revision": "20220703", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "AclInfo": { @@ -4149,6 +4149,13 @@ "freshnessOptions": { "$ref": "FreshnessOptions", "description": "The freshness options for an object." + }, + "suggestionFilteringOperators": { + "description": "Operators that can be used to filter suggestions. For Suggest API, only operators mentioned here will be honored in the FilterOptions. Only TEXT and ENUM operators are supported. NOTE: \"objecttype\", \"type\" and \"mimetype\" are already supported. This property is to configure schema specific operators. Even though this is an array, only one operator can be specified. This is an array for future extensibility. Operators mapping to multiple properties within the same object are not supported. If the operator spans across different object types, this option has to be set once for each object definition.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index a94be26fd1b..6a9fefcd46a 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -4439,6 +4439,18 @@ type ObjectOptions struct { // FreshnessOptions: The freshness options for an object. FreshnessOptions *FreshnessOptions `json:"freshnessOptions,omitempty"` + // SuggestionFilteringOperators: Operators that can be used to filter + // suggestions. For Suggest API, only operators mentioned here will be + // honored in the FilterOptions. Only TEXT and ENUM operators are + // supported. NOTE: "objecttype", "type" and "mimetype" are already + // supported. This property is to configure schema specific operators. + // Even though this is an array, only one operator can be specified. + // This is an array for future extensibility. Operators mapping to + // multiple properties within the same object are not supported. If the + // operator spans across different object types, this option has to be + // set once for each object definition. + SuggestionFilteringOperators []string `json:"suggestionFilteringOperators,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayOptions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index 11f12610392..3e55121240b 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -436,7 +436,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "description": "Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1055,7 +1055,7 @@ } } }, - "revision": "20220616", + "revision": "20220707", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -1186,6 +1186,24 @@ }, "type": "object" }, + "AuthorizationCodeLink": { + "description": "This configuration captures the details required to render an authorization link for the OAuth Authorization Code Flow.", + "id": "AuthorizationCodeLink", + "properties": { + "scopes": { + "description": "The scopes for which the user will authorize GCP Connectors on the connector data source.", + "items": { + "type": "string" + }, + "type": "array" + }, + "uri": { + "description": "The base URI the user must click to trigger the authorization code login flow.", + "type": "string" + } + }, + "type": "object" + }, "Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "Binding", @@ -1246,6 +1264,10 @@ "description": "ConfigVariableTemplate provides metadata about a `ConfigVariable` that is used in a Connection.", "id": "ConfigVariableTemplate", "properties": { + "authorizationCodeLink": { + "$ref": "AuthorizationCodeLink", + "description": "Authorization code link options. To be populated if `ValueType` is `AUTHORIZATION_CODE`" + }, "description": { "description": "Description.", "type": "string" @@ -1285,7 +1307,8 @@ "INT", "BOOL", "SECRET", - "ENUM" + "ENUM", + "AUTHORIZATION_CODE" ], "enumDescriptions": [ "Value type is not specified.", @@ -1293,7 +1316,8 @@ "Value type is integer.", "Value type is boolean.", "Value type is secret.", - "Value type is enum." + "Value type is enum.", + "Value type is authorization code." ], "type": "string" } @@ -1329,14 +1353,6 @@ "description": "Optional. Description of the resource.", "type": "string" }, - "egressBackends": { - "description": "Output only. Outbound domains/hosts needs to be allowlisted.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, "envoyImageLocation": { "description": "Output only. GCR location where the envoy image is stored. formatted like: gcr.io/{bucketName}/{imageName}", "readOnly": true, @@ -2782,6 +2798,10 @@ "$ref": "Secret", "description": "SSH Client Cert. It should contain both public and private key." }, + "sshClientCertPass": { + "$ref": "Secret", + "description": "Password (passphrase) for ssh client certificate if it has one." + }, "username": { "description": "The user account used to authenticate.", "type": "string" diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 6029fa5c72e..1869a97b316 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -458,6 +458,41 @@ func (s *AuthConfigTemplate) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AuthorizationCodeLink: This configuration captures the details +// required to render an authorization link for the OAuth Authorization +// Code Flow. +type AuthorizationCodeLink struct { + // Scopes: The scopes for which the user will authorize GCP Connectors + // on the connector data source. + Scopes []string `json:"scopes,omitempty"` + + // Uri: The base URI the user must click to trigger the authorization + // code login flow. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Scopes") 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. "Scopes") 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 *AuthorizationCodeLink) MarshalJSON() ([]byte, error) { + type NoMethod AuthorizationCodeLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the @@ -580,6 +615,10 @@ func (s *ConfigVariable) MarshalJSON() ([]byte, error) { // ConfigVariableTemplate: ConfigVariableTemplate provides metadata // about a `ConfigVariable` that is used in a Connection. type ConfigVariableTemplate struct { + // AuthorizationCodeLink: Authorization code link options. To be + // populated if `ValueType` is `AUTHORIZATION_CODE` + AuthorizationCodeLink *AuthorizationCodeLink `json:"authorizationCodeLink,omitempty"` + // Description: Description. Description string `json:"description,omitempty"` @@ -613,22 +652,25 @@ type ConfigVariableTemplate struct { // "BOOL" - Value type is boolean. // "SECRET" - Value type is secret. // "ENUM" - Value type is enum. + // "AUTHORIZATION_CODE" - Value type is authorization code. ValueType string `json:"valueType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") 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. + // "AuthorizationCodeLink") 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. "Description") 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. "AuthorizationCodeLink") 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:"-"` } @@ -659,10 +701,6 @@ type Connection struct { // Description: Optional. Description of the resource. Description string `json:"description,omitempty"` - // EgressBackends: Output only. Outbound domains/hosts needs to be - // allowlisted. - EgressBackends []string `json:"egressBackends,omitempty"` - // EnvoyImageLocation: Output only. GCR location where the envoy image // is stored. formatted like: gcr.io/{bucketName}/{imageName} EnvoyImageLocation string `json:"envoyImageLocation,omitempty"` @@ -2590,6 +2628,10 @@ type SshPublicKey struct { // private key. SshClientCert *Secret `json:"sshClientCert,omitempty"` + // SshClientCertPass: Password (passphrase) for ssh client certificate + // if it has one. + SshClientCertPass *Secret `json:"sshClientCertPass,omitempty"` + // Username: The user account used to authenticate. Username string `json:"username,omitempty"` @@ -4353,12 +4395,12 @@ func (r *ProjectsLocationsConnectionsService) Patch(name string, connection *Con return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the Connection -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. If the user does not provide a mask -// then all fields will be overwritten. +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask is used to specify the fields to be overwritten in the +// Connection resource by the update. The fields specified in the +// update_mask are relative to the resource, not the full request. A +// field will be overwritten if it is in the mask. If the user does not +// provide a mask then all fields will be overwritten. func (c *ProjectsLocationsConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -4471,7 +4513,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + // "description": "Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/containeranalysis/v1/containeranalysis-api.json b/containeranalysis/v1/containeranalysis-api.json index 503e17cda74..bd1b806425e 100644 --- a/containeranalysis/v1/containeranalysis-api.json +++ b/containeranalysis/v1/containeranalysis-api.json @@ -755,7 +755,7 @@ } } }, - "revision": "20220602", + "revision": "20220707", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -785,6 +785,19 @@ }, "type": "object" }, + "AnalysisCompleted": { + "description": "Indicates which analysis completed successfully. Multiple types of analysis can be performed on a single resource.", + "id": "AnalysisCompleted", + "properties": { + "analysisType": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Artifact": { "description": "Artifact describes a build product.", "id": "Artifact", @@ -2710,6 +2723,16 @@ "description": "Provides information about the analysis status of a discovered resource.", "id": "DiscoveryOccurrence", "properties": { + "analysisCompleted": { + "$ref": "AnalysisCompleted" + }, + "analysisError": { + "description": "Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.", + "items": { + "$ref": "Status" + }, + "type": "array" + }, "analysisStatus": { "description": "The status of discovery for the resource.", "enum": [ @@ -2717,6 +2740,7 @@ "PENDING", "SCANNING", "FINISHED_SUCCESS", + "COMPLETE", "FINISHED_FAILED", "FINISHED_UNSUPPORTED" ], @@ -2725,8 +2749,9 @@ "Resource is known but no action has been taken yet.", "Resource is being analyzed.", "Analysis has finished successfully.", + "Analysis has completed", "Analysis has finished unsuccessfully, the analysis itself is in a bad state.", - "The resource is known not to be supported" + "The resource is known not to be supported." ], "type": "string" }, diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index d2131d449fe..a17f02d24f0 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -220,6 +220,34 @@ func (s *AliasContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AnalysisCompleted: Indicates which analysis completed successfully. +// Multiple types of analysis can be performed on a single resource. +type AnalysisCompleted struct { + AnalysisType []string `json:"analysisType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnalysisType") 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. "AnalysisType") 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 *AnalysisCompleted) MarshalJSON() ([]byte, error) { + type NoMethod AnalysisCompleted + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Artifact: Artifact describes a build product. type Artifact struct { // Checksum: Hash or checksum value of a binary, or Docker Registry 2.0 @@ -2998,6 +3026,12 @@ func (s *DiscoveryNote) MarshalJSON() ([]byte, error) { // DiscoveryOccurrence: Provides information about the analysis status // of a discovered resource. type DiscoveryOccurrence struct { + AnalysisCompleted *AnalysisCompleted `json:"analysisCompleted,omitempty"` + + // AnalysisError: Indicates any errors encountered during analysis of a + // resource. There could be 0 or more of these errors. + AnalysisError []*Status `json:"analysisError,omitempty"` + // AnalysisStatus: The status of discovery for the resource. // // Possible values: @@ -3005,9 +3039,10 @@ type DiscoveryOccurrence struct { // "PENDING" - Resource is known but no action has been taken yet. // "SCANNING" - Resource is being analyzed. // "FINISHED_SUCCESS" - Analysis has finished successfully. + // "COMPLETE" - Analysis has completed // "FINISHED_FAILED" - Analysis has finished unsuccessfully, the // analysis itself is in a bad state. - // "FINISHED_UNSUPPORTED" - The resource is known not to be supported + // "FINISHED_UNSUPPORTED" - The resource is known not to be supported. AnalysisStatus string `json:"analysisStatus,omitempty"` // AnalysisStatusError: When an error is encountered this will contain a @@ -3033,15 +3068,15 @@ type DiscoveryOccurrence struct { // LastScanTime: The last time this resource was scanned. LastScanTime string `json:"lastScanTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisStatus") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AnalysisCompleted") + // 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. "AnalysisStatus") to + // NullFields is a list of field names (e.g. "AnalysisCompleted") 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 diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index 9c1fc545c1e..055c16efaee 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1229,7 +1229,7 @@ } } }, - "revision": "20220602", + "revision": "20220707", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "Artifact": { @@ -1803,6 +1803,10 @@ "description": "Describes the CIS benchmark version that is applicable to a given OS and os version.", "id": "ComplianceVersion", "properties": { + "benchmarkDocument": { + "description": "The name of the document that defines this benchmark, e.g. \"CIS Container-Optimized OS\".", + "type": "string" + }, "cpeUri": { "description": "The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.", "type": "string" diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 96a3716d670..be4ebba4914 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -1109,6 +1109,10 @@ func (s *ComplianceOccurrence) MarshalJSON() ([]byte, error) { // ComplianceVersion: Describes the CIS benchmark version that is // applicable to a given OS and os version. type ComplianceVersion struct { + // BenchmarkDocument: The name of the document that defines this + // benchmark, e.g. "CIS Container-Optimized OS". + BenchmarkDocument string `json:"benchmarkDocument,omitempty"` + // CpeUri: The CPE URI (https://cpe.mitre.org/specification/) this // benchmark is applicable to. CpeUri string `json:"cpeUri,omitempty"` @@ -1117,20 +1121,21 @@ type ComplianceVersion struct { // the OS-specific CIS document the benchmark is defined in. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "CpeUri") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "BenchmarkDocument") + // 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. "CpeUri") 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. "BenchmarkDocument") 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:"-"` } diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index 58c8b488c95..28a541d8c8f 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -853,7 +853,7 @@ } } }, - "revision": "20220602", + "revision": "20220707", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -883,6 +883,19 @@ }, "type": "object" }, + "AnalysisCompleted": { + "description": "Indicates which analysis completed successfully. Multiple types of analysis can be performed on a single resource.", + "id": "AnalysisCompleted", + "properties": { + "analysisType": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Artifact": { "description": "Artifact describes a build product.", "id": "Artifact", @@ -2697,6 +2710,16 @@ "description": "Provides information about the analysis status of a discovered resource.", "id": "Discovered", "properties": { + "analysisCompleted": { + "$ref": "AnalysisCompleted" + }, + "analysisError": { + "description": "Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.", + "items": { + "$ref": "Status" + }, + "type": "array" + }, "analysisStatus": { "description": "The status of discovery for the resource.", "enum": [ @@ -2704,6 +2727,7 @@ "PENDING", "SCANNING", "FINISHED_SUCCESS", + "COMPLETE", "FINISHED_FAILED", "FINISHED_UNSUPPORTED" ], @@ -2712,6 +2736,7 @@ "Resource is known but no action has been taken yet.", "Resource is being analyzed.", "Analysis has finished successfully.", + "Analysis has completed.", "Analysis has finished unsuccessfully, the analysis itself is in a bad state.", "The resource is known not to be supported" ], diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index 25ae9107938..b58dea898b5 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -232,6 +232,34 @@ func (s *AliasContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AnalysisCompleted: Indicates which analysis completed successfully. +// Multiple types of analysis can be performed on a single resource. +type AnalysisCompleted struct { + AnalysisType []string `json:"analysisType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnalysisType") 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. "AnalysisType") 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 *AnalysisCompleted) MarshalJSON() ([]byte, error) { + type NoMethod AnalysisCompleted + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Artifact: Artifact describes a build product. type Artifact struct { // Checksum: Hash or checksum value of a binary, or Docker Registry 2.0 @@ -2808,6 +2836,12 @@ func (s *Digest) MarshalJSON() ([]byte, error) { // Discovered: Provides information about the analysis status of a // discovered resource. type Discovered struct { + AnalysisCompleted *AnalysisCompleted `json:"analysisCompleted,omitempty"` + + // AnalysisError: Indicates any errors encountered during analysis of a + // resource. There could be 0 or more of these errors. + AnalysisError []*Status `json:"analysisError,omitempty"` + // AnalysisStatus: The status of discovery for the resource. // // Possible values: @@ -2815,6 +2849,7 @@ type Discovered struct { // "PENDING" - Resource is known but no action has been taken yet. // "SCANNING" - Resource is being analyzed. // "FINISHED_SUCCESS" - Analysis has finished successfully. + // "COMPLETE" - Analysis has completed. // "FINISHED_FAILED" - Analysis has finished unsuccessfully, the // analysis itself is in a bad state. // "FINISHED_UNSUPPORTED" - The resource is known not to be supported @@ -2837,15 +2872,15 @@ type Discovered struct { // resource. Deprecated, do not use. LastAnalysisTime string `json:"lastAnalysisTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisStatus") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AnalysisCompleted") + // 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. "AnalysisStatus") to + // NullFields is a list of field names (e.g. "AnalysisCompleted") 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 diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index ef6d1b0bf93..fb4d7d234ad 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -326,6 +326,46 @@ } } }, + "processorTypes": { + "methods": { + "list": { + "description": "Lists the processor types that exist.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processorTypes", + "httpMethod": "GET", + "id": "documentai.projects.locations.processorTypes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of processor types to return. If unspecified, at most 100 processor types will be returned. The maximum value is 500; values above 500 will be coerced to 500.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Used to retrieve the next page of results, empty if at the end of the list.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The location of processor type to list. The available processor types may depend on the allow-listing on projects. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/processorTypes", + "response": { + "$ref": "GoogleCloudDocumentaiV1ListProcessorTypesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "processors": { "methods": { "batchProcess": { @@ -1029,7 +1069,7 @@ } } }, - "revision": "20220610", + "revision": "20220711", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1606,6 +1646,25 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1Barcode": { + "description": "Encodes the detailed information of a barcode.", + "id": "GoogleCloudDocumentaiV1Barcode", + "properties": { + "format": { + "description": "Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.", + "type": "string" + }, + "rawValue": { + "description": "Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.", + "type": "string" + }, + "valueFormat": { + "description": "Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1BatchDocumentsInputConfig": { "description": "The common config to specify a set of documents used as input.", "id": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", @@ -2079,6 +2138,13 @@ }, "type": "array" }, + "detectedBarcodes": { + "description": "A list of detected barcodes.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedBarcode" + }, + "type": "array" + }, "detectedLanguages": { "description": "A list of detected languages together with confidence.", "items": { @@ -2251,6 +2317,21 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1DocumentPageDetectedBarcode": { + "description": "A detected barcode.", + "id": "GoogleCloudDocumentaiV1DocumentPageDetectedBarcode", + "properties": { + "barcode": { + "$ref": "GoogleCloudDocumentaiV1Barcode", + "description": "Detailed barcode information of the DetectedBarcode." + }, + "layout": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for DetectedBarcode." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage": { "description": "Detected language for a structural component.", "id": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage", @@ -2874,6 +2955,10 @@ "documentSplitter": { "description": "If true, a `document` entity type can be applied to subdocument ( splitting). Otherwise, it can only be applied to the entire document (classification).", "type": "boolean" + }, + "prefixedNamingOnProperties": { + "description": "If set, all the nested entities must be prefixed with the parents.", + "type": "boolean" } }, "type": "object" @@ -3118,6 +3203,24 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1ListProcessorTypesResponse": { + "description": "Response message for list processor types.", + "id": "GoogleCloudDocumentaiV1ListProcessorTypesResponse", + "properties": { + "nextPageToken": { + "description": "Points to the next page, otherwise empty.", + "type": "string" + }, + "processorTypes": { + "description": "The processor types.", + "items": { + "$ref": "GoogleCloudDocumentaiV1ProcessorType" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1ListProcessorVersionsResponse": { "description": "Response message for list processors.", "id": "GoogleCloudDocumentaiV1ListProcessorVersionsResponse", @@ -3629,6 +3732,25 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta1Barcode": { + "description": "Encodes the detailed information of a barcode.", + "id": "GoogleCloudDocumentaiV1beta1Barcode", + "properties": { + "format": { + "description": "Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.", + "type": "string" + }, + "rawValue": { + "description": "Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.", + "type": "string" + }, + "valueFormat": { + "description": "Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse": { "description": "Response to an batch document processing request. This is returned in the LRO Operation after the operation is complete.", "id": "GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse", @@ -3868,6 +3990,13 @@ }, "type": "array" }, + "detectedBarcodes": { + "description": "A list of detected barcodes.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode" + }, + "type": "array" + }, "detectedLanguages": { "description": "A list of detected languages together with confidence.", "items": { @@ -4040,6 +4169,21 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode": { + "description": "A detected barcode.", + "id": "GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode", + "properties": { + "barcode": { + "$ref": "GoogleCloudDocumentaiV1beta1Barcode", + "description": "Detailed barcode information of the DetectedBarcode." + }, + "layout": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageLayout", + "description": "Layout for DetectedBarcode." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage": { "description": "Detected language for a structural component.", "id": "GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage", @@ -4819,6 +4963,25 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta2Barcode": { + "description": "Encodes the detailed information of a barcode.", + "id": "GoogleCloudDocumentaiV1beta2Barcode", + "properties": { + "format": { + "description": "Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.", + "type": "string" + }, + "rawValue": { + "description": "Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.", + "type": "string" + }, + "valueFormat": { + "description": "Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse": { "description": "Response to an batch document processing request. This is returned in the LRO Operation after the operation is complete.", "id": "GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse", @@ -5085,6 +5248,13 @@ }, "type": "array" }, + "detectedBarcodes": { + "description": "A list of detected barcodes.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode" + }, + "type": "array" + }, "detectedLanguages": { "description": "A list of detected languages together with confidence.", "items": { @@ -5257,6 +5427,21 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode": { + "description": "A detected barcode.", + "id": "GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode", + "properties": { + "barcode": { + "$ref": "GoogleCloudDocumentaiV1beta2Barcode", + "description": "Detailed barcode information of the DetectedBarcode." + }, + "layout": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageLayout", + "description": "Layout for DetectedBarcode." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage": { "description": "Detected language for a structural component.", "id": "GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage", @@ -6647,7 +6832,7 @@ "type": "object" }, "GoogleTypePostalAddress": { - "description": "Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an i18n-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478", + "description": "Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478", "id": "GoogleTypePostalAddress", "properties": { "addressLines": { diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 5083c7599b4..a1d29f00d4a 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -170,6 +170,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Operations = NewProjectsLocationsOperationsService(s) + rs.ProcessorTypes = NewProjectsLocationsProcessorTypesService(s) rs.Processors = NewProjectsLocationsProcessorsService(s) return rs } @@ -179,6 +180,8 @@ type ProjectsLocationsService struct { Operations *ProjectsLocationsOperationsService + ProcessorTypes *ProjectsLocationsProcessorTypesService + Processors *ProjectsLocationsProcessorsService } @@ -191,6 +194,15 @@ type ProjectsLocationsOperationsService struct { s *Service } +func NewProjectsLocationsProcessorTypesService(s *Service) *ProjectsLocationsProcessorTypesService { + rs := &ProjectsLocationsProcessorTypesService{s: s} + return rs +} + +type ProjectsLocationsProcessorTypesService struct { + s *Service +} + func NewProjectsLocationsProcessorsService(s *Service) *ProjectsLocationsProcessorsService { rs := &ProjectsLocationsProcessorsService{s: s} rs.HumanReviewConfig = NewProjectsLocationsProcessorsHumanReviewConfigService(s) @@ -1405,6 +1417,52 @@ func (s *GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata) Marsh return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1Barcode: Encodes the detailed information of a +// barcode. +type GoogleCloudDocumentaiV1Barcode struct { + // Format: Format of a barcode. The supported formats are: CODE_128: + // Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: + // Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. + // EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. + // UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D + // Aztec code type. DATABAR: GS1 DataBar code type. + Format string `json:"format,omitempty"` + + // RawValue: Raw value encoded in the barcode. For example, + // 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. + RawValue string `json:"rawValue,omitempty"` + + // ValueFormat: Value format describes the format of the value that a + // barcode encodes. The supported formats are: CONTACT_INFO: Contact + // information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: + // Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. + // URL: URL address. WIFI: Wifi information. GEO: Geo-localization. + // CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license. + ValueFormat string `json:"valueFormat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") 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. "Format") 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 *GoogleCloudDocumentaiV1Barcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1Barcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1BatchDocumentsInputConfig: The common config // to specify a set of documents used as input. type GoogleCloudDocumentaiV1BatchDocumentsInputConfig struct { @@ -2155,6 +2213,9 @@ type GoogleCloudDocumentaiV1DocumentPage struct { // line-spacing and orientation. Blocks []*GoogleCloudDocumentaiV1DocumentPageBlock `json:"blocks,omitempty"` + // DetectedBarcodes: A list of detected barcodes. + DetectedBarcodes []*GoogleCloudDocumentaiV1DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"` + // DetectedLanguages: A list of detected languages together with // confidence. DetectedLanguages []*GoogleCloudDocumentaiV1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` @@ -2369,6 +2430,38 @@ func (s *GoogleCloudDocumentaiV1DocumentPageBlock) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1DocumentPageDetectedBarcode: A detected +// barcode. +type GoogleCloudDocumentaiV1DocumentPageDetectedBarcode struct { + // Barcode: Detailed barcode information of the DetectedBarcode. + Barcode *GoogleCloudDocumentaiV1Barcode `json:"barcode,omitempty"` + + // Layout: Layout for DetectedBarcode. + Layout *GoogleCloudDocumentaiV1DocumentPageLayout `json:"layout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Barcode") 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. "Barcode") 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 *GoogleCloudDocumentaiV1DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1DocumentPageDetectedBarcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1DocumentPageDetectedLanguage: Detected // language for a structural component. type GoogleCloudDocumentaiV1DocumentPageDetectedLanguage struct { @@ -3359,6 +3452,10 @@ type GoogleCloudDocumentaiV1DocumentSchemaMetadata struct { // entire document (classification). DocumentSplitter bool `json:"documentSplitter,omitempty"` + // PrefixedNamingOnProperties: If set, all the nested entities must be + // prefixed with the parents. + PrefixedNamingOnProperties bool `json:"prefixedNamingOnProperties,omitempty"` + // ForceSendFields is a list of field names (e.g. // "DocumentAllowMultipleLabels") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -3847,6 +3944,42 @@ func (s *GoogleCloudDocumentaiV1HumanReviewStatus) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1ListProcessorTypesResponse: Response message +// for list processor types. +type GoogleCloudDocumentaiV1ListProcessorTypesResponse struct { + // NextPageToken: Points to the next page, otherwise empty. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ProcessorTypes: The processor types. + ProcessorTypes []*GoogleCloudDocumentaiV1ProcessorType `json:"processorTypes,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *GoogleCloudDocumentaiV1ListProcessorTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1ListProcessorTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1ListProcessorVersionsResponse: Response // message for list processors. type GoogleCloudDocumentaiV1ListProcessorVersionsResponse struct { @@ -4729,6 +4862,52 @@ func (s *GoogleCloudDocumentaiV1alpha1CommonOperationMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta1Barcode: Encodes the detailed information +// of a barcode. +type GoogleCloudDocumentaiV1beta1Barcode struct { + // Format: Format of a barcode. The supported formats are: CODE_128: + // Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: + // Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. + // EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. + // UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D + // Aztec code type. DATABAR: GS1 DataBar code type. + Format string `json:"format,omitempty"` + + // RawValue: Raw value encoded in the barcode. For example, + // 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. + RawValue string `json:"rawValue,omitempty"` + + // ValueFormat: Value format describes the format of the value that a + // barcode encodes. The supported formats are: CONTACT_INFO: Contact + // information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: + // Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. + // URL: URL address. WIFI: Wifi information. GEO: Geo-localization. + // CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license. + ValueFormat string `json:"valueFormat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") 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. "Format") 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 *GoogleCloudDocumentaiV1beta1Barcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta1Barcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse: Response // to an batch document processing request. This is returned in the LRO // Operation after the operation is complete. @@ -5083,6 +5262,9 @@ type GoogleCloudDocumentaiV1beta1DocumentPage struct { // line-spacing and orientation. Blocks []*GoogleCloudDocumentaiV1beta1DocumentPageBlock `json:"blocks,omitempty"` + // DetectedBarcodes: A list of detected barcodes. + DetectedBarcodes []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"` + // DetectedLanguages: A list of detected languages together with // confidence. DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` @@ -5297,6 +5479,38 @@ func (s *GoogleCloudDocumentaiV1beta1DocumentPageBlock) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode: A detected +// barcode. +type GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode struct { + // Barcode: Detailed barcode information of the DetectedBarcode. + Barcode *GoogleCloudDocumentaiV1beta1Barcode `json:"barcode,omitempty"` + + // Layout: Layout for DetectedBarcode. + Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Barcode") 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. "Barcode") 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 *GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage: Detected // language for a structural component. type GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage struct { @@ -6650,6 +6864,52 @@ func (s *GoogleCloudDocumentaiV1beta1Vertex) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta2Barcode: Encodes the detailed information +// of a barcode. +type GoogleCloudDocumentaiV1beta2Barcode struct { + // Format: Format of a barcode. The supported formats are: CODE_128: + // Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: + // Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. + // EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. + // UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D + // Aztec code type. DATABAR: GS1 DataBar code type. + Format string `json:"format,omitempty"` + + // RawValue: Raw value encoded in the barcode. For example, + // 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. + RawValue string `json:"rawValue,omitempty"` + + // ValueFormat: Value format describes the format of the value that a + // barcode encodes. The supported formats are: CONTACT_INFO: Contact + // information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: + // Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. + // URL: URL address. WIFI: Wifi information. GEO: Geo-localization. + // CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license. + ValueFormat string `json:"valueFormat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") 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. "Format") 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 *GoogleCloudDocumentaiV1beta2Barcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta2Barcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse: Response // to an batch document processing request. This is returned in the LRO // Operation after the operation is complete. @@ -7062,6 +7322,9 @@ type GoogleCloudDocumentaiV1beta2DocumentPage struct { // line-spacing and orientation. Blocks []*GoogleCloudDocumentaiV1beta2DocumentPageBlock `json:"blocks,omitempty"` + // DetectedBarcodes: A list of detected barcodes. + DetectedBarcodes []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"` + // DetectedLanguages: A list of detected languages together with // confidence. DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` @@ -7276,6 +7539,38 @@ func (s *GoogleCloudDocumentaiV1beta2DocumentPageBlock) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode: A detected +// barcode. +type GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode struct { + // Barcode: Detailed barcode information of the DetectedBarcode. + Barcode *GoogleCloudDocumentaiV1beta2Barcode `json:"barcode,omitempty"` + + // Layout: Layout for DetectedBarcode. + Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Barcode") 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. "Barcode") 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 *GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage: Detected // language for a structural component. type GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage struct { @@ -9722,11 +10017,12 @@ func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) { // not intended to model geographical locations (roads, towns, // mountains). In typical usage an address would be created via user // input or from importing existing data, depending on the type of -// process. Advice on address input / editing: - Use an i18n-ready -// address widget such as https://github.com/google/libaddressinput) - -// Users should not be presented with UI elements for input or editing -// of fields outside countries where that field is used. For more -// guidance on how to use this schema, please see: +// process. Advice on address input / editing: - Use an +// internationalization-ready address widget such as +// https://github.com/google/libaddressinput) - Users should not be +// presented with UI elements for input or editing of fields outside +// countries where that field is used. For more guidance on how to use +// this schema, please see: // https://support.google.com/business/answer/6397478 type GoogleTypePostalAddress struct { // AddressLines: Unstructured address lines describing the lower levels @@ -11016,6 +11312,204 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( } } +// method id "documentai.projects.locations.processorTypes.list": + +type ProjectsLocationsProcessorTypesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the processor types that exist. +// +// - parent: The location of processor type to list. The available +// processor types may depend on the allow-listing on projects. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsProcessorTypesService) List(parent string) *ProjectsLocationsProcessorTypesListCall { + c := &ProjectsLocationsProcessorTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of processor types to return. If unspecified, at most 100 processor +// types will be returned. The maximum value is 500; values above 500 +// will be coerced to 500. +func (c *ProjectsLocationsProcessorTypesListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorTypesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Used to retrieve +// the next page of results, empty if at the end of the list. +func (c *ProjectsLocationsProcessorTypesListCall) PageToken(pageToken string) *ProjectsLocationsProcessorTypesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessorTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorTypesListCall { + 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 *ProjectsLocationsProcessorTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorTypesListCall { + 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 *ProjectsLocationsProcessorTypesListCall) Context(ctx context.Context) *ProjectsLocationsProcessorTypesListCall { + 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 *ProjectsLocationsProcessorTypesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessorTypesListCall) 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, "v1/{+parent}/processorTypes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "documentai.projects.locations.processorTypes.list" call. +// Exactly one of *GoogleCloudDocumentaiV1ListProcessorTypesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDocumentaiV1ListProcessorTypesResponse.ServerResponse.Head +// er 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 *ProjectsLocationsProcessorTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1ListProcessorTypesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDocumentaiV1ListProcessorTypesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the processor types that exist.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processorTypes", + // "httpMethod": "GET", + // "id": "documentai.projects.locations.processorTypes.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of processor types to return. If unspecified, at most 100 processor types will be returned. The maximum value is 500; values above 500 will be coerced to 500.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Used to retrieve the next page of results, empty if at the end of the list.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The location of processor type to list. The available processor types may depend on the allow-listing on projects. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/processorTypes", + // "response": { + // "$ref": "GoogleCloudDocumentaiV1ListProcessorTypesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProcessorTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1ListProcessorTypesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "documentai.projects.locations.processors.batchProcess": type ProjectsLocationsProcessorsBatchProcessCall struct { diff --git a/documentai/v1beta2/documentai-api.json b/documentai/v1beta2/documentai-api.json index f32b5471b8a..da82b627b25 100644 --- a/documentai/v1beta2/documentai-api.json +++ b/documentai/v1beta2/documentai-api.json @@ -292,7 +292,7 @@ } } }, - "revision": "20220610", + "revision": "20220711", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1233,6 +1233,25 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta1Barcode": { + "description": "Encodes the detailed information of a barcode.", + "id": "GoogleCloudDocumentaiV1beta1Barcode", + "properties": { + "format": { + "description": "Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.", + "type": "string" + }, + "rawValue": { + "description": "Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.", + "type": "string" + }, + "valueFormat": { + "description": "Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse": { "description": "Response to an batch document processing request. This is returned in the LRO Operation after the operation is complete.", "id": "GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse", @@ -1472,6 +1491,13 @@ }, "type": "array" }, + "detectedBarcodes": { + "description": "A list of detected barcodes.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode" + }, + "type": "array" + }, "detectedLanguages": { "description": "A list of detected languages together with confidence.", "items": { @@ -1644,6 +1670,21 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode": { + "description": "A detected barcode.", + "id": "GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode", + "properties": { + "barcode": { + "$ref": "GoogleCloudDocumentaiV1beta1Barcode", + "description": "Detailed barcode information of the DetectedBarcode." + }, + "layout": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageLayout", + "description": "Layout for DetectedBarcode." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage": { "description": "Detected language for a structural component.", "id": "GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage", @@ -2434,6 +2475,25 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta2Barcode": { + "description": "Encodes the detailed information of a barcode.", + "id": "GoogleCloudDocumentaiV1beta2Barcode", + "properties": { + "format": { + "description": "Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.", + "type": "string" + }, + "rawValue": { + "description": "Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.", + "type": "string" + }, + "valueFormat": { + "description": "Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest": { "description": "Request to batch process documents as an asynchronous operation. The output is written to Cloud Storage as JSON in the [Document] format.", "id": "GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest", @@ -2714,6 +2774,13 @@ }, "type": "array" }, + "detectedBarcodes": { + "description": "A list of detected barcodes.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode" + }, + "type": "array" + }, "detectedLanguages": { "description": "A list of detected languages together with confidence.", "items": { @@ -2886,6 +2953,21 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode": { + "description": "A detected barcode.", + "id": "GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode", + "properties": { + "barcode": { + "$ref": "GoogleCloudDocumentaiV1beta2Barcode", + "description": "Detailed barcode information of the DetectedBarcode." + }, + "layout": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageLayout", + "description": "Layout for DetectedBarcode." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage": { "description": "Detected language for a structural component.", "id": "GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage", @@ -4363,7 +4445,7 @@ "type": "object" }, "GoogleTypePostalAddress": { - "description": "Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an i18n-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478", + "description": "Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478", "id": "GoogleTypePostalAddress", "properties": { "addressLines": { diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index 9aa51ec6d7d..11a45e9b970 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -1936,6 +1936,52 @@ func (s *GoogleCloudDocumentaiV1alpha1CommonOperationMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta1Barcode: Encodes the detailed information +// of a barcode. +type GoogleCloudDocumentaiV1beta1Barcode struct { + // Format: Format of a barcode. The supported formats are: CODE_128: + // Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: + // Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. + // EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. + // UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D + // Aztec code type. DATABAR: GS1 DataBar code type. + Format string `json:"format,omitempty"` + + // RawValue: Raw value encoded in the barcode. For example, + // 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. + RawValue string `json:"rawValue,omitempty"` + + // ValueFormat: Value format describes the format of the value that a + // barcode encodes. The supported formats are: CONTACT_INFO: Contact + // information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: + // Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. + // URL: URL address. WIFI: Wifi information. GEO: Geo-localization. + // CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license. + ValueFormat string `json:"valueFormat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") 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. "Format") 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 *GoogleCloudDocumentaiV1beta1Barcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta1Barcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse: Response // to an batch document processing request. This is returned in the LRO // Operation after the operation is complete. @@ -2290,6 +2336,9 @@ type GoogleCloudDocumentaiV1beta1DocumentPage struct { // line-spacing and orientation. Blocks []*GoogleCloudDocumentaiV1beta1DocumentPageBlock `json:"blocks,omitempty"` + // DetectedBarcodes: A list of detected barcodes. + DetectedBarcodes []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"` + // DetectedLanguages: A list of detected languages together with // confidence. DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` @@ -2504,6 +2553,38 @@ func (s *GoogleCloudDocumentaiV1beta1DocumentPageBlock) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode: A detected +// barcode. +type GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode struct { + // Barcode: Detailed barcode information of the DetectedBarcode. + Barcode *GoogleCloudDocumentaiV1beta1Barcode `json:"barcode,omitempty"` + + // Layout: Layout for DetectedBarcode. + Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Barcode") 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. "Barcode") 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 *GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage: Detected // language for a structural component. type GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage struct { @@ -3887,6 +3968,52 @@ func (s *GoogleCloudDocumentaiV1beta2AutoMlParams) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta2Barcode: Encodes the detailed information +// of a barcode. +type GoogleCloudDocumentaiV1beta2Barcode struct { + // Format: Format of a barcode. The supported formats are: CODE_128: + // Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: + // Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. + // EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. + // UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D + // Aztec code type. DATABAR: GS1 DataBar code type. + Format string `json:"format,omitempty"` + + // RawValue: Raw value encoded in the barcode. For example, + // 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. + RawValue string `json:"rawValue,omitempty"` + + // ValueFormat: Value format describes the format of the value that a + // barcode encodes. The supported formats are: CONTACT_INFO: Contact + // information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: + // Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. + // URL: URL address. WIFI: Wifi information. GEO: Geo-localization. + // CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license. + ValueFormat string `json:"valueFormat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") 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. "Format") 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 *GoogleCloudDocumentaiV1beta2Barcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta2Barcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest: Request to // batch process documents as an asynchronous operation. The output is // written to Cloud Storage as JSON in the [Document] format. @@ -4333,6 +4460,9 @@ type GoogleCloudDocumentaiV1beta2DocumentPage struct { // line-spacing and orientation. Blocks []*GoogleCloudDocumentaiV1beta2DocumentPageBlock `json:"blocks,omitempty"` + // DetectedBarcodes: A list of detected barcodes. + DetectedBarcodes []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"` + // DetectedLanguages: A list of detected languages together with // confidence. DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` @@ -4547,6 +4677,38 @@ func (s *GoogleCloudDocumentaiV1beta2DocumentPageBlock) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode: A detected +// barcode. +type GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode struct { + // Barcode: Detailed barcode information of the DetectedBarcode. + Barcode *GoogleCloudDocumentaiV1beta2Barcode `json:"barcode,omitempty"` + + // Layout: Layout for DetectedBarcode. + Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Barcode") 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. "Barcode") 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 *GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage: Detected // language for a structural component. type GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage struct { @@ -7152,11 +7314,12 @@ func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) { // not intended to model geographical locations (roads, towns, // mountains). In typical usage an address would be created via user // input or from importing existing data, depending on the type of -// process. Advice on address input / editing: - Use an i18n-ready -// address widget such as https://github.com/google/libaddressinput) - -// Users should not be presented with UI elements for input or editing -// of fields outside countries where that field is used. For more -// guidance on how to use this schema, please see: +// process. Advice on address input / editing: - Use an +// internationalization-ready address widget such as +// https://github.com/google/libaddressinput) - Users should not be +// presented with UI elements for input or editing of fields outside +// countries where that field is used. For more guidance on how to use +// this schema, please see: // https://support.google.com/business/answer/6397478 type GoogleTypePostalAddress struct { // AddressLines: Unstructured address lines describing the lower levels diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index b009136a8db..2c846a664b2 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -297,6 +297,46 @@ } } }, + "processorTypes": { + "methods": { + "list": { + "description": "Lists the processor types that exist.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processorTypes", + "httpMethod": "GET", + "id": "documentai.projects.locations.processorTypes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of processor types to return. If unspecified, at most 100 processor types will be returned. The maximum value is 500; values above 500 will be coerced to 500.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Used to retrieve the next page of results, empty if at the end of the list.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The location of processor type to list. The available processor types may depend on the allow-listing on projects. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta3/{+parent}/processorTypes", + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "processors": { "methods": { "batchProcess": { @@ -796,7 +836,7 @@ } } }, - "revision": "20220610", + "revision": "20220711", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1737,6 +1777,25 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta1Barcode": { + "description": "Encodes the detailed information of a barcode.", + "id": "GoogleCloudDocumentaiV1beta1Barcode", + "properties": { + "format": { + "description": "Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.", + "type": "string" + }, + "rawValue": { + "description": "Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.", + "type": "string" + }, + "valueFormat": { + "description": "Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse": { "description": "Response to an batch document processing request. This is returned in the LRO Operation after the operation is complete.", "id": "GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse", @@ -1976,6 +2035,13 @@ }, "type": "array" }, + "detectedBarcodes": { + "description": "A list of detected barcodes.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode" + }, + "type": "array" + }, "detectedLanguages": { "description": "A list of detected languages together with confidence.", "items": { @@ -2148,6 +2214,21 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode": { + "description": "A detected barcode.", + "id": "GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode", + "properties": { + "barcode": { + "$ref": "GoogleCloudDocumentaiV1beta1Barcode", + "description": "Detailed barcode information of the DetectedBarcode." + }, + "layout": { + "$ref": "GoogleCloudDocumentaiV1beta1DocumentPageLayout", + "description": "Layout for DetectedBarcode." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage": { "description": "Detected language for a structural component.", "id": "GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage", @@ -2927,6 +3008,25 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta2Barcode": { + "description": "Encodes the detailed information of a barcode.", + "id": "GoogleCloudDocumentaiV1beta2Barcode", + "properties": { + "format": { + "description": "Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.", + "type": "string" + }, + "rawValue": { + "description": "Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.", + "type": "string" + }, + "valueFormat": { + "description": "Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse": { "description": "Response to an batch document processing request. This is returned in the LRO Operation after the operation is complete.", "id": "GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse", @@ -3193,6 +3293,13 @@ }, "type": "array" }, + "detectedBarcodes": { + "description": "A list of detected barcodes.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode" + }, + "type": "array" + }, "detectedLanguages": { "description": "A list of detected languages together with confidence.", "items": { @@ -3365,6 +3472,21 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode": { + "description": "A detected barcode.", + "id": "GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode", + "properties": { + "barcode": { + "$ref": "GoogleCloudDocumentaiV1beta2Barcode", + "description": "Detailed barcode information of the DetectedBarcode." + }, + "layout": { + "$ref": "GoogleCloudDocumentaiV1beta2DocumentPageLayout", + "description": "Layout for DetectedBarcode." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage": { "description": "Detected language for a structural component.", "id": "GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage", @@ -4149,6 +4271,25 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3Barcode": { + "description": "Encodes the detailed information of a barcode.", + "id": "GoogleCloudDocumentaiV1beta3Barcode", + "properties": { + "format": { + "description": "Format of a barcode. The supported formats are: CODE_128: Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.", + "type": "string" + }, + "rawValue": { + "description": "Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://www.google.com;;'.", + "type": "string" + }, + "valueFormat": { + "description": "Value format describes the format of the value that a barcode encodes. The supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig": { "description": "The common config to specify a set of documents used as input.", "id": "GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig", @@ -4663,6 +4804,13 @@ }, "type": "array" }, + "detectedBarcodes": { + "description": "A list of detected barcodes.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode" + }, + "type": "array" + }, "detectedLanguages": { "description": "A list of detected languages together with confidence.", "items": { @@ -4835,6 +4983,21 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode": { + "description": "A detected barcode.", + "id": "GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode", + "properties": { + "barcode": { + "$ref": "GoogleCloudDocumentaiV1beta3Barcode", + "description": "Detailed barcode information of the DetectedBarcode." + }, + "layout": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentPageLayout", + "description": "Layout for DetectedBarcode." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage": { "description": "Detected language for a structural component.", "id": "GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage", @@ -5458,6 +5621,10 @@ "documentSplitter": { "description": "If true, a `document` entity type can be applied to subdocument ( splitting). Otherwise, it can only be applied to the entire document (classification).", "type": "boolean" + }, + "prefixedNamingOnProperties": { + "description": "If set, all the nested entities must be prefixed with the parents.", + "type": "boolean" } }, "type": "object" @@ -5702,6 +5869,24 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse": { + "description": "Response message for list processor types.", + "id": "GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse", + "properties": { + "nextPageToken": { + "description": "Points to the next page, otherwise empty.", + "type": "string" + }, + "processorTypes": { + "description": "The processor types.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3ProcessorType" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse": { "description": "Response message for list processors.", "id": "GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse", @@ -6463,7 +6648,7 @@ "type": "object" }, "GoogleTypePostalAddress": { - "description": "Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an i18n-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478", + "description": "Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478", "id": "GoogleTypePostalAddress", "properties": { "addressLines": { diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 120547f1b4f..e82254b2d1d 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -152,6 +152,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Operations = NewProjectsLocationsOperationsService(s) + rs.ProcessorTypes = NewProjectsLocationsProcessorTypesService(s) rs.Processors = NewProjectsLocationsProcessorsService(s) return rs } @@ -161,6 +162,8 @@ type ProjectsLocationsService struct { Operations *ProjectsLocationsOperationsService + ProcessorTypes *ProjectsLocationsProcessorTypesService + Processors *ProjectsLocationsProcessorsService } @@ -173,6 +176,15 @@ type ProjectsLocationsOperationsService struct { s *Service } +func NewProjectsLocationsProcessorTypesService(s *Service) *ProjectsLocationsProcessorTypesService { + rs := &ProjectsLocationsProcessorTypesService{s: s} + return rs +} + +type ProjectsLocationsProcessorTypesService struct { + s *Service +} + func NewProjectsLocationsProcessorsService(s *Service) *ProjectsLocationsProcessorsService { rs := &ProjectsLocationsProcessorsService{s: s} rs.HumanReviewConfig = NewProjectsLocationsProcessorsHumanReviewConfigService(s) @@ -1936,6 +1948,52 @@ func (s *GoogleCloudDocumentaiV1alpha1CommonOperationMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta1Barcode: Encodes the detailed information +// of a barcode. +type GoogleCloudDocumentaiV1beta1Barcode struct { + // Format: Format of a barcode. The supported formats are: CODE_128: + // Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: + // Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. + // EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. + // UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D + // Aztec code type. DATABAR: GS1 DataBar code type. + Format string `json:"format,omitempty"` + + // RawValue: Raw value encoded in the barcode. For example, + // 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. + RawValue string `json:"rawValue,omitempty"` + + // ValueFormat: Value format describes the format of the value that a + // barcode encodes. The supported formats are: CONTACT_INFO: Contact + // information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: + // Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. + // URL: URL address. WIFI: Wifi information. GEO: Geo-localization. + // CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license. + ValueFormat string `json:"valueFormat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") 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. "Format") 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 *GoogleCloudDocumentaiV1beta1Barcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta1Barcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse: Response // to an batch document processing request. This is returned in the LRO // Operation after the operation is complete. @@ -2290,6 +2348,9 @@ type GoogleCloudDocumentaiV1beta1DocumentPage struct { // line-spacing and orientation. Blocks []*GoogleCloudDocumentaiV1beta1DocumentPageBlock `json:"blocks,omitempty"` + // DetectedBarcodes: A list of detected barcodes. + DetectedBarcodes []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"` + // DetectedLanguages: A list of detected languages together with // confidence. DetectedLanguages []*GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` @@ -2504,6 +2565,38 @@ func (s *GoogleCloudDocumentaiV1beta1DocumentPageBlock) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode: A detected +// barcode. +type GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode struct { + // Barcode: Detailed barcode information of the DetectedBarcode. + Barcode *GoogleCloudDocumentaiV1beta1Barcode `json:"barcode,omitempty"` + + // Layout: Layout for DetectedBarcode. + Layout *GoogleCloudDocumentaiV1beta1DocumentPageLayout `json:"layout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Barcode") 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. "Barcode") 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 *GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage: Detected // language for a structural component. type GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage struct { @@ -3857,6 +3950,52 @@ func (s *GoogleCloudDocumentaiV1beta1Vertex) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta2Barcode: Encodes the detailed information +// of a barcode. +type GoogleCloudDocumentaiV1beta2Barcode struct { + // Format: Format of a barcode. The supported formats are: CODE_128: + // Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: + // Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. + // EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. + // UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D + // Aztec code type. DATABAR: GS1 DataBar code type. + Format string `json:"format,omitempty"` + + // RawValue: Raw value encoded in the barcode. For example, + // 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. + RawValue string `json:"rawValue,omitempty"` + + // ValueFormat: Value format describes the format of the value that a + // barcode encodes. The supported formats are: CONTACT_INFO: Contact + // information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: + // Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. + // URL: URL address. WIFI: Wifi information. GEO: Geo-localization. + // CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license. + ValueFormat string `json:"valueFormat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") 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. "Format") 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 *GoogleCloudDocumentaiV1beta2Barcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta2Barcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse: Response // to an batch document processing request. This is returned in the LRO // Operation after the operation is complete. @@ -4269,6 +4408,9 @@ type GoogleCloudDocumentaiV1beta2DocumentPage struct { // line-spacing and orientation. Blocks []*GoogleCloudDocumentaiV1beta2DocumentPageBlock `json:"blocks,omitempty"` + // DetectedBarcodes: A list of detected barcodes. + DetectedBarcodes []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"` + // DetectedLanguages: A list of detected languages together with // confidence. DetectedLanguages []*GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` @@ -4483,6 +4625,38 @@ func (s *GoogleCloudDocumentaiV1beta2DocumentPageBlock) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode: A detected +// barcode. +type GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode struct { + // Barcode: Detailed barcode information of the DetectedBarcode. + Barcode *GoogleCloudDocumentaiV1beta2Barcode `json:"barcode,omitempty"` + + // Layout: Layout for DetectedBarcode. + Layout *GoogleCloudDocumentaiV1beta2DocumentPageLayout `json:"layout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Barcode") 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. "Barcode") 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 *GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage: Detected // language for a structural component. type GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage struct { @@ -5842,6 +6016,52 @@ func (s *GoogleCloudDocumentaiV1beta2Vertex) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3Barcode: Encodes the detailed information +// of a barcode. +type GoogleCloudDocumentaiV1beta3Barcode struct { + // Format: Format of a barcode. The supported formats are: CODE_128: + // Code 128 type. CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: + // Codabar type. DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. + // EAN_13: EAN-13 type. EAN_8: EAN-8 type. QR_CODE: 2D QR code type. + // UPC_A: UPC-A type. UPC_E: UPC-E type. PDF417: PDF417 type. AZTEC: 2D + // Aztec code type. DATABAR: GS1 DataBar code type. + Format string `json:"format,omitempty"` + + // RawValue: Raw value encoded in the barcode. For example, + // 'MEBKM:TITLE:Google;URL:https://www.google.com;;'. + RawValue string `json:"rawValue,omitempty"` + + // ValueFormat: Value format describes the format of the value that a + // barcode encodes. The supported formats are: CONTACT_INFO: Contact + // information. EMAIL: Email address. ISBN: ISBN identifier. PHONE: + // Phone number. PRODUCT: Product. SMS: SMS message. TEXT: Text string. + // URL: URL address. WIFI: Wifi information. GEO: Geo-localization. + // CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license. + ValueFormat string `json:"valueFormat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") 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. "Format") 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 *GoogleCloudDocumentaiV1beta3Barcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3Barcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig: The common // config to specify a set of documents used as input. type GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig struct { @@ -6674,6 +6894,9 @@ type GoogleCloudDocumentaiV1beta3DocumentPage struct { // line-spacing and orientation. Blocks []*GoogleCloudDocumentaiV1beta3DocumentPageBlock `json:"blocks,omitempty"` + // DetectedBarcodes: A list of detected barcodes. + DetectedBarcodes []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode `json:"detectedBarcodes,omitempty"` + // DetectedLanguages: A list of detected languages together with // confidence. DetectedLanguages []*GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage `json:"detectedLanguages,omitempty"` @@ -6888,6 +7111,38 @@ func (s *GoogleCloudDocumentaiV1beta3DocumentPageBlock) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode: A detected +// barcode. +type GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode struct { + // Barcode: Detailed barcode information of the DetectedBarcode. + Barcode *GoogleCloudDocumentaiV1beta3Barcode `json:"barcode,omitempty"` + + // Layout: Layout for DetectedBarcode. + Layout *GoogleCloudDocumentaiV1beta3DocumentPageLayout `json:"layout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Barcode") 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. "Barcode") 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 *GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentPageDetectedBarcode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage: Detected // language for a structural component. type GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage struct { @@ -7879,6 +8134,10 @@ type GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata struct { // entire document (classification). DocumentSplitter bool `json:"documentSplitter,omitempty"` + // PrefixedNamingOnProperties: If set, all the nested entities must be + // prefixed with the parents. + PrefixedNamingOnProperties bool `json:"prefixedNamingOnProperties,omitempty"` + // ForceSendFields is a list of field names (e.g. // "DocumentAllowMultipleLabels") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -8368,6 +8627,42 @@ func (s *GoogleCloudDocumentaiV1beta3HumanReviewStatus) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse: Response +// message for list processor types. +type GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse struct { + // NextPageToken: Points to the next page, otherwise empty. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ProcessorTypes: The processor types. + ProcessorTypes []*GoogleCloudDocumentaiV1beta3ProcessorType `json:"processorTypes,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse: Response // message for list processors. type GoogleCloudDocumentaiV1beta3ListProcessorVersionsResponse struct { @@ -9739,11 +10034,12 @@ func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) { // not intended to model geographical locations (roads, towns, // mountains). In typical usage an address would be created via user // input or from importing existing data, depending on the type of -// process. Advice on address input / editing: - Use an i18n-ready -// address widget such as https://github.com/google/libaddressinput) - -// Users should not be presented with UI elements for input or editing -// of fields outside countries where that field is used. For more -// guidance on how to use this schema, please see: +// process. Advice on address input / editing: - Use an +// internationalization-ready address widget such as +// https://github.com/google/libaddressinput) - Users should not be +// presented with UI elements for input or editing of fields outside +// countries where that field is used. For more guidance on how to use +// this schema, please see: // https://support.google.com/business/answer/6397478 type GoogleTypePostalAddress struct { // AddressLines: Unstructured address lines describing the lower levels @@ -10899,6 +11195,205 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( } } +// method id "documentai.projects.locations.processorTypes.list": + +type ProjectsLocationsProcessorTypesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the processor types that exist. +// +// - parent: The location of processor type to list. The available +// processor types may depend on the allow-listing on projects. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsProcessorTypesService) List(parent string) *ProjectsLocationsProcessorTypesListCall { + c := &ProjectsLocationsProcessorTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of processor types to return. If unspecified, at most 100 processor +// types will be returned. The maximum value is 500; values above 500 +// will be coerced to 500. +func (c *ProjectsLocationsProcessorTypesListCall) PageSize(pageSize int64) *ProjectsLocationsProcessorTypesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Used to retrieve +// the next page of results, empty if at the end of the list. +func (c *ProjectsLocationsProcessorTypesListCall) PageToken(pageToken string) *ProjectsLocationsProcessorTypesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessorTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorTypesListCall { + 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 *ProjectsLocationsProcessorTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorTypesListCall { + 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 *ProjectsLocationsProcessorTypesListCall) Context(ctx context.Context) *ProjectsLocationsProcessorTypesListCall { + 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 *ProjectsLocationsProcessorTypesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessorTypesListCall) 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, "v1beta3/{+parent}/processorTypes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "documentai.projects.locations.processorTypes.list" call. +// Exactly one of +// *GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse.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 *ProjectsLocationsProcessorTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the processor types that exist.", + // "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processorTypes", + // "httpMethod": "GET", + // "id": "documentai.projects.locations.processorTypes.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of processor types to return. If unspecified, at most 100 processor types will be returned. The maximum value is 500; values above 500 will be coerced to 500.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Used to retrieve the next page of results, empty if at the end of the list.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The location of processor type to list. The available processor types may depend on the allow-listing on projects. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta3/{+parent}/processorTypes", + // "response": { + // "$ref": "GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProcessorTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDocumentaiV1beta3ListProcessorTypesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "documentai.projects.locations.processors.batchProcess": type ProjectsLocationsProcessorsBatchProcessCall struct { diff --git a/doubleclickbidmanager/v2/doubleclickbidmanager-api.json b/doubleclickbidmanager/v2/doubleclickbidmanager-api.json index da85157ea1e..b0b5df42484 100644 --- a/doubleclickbidmanager/v2/doubleclickbidmanager-api.json +++ b/doubleclickbidmanager/v2/doubleclickbidmanager-api.json @@ -126,7 +126,7 @@ ] }, "delete": { - "description": "Deletes a stored query as well as the associated stored reports.", + "description": "Deletes a query as well as the associated reports.", "flatPath": "queries/{queryId}", "httpMethod": "DELETE", "id": "doubleclickbidmanager.queries.delete", @@ -135,7 +135,7 @@ ], "parameters": { "queryId": { - "description": "Required. Query ID to delete.", + "description": "Required. ID of query to delete.", "format": "int64", "location": "path", "required": true, @@ -148,7 +148,7 @@ ] }, "get": { - "description": "Retrieves a stored query.", + "description": "Retrieves a query.", "flatPath": "queries/{queryId}", "httpMethod": "GET", "id": "doubleclickbidmanager.queries.get", @@ -157,7 +157,7 @@ ], "parameters": { "queryId": { - "description": "Required. Query ID to retrieve.", + "description": "Required. ID of query to retrieve.", "format": "int64", "location": "path", "required": true, @@ -173,14 +173,14 @@ ] }, "list": { - "description": "Retrieves stored queries.", + "description": "Lists queries created by the current user.", "flatPath": "queries", "httpMethod": "GET", "id": "doubleclickbidmanager.queries.list", "parameterOrder": [], "parameters": { "orderBy": { - "description": "Name of a field used to order results. The default sorting order is ascending. To specify descending order for a field, append a \" desc\" suffix. For example \"metadata.title desc\". Sorting is only supported for the following fields: * queryId * metadata.title", + "description": "Name of a field used to order results. The default sorting order is ascending. To specify descending order for a field, append a \" desc\" suffix. For example \"metadata.title desc\". Sorting is only supported for the following fields: * `queryId` * `metadata.title`", "location": "query", "type": "string" }, @@ -214,7 +214,7 @@ ], "parameters": { "queryId": { - "description": "Required. Query ID to run.", + "description": "Required. ID of query to run.", "format": "int64", "location": "path", "required": true, @@ -242,7 +242,7 @@ "reports": { "methods": { "get": { - "description": "Retrieves a stored report.", + "description": "Retrieves a report.", "flatPath": "queries/{queryId}/reports/{reportId}", "httpMethod": "GET", "id": "doubleclickbidmanager.queries.reports.get", @@ -275,7 +275,7 @@ ] }, "list": { - "description": "Lists reports.", + "description": "Lists reports associated with a query.", "flatPath": "queries/{queryId}/reports", "httpMethod": "GET", "id": "doubleclickbidmanager.queries.reports.list", @@ -284,7 +284,7 @@ ], "parameters": { "orderBy": { - "description": "Name of a field used to order results. The default sorting order is ascending. To specify descending order for a field, append a \" desc\" suffix. For example \"key.reportId desc\". Sorting is only supported for the following fields: * key.reportId", + "description": "Name of a field used to order results. The default sorting order is ascending. To specify descending order for a field, append a \" desc\" suffix. For example \"key.reportId desc\". Sorting is only supported for the following fields: * `key.reportId`", "location": "query", "type": "string" }, @@ -300,7 +300,7 @@ "type": "string" }, "queryId": { - "description": "Required. Query ID with which the reports are associated.", + "description": "Required. ID of the query with which the reports are associated.", "format": "int64", "location": "path", "required": true, @@ -320,7 +320,7 @@ } } }, - "revision": "20220524", + "revision": "20220707", "rootUrl": "https://doubleclickbidmanager.googleapis.com/", "schemas": { "ChannelGrouping": { @@ -381,25 +381,25 @@ "LAST_60_DAYS" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" + "Default value when range is not specified or is unknown in this version.", + "Custom range specified by custom_start_date and custom_end_date fields.", + "Current day.", + "Previous day.", + "All days, including the current day, since the most recent Sunday.", + "All days, including the current day, since the start of the current month.", + "All days, including the current day, since the start of the current quarter.", + "All days, including the current day, since the start of the current calendar year.", + "The previous completed week, beginning from Sunday.", + "The previous completed calendar month.", + "The previous completed quarter.", + "The previous completed calendar year.", + "The previous 7 days, excluding the current day.", + "The previous 30 days, excluding the current day.", + "The previous 90 days, excluding the current day.", + "The previous 365 days, excluding the current day.", + "All time for which data is available, excluding the current day.", + "The previous 14 days, excluding the current day.", + "The previous 60 days, excluding the current day." ], "type": "string" } @@ -469,15 +469,14 @@ "type": "object" }, "ListQueriesResponse": { - "description": "Represents a list of queries.", "id": "ListQueriesResponse", "properties": { "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page of queries. If this field is omitted, there are no subsequent pages.", + "description": "A token, which can be sent as page_token to retrieve the next page of queries. If this field is omitted, there are no subsequent pages.", "type": "string" }, "queries": { - "description": "Retrieved queries.", + "description": "The list of queries.", "items": { "$ref": "Query" }, @@ -487,11 +486,10 @@ "type": "object" }, "ListReportsResponse": { - "description": "Represents a list of reports.", "id": "ListReportsResponse", "properties": { "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page of reports. If this field is omitted, there are no subsequent pages.", + "description": "A token, which can be sent as page_token to retrieve the next page of reports. If this field is omitted, there are no subsequent pages.", "type": "string" }, "reports": { @@ -549,7 +547,7 @@ "description": "Additional query options." }, "type": { - "description": "Report type.", + "description": "The type of the report. The type of the report will dictate what dimesions, filters, and metrics can be used.", "enum": [ "REPORT_TYPE_UNSPECIFIED", "STANDARD", @@ -565,18 +563,18 @@ "PATH_ATTRIBUTION" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" + "Default value when report type is not specified or is unknown in this version.", + "Standard report.", + "Inventory Availability report.", + "Audience Composition report.", + "Floodlight report.", + "YouTube report.", + "GRP report.", + "YouTube Programmatic Guaranteed report.", + "Reach report.", + "Unique Reach Audience report.", + "Full Path report.", + "Path Attribution report." ], "type": "string" } @@ -595,7 +593,7 @@ "type": "array" }, "pathMatchPosition": { - "description": "Indicates the position of the path the filter should match to (first, last, or any event in path).", + "description": "The position of the path the filter should match to (first, last, or any event in path).", "enum": [ "PATH_MATCH_POSITION_UNSPECIFIED", "ANY", @@ -603,10 +601,10 @@ "LAST" ], "enumDescriptions": [ - "", - "", - "", - "" + "Default value when path match position is not specified or is unknown in this version.", + "Any position in the path.", + "The first position in the path.", + "The last position in the path." ], "type": "string" } @@ -632,7 +630,7 @@ "type": "object" }, "PathQueryOptionsFilter": { - "description": "Dimension Filter on path events.", + "description": "Dimension filter on path events.", "id": "PathQueryOptionsFilter", "properties": { "filter": { @@ -640,7 +638,7 @@ "type": "string" }, "match": { - "description": "Indicates how the filter should be matched to the value.", + "description": "Match logic of the filter.", "enum": [ "UNKNOWN", "EXACT", @@ -649,16 +647,16 @@ "WILDCARD_EXPRESSION" ], "enumDescriptions": [ - "", - "", - "", - "", - "" + "Default value when match is not specified or is unknown in this version.", + "Matches a value exactly.", + "Matches a value partially.", + "Begins with a value.", + "Matches a value, utilizing wildcard character logic in the value." ], "type": "string" }, "values": { - "description": "Value to filter on.", + "description": "Values to filter on.", "items": { "type": "string" }, @@ -687,7 +685,7 @@ }, "schedule": { "$ref": "QuerySchedule", - "description": "Information on how often and when to run a query." + "description": "Information on how often and when to run a query. If `ONE_TIME` is set to the frequency field, the query will only be run at the time of creation." } }, "type": "object" @@ -698,7 +696,7 @@ "properties": { "dataRange": { "$ref": "DataRange", - "description": "Range of report data." + "description": "Range of report data. All reports will be based on the same time zone as used by the advertiser." }, "format": { "description": "Format of the generated report.", @@ -719,7 +717,7 @@ "type": "boolean" }, "shareEmailAddress": { - "description": "List of email addresses which are sent email notifications when the report is finished. Separate from `sendNotification`.", + "description": "List of email addresses which are sent email notifications when the report is finished. Separate from send_notification.", "items": { "type": "string" }, @@ -733,7 +731,7 @@ "type": "object" }, "QuerySchedule": { - "description": "Information on how frequently and when to run a query.", + "description": "Information on when and how frequently to run a query.", "id": "QuerySchedule", "properties": { "endDate": { @@ -753,14 +751,14 @@ "YEARLY" ], "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "" + "Default value when frequency is not specified or is unknown in this version.", + "Only once.", + "Once a day.", + "Once a week.", + "Twice a month.", + "Once a month.", + "Once a quarter", + "Once a year." ], "type": "string" }, @@ -871,11 +869,11 @@ "FAILED" ], "enumDescriptions": [ - "", - "", - "", - "", - "" + "Default value when state is not specified or is unknown in this version.", + "The report is queued to run.", + "The report is currently running.", + "The report has finished running successfully.", + "The report has finished running in failure." ], "readOnly": true, "type": "string" diff --git a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go index 2678d5b4492..64b20aacdd6 100644 --- a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go @@ -209,25 +209,33 @@ type DataRange struct { // Range: Report data range used to generate the report. // // Possible values: - // "RANGE_UNSPECIFIED" - // "CUSTOM_DATES" - // "CURRENT_DAY" - // "PREVIOUS_DAY" - // "WEEK_TO_DATE" - // "MONTH_TO_DATE" - // "QUARTER_TO_DATE" - // "YEAR_TO_DATE" - // "PREVIOUS_WEEK" - // "PREVIOUS_MONTH" - // "PREVIOUS_QUARTER" - // "PREVIOUS_YEAR" - // "LAST_7_DAYS" - // "LAST_30_DAYS" - // "LAST_90_DAYS" - // "LAST_365_DAYS" - // "ALL_TIME" - // "LAST_14_DAYS" - // "LAST_60_DAYS" + // "RANGE_UNSPECIFIED" - Default value when range is not specified or + // is unknown in this version. + // "CUSTOM_DATES" - Custom range specified by custom_start_date and + // custom_end_date fields. + // "CURRENT_DAY" - Current day. + // "PREVIOUS_DAY" - Previous day. + // "WEEK_TO_DATE" - All days, including the current day, since the + // most recent Sunday. + // "MONTH_TO_DATE" - All days, including the current day, since the + // start of the current month. + // "QUARTER_TO_DATE" - All days, including the current day, since the + // start of the current quarter. + // "YEAR_TO_DATE" - All days, including the current day, since the + // start of the current calendar year. + // "PREVIOUS_WEEK" - The previous completed week, beginning from + // Sunday. + // "PREVIOUS_MONTH" - The previous completed calendar month. + // "PREVIOUS_QUARTER" - The previous completed quarter. + // "PREVIOUS_YEAR" - The previous completed calendar year. + // "LAST_7_DAYS" - The previous 7 days, excluding the current day. + // "LAST_30_DAYS" - The previous 30 days, excluding the current day. + // "LAST_90_DAYS" - The previous 90 days, excluding the current day. + // "LAST_365_DAYS" - The previous 365 days, excluding the current day. + // "ALL_TIME" - All time for which data is available, excluding the + // current day. + // "LAST_14_DAYS" - The previous 14 days, excluding the current day. + // "LAST_60_DAYS" - The previous 60 days, excluding the current day. Range string `json:"range,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomEndDate") to @@ -391,14 +399,13 @@ func (s *FilterPair) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListQueriesResponse: Represents a list of queries. type ListQueriesResponse struct { - // NextPageToken: A token, which can be sent as `page_token` to retrieve + // NextPageToken: A token, which can be sent as page_token to retrieve // the next page of queries. If this field is omitted, there are no // subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` - // Queries: Retrieved queries. + // Queries: The list of queries. Queries []*Query `json:"queries,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -428,9 +435,8 @@ func (s *ListQueriesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListReportsResponse: Represents a list of reports. type ListReportsResponse struct { - // NextPageToken: A token, which can be sent as `page_token` to retrieve + // NextPageToken: A token, which can be sent as page_token to retrieve // the next page of reports. If this field is omitted, there are no // subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` @@ -515,21 +521,24 @@ type Parameters struct { // Options: Additional query options. Options *Options `json:"options,omitempty"` - // Type: Report type. + // Type: The type of the report. The type of the report will dictate + // what dimesions, filters, and metrics can be used. // // Possible values: - // "REPORT_TYPE_UNSPECIFIED" - // "STANDARD" - // "INVENTORY_AVAILABILITY" - // "AUDIENCE_COMPOSITION" - // "FLOODLIGHT" - // "YOUTUBE" - // "GRP" - // "YOUTUBE_PROGRAMMATIC_GUARANTEED" - // "REACH" - // "UNIQUE_REACH_AUDIENCE" - // "FULL_PATH" - // "PATH_ATTRIBUTION" + // "REPORT_TYPE_UNSPECIFIED" - Default value when report type is not + // specified or is unknown in this version. + // "STANDARD" - Standard report. + // "INVENTORY_AVAILABILITY" - Inventory Availability report. + // "AUDIENCE_COMPOSITION" - Audience Composition report. + // "FLOODLIGHT" - Floodlight report. + // "YOUTUBE" - YouTube report. + // "GRP" - GRP report. + // "YOUTUBE_PROGRAMMATIC_GUARANTEED" - YouTube Programmatic Guaranteed + // report. + // "REACH" - Reach report. + // "UNIQUE_REACH_AUDIENCE" - Unique Reach Audience report. + // "FULL_PATH" - Full Path report. + // "PATH_ATTRIBUTION" - Path Attribution report. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Filters") to @@ -565,14 +574,15 @@ type PathFilter struct { // path. EventFilters []*EventFilter `json:"eventFilters,omitempty"` - // PathMatchPosition: Indicates the position of the path the filter - // should match to (first, last, or any event in path). + // PathMatchPosition: The position of the path the filter should match + // to (first, last, or any event in path). // // Possible values: - // "PATH_MATCH_POSITION_UNSPECIFIED" - // "ANY" - // "FIRST" - // "LAST" + // "PATH_MATCH_POSITION_UNSPECIFIED" - Default value when path match + // position is not specified or is unknown in this version. + // "ANY" - Any position in the path. + // "FIRST" - The first position in the path. + // "LAST" - The last position in the path. PathMatchPosition string `json:"pathMatchPosition,omitempty"` // ForceSendFields is a list of field names (e.g. "EventFilters") to @@ -631,22 +641,24 @@ func (s *PathQueryOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PathQueryOptionsFilter: Dimension Filter on path events. +// PathQueryOptionsFilter: Dimension filter on path events. type PathQueryOptionsFilter struct { // Filter: Dimension the filter is applied to. Filter string `json:"filter,omitempty"` - // Match: Indicates how the filter should be matched to the value. + // Match: Match logic of the filter. // // Possible values: - // "UNKNOWN" - // "EXACT" - // "PARTIAL" - // "BEGINS_WITH" - // "WILDCARD_EXPRESSION" + // "UNKNOWN" - Default value when match is not specified or is unknown + // in this version. + // "EXACT" - Matches a value exactly. + // "PARTIAL" - Matches a value partially. + // "BEGINS_WITH" - Begins with a value. + // "WILDCARD_EXPRESSION" - Matches a value, utilizing wildcard + // character logic in the value. Match string `json:"match,omitempty"` - // Values: Value to filter on. + // Values: Values to filter on. Values []string `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Filter") to @@ -683,7 +695,9 @@ type Query struct { // QueryId: Output only. Query ID. QueryId int64 `json:"queryId,omitempty,string"` - // Schedule: Information on how often and when to run a query. + // Schedule: Information on how often and when to run a query. If + // `ONE_TIME` is set to the frequency field, the query will only be run + // at the time of creation. Schedule *QuerySchedule `json:"schedule,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -715,7 +729,8 @@ func (s *Query) MarshalJSON() ([]byte, error) { // QueryMetadata: Query metadata. type QueryMetadata struct { - // DataRange: Range of report data. + // DataRange: Range of report data. All reports will be based on the + // same time zone as used by the advertiser. DataRange *DataRange `json:"dataRange,omitempty"` // Format: Format of the generated report. @@ -733,7 +748,7 @@ type QueryMetadata struct { // ShareEmailAddress: List of email addresses which are sent email // notifications when the report is finished. Separate from - // `sendNotification`. + // send_notification. ShareEmailAddress []string `json:"shareEmailAddress,omitempty"` // Title: Query title. It is used to name the reports generated from @@ -763,7 +778,7 @@ func (s *QueryMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// QuerySchedule: Information on how frequently and when to run a query. +// QuerySchedule: Information on when and how frequently to run a query. type QuerySchedule struct { // EndDate: Date to periodically run the query until. Not applicable to // `ONE_TIME` frequency. @@ -772,14 +787,15 @@ type QuerySchedule struct { // Frequency: How often the query is run. // // Possible values: - // "FREQUENCY_UNSPECIFIED" - // "ONE_TIME" - // "DAILY" - // "WEEKLY" - // "SEMI_MONTHLY" - // "MONTHLY" - // "QUARTERLY" - // "YEARLY" + // "FREQUENCY_UNSPECIFIED" - Default value when frequency is not + // specified or is unknown in this version. + // "ONE_TIME" - Only once. + // "DAILY" - Once a day. + // "WEEKLY" - Once a week. + // "SEMI_MONTHLY" - Twice a month. + // "MONTHLY" - Once a month. + // "QUARTERLY" - Once a quarter + // "YEARLY" - Once a year. Frequency string `json:"frequency,omitempty"` // NextRunTimezoneCode: Canonical timezone code for report generation @@ -942,11 +958,12 @@ type ReportStatus struct { // State: Output only. The state of the report. // // Possible values: - // "STATE_UNSPECIFIED" - // "QUEUED" - // "RUNNING" - // "DONE" - // "FAILED" + // "STATE_UNSPECIFIED" - Default value when state is not specified or + // is unknown in this version. + // "QUEUED" - The report is queued to run. + // "RUNNING" - The report is currently running. + // "DONE" - The report has finished running successfully. + // "FAILED" - The report has finished running in failure. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "FinishTime") to @@ -1174,10 +1191,9 @@ type QueriesDeleteCall struct { header_ http.Header } -// Delete: Deletes a stored query as well as the associated stored -// reports. +// Delete: Deletes a query as well as the associated reports. // -// - queryId: Query ID to delete. +// - queryId: ID of query to delete. func (r *QueriesService) Delete(queryId int64) *QueriesDeleteCall { c := &QueriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.queryId = queryId @@ -1245,7 +1261,7 @@ func (c *QueriesDeleteCall) Do(opts ...googleapi.CallOption) error { } return nil // { - // "description": "Deletes a stored query as well as the associated stored reports.", + // "description": "Deletes a query as well as the associated reports.", // "flatPath": "queries/{queryId}", // "httpMethod": "DELETE", // "id": "doubleclickbidmanager.queries.delete", @@ -1254,7 +1270,7 @@ func (c *QueriesDeleteCall) Do(opts ...googleapi.CallOption) error { // ], // "parameters": { // "queryId": { - // "description": "Required. Query ID to delete.", + // "description": "Required. ID of query to delete.", // "format": "int64", // "location": "path", // "required": true, @@ -1280,9 +1296,9 @@ type QueriesGetCall struct { header_ http.Header } -// Get: Retrieves a stored query. +// Get: Retrieves a query. // -// - queryId: Query ID to retrieve. +// - queryId: ID of query to retrieve. func (r *QueriesService) Get(queryId int64) *QueriesGetCall { c := &QueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.queryId = queryId @@ -1388,7 +1404,7 @@ func (c *QueriesGetCall) Do(opts ...googleapi.CallOption) (*Query, error) { } return ret, nil // { - // "description": "Retrieves a stored query.", + // "description": "Retrieves a query.", // "flatPath": "queries/{queryId}", // "httpMethod": "GET", // "id": "doubleclickbidmanager.queries.get", @@ -1397,7 +1413,7 @@ func (c *QueriesGetCall) Do(opts ...googleapi.CallOption) (*Query, error) { // ], // "parameters": { // "queryId": { - // "description": "Required. Query ID to retrieve.", + // "description": "Required. ID of query to retrieve.", // "format": "int64", // "location": "path", // "required": true, @@ -1425,7 +1441,7 @@ type QueriesListCall struct { header_ http.Header } -// List: Retrieves stored queries. +// List: Lists queries created by the current user. func (r *QueriesService) List() *QueriesListCall { c := &QueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c @@ -1435,7 +1451,7 @@ func (r *QueriesService) List() *QueriesListCall { // to order results. The default sorting order is ascending. To specify // descending order for a field, append a " desc" suffix. For example // "metadata.title desc". Sorting is only supported for the following -// fields: * queryId * metadata.title +// fields: * `queryId` * `metadata.title` func (c *QueriesListCall) OrderBy(orderBy string) *QueriesListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -1553,14 +1569,14 @@ func (c *QueriesListCall) Do(opts ...googleapi.CallOption) (*ListQueriesResponse } return ret, nil // { - // "description": "Retrieves stored queries.", + // "description": "Lists queries created by the current user.", // "flatPath": "queries", // "httpMethod": "GET", // "id": "doubleclickbidmanager.queries.list", // "parameterOrder": [], // "parameters": { // "orderBy": { - // "description": "Name of a field used to order results. The default sorting order is ascending. To specify descending order for a field, append a \" desc\" suffix. For example \"metadata.title desc\". Sorting is only supported for the following fields: * queryId * metadata.title", + // "description": "Name of a field used to order results. The default sorting order is ascending. To specify descending order for a field, append a \" desc\" suffix. For example \"metadata.title desc\". Sorting is only supported for the following fields: * `queryId` * `metadata.title`", // "location": "query", // "type": "string" // }, @@ -1621,7 +1637,7 @@ type QueriesRunCall struct { // Run: Runs a stored query to generate a report. // -// - queryId: Query ID to run. +// - queryId: ID of query to run. func (r *QueriesService) Run(queryId int64, runqueryrequest *RunQueryRequest) *QueriesRunCall { c := &QueriesRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.queryId = queryId @@ -1738,7 +1754,7 @@ func (c *QueriesRunCall) Do(opts ...googleapi.CallOption) (*Report, error) { // ], // "parameters": { // "queryId": { - // "description": "Required. Query ID to run.", + // "description": "Required. ID of query to run.", // "format": "int64", // "location": "path", // "required": true, @@ -1776,7 +1792,7 @@ type QueriesReportsGetCall struct { header_ http.Header } -// Get: Retrieves a stored report. +// Get: Retrieves a report. // // - queryId: ID of the query the report is associated with. // - reportId: ID of the report to retrieve. @@ -1887,7 +1903,7 @@ func (c *QueriesReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error } return ret, nil // { - // "description": "Retrieves a stored report.", + // "description": "Retrieves a report.", // "flatPath": "queries/{queryId}/reports/{reportId}", // "httpMethod": "GET", // "id": "doubleclickbidmanager.queries.reports.get", @@ -1933,9 +1949,9 @@ type QueriesReportsListCall struct { header_ http.Header } -// List: Lists reports. +// List: Lists reports associated with a query. // -// - queryId: Query ID with which the reports are associated. +// - queryId: ID of the query with which the reports are associated. func (r *QueriesReportsService) List(queryId int64) *QueriesReportsListCall { c := &QueriesReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.queryId = queryId @@ -1946,7 +1962,7 @@ func (r *QueriesReportsService) List(queryId int64) *QueriesReportsListCall { // to order results. The default sorting order is ascending. To specify // descending order for a field, append a " desc" suffix. For example // "key.reportId desc". Sorting is only supported for the following -// fields: * key.reportId +// fields: * `key.reportId` func (c *QueriesReportsListCall) OrderBy(orderBy string) *QueriesReportsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -2067,7 +2083,7 @@ func (c *QueriesReportsListCall) Do(opts ...googleapi.CallOption) (*ListReportsR } return ret, nil // { - // "description": "Lists reports.", + // "description": "Lists reports associated with a query.", // "flatPath": "queries/{queryId}/reports", // "httpMethod": "GET", // "id": "doubleclickbidmanager.queries.reports.list", @@ -2076,7 +2092,7 @@ func (c *QueriesReportsListCall) Do(opts ...googleapi.CallOption) (*ListReportsR // ], // "parameters": { // "orderBy": { - // "description": "Name of a field used to order results. The default sorting order is ascending. To specify descending order for a field, append a \" desc\" suffix. For example \"key.reportId desc\". Sorting is only supported for the following fields: * key.reportId", + // "description": "Name of a field used to order results. The default sorting order is ascending. To specify descending order for a field, append a \" desc\" suffix. For example \"key.reportId desc\". Sorting is only supported for the following fields: * `key.reportId`", // "location": "query", // "type": "string" // }, @@ -2092,7 +2108,7 @@ func (c *QueriesReportsListCall) Do(opts ...googleapi.CallOption) (*ListReportsR // "type": "string" // }, // "queryId": { - // "description": "Required. Query ID with which the reports are associated.", + // "description": "Required. ID of the query with which the reports are associated.", // "format": "int64", // "location": "path", // "required": true, diff --git a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-api.json b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-api.json index 0ac21b0f9c0..f454f531e3c 100644 --- a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-api.json +++ b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-api.json @@ -530,7 +530,7 @@ } } }, - "revision": "20220625", + "revision": "20220712", "rootUrl": "https://mybusinessaccountmanagement.googleapis.com/", "schemas": { "AcceptInvitationRequest": { @@ -658,6 +658,10 @@ "description": "An administrator of an Account or a location.", "id": "Admin", "properties": { + "account": { + "description": "Immutable. The name of the Account resource that this Admin refers to. Used when calling CreateAccountAdmin or CreateLocationAdmin to invite UserGroups or LocationGroups as admins, respectively. If both this field and `admin` are set on `CREATE` requests, this field takes precedence and the email address in `admin` will be ignored. Format: `accounts/{account}`.", + "type": "string" + }, "admin": { "description": "Optional. The name of the admin. When making the initial invitation, this is the invitee's email address. On `GET` calls, the user's email address is returned if the invitation is still pending. Otherwise, it contains the user's first and last names. This field is only needed to be set during admin creation.", "type": "string" diff --git a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go index 8bf35bff840..6714cbd97f4 100644 --- a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go +++ b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go @@ -306,6 +306,14 @@ func (s *Account) MarshalJSON() ([]byte, error) { // Admin: An administrator of an Account or a location. type Admin struct { + // Account: Immutable. The name of the Account resource that this Admin + // refers to. Used when calling CreateAccountAdmin or + // CreateLocationAdmin to invite UserGroups or LocationGroups as admins, + // respectively. If both this field and `admin` are set on `CREATE` + // requests, this field takes precedence and the email address in + // `admin` will be ignored. Format: `accounts/{account}`. + Account string `json:"account,omitempty"` + // Admin: Optional. The name of the admin. When making the initial // invitation, this is the invitee's email address. On `GET` calls, the // user's email address is returned if the invitation is still pending. @@ -343,7 +351,7 @@ type Admin struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Admin") to + // ForceSendFields is a list of field names (e.g. "Account") 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 @@ -351,8 +359,8 @@ type Admin struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Admin") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Account") 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. diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index fe028795511..c4bc62a6d52 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -865,7 +865,7 @@ } } }, - "revision": "20220620", + "revision": "20220711", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -1303,6 +1303,26 @@ "properties": {}, "type": "object" }, + "CloudSQLConfig": { + "description": "Cloud SQL configuration.", + "id": "CloudSQLConfig", + "properties": { + "service": { + "description": "Peering service used for peering with the Cloud SQL project.", + "type": "string" + }, + "umbrellaNetwork": { + "description": "The name of network in Cloud SQL umbrella project.", + "type": "string" + }, + "umbrellaProject": { + "description": "The project number of Cloud SQL umbrella project.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "Connection": { "description": "Represents a private connection resource. A private connection is implemented as a VPC Network Peering connection between a service producer's VPC network and a service consumer's VPC network.", "id": "Connection", @@ -1335,6 +1355,13 @@ "description": "Configuration information for a private service access connection.", "id": "ConsumerConfig", "properties": { + "cloudsqlConfigs": { + "description": "Represents one or multiple Cloud SQL configurations.", + "items": { + "$ref": "CloudSQLConfig" + }, + "type": "array" + }, "consumerExportCustomRoutes": { "description": "Export custom routes flag value for peering from consumer to producer.", "type": "boolean" diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index f3ed41e4ddc..9f0027ed859 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -1124,6 +1124,40 @@ func (s *BillingDestination) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// CloudSQLConfig: Cloud SQL configuration. +type CloudSQLConfig struct { + // Service: Peering service used for peering with the Cloud SQL project. + Service string `json:"service,omitempty"` + + // UmbrellaNetwork: The name of network in Cloud SQL umbrella project. + UmbrellaNetwork string `json:"umbrellaNetwork,omitempty"` + + // UmbrellaProject: The project number of Cloud SQL umbrella project. + UmbrellaProject int64 `json:"umbrellaProject,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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 *CloudSQLConfig) MarshalJSON() ([]byte, error) { + type NoMethod CloudSQLConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Connection: Represents a private connection resource. A private // connection is implemented as a VPC Network Peering connection between // a service producer's VPC network and a service consumer's VPC @@ -1182,6 +1216,9 @@ func (s *Connection) MarshalJSON() ([]byte, error) { // ConsumerConfig: Configuration information for a private service // access connection. type ConsumerConfig struct { + // CloudsqlConfigs: Represents one or multiple Cloud SQL configurations. + CloudsqlConfigs []*CloudSQLConfig `json:"cloudsqlConfigs,omitempty"` + // ConsumerExportCustomRoutes: Export custom routes flag value for // peering from consumer to producer. ConsumerExportCustomRoutes bool `json:"consumerExportCustomRoutes,omitempty"` @@ -1237,22 +1274,21 @@ type ConsumerConfig struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "ConsumerExportCustomRoutes") 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. "CloudsqlConfigs") 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. - // "ConsumerExportCustomRoutes") 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. "CloudsqlConfigs") 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:"-"` } diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index f545ba998a3..39f5cec8364 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20220620", + "revision": "20220711", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -644,6 +644,26 @@ }, "type": "object" }, + "CloudSQLConfig": { + "description": "Cloud SQL configuration.", + "id": "CloudSQLConfig", + "properties": { + "service": { + "description": "Peering service used for peering with the Cloud SQL project.", + "type": "string" + }, + "umbrellaNetwork": { + "description": "The name of network in Cloud SQL umbrella project.", + "type": "string" + }, + "umbrellaProject": { + "description": "The project number of Cloud SQL umbrella project.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "Connection": { "description": "Represents a private connection resource. A private connection is implemented as a VPC Network Peering connection between a service producer's VPC network and a service consumer's VPC network.", "id": "Connection", @@ -676,6 +696,13 @@ "description": "Configuration information for a private service access connection.", "id": "ConsumerConfig", "properties": { + "cloudsqlConfigs": { + "description": "Represents one or multiple Cloud SQL configurations.", + "items": { + "$ref": "CloudSQLConfig" + }, + "type": "array" + }, "consumerExportCustomRoutes": { "description": "Export custom routes flag value for peering from consumer to producer.", "type": "boolean" diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index a8efbc24ea2..86d34c7cf9c 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -852,6 +852,40 @@ func (s *BillingDestination) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudSQLConfig: Cloud SQL configuration. +type CloudSQLConfig struct { + // Service: Peering service used for peering with the Cloud SQL project. + Service string `json:"service,omitempty"` + + // UmbrellaNetwork: The name of network in Cloud SQL umbrella project. + UmbrellaNetwork string `json:"umbrellaNetwork,omitempty"` + + // UmbrellaProject: The project number of Cloud SQL umbrella project. + UmbrellaProject int64 `json:"umbrellaProject,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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 *CloudSQLConfig) MarshalJSON() ([]byte, error) { + type NoMethod CloudSQLConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Connection: Represents a private connection resource. A private // connection is implemented as a VPC Network Peering connection between // a service producer's VPC network and a service consumer's VPC @@ -910,6 +944,9 @@ func (s *Connection) MarshalJSON() ([]byte, error) { // ConsumerConfig: Configuration information for a private service // access connection. type ConsumerConfig struct { + // CloudsqlConfigs: Represents one or multiple Cloud SQL configurations. + CloudsqlConfigs []*CloudSQLConfig `json:"cloudsqlConfigs,omitempty"` + // ConsumerExportCustomRoutes: Export custom routes flag value for // peering from consumer to producer. ConsumerExportCustomRoutes bool `json:"consumerExportCustomRoutes,omitempty"` @@ -961,22 +998,21 @@ type ConsumerConfig struct { // producer VPC host network. VpcScReferenceArchitectureEnabled bool `json:"vpcScReferenceArchitectureEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ConsumerExportCustomRoutes") 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. "CloudsqlConfigs") 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. - // "ConsumerExportCustomRoutes") 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. "CloudsqlConfigs") 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:"-"` } diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 61e4ef47d5e..ab3b0a80835 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -1450,7 +1450,10 @@ "path": "youtube/v3/liveBroadcasts/cuepoint", "response": { "$ref": "Cuepoint" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/youtubepartner" + ] }, "list": { "description": "Retrieve the list of broadcasts associated with the given channel.", @@ -3862,7 +3865,7 @@ } } }, - "revision": "20220628", + "revision": "20220711", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -11377,7 +11380,7 @@ "type": "object" }, "VideoStatus": { - "description": "Basic details about a video category, such as its localized title. Next Id: 17", + "description": "Basic details about a video category, such as its localized title. Next Id: 18", "id": "VideoStatus", "properties": { "embeddable": { diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 63190cf4bc7..56fb3e8519a 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -10069,7 +10069,7 @@ func (s *VideoStatistics) MarshalJSON() ([]byte, error) { } // VideoStatus: Basic details about a video category, such as its -// localized title. Next Id: 17 +// localized title. Next Id: 18 type VideoStatus struct { // Embeddable: This value indicates if the video can be embedded on // another website. @mutable youtube.videos.insert youtube.videos.update @@ -15858,7 +15858,10 @@ func (c *LiveBroadcastsInsertCuepointCall) Do(opts ...googleapi.CallOption) (*Cu // "path": "youtube/v3/liveBroadcasts/cuepoint", // "response": { // "$ref": "Cuepoint" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/youtubepartner" + // ] // } }