From 30bee9f5051afcc06f3b2dbd98f0d1fb9504052d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Jul 2024 07:09:10 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- .../v1/addressvalidation-api.json | 4 +- addressvalidation/v1/addressvalidation-gen.go | 10 +- cloudbuild/v1/cloudbuild-api.json | 32 +- cloudbuild/v1/cloudbuild-gen.go | 35 +- dlp/v2/dlp-api.json | 330 ++++++++++-- dlp/v2/dlp-gen.go | 476 ++++++++++++++++-- firebaseml/v2beta/firebaseml-api.json | 75 +-- firebaseml/v2beta/firebaseml-gen.go | 110 +--- firestore/v1/firestore-api.json | 6 +- firestore/v1/firestore-gen.go | 10 +- run/v2/run-api.json | 78 ++- run/v2/run-gen.go | 167 ++++-- 12 files changed, 929 insertions(+), 404 deletions(-) diff --git a/addressvalidation/v1/addressvalidation-api.json b/addressvalidation/v1/addressvalidation-api.json index a3e218837a..2def16f9fb 100644 --- a/addressvalidation/v1/addressvalidation-api.json +++ b/addressvalidation/v1/addressvalidation-api.json @@ -151,7 +151,7 @@ } } }, - "revision": "20240410", + "revision": "20240702", "rootUrl": "https://addressvalidation.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -489,7 +489,7 @@ "type": "string" }, "dpvEnhancedDeliveryCode": { - "description": "Indicates that more than one DPV return code is valid for the address. Returns a single character. * `Y`: Address was DPV confirmed for primary and any secondary numbers. * `N`: Primary and any secondary number information failed to DPV confirm. * `S`: Address was DPV confirmed for the primary number only, and the secondary number information was present by not confirmed, or a single trailing alpha on a primary number was dropped to make a DPV match and secondary information required. * `D`: Address was DPV confirmed for the primary number only, and the secondary number information was missing. * `R`: Address confirmed but assigned to phantom route R777 and R779 and USPS delivery is not provided.", + "description": "Indicates that more than one DPV return code is valid for the address. Returns a single character. * `Y`: Address was DPV confirmed for primary and any secondary numbers. * `N`: Primary and any secondary number information failed to DPV confirm. * `S`: Address was DPV confirmed for the primary number only, and the secondary number information was present but not confirmed, or a single trailing alpha on a primary number was dropped to make a DPV match and secondary information required. * `D`: Address was DPV confirmed for the primary number only, and the secondary number information was missing. * `R`: Address confirmed but assigned to phantom route R777 and R779 and USPS delivery is not provided.", "type": "string" }, "dpvFootnote": { diff --git a/addressvalidation/v1/addressvalidation-gen.go b/addressvalidation/v1/addressvalidation-gen.go index 6e79df027b..1237610f78 100644 --- a/addressvalidation/v1/addressvalidation-gen.go +++ b/addressvalidation/v1/addressvalidation-gen.go @@ -669,11 +669,11 @@ type GoogleMapsAddressvalidationV1UspsData struct { // confirmed for primary and any secondary numbers. * `N`: Primary and any // secondary number information failed to DPV confirm. * `S`: Address was DPV // confirmed for the primary number only, and the secondary number information - // was present by not confirmed, or a single trailing alpha on a primary number - // was dropped to make a DPV match and secondary information required. * `D`: - // Address was DPV confirmed for the primary number only, and the secondary - // number information was missing. * `R`: Address confirmed but assigned to - // phantom route R777 and R779 and USPS delivery is not provided. + // was present but not confirmed, or a single trailing alpha on a primary + // number was dropped to make a DPV match and secondary information required. * + // `D`: Address was DPV confirmed for the primary number only, and the + // secondary number information was missing. * `R`: Address confirmed but + // assigned to phantom route R777 and R779 and USPS delivery is not provided. DpvEnhancedDeliveryCode string `json:"dpvEnhancedDeliveryCode,omitempty"` // DpvFootnote: The footnotes from delivery point validation. Multiple // footnotes may be strung together in the same string. * `AA`: Input address diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index b48f007193..6f536ac4fa 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -453,7 +453,7 @@ "type": "string" }, "parent": { - "description": "Required. Name of the parent project. For example: projects/{$project_number} or projects/{$project_id}", + "description": "Name of the parent project. For example: projects/{$project_number} or projects/{$project_id}", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -1384,7 +1384,7 @@ "type": "string" }, "parent": { - "description": "Required. Name of the parent project. For example: projects/{$project_number} or projects/{$project_id}", + "description": "Name of the parent project. For example: projects/{$project_number} or projects/{$project_id}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -2346,7 +2346,7 @@ } } }, - "revision": "20240609", + "revision": "20240627", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -3810,26 +3810,6 @@ }, "type": "object" }, - "GCSLocation": { - "description": "Represents a storage location in Cloud Storage", - "id": "GCSLocation", - "properties": { - "bucket": { - "description": "Cloud Storage bucket. See https://cloud.google.com/storage/docs/naming#requirements", - "type": "string" - }, - "generation": { - "description": "Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.", - "format": "int64", - "type": "string" - }, - "object": { - "description": "Cloud Storage object. See https://cloud.google.com/storage/docs/naming#objectnames", - "type": "string" - } - }, - "type": "object" - }, "GitConfig": { "description": "GitConfig is a configuration for git operations.", "id": "GitConfig", @@ -4315,12 +4295,8 @@ "id": "HttpConfig", "properties": { "proxySecretVersionName": { - "description": "SecretVersion resource of the HTTP proxy URL. The proxy URL should be in format protocol://@]proxyhost[:port].", + "description": "SecretVersion resource of the HTTP proxy URL. The Service Account should have accessor permissions on this secret. The proxy URL should be in format protocol://@]proxyhost[:port].", "type": "string" - }, - "proxySslCaInfo": { - "$ref": "GCSLocation", - "description": "Optional. Cloud Storage object storing the certificate to use with the HTTP proxy." } }, "type": "object" diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index c55960959d..519bac936c 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -2057,35 +2057,6 @@ func (s *FileHashes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// GCSLocation: Represents a storage location in Cloud Storage -type GCSLocation struct { - // Bucket: Cloud Storage bucket. See - // https://cloud.google.com/storage/docs/naming#requirements - Bucket string `json:"bucket,omitempty"` - // Generation: Cloud Storage generation for the object. If the generation is - // omitted, the latest generation will be used. - Generation int64 `json:"generation,omitempty,string"` - // Object: Cloud Storage object. See - // https://cloud.google.com/storage/docs/naming#objectnames - Object string `json:"object,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *GCSLocation) MarshalJSON() ([]byte, error) { - type NoMethod GCSLocation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // GitConfig: GitConfig is a configuration for git operations. type GitConfig struct { // Http: Configuration for HTTP related git operations. @@ -2690,11 +2661,9 @@ func (s *HttpBody) MarshalJSON() ([]byte, error) { // HttpConfig: HttpConfig is a configuration for HTTP related git operations. type HttpConfig struct { // ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The - // proxy URL should be in format protocol://@]proxyhost[:port]. + // Service Account should have accessor permissions on this secret. The proxy + // URL should be in format protocol://@]proxyhost[:port]. ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"` - // ProxySslCaInfo: Optional. Cloud Storage object storing the certificate to - // use with the HTTP proxy. - ProxySslCaInfo *GCSLocation `json:"proxySslCaInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 179529f7e0..0a989a210d 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -307,7 +307,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query", "type": "string" }, @@ -463,7 +463,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query", "type": "string" }, @@ -568,7 +568,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a column is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a column is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", "location": "query", "type": "string" }, @@ -847,7 +847,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query", "type": "string" }, @@ -998,7 +998,7 @@ ], "parameters": { "orderBy": { - "description": "Comma separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status.", + "description": "Comma-separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status.", "location": "query", "type": "string" }, @@ -1081,7 +1081,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`", "location": "query", "type": "string" }, @@ -1191,12 +1191,12 @@ ], "parameters": { "filter": { - "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `file_store_path` - The path like \"gs://bucket\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` . * 'file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", + "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `file_store_path` - The path like \"gs://bucket\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", "location": "query", "type": "string" }, "orderBy": { - "description": "Optional. Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `name` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `sensitivity_level`: How sensitive the data in a table is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds. - `last_modified`: The last time the resource was modified. - `resource_visibility`: Visibility restriction for this resource. - `name`: The name of the profile. - `create_time`: The time the file store was first created.", + "description": "Optional. Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `name` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `sensitivity_level`: How sensitive the data in a table is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds. - `last_modified`: The last time the resource was modified. - `resource_visibility`: Visibility restriction for this resource. - `name`: The name of the profile. - `create_time`: The time the file store was first created.", "location": "query", "type": "string" }, @@ -1324,7 +1324,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query", "type": "string" }, @@ -1485,7 +1485,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.", + "description": "Comma-separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.", "location": "query", "type": "string" }, @@ -1603,7 +1603,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id` * `sensitivity_level desc` Supported fields are: - `project_id`: Google Cloud project ID - `sensitivity_level`: How sensitive the data in a project is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id` * `sensitivity_level desc` Supported fields are: - `project_id`: Google Cloud project ID - `sensitivity_level`: How sensitive the data in a project is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", "location": "query", "type": "string" }, @@ -1731,7 +1731,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", "location": "query", "type": "string" }, @@ -1859,7 +1859,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a table is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds. - `last_modified`: The last time the resource was modified. - `resource_visibility`: Visibility restriction for this resource. - `row_count`: Number of rows in this resource.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a table is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds. - `last_modified`: The last time the resource was modified. - `resource_visibility`: Visibility restriction for this resource. - `row_count`: Number of rows in this resource.", "location": "query", "type": "string" }, @@ -1989,7 +1989,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", "location": "query", "type": "string" }, @@ -2237,7 +2237,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query", "type": "string" }, @@ -2426,7 +2426,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`", "location": "query", "type": "string" }, @@ -2601,7 +2601,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query", "type": "string" }, @@ -2790,7 +2790,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.", + "description": "Comma-separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.", "location": "query", "type": "string" }, @@ -2910,7 +2910,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a column is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a column is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", "location": "query", "type": "string" }, @@ -3318,7 +3318,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query", "type": "string" }, @@ -3469,7 +3469,7 @@ ], "parameters": { "orderBy": { - "description": "Comma separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status.", + "description": "Comma-separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status.", "location": "query", "type": "string" }, @@ -3714,7 +3714,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`", "location": "query", "type": "string" }, @@ -3824,12 +3824,12 @@ ], "parameters": { "filter": { - "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `file_store_path` - The path like \"gs://bucket\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` . * 'file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", + "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `file_store_path` - The path like \"gs://bucket\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", "location": "query", "type": "string" }, "orderBy": { - "description": "Optional. Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `name` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `sensitivity_level`: How sensitive the data in a table is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds. - `last_modified`: The last time the resource was modified. - `resource_visibility`: Visibility restriction for this resource. - `name`: The name of the profile. - `create_time`: The time the file store was first created.", + "description": "Optional. Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `name` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `sensitivity_level`: How sensitive the data in a table is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds. - `last_modified`: The last time the resource was modified. - `resource_visibility`: Visibility restriction for this resource. - `name`: The name of the profile. - `create_time`: The time the file store was first created.", "location": "query", "type": "string" }, @@ -3989,7 +3989,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.", "location": "query", "type": "string" }, @@ -4206,7 +4206,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.", + "description": "Comma-separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.", "location": "query", "type": "string" }, @@ -4324,7 +4324,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id` * `sensitivity_level desc` Supported fields are: - `project_id`: Google Cloud project ID - `sensitivity_level`: How sensitive the data in a project is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id` * `sensitivity_level desc` Supported fields are: - `project_id`: Google Cloud project ID - `sensitivity_level`: How sensitive the data in a project is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds.", "location": "query", "type": "string" }, @@ -4452,7 +4452,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", "location": "query", "type": "string" }, @@ -4580,7 +4580,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a table is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds. - `last_modified`: The last time the resource was modified. - `resource_visibility`: Visibility restriction for this resource. - `row_count`: Number of rows in this resource.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery table. - `sensitivity_level`: How sensitive the data in a table is, at most. - `data_risk_level`: How much risk is associated with this data. - `profile_last_generated`: When the profile was last updated in epoch seconds. - `last_modified`: The last time the resource was modified. - `resource_visibility`: Visibility restriction for this resource. - `row_count`: Number of rows in this resource.", "location": "query", "type": "string" }, @@ -4710,7 +4710,7 @@ "type": "string" }, "orderBy": { - "description": "Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", + "description": "Comma-separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.", "location": "query", "type": "string" }, @@ -4774,7 +4774,7 @@ } } }, - "revision": "20240624", + "revision": "20240702", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -4847,6 +4847,12 @@ "properties": {}, "type": "object" }, + "GooglePrivacyDlpV2AllOtherResources": { + "description": "Match discovery resources not covered by any other filter.", + "id": "GooglePrivacyDlpV2AllOtherResources", + "properties": {}, + "type": "object" + }, "GooglePrivacyDlpV2AllText": { "description": "Apply to all text.", "id": "GooglePrivacyDlpV2AllText", @@ -5419,6 +5425,29 @@ }, "type": "object" }, + "GooglePrivacyDlpV2CloudStorageDiscoveryTarget": { + "description": "Target used to match against for discovery with Cloud Storage buckets.", + "id": "GooglePrivacyDlpV2CloudStorageDiscoveryTarget", + "properties": { + "conditions": { + "$ref": "GooglePrivacyDlpV2DiscoveryFileStoreConditions", + "description": "Optional. In addition to matching the filter, these conditions must be true before a profile is generated." + }, + "disabled": { + "$ref": "GooglePrivacyDlpV2Disabled", + "description": "Optional. Disable profiling for buckets that match this filter." + }, + "filter": { + "$ref": "GooglePrivacyDlpV2DiscoveryCloudStorageFilter", + "description": "Required. The buckets the generation_cadence applies to. The first target with a matching filter will be the one to apply to a bucket." + }, + "generationCadence": { + "$ref": "GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence", + "description": "Optional. How often and when to update profiles. New buckets that match both the filter and conditions are scanned as quickly as possible depending on system capacity." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2CloudStorageFileSet": { "description": "Message representing a set of files in Cloud Storage.", "id": "GooglePrivacyDlpV2CloudStorageFileSet", @@ -5514,6 +5543,21 @@ }, "type": "object" }, + "GooglePrivacyDlpV2CloudStorageRegex": { + "description": "A pattern to match against one or more file stores. At least one pattern must be specified. Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found under the google/re2 repository on GitHub.", + "id": "GooglePrivacyDlpV2CloudStorageRegex", + "properties": { + "bucketNameRegex": { + "description": "Optional. Regex to test the bucket name against. If empty, all buckets match. Example: \"marketing2021\" or \"(marketing)\\d{4}\" will both match the bucket gs://marketing2021", + "type": "string" + }, + "projectIdRegex": { + "description": "Optional. For organizations, if unset, will match all projects.", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2CloudStorageRegexFileSet": { "description": "Message representing a set of files in a Cloud Storage bucket. Regular expressions are used to allow fine-grained control over which files in the bucket to include. Included files are those that match at least one item in `include_regex` and do not match any items in `exclude_regex`. Note that a file that matches items from both lists will _not_ be included. For a match to occur, the entire file path (i.e., everything in the url after the bucket name) must match the regular expression. For example, given the input `{bucket_name: \"mybucket\", include_regex: [\"directory1/.*\"], exclude_regex: [\"directory1/excluded.*\"]}`: * `gs://mybucket/directory1/myfile` will be included * `gs://mybucket/directory1/directory2/myfile` will be included (`.*` matches across `/`) * `gs://mybucket/directory0/directory1/myfile` will _not_ be included (the full path doesn't match any items in `include_regex`) * `gs://mybucket/directory1/excludedfile` will _not_ be included (the path matches an item in `exclude_regex`) If `include_regex` is left empty, it will match all files by default (this is equivalent to setting `include_regex: [\".*\"]`). Some other common use cases: * `{bucket_name: \"mybucket\", exclude_regex: [\".*\\.pdf\"]}` will include all files in `mybucket` except for .pdf files * `{bucket_name: \"mybucket\", include_regex: [\"directory/[^/]+\"]}` will include all files directly under `gs://mybucket/directory/`, without matching across `/`", "id": "GooglePrivacyDlpV2CloudStorageRegexFileSet", @@ -5539,6 +5583,21 @@ }, "type": "object" }, + "GooglePrivacyDlpV2CloudStorageResourceReference": { + "description": "Identifies a single Cloud Storage bucket.", + "id": "GooglePrivacyDlpV2CloudStorageResourceReference", + "properties": { + "bucketName": { + "description": "Required. The bucket to scan.", + "type": "string" + }, + "projectId": { + "description": "Required. If within a project-level config, then this must match the config's project id.", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2Color": { "description": "Represents a color in the RGB color space.", "id": "GooglePrivacyDlpV2Color", @@ -6573,11 +6632,11 @@ "id": "GooglePrivacyDlpV2Deidentify", "properties": { "cloudStorageOutput": { - "description": "Required. User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for cloud storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket", + "description": "Required. User settable Cloud Storage bucket and folders to store de-identified files. This field must be set for Cloud Storage deidentification. The output Cloud Storage bucket must be different from the input bucket. De-identified files will overwrite files in the output path. Form of: gs://bucket/folder/ or gs://bucket", "type": "string" }, "fileTypesToTransform": { - "description": "List of user-specified file type groups to transform. If specified, only the files with these filetypes will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV.", + "description": "List of user-specified file type groups to transform. If specified, only the files with these file types will be transformed. If empty, all supported files will be transformed. Supported types may be automatically added over time. If a file type is set in this field that isn't supported by the Deidentify action then the job will fail and will not be successfully created/started. Currently the only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.", "items": { "enum": [ "FILE_TYPE_UNSPECIFIED", @@ -7028,6 +7087,107 @@ }, "type": "object" }, + "GooglePrivacyDlpV2DiscoveryCloudStorageConditions": { + "description": "Requirements that must be true before a Cloud Storage bucket or object is scanned in discovery for the first time. There is an AND relationship between the top-level attributes.", + "id": "GooglePrivacyDlpV2DiscoveryCloudStorageConditions", + "properties": { + "includedBucketAttributes": { + "description": "Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.", + "items": { + "enum": [ + "CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED", + "ALL_SUPPORTED_BUCKETS", + "AUTOCLASS_DISABLED", + "AUTOCLASS_ENABLED" + ], + "enumDescriptions": [ + "Unused.", + "Scan buckets regardless of the attribute.", + "Buckets with autoclass disabled (https://cloud.google.com/storage/docs/autoclass). Only one of AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set.", + "Buckets with autoclass enabled (https://cloud.google.com/storage/docs/autoclass). Only one of AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning Autoclass-enabled buckets can affect object storage classes." + ], + "type": "string" + }, + "type": "array" + }, + "includedObjectAttributes": { + "description": "Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.", + "items": { + "enum": [ + "CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED", + "ALL_SUPPORTED_OBJECTS", + "STANDARD", + "NEARLINE", + "COLDLINE", + "ARCHIVE", + "REGIONAL", + "MULTI_REGIONAL", + "DURABLE_REDUCED_AVAILABILITY" + ], + "enumDescriptions": [ + "Unused.", + "Scan objects regardless of the attribute.", + "Scan objects with the standard storage class.", + "Scan objects with the nearline storage class. This will incur retrieval fees.", + "Scan objects with the coldline storage class. This will incur retrieval fees.", + "Scan objects with the archive storage class. This will incur retrieval fees.", + "Scan objects with the regional storage class.", + "Scan objects with the multi-regional storage class.", + "Scan objects with the dual-regional storage class. This will incur retrieval fees." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryCloudStorageFilter": { + "description": "Determines which buckets will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID and bucket name.", + "id": "GooglePrivacyDlpV2DiscoveryCloudStorageFilter", + "properties": { + "cloudStorageResourceReference": { + "$ref": "GooglePrivacyDlpV2CloudStorageResourceReference", + "description": "Optional. The bucket to scan. Targets including this can only include one target (the target with this bucket). This enables profiling the contents of a single bucket, while the other options allow for easy profiling of many bucets within a project or an organization." + }, + "collection": { + "$ref": "GooglePrivacyDlpV2FileStoreCollection", + "description": "Optional. A specific set of buckets for this filter to apply to." + }, + "others": { + "$ref": "GooglePrivacyDlpV2AllOtherResources", + "description": "Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence": { + "description": "How often existing buckets should have their profiles refreshed. New buckets are scanned as quickly as possible depending on system capacity.", + "id": "GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence", + "properties": { + "inspectTemplateModifiedCadence": { + "$ref": "GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence", + "description": "Optional. Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update." + }, + "refreshFrequency": { + "description": "Optional. Data changes in Cloud Storage can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying buckets have changed. Defaults to never.", + "enum": [ + "UPDATE_FREQUENCY_UNSPECIFIED", + "UPDATE_FREQUENCY_NEVER", + "UPDATE_FREQUENCY_DAILY", + "UPDATE_FREQUENCY_MONTHLY" + ], + "enumDescriptions": [ + "Unspecified.", + "After the data profile is created, it will never be updated.", + "The data profile can be updated up to once every 24 hours.", + "The data profile can be updated up to once every 30 days. Default." + ], + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2DiscoveryConfig": { "description": "Configuration for discovery to scan resources for profile generation. Only one discovery configuration may exist per organization, folder, or project. The generated data profiles are retained according to the [data retention policy] (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).", "id": "GooglePrivacyDlpV2DiscoveryConfig", @@ -7108,10 +7268,35 @@ }, "type": "object" }, + "GooglePrivacyDlpV2DiscoveryFileStoreConditions": { + "description": "Requirements that must be true before a file store is scanned in discovery for the first time. There is an AND relationship between the top-level attributes.", + "id": "GooglePrivacyDlpV2DiscoveryFileStoreConditions", + "properties": { + "cloudStorageConditions": { + "$ref": "GooglePrivacyDlpV2DiscoveryCloudStorageConditions", + "description": "Optional. Cloud Storage conditions." + }, + "createdAfter": { + "description": "Optional. File store must have been created after this date. Used to avoid backfilling.", + "format": "google-datetime", + "type": "string" + }, + "minAge": { + "description": "Optional. Minimum age a file store must have. If set, the value must be 1 hour or greater.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2DiscoveryGenerationCadence": { "description": "What must take place for a profile to be updated and how frequently it should occur. New tables are scanned as quickly as possible depending on system capacity.", "id": "GooglePrivacyDlpV2DiscoveryGenerationCadence", "properties": { + "inspectTemplateModifiedCadence": { + "$ref": "GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence", + "description": "Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update." + }, "schemaModifiedCadence": { "$ref": "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence", "description": "Governs when to update data profiles when a schema is modified." @@ -7123,6 +7308,29 @@ }, "type": "object" }, + "GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence": { + "description": "The cadence at which to update data profiles when the inspection rules defined by the `InspectTemplate` change.", + "id": "GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence", + "properties": { + "frequency": { + "description": "How frequently data profiles can be updated when the template is modified. Defaults to never.", + "enum": [ + "UPDATE_FREQUENCY_UNSPECIFIED", + "UPDATE_FREQUENCY_NEVER", + "UPDATE_FREQUENCY_DAILY", + "UPDATE_FREQUENCY_MONTHLY" + ], + "enumDescriptions": [ + "Unspecified.", + "After the data profile is created, it will never be updated.", + "The data profile can be updated up to once every 24 hours.", + "The data profile can be updated up to once every 30 days. Default." + ], + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence": { "description": "The cadence at which to update data profiles when a schema is modified.", "id": "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence", @@ -7230,6 +7438,10 @@ "$ref": "GooglePrivacyDlpV2CloudSqlDiscoveryTarget", "description": "Cloud SQL target for Discovery. The first target to match a table will be the one applied." }, + "cloudStorageTarget": { + "$ref": "GooglePrivacyDlpV2CloudStorageDiscoveryTarget", + "description": "Cloud Storage target for Discovery. The first target to match a table will be the one applied." + }, "secretsTarget": { "$ref": "GooglePrivacyDlpV2SecretsDiscoveryTarget", "description": "Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed." @@ -7534,7 +7746,7 @@ "description": "The data risk level of this cluster. RISK_LOW if nothing has been scanned." }, "errors": { - "description": "A list of Errors detected while scanning this cluster. The list is truncated to 10 per cluster.", + "description": "A list of errors detected while scanning this cluster. The list is truncated to 10 per cluster.", "items": { "$ref": "GooglePrivacyDlpV2Error" }, @@ -7637,8 +7849,19 @@ }, "type": "object" }, + "GooglePrivacyDlpV2FileStoreCollection": { + "description": "Match file stores (e.g. buckets) using regex filters.", + "id": "GooglePrivacyDlpV2FileStoreCollection", + "properties": { + "includeRegexes": { + "$ref": "GooglePrivacyDlpV2FileStoreRegexes", + "description": "Optional. A collection of regular expressions to match a file store against." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2FileStoreDataProfile": { - "description": "The profile for a file store. * Google Cloud Storage: maps 1:1 with a bucket.", + "description": "The profile for a file store. * Cloud Storage: maps 1:1 with a bucket.", "id": "GooglePrivacyDlpV2FileStoreDataProfile", "properties": { "configSnapshot": { @@ -7659,7 +7882,7 @@ "description": "The resource type that was profiled." }, "dataStorageLocations": { - "description": "For resources that have multiple storage locations, these are those regions. For Google Cloud Storage this is the list of regions chosen for dual-region storage. `file_store_location` will normally be the corresponding multi-region for the list of individual locations. The first region is always picked as the processing and storage location for the data profile.", + "description": "For resources that have multiple storage locations, these are those regions. For Cloud Storage this is the list of regions chosen for dual-region storage. `file_store_location` will normally be the corresponding multi-region for the list of individual locations. The first region is always picked as the processing and storage location for the data profile.", "items": { "type": "string" }, @@ -7684,11 +7907,11 @@ "type": "boolean" }, "fileStoreLocation": { - "description": "The location of the file store. * Google Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations", + "description": "The location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations", "type": "string" }, "fileStorePath": { - "description": "The file store path. * Google Cloud Storage: `gs://{bucket}`", + "description": "The file store path. * Cloud Storage: `gs://{bucket}`", "type": "string" }, "fullResource": { @@ -7718,7 +7941,7 @@ "description": "Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated." }, "projectDataProfile": { - "description": "The resource name to the project data profile for this file store.", + "description": "The resource name of the project data profile for this file store.", "type": "string" }, "projectId": { @@ -7729,7 +7952,7 @@ "additionalProperties": { "$ref": "GooglePrivacyDlpV2Value" }, - "description": "Attributes of the resource being profiled. Currently used attributes: - customer_managed_encryption: boolean true: the resource is encrypted with a customer-managed key. false: the resource is encrypted with a provider-managed key.", + "description": "Attributes of the resource being profiled. Currently used attributes: * customer_managed_encryption: boolean - true: the resource is encrypted with a customer-managed key. - false: the resource is encrypted with a provider-managed key.", "type": "object" }, "resourceLabels": { @@ -7787,6 +8010,31 @@ }, "type": "object" }, + "GooglePrivacyDlpV2FileStoreRegex": { + "description": "A pattern to match against one or more file stores.", + "id": "GooglePrivacyDlpV2FileStoreRegex", + "properties": { + "cloudStorageRegex": { + "$ref": "GooglePrivacyDlpV2CloudStorageRegex", + "description": "Optional. Regex for Cloud Storage." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2FileStoreRegexes": { + "description": "A collection of regular expressions to determine what file store to match against.", + "id": "GooglePrivacyDlpV2FileStoreRegexes", + "properties": { + "patterns": { + "description": "Required. The group of regular expression patterns to match against one or more file stores. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB.", + "items": { + "$ref": "GooglePrivacyDlpV2FileStoreRegex" + }, + "type": "array" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2Finding": { "description": "Represents a piece of potentially sensitive content.", "id": "GooglePrivacyDlpV2Finding", @@ -10830,7 +11078,7 @@ "description": "Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated." }, "projectDataProfile": { - "description": "The resource name to the project data profile for this table.", + "description": "The resource name of the project data profile for this table.", "type": "string" }, "resourceLabels": { diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 3aa0745a4c..e6aa446e05 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -727,6 +727,11 @@ type GooglePrivacyDlpV2AllOtherBigQueryTables struct { type GooglePrivacyDlpV2AllOtherDatabaseResources struct { } +// GooglePrivacyDlpV2AllOtherResources: Match discovery resources not covered +// by any other filter. +type GooglePrivacyDlpV2AllOtherResources struct { +} + // GooglePrivacyDlpV2AllText: Apply to all text. type GooglePrivacyDlpV2AllText struct { } @@ -1485,6 +1490,39 @@ func (s *GooglePrivacyDlpV2CloudSqlProperties) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2CloudStorageDiscoveryTarget: Target used to match against +// for discovery with Cloud Storage buckets. +type GooglePrivacyDlpV2CloudStorageDiscoveryTarget struct { + // Conditions: Optional. In addition to matching the filter, these conditions + // must be true before a profile is generated. + Conditions *GooglePrivacyDlpV2DiscoveryFileStoreConditions `json:"conditions,omitempty"` + // Disabled: Optional. Disable profiling for buckets that match this filter. + Disabled *GooglePrivacyDlpV2Disabled `json:"disabled,omitempty"` + // Filter: Required. The buckets the generation_cadence applies to. The first + // target with a matching filter will be the one to apply to a bucket. + Filter *GooglePrivacyDlpV2DiscoveryCloudStorageFilter `json:"filter,omitempty"` + // GenerationCadence: Optional. How often and when to update profiles. New + // buckets that match both the filter and conditions are scanned as quickly as + // possible depending on system capacity. + GenerationCadence *GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence `json:"generationCadence,omitempty"` + // ForceSendFields is a list of field names (e.g. "Conditions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Conditions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2CloudStorageDiscoveryTarget) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2CloudStorageDiscoveryTarget + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2CloudStorageFileSet: Message representing a set of files // in Cloud Storage. type GooglePrivacyDlpV2CloudStorageFileSet struct { @@ -1628,6 +1666,36 @@ func (s *GooglePrivacyDlpV2CloudStoragePath) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2CloudStorageRegex: A pattern to match against one or more +// file stores. At least one pattern must be specified. Regular expressions use +// RE2 syntax (https://github.com/google/re2/wiki/Syntax); a guide can be found +// under the google/re2 repository on GitHub. +type GooglePrivacyDlpV2CloudStorageRegex struct { + // BucketNameRegex: Optional. Regex to test the bucket name against. If empty, + // all buckets match. Example: "marketing2021" or "(marketing)\d{4}" will both + // match the bucket gs://marketing2021 + BucketNameRegex string `json:"bucketNameRegex,omitempty"` + // ProjectIdRegex: Optional. For organizations, if unset, will match all + // projects. + ProjectIdRegex string `json:"projectIdRegex,omitempty"` + // ForceSendFields is a list of field names (e.g. "BucketNameRegex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BucketNameRegex") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2CloudStorageRegex) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2CloudStorageRegex + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2CloudStorageRegexFileSet: Message representing a set of // files in a Cloud Storage bucket. Regular expressions are used to allow // fine-grained control over which files in the bucket to include. Included @@ -1684,6 +1752,32 @@ func (s *GooglePrivacyDlpV2CloudStorageRegexFileSet) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2CloudStorageResourceReference: Identifies a single Cloud +// Storage bucket. +type GooglePrivacyDlpV2CloudStorageResourceReference struct { + // BucketName: Required. The bucket to scan. + BucketName string `json:"bucketName,omitempty"` + // ProjectId: Required. If within a project-level config, then this must match + // the config's project id. + ProjectId string `json:"projectId,omitempty"` + // ForceSendFields is a list of field names (e.g. "BucketName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BucketName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2CloudStorageResourceReference) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2CloudStorageResourceReference + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2Color: Represents a color in the RGB color space. type GooglePrivacyDlpV2Color struct { // Blue: The amount of blue in the color as a value in the interval [0, 1]. @@ -3131,18 +3225,18 @@ func (s *GooglePrivacyDlpV2DateTime) MarshalJSON() ([]byte, error) { // project and dataset as the original table. Compatible with: Inspect type GooglePrivacyDlpV2Deidentify struct { // CloudStorageOutput: Required. User settable Cloud Storage bucket and folders - // to store de-identified files. This field must be set for cloud storage + // to store de-identified files. This field must be set for Cloud Storage // deidentification. The output Cloud Storage bucket must be different from the // input bucket. De-identified files will overwrite files in the output path. // Form of: gs://bucket/folder/ or gs://bucket CloudStorageOutput string `json:"cloudStorageOutput,omitempty"` // FileTypesToTransform: List of user-specified file type groups to transform. - // If specified, only the files with these filetypes will be transformed. If + // If specified, only the files with these file types will be transformed. If // empty, all supported files will be transformed. Supported types may be // automatically added over time. If a file type is set in this field that // isn't supported by the Deidentify action then the job will fail and will not - // be successfully created/started. Currently the only filetypes supported are: - // IMAGES, TEXT_FILES, CSV, TSV. + // be successfully created/started. Currently the only file types supported + // are: IMAGES, TEXT_FILES, CSV, TSV. // // Possible values: // "FILE_TYPE_UNSPECIFIED" - Includes all files. @@ -3843,6 +3937,140 @@ func (s *GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2DiscoveryCloudStorageConditions: Requirements that must be +// true before a Cloud Storage bucket or object is scanned in discovery for the +// first time. There is an AND relationship between the top-level attributes. +type GooglePrivacyDlpV2DiscoveryCloudStorageConditions struct { + // IncludedBucketAttributes: Required. Only objects with the specified + // attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset. + // + // Possible values: + // "CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED" - Unused. + // "ALL_SUPPORTED_BUCKETS" - Scan buckets regardless of the attribute. + // "AUTOCLASS_DISABLED" - Buckets with autoclass disabled + // (https://cloud.google.com/storage/docs/autoclass). Only one of + // AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. + // "AUTOCLASS_ENABLED" - Buckets with autoclass enabled + // (https://cloud.google.com/storage/docs/autoclass). Only one of + // AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning + // Autoclass-enabled buckets can affect object storage classes. + IncludedBucketAttributes []string `json:"includedBucketAttributes,omitempty"` + // IncludedObjectAttributes: Required. Only objects with the specified + // attributes will be scanned. If an object has one of the specified attributes + // but is inside an excluded bucket, it will not be scanned. Defaults to + // [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match + // the included_object_attributes. + // + // Possible values: + // "CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED" - Unused. + // "ALL_SUPPORTED_OBJECTS" - Scan objects regardless of the attribute. + // "STANDARD" - Scan objects with the standard storage class. + // "NEARLINE" - Scan objects with the nearline storage class. This will incur + // retrieval fees. + // "COLDLINE" - Scan objects with the coldline storage class. This will incur + // retrieval fees. + // "ARCHIVE" - Scan objects with the archive storage class. This will incur + // retrieval fees. + // "REGIONAL" - Scan objects with the regional storage class. + // "MULTI_REGIONAL" - Scan objects with the multi-regional storage class. + // "DURABLE_REDUCED_AVAILABILITY" - Scan objects with the dual-regional + // storage class. This will incur retrieval fees. + IncludedObjectAttributes []string `json:"includedObjectAttributes,omitempty"` + // ForceSendFields is a list of field names (e.g. "IncludedBucketAttributes") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IncludedBucketAttributes") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2DiscoveryCloudStorageConditions) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryCloudStorageConditions + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2DiscoveryCloudStorageFilter: Determines which buckets will +// have profiles generated within an organization or project. Includes the +// ability to filter by regular expression patterns on project ID and bucket +// name. +type GooglePrivacyDlpV2DiscoveryCloudStorageFilter struct { + // CloudStorageResourceReference: Optional. The bucket to scan. Targets + // including this can only include one target (the target with this bucket). + // This enables profiling the contents of a single bucket, while the other + // options allow for easy profiling of many bucets within a project or an + // organization. + CloudStorageResourceReference *GooglePrivacyDlpV2CloudStorageResourceReference `json:"cloudStorageResourceReference,omitempty"` + // Collection: Optional. A specific set of buckets for this filter to apply to. + Collection *GooglePrivacyDlpV2FileStoreCollection `json:"collection,omitempty"` + // Others: Optional. Catch-all. This should always be the last target in the + // list because anything above it will apply first. Should only appear once in + // a configuration. If none is specified, a default one will be added + // automatically. + Others *GooglePrivacyDlpV2AllOtherResources `json:"others,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "CloudStorageResourceReference") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudStorageResourceReference") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2DiscoveryCloudStorageFilter) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryCloudStorageFilter + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence: How often existing +// buckets should have their profiles refreshed. New buckets are scanned as +// quickly as possible depending on system capacity. +type GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence struct { + // InspectTemplateModifiedCadence: Optional. Governs when to update data + // profiles when the inspection rules defined by the `InspectTemplate` change. + // If not set, changing the template will not cause a data profile to update. + InspectTemplateModifiedCadence *GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence `json:"inspectTemplateModifiedCadence,omitempty"` + // RefreshFrequency: Optional. Data changes in Cloud Storage can't trigger + // reprofiling. If you set this field, profiles are refreshed at this frequency + // regardless of whether the underlying buckets have changed. Defaults to + // never. + // + // Possible values: + // "UPDATE_FREQUENCY_UNSPECIFIED" - Unspecified. + // "UPDATE_FREQUENCY_NEVER" - After the data profile is created, it will + // never be updated. + // "UPDATE_FREQUENCY_DAILY" - The data profile can be updated up to once + // every 24 hours. + // "UPDATE_FREQUENCY_MONTHLY" - The data profile can be updated up to once + // every 30 days. Default. + RefreshFrequency string `json:"refreshFrequency,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "InspectTemplateModifiedCadence") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InspectTemplateModifiedCadence") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2DiscoveryConfig: Configuration for discovery to scan // resources for profile generation. Only one discovery configuration may exist // per organization, folder, or project. The generated data profiles are @@ -3913,24 +4141,59 @@ func (s *GooglePrivacyDlpV2DiscoveryConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2DiscoveryFileStoreConditions: Requirements that must be +// true before a file store is scanned in discovery for the first time. There +// is an AND relationship between the top-level attributes. +type GooglePrivacyDlpV2DiscoveryFileStoreConditions struct { + // CloudStorageConditions: Optional. Cloud Storage conditions. + CloudStorageConditions *GooglePrivacyDlpV2DiscoveryCloudStorageConditions `json:"cloudStorageConditions,omitempty"` + // CreatedAfter: Optional. File store must have been created after this date. + // Used to avoid backfilling. + CreatedAfter string `json:"createdAfter,omitempty"` + // MinAge: Optional. Minimum age a file store must have. If set, the value must + // be 1 hour or greater. + MinAge string `json:"minAge,omitempty"` + // ForceSendFields is a list of field names (e.g. "CloudStorageConditions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudStorageConditions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2DiscoveryFileStoreConditions) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryFileStoreConditions + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2DiscoveryGenerationCadence: What must take place for a // profile to be updated and how frequently it should occur. New tables are // scanned as quickly as possible depending on system capacity. type GooglePrivacyDlpV2DiscoveryGenerationCadence struct { + // InspectTemplateModifiedCadence: Governs when to update data profiles when + // the inspection rules defined by the `InspectTemplate` change. If not set, + // changing the template will not cause a data profile to update. + InspectTemplateModifiedCadence *GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence `json:"inspectTemplateModifiedCadence,omitempty"` // SchemaModifiedCadence: Governs when to update data profiles when a schema is // modified. SchemaModifiedCadence *GooglePrivacyDlpV2DiscoverySchemaModifiedCadence `json:"schemaModifiedCadence,omitempty"` // TableModifiedCadence: Governs when to update data profiles when a table is // modified. TableModifiedCadence *GooglePrivacyDlpV2DiscoveryTableModifiedCadence `json:"tableModifiedCadence,omitempty"` - // ForceSendFields is a list of field names (e.g. "SchemaModifiedCadence") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // ForceSendFields is a list of field names (e.g. + // "InspectTemplateModifiedCadence") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SchemaModifiedCadence") to - // include in API requests with the JSON null value. By default, fields with + // NullFields is a list of field names (e.g. "InspectTemplateModifiedCadence") + // to include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` @@ -3941,6 +4204,40 @@ func (s *GooglePrivacyDlpV2DiscoveryGenerationCadence) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence: The cadence at +// which to update data profiles when the inspection rules defined by the +// `InspectTemplate` change. +type GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence struct { + // Frequency: How frequently data profiles can be updated when the template is + // modified. Defaults to never. + // + // Possible values: + // "UPDATE_FREQUENCY_UNSPECIFIED" - Unspecified. + // "UPDATE_FREQUENCY_NEVER" - After the data profile is created, it will + // never be updated. + // "UPDATE_FREQUENCY_DAILY" - The data profile can be updated up to once + // every 24 hours. + // "UPDATE_FREQUENCY_MONTHLY" - The data profile can be updated up to once + // every 30 days. Default. + Frequency string `json:"frequency,omitempty"` + // ForceSendFields is a list of field names (e.g. "Frequency") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Frequency") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2DiscoverySchemaModifiedCadence: The cadence at which to // update data profiles when a schema is modified. type GooglePrivacyDlpV2DiscoverySchemaModifiedCadence struct { @@ -4062,6 +4359,9 @@ type GooglePrivacyDlpV2DiscoveryTarget struct { // CloudSqlTarget: Cloud SQL target for Discovery. The first target to match a // table will be the one applied. CloudSqlTarget *GooglePrivacyDlpV2CloudSqlDiscoveryTarget `json:"cloudSqlTarget,omitempty"` + // CloudStorageTarget: Cloud Storage target for Discovery. The first target to + // match a table will be the one applied. + CloudStorageTarget *GooglePrivacyDlpV2CloudStorageDiscoveryTarget `json:"cloudStorageTarget,omitempty"` // SecretsTarget: Discovery target that looks for credentials and secrets // stored in cloud resource metadata and reports them as vulnerabilities to // Security Command Center. Only one target of this type is allowed. @@ -4469,7 +4769,7 @@ type GooglePrivacyDlpV2FileClusterSummary struct { // DataRiskLevel: The data risk level of this cluster. RISK_LOW if nothing has // been scanned. DataRiskLevel *GooglePrivacyDlpV2DataRiskLevel `json:"dataRiskLevel,omitempty"` - // Errors: A list of Errors detected while scanning this cluster. The list is + // Errors: A list of errors detected while scanning this cluster. The list is // truncated to 10 per cluster. Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"` // FileClusterType: The file cluster type. @@ -4596,8 +4896,32 @@ func (s *GooglePrivacyDlpV2FileSet) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2FileStoreCollection: Match file stores (e.g. buckets) +// using regex filters. +type GooglePrivacyDlpV2FileStoreCollection struct { + // IncludeRegexes: Optional. A collection of regular expressions to match a + // file store against. + IncludeRegexes *GooglePrivacyDlpV2FileStoreRegexes `json:"includeRegexes,omitempty"` + // ForceSendFields is a list of field names (e.g. "IncludeRegexes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IncludeRegexes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2FileStoreCollection) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2FileStoreCollection + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2FileStoreDataProfile: The profile for a file store. * -// Google Cloud Storage: maps 1:1 with a bucket. +// Cloud Storage: maps 1:1 with a bucket. type GooglePrivacyDlpV2FileStoreDataProfile struct { // ConfigSnapshot: The snapshot of the configurations used to generate the // profile. @@ -4609,11 +4933,11 @@ type GooglePrivacyDlpV2FileStoreDataProfile struct { // DataSourceType: The resource type that was profiled. DataSourceType *GooglePrivacyDlpV2DataSourceType `json:"dataSourceType,omitempty"` // DataStorageLocations: For resources that have multiple storage locations, - // these are those regions. For Google Cloud Storage this is the list of - // regions chosen for dual-region storage. `file_store_location` will normally - // be the corresponding multi-region for the list of individual locations. The - // first region is always picked as the processing and storage location for the - // data profile. + // these are those regions. For Cloud Storage this is the list of regions + // chosen for dual-region storage. `file_store_location` will normally be the + // corresponding multi-region for the list of individual locations. The first + // region is always picked as the processing and storage location for the data + // profile. DataStorageLocations []string `json:"dataStorageLocations,omitempty"` // FileClusterSummaries: FileClusterSummary per each cluster. FileClusterSummaries []*GooglePrivacyDlpV2FileClusterSummary `json:"fileClusterSummaries,omitempty"` @@ -4621,10 +4945,10 @@ type GooglePrivacyDlpV2FileStoreDataProfile struct { FileStoreInfoTypeSummaries []*GooglePrivacyDlpV2FileStoreInfoTypeSummary `json:"fileStoreInfoTypeSummaries,omitempty"` // FileStoreIsEmpty: The file store does not have any files. FileStoreIsEmpty bool `json:"fileStoreIsEmpty,omitempty"` - // FileStoreLocation: The location of the file store. * Google Cloud Storage: + // FileStoreLocation: The location of the file store. * Cloud Storage: // https://cloud.google.com/storage/docs/locations#available-locations FileStoreLocation string `json:"fileStoreLocation,omitempty"` - // FileStorePath: The file store path. * Google Cloud Storage: `gs://{bucket}` + // FileStorePath: The file store path. * Cloud Storage: `gs://{bucket}` FileStorePath string `json:"fileStorePath,omitempty"` // FullResource: The resource name of the resource profiled. // https://cloud.google.com/apis/design/resource_names#full_resource_name @@ -4642,14 +4966,14 @@ type GooglePrivacyDlpV2FileStoreDataProfile struct { // ProfileStatus: Success or error status from the most recent profile // generation attempt. May be empty if the profile is still being generated. ProfileStatus *GooglePrivacyDlpV2ProfileStatus `json:"profileStatus,omitempty"` - // ProjectDataProfile: The resource name to the project data profile for this + // ProjectDataProfile: The resource name of the project data profile for this // file store. ProjectDataProfile string `json:"projectDataProfile,omitempty"` // ProjectId: The Google Cloud project ID that owns the resource. ProjectId string `json:"projectId,omitempty"` // ResourceAttributes: Attributes of the resource being profiled. Currently - // used attributes: - customer_managed_encryption: boolean true: the resource - // is encrypted with a customer-managed key. false: the resource is encrypted + // used attributes: * customer_managed_encryption: boolean - true: the resource + // is encrypted with a customer-managed key. - false: the resource is encrypted // with a provider-managed key. ResourceAttributes map[string]GooglePrivacyDlpV2Value `json:"resourceAttributes,omitempty"` // ResourceLabels: The labels applied to the resource at the time the profile @@ -4721,6 +5045,54 @@ func (s *GooglePrivacyDlpV2FileStoreInfoTypeSummary) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2FileStoreRegex: A pattern to match against one or more +// file stores. +type GooglePrivacyDlpV2FileStoreRegex struct { + // CloudStorageRegex: Optional. Regex for Cloud Storage. + CloudStorageRegex *GooglePrivacyDlpV2CloudStorageRegex `json:"cloudStorageRegex,omitempty"` + // ForceSendFields is a list of field names (e.g. "CloudStorageRegex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudStorageRegex") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2FileStoreRegex) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2FileStoreRegex + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2FileStoreRegexes: A collection of regular expressions to +// determine what file store to match against. +type GooglePrivacyDlpV2FileStoreRegexes struct { + // Patterns: Required. The group of regular expression patterns to match + // against one or more file stores. Maximum of 100 entries. The sum of all + // regular expression's length can't exceed 10 KiB. + Patterns []*GooglePrivacyDlpV2FileStoreRegex `json:"patterns,omitempty"` + // ForceSendFields is a list of field names (e.g. "Patterns") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Patterns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2FileStoreRegexes) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2FileStoreRegexes + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2Finding: Represents a piece of potentially sensitive // content. type GooglePrivacyDlpV2Finding struct { @@ -8864,7 +9236,7 @@ type GooglePrivacyDlpV2TableDataProfile struct { // ProfileStatus: Success or error status from the most recent profile // generation attempt. May be empty if the profile is still being generated. ProfileStatus *GooglePrivacyDlpV2ProfileStatus `json:"profileStatus,omitempty"` - // ProjectDataProfile: The resource name to the project data profile for this + // ProjectDataProfile: The resource name of the project data profile for this // table. ProjectDataProfile string `json:"projectDataProfile,omitempty"` // ResourceLabels: The labels applied to the resource at the time the profile @@ -10623,7 +10995,7 @@ func (c *OrganizationsDeidentifyTemplatesListCall) LocationId(locationId string) return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc,update_time, create_time @@ -11236,7 +11608,7 @@ func (c *OrganizationsInspectTemplatesListCall) LocationId(locationId string) *O return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc,update_time, create_time @@ -11633,7 +12005,7 @@ func (c *OrganizationsLocationsColumnDataProfilesListCall) Filter(filter string) return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Only one order field at a time is allowed. @@ -12710,7 +13082,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesListCall) LocationId(locationI return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc,update_time, create_time @@ -13291,7 +13663,7 @@ func (r *OrganizationsLocationsDiscoveryConfigsService) List(parentid string) *O return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // config fields to order by, followed by `asc` or `desc` postfix. This list is // case insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc,update_time, create_time @@ -13591,7 +13963,7 @@ func (c *OrganizationsLocationsDlpJobsListCall) LocationId(locationId string) *O return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc, end_time asc, create_time @@ -13980,7 +14352,7 @@ func (r *OrganizationsLocationsFileStoreDataProfilesService) List(parent string) // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * // The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND // status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * -// `project_id = 12345 AND resource_visibility = PUBLIC` . * 'file_store_path = +// `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = // "gs://mybucket" The length of this field should be no more than 500 // characters. func (c *OrganizationsLocationsFileStoreDataProfilesListCall) Filter(filter string) *OrganizationsLocationsFileStoreDataProfilesListCall { @@ -13988,7 +14360,7 @@ func (c *OrganizationsLocationsFileStoreDataProfilesListCall) Filter(filter stri return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Only one order field at a time is allowed. @@ -14500,7 +14872,7 @@ func (c *OrganizationsLocationsInspectTemplatesListCall) LocationId(locationId s return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc,update_time, create_time @@ -15123,7 +15495,7 @@ func (c *OrganizationsLocationsJobTriggersListCall) LocationId(locationId string return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // triggeredJob fields to order by, followed by `asc` or `desc` postfix. This // list is case insensitive. The default sorting order is ascending. Redundant // space characters are insignificant. Example: `name asc,update_time, @@ -15525,7 +15897,7 @@ func (c *OrganizationsLocationsProjectDataProfilesListCall) Filter(filter string return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Only one order field at a time is allowed. @@ -16029,7 +16401,7 @@ func (c *OrganizationsLocationsStoredInfoTypesListCall) LocationId(locationId st return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc, display_name, create_time @@ -16521,7 +16893,7 @@ func (c *OrganizationsLocationsTableDataProfilesListCall) Filter(filter string) return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Only one order field at a time is allowed. @@ -17029,7 +17401,7 @@ func (c *OrganizationsStoredInfoTypesListCall) LocationId(locationId string) *Or return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc, display_name, create_time @@ -17988,7 +18360,7 @@ func (c *ProjectsDeidentifyTemplatesListCall) LocationId(locationId string) *Pro return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc,update_time, create_time @@ -18730,7 +19102,7 @@ func (c *ProjectsDlpJobsListCall) LocationId(locationId string) *ProjectsDlpJobs return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc, end_time asc, create_time @@ -19364,7 +19736,7 @@ func (c *ProjectsInspectTemplatesListCall) LocationId(locationId string) *Projec return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc,update_time, create_time @@ -20091,7 +20463,7 @@ func (c *ProjectsJobTriggersListCall) LocationId(locationId string) *ProjectsJob return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // triggeredJob fields to order by, followed by `asc` or `desc` postfix. This // list is case insensitive. The default sorting order is ascending. Redundant // space characters are insignificant. Example: `name asc,update_time, @@ -20502,7 +20874,7 @@ func (c *ProjectsLocationsColumnDataProfilesListCall) Filter(filter string) *Pro return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Only one order field at a time is allowed. @@ -22074,7 +22446,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesListCall) LocationId(locationId str return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc,update_time, create_time @@ -22655,7 +23027,7 @@ func (r *ProjectsLocationsDiscoveryConfigsService) List(parentid string) *Projec return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // config fields to order by, followed by `asc` or `desc` postfix. This list is // case insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc,update_time, create_time @@ -23600,7 +23972,7 @@ func (c *ProjectsLocationsDlpJobsListCall) LocationId(locationId string) *Projec return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc, end_time asc, create_time @@ -23989,7 +24361,7 @@ func (r *ProjectsLocationsFileStoreDataProfilesService) List(parent string) *Pro // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * // The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND // status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * -// `project_id = 12345 AND resource_visibility = PUBLIC` . * 'file_store_path = +// `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = // "gs://mybucket" The length of this field should be no more than 500 // characters. func (c *ProjectsLocationsFileStoreDataProfilesListCall) Filter(filter string) *ProjectsLocationsFileStoreDataProfilesListCall { @@ -23997,7 +24369,7 @@ func (c *ProjectsLocationsFileStoreDataProfilesListCall) Filter(filter string) * return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Only one order field at a time is allowed. @@ -24625,7 +24997,7 @@ func (c *ProjectsLocationsInspectTemplatesListCall) LocationId(locationId string return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc,update_time, create_time @@ -25457,7 +25829,7 @@ func (c *ProjectsLocationsJobTriggersListCall) LocationId(locationId string) *Pr return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // triggeredJob fields to order by, followed by `asc` or `desc` postfix. This // list is case insensitive. The default sorting order is ascending. Redundant // space characters are insignificant. Example: `name asc,update_time, @@ -25859,7 +26231,7 @@ func (c *ProjectsLocationsProjectDataProfilesListCall) Filter(filter string) *Pr return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Only one order field at a time is allowed. @@ -26363,7 +26735,7 @@ func (c *ProjectsLocationsStoredInfoTypesListCall) LocationId(locationId string) return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc, display_name, create_time @@ -26855,7 +27227,7 @@ func (c *ProjectsLocationsTableDataProfilesListCall) Filter(filter string) *Proj return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Only one order field at a time is allowed. @@ -27363,7 +27735,7 @@ func (c *ProjectsStoredInfoTypesListCall) LocationId(locationId string) *Project return c } -// OrderBy sets the optional parameter "orderBy": Comma separated list of +// OrderBy sets the optional parameter "orderBy": Comma-separated list of // fields to order by, followed by `asc` or `desc` postfix. This list is case // insensitive. The default sorting order is ascending. Redundant space // characters are insignificant. Example: `name asc, display_name, create_time diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 97b99fc162..1f51062fd8 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20240617", + "revision": "20240702", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -394,21 +394,21 @@ "id": "GoogleCloudAiplatformV1beta1CountTokensRequest", "properties": { "contents": { - "description": "Required. Input content.", + "description": "Optional. Input content.", "items": { "$ref": "GoogleCloudAiplatformV1beta1Content" }, "type": "array" }, "instances": { - "description": "Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.", + "description": "Optional. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.", "items": { "type": "any" }, "type": "array" }, "model": { - "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "description": "Optional. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", "type": "string" } }, @@ -728,66 +728,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudAiplatformV1beta1GroundingAttribution": { - "description": "Grounding attribution.", - "id": "GoogleCloudAiplatformV1beta1GroundingAttribution", - "properties": { - "confidenceScore": { - "description": "Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1. 1 is the most confident.", - "format": "float", - "readOnly": true, - "type": "number" - }, - "retrievedContext": { - "$ref": "GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext", - "description": "Optional. Attribution from context retrieved by the retrieval tools." - }, - "segment": { - "$ref": "GoogleCloudAiplatformV1beta1Segment", - "description": "Output only. Segment of the content this attribution belongs to.", - "readOnly": true - }, - "web": { - "$ref": "GoogleCloudAiplatformV1beta1GroundingAttributionWeb", - "description": "Optional. Attribution from the web." - } - }, - "type": "object" - }, - "GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext": { - "description": "Attribution from context retrieved by the retrieval tools.", - "id": "GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext", - "properties": { - "title": { - "description": "Output only. Title of the attribution.", - "readOnly": true, - "type": "string" - }, - "uri": { - "description": "Output only. URI reference of the attribution.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudAiplatformV1beta1GroundingAttributionWeb": { - "description": "Attribution from the web.", - "id": "GoogleCloudAiplatformV1beta1GroundingAttributionWeb", - "properties": { - "title": { - "description": "Output only. Title of the attribution.", - "readOnly": true, - "type": "string" - }, - "uri": { - "description": "Output only. URI reference of the attribution.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1beta1GroundingChunk": { "description": "Grounding chunk.", "id": "GoogleCloudAiplatformV1beta1GroundingChunk", @@ -837,13 +777,6 @@ "description": "Metadata returned to client when grounding is enabled.", "id": "GoogleCloudAiplatformV1beta1GroundingMetadata", "properties": { - "groundingAttributions": { - "description": "Optional. List of grounding attributions.", - "items": { - "$ref": "GoogleCloudAiplatformV1beta1GroundingAttribution" - }, - "type": "array" - }, "groundingChunks": { "description": "List of supporting references retrieved from specified grounding source.", "items": { diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index dd684157f2..e0312a25bf 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -409,12 +409,12 @@ func (s *GoogleCloudAiplatformV1beta1Content) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1beta1CountTokensRequest: Request message for // PredictionService.CountTokens. type GoogleCloudAiplatformV1beta1CountTokensRequest struct { - // Contents: Required. Input content. + // Contents: Optional. Input content. Contents []*GoogleCloudAiplatformV1beta1Content `json:"contents,omitempty"` - // Instances: Required. The instances that are the input to token counting + // Instances: Optional. The instances that are the input to token counting // call. Schema is identical to the prediction schema of the underlying model. Instances []interface{} `json:"instances,omitempty"` - // Model: Required. The name of the publisher model requested to serve the + // Model: Optional. The name of the publisher model requested to serve the // prediction. Format: // `projects/{project}/locations/{location}/publishers/*/models/*` Model string `json:"model,omitempty"` @@ -852,100 +852,6 @@ func (s *GoogleCloudAiplatformV1beta1GenerationConfig) UnmarshalJSON(data []byte type GoogleCloudAiplatformV1beta1GoogleSearchRetrieval struct { } -// GoogleCloudAiplatformV1beta1GroundingAttribution: Grounding attribution. -type GoogleCloudAiplatformV1beta1GroundingAttribution struct { - // ConfidenceScore: Optional. Output only. Confidence score of the attribution. - // Ranges from 0 to 1. 1 is the most confident. - ConfidenceScore float64 `json:"confidenceScore,omitempty"` - // RetrievedContext: Optional. Attribution from context retrieved by the - // retrieval tools. - RetrievedContext *GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext `json:"retrievedContext,omitempty"` - // Segment: Output only. Segment of the content this attribution belongs to. - Segment *GoogleCloudAiplatformV1beta1Segment `json:"segment,omitempty"` - // Web: Optional. Attribution from the web. - Web *GoogleCloudAiplatformV1beta1GroundingAttributionWeb `json:"web,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConfidenceScore") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1GroundingAttribution) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1GroundingAttribution - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudAiplatformV1beta1GroundingAttribution) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudAiplatformV1beta1GroundingAttribution - var s1 struct { - ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ConfidenceScore = float64(s1.ConfidenceScore) - return nil -} - -// GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext: -// Attribution from context retrieved by the retrieval tools. -type GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext struct { - // Title: Output only. Title of the attribution. - Title string `json:"title,omitempty"` - // Uri: Output only. URI reference of the attribution. - Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Title") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Title") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAiplatformV1beta1GroundingAttributionWeb: Attribution from the -// web. -type GoogleCloudAiplatformV1beta1GroundingAttributionWeb struct { - // Title: Output only. Title of the attribution. - Title string `json:"title,omitempty"` - // Uri: Output only. URI reference of the attribution. - Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Title") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Title") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1GroundingAttributionWeb) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1GroundingAttributionWeb - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1beta1GroundingChunk: Grounding chunk. type GoogleCloudAiplatformV1beta1GroundingChunk struct { // RetrievedContext: Grounding chunk from context retrieved by the retrieval @@ -1023,8 +929,6 @@ func (s *GoogleCloudAiplatformV1beta1GroundingChunkWeb) MarshalJSON() ([]byte, e // GoogleCloudAiplatformV1beta1GroundingMetadata: Metadata returned to client // when grounding is enabled. type GoogleCloudAiplatformV1beta1GroundingMetadata struct { - // GroundingAttributions: Optional. List of grounding attributions. - GroundingAttributions []*GoogleCloudAiplatformV1beta1GroundingAttribution `json:"groundingAttributions,omitempty"` // GroundingChunks: List of supporting references retrieved from specified // grounding source. GroundingChunks []*GoogleCloudAiplatformV1beta1GroundingChunk `json:"groundingChunks,omitempty"` @@ -1038,15 +942,15 @@ type GoogleCloudAiplatformV1beta1GroundingMetadata struct { // WebSearchQueries: Optional. Web search queries for the following-up web // search. WebSearchQueries []string `json:"webSearchQueries,omitempty"` - // ForceSendFields is a list of field names (e.g. "GroundingAttributions") to + // ForceSendFields is a list of field names (e.g. "GroundingChunks") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GroundingAttributions") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "GroundingChunks") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index b194616c18..97af807e53 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -1706,7 +1706,7 @@ } } }, - "revision": "20240617", + "revision": "20240626", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -3461,7 +3461,7 @@ "id": "GoogleFirestoreAdminV1RestoreDatabaseRequest", "properties": { "backup": { - "description": "Backup to restore from. Must be from the same project as the parent. Format is: `projects/{project_id}/locations/{location}/backups/{backup}`", + "description": "Backup to restore from. Must be from the same project as the parent. The restored database will be created in the same location as the source backup. Format is: `projects/{project_id}/locations/{location}/backups/{backup}`", "type": "string" }, "databaseId": { @@ -3469,7 +3469,7 @@ "type": "string" }, "kmsKeyName": { - "description": "Use Customer Managed Encryption Keys (CMEK) for encryption. Only keys in the same location as this database are allowed to be used for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations. The expected format is `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.", + "description": "Use Customer Managed Encryption Keys (CMEK) for encryption. Only keys in the same location as the restored database are allowed to be used for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations. The expected format is `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.", "type": "string" }, "useBackupEncryption": { diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 64883a8736..a8938c2e28 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -2588,7 +2588,9 @@ func (s *GoogleFirestoreAdminV1RestoreDatabaseMetadata) MarshalJSON() ([]byte, e // FirestoreAdmin.RestoreDatabase. type GoogleFirestoreAdminV1RestoreDatabaseRequest struct { // Backup: Backup to restore from. Must be from the same project as the parent. - // Format is: `projects/{project_id}/locations/{location}/backups/{backup}` + // The restored database will be created in the same location as the source + // backup. Format is: + // `projects/{project_id}/locations/{location}/backups/{backup}` Backup string `json:"backup,omitempty"` // DatabaseId: Required. The ID to use for the database, which will become the // final component of the database's resource name. This database id must not @@ -2599,9 +2601,9 @@ type GoogleFirestoreAdminV1RestoreDatabaseRequest struct { // valid. DatabaseId string `json:"databaseId,omitempty"` // KmsKeyName: Use Customer Managed Encryption Keys (CMEK) for encryption. Only - // keys in the same location as this database are allowed to be used for - // encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS - // multi-region us. For Firestore's eur3 multi-region, this corresponds to + // keys in the same location as the restored database are allowed to be used + // for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud + // KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to // Cloud KMS multi-region europe. See // https://cloud.google.com/kms/docs/locations. The expected format is // `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKey diff --git a/run/v2/run-api.json b/run/v2/run-api.json index 13723884cb..a6435980be 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -388,6 +388,31 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "exportProjectMetadata": { + "description": "Export generated customer metadata for a given project.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}:exportProjectMetadata", + "httpMethod": "GET", + "id": "run.projects.locations.exportProjectMetadata", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the project of which metadata should be exported. Format: `projects/{project_id_or_number}/locations/{location}` for Project in a given location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}:exportProjectMetadata", + "response": { + "$ref": "GoogleCloudRunV2Metadata" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1469,7 +1494,7 @@ } } }, - "revision": "20240614", + "revision": "20240628", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -2029,6 +2054,26 @@ "description": "Reference to an Execution. Use /Executions.GetExecution with the given name to get full execution including the latest status.", "id": "GoogleCloudRunV2ExecutionReference", "properties": { + "completionStatus": { + "description": "Status for the execution completion.", + "enum": [ + "COMPLETION_STATUS_UNSPECIFIED", + "EXECUTION_SUCCEEDED", + "EXECUTION_FAILED", + "EXECUTION_RUNNING", + "EXECUTION_PENDING", + "EXECUTION_CANCELLED" + ], + "enumDescriptions": [ + "The default value. This value is used if the state is omitted.", + "Job execution has succeeded.", + "Job execution has failed.", + "Job execution is running normally.", + "Waiting for backing resources to be provisioned.", + "Job execution has been cancelled by the user." + ], + "type": "string" + }, "completionTime": { "description": "Creation timestamp of the execution.", "format": "google-datetime", @@ -2039,6 +2084,11 @@ "format": "google-datetime", "type": "string" }, + "deleteTime": { + "description": "The deletion time of the execution. It is only populated as a response to a Delete request.", + "format": "google-datetime", + "type": "string" + }, "name": { "description": "Name of the execution.", "type": "string" @@ -4464,26 +4514,6 @@ }, "type": "object" }, - "GoogleDevtoolsCloudbuildV1GCSLocation": { - "description": "Represents a storage location in Cloud Storage", - "id": "GoogleDevtoolsCloudbuildV1GCSLocation", - "properties": { - "bucket": { - "description": "Cloud Storage bucket. See https://cloud.google.com/storage/docs/naming#requirements", - "type": "string" - }, - "generation": { - "description": "Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.", - "format": "int64", - "type": "string" - }, - "object": { - "description": "Cloud Storage object. See https://cloud.google.com/storage/docs/naming#objectnames", - "type": "string" - } - }, - "type": "object" - }, "GoogleDevtoolsCloudbuildV1GitConfig": { "description": "GitConfig is a configuration for git operations.", "id": "GoogleDevtoolsCloudbuildV1GitConfig", @@ -4547,12 +4577,8 @@ "id": "GoogleDevtoolsCloudbuildV1HttpConfig", "properties": { "proxySecretVersionName": { - "description": "SecretVersion resource of the HTTP proxy URL. The proxy URL should be in format protocol://@]proxyhost[:port].", + "description": "SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have secretmanager.versions.access permissions on this secret. The proxy URL should be in format protocol://@]proxyhost[:port].", "type": "string" - }, - "proxySslCaInfo": { - "$ref": "GoogleDevtoolsCloudbuildV1GCSLocation", - "description": "Optional. Cloud Storage object storing the certificate to use with the HTTP proxy." } }, "type": "object" diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index b99e24c276..d7661e151b 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -822,19 +822,33 @@ func (s *GoogleCloudRunV2Execution) MarshalJSON() ([]byte, error) { // /Executions.GetExecution with the given name to get full execution including // the latest status. type GoogleCloudRunV2ExecutionReference struct { + // CompletionStatus: Status for the execution completion. + // + // Possible values: + // "COMPLETION_STATUS_UNSPECIFIED" - The default value. This value is used if + // the state is omitted. + // "EXECUTION_SUCCEEDED" - Job execution has succeeded. + // "EXECUTION_FAILED" - Job execution has failed. + // "EXECUTION_RUNNING" - Job execution is running normally. + // "EXECUTION_PENDING" - Waiting for backing resources to be provisioned. + // "EXECUTION_CANCELLED" - Job execution has been cancelled by the user. + CompletionStatus string `json:"completionStatus,omitempty"` // CompletionTime: Creation timestamp of the execution. CompletionTime string `json:"completionTime,omitempty"` // CreateTime: Creation timestamp of the execution. CreateTime string `json:"createTime,omitempty"` + // DeleteTime: The deletion time of the execution. It is only populated as a + // response to a Delete request. + DeleteTime string `json:"deleteTime,omitempty"` // Name: Name of the execution. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompletionTime") to + // ForceSendFields is a list of field names (e.g. "CompletionStatus") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CompletionTime") to include in + // NullFields is a list of field names (e.g. "CompletionStatus") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -3511,36 +3525,6 @@ func (s *GoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV1GCSLocation: Represents a storage location in -// Cloud Storage -type GoogleDevtoolsCloudbuildV1GCSLocation struct { - // Bucket: Cloud Storage bucket. See - // https://cloud.google.com/storage/docs/naming#requirements - Bucket string `json:"bucket,omitempty"` - // Generation: Cloud Storage generation for the object. If the generation is - // omitted, the latest generation will be used. - Generation int64 `json:"generation,omitempty,string"` - // Object: Cloud Storage object. See - // https://cloud.google.com/storage/docs/naming#objectnames - Object string `json:"object,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *GoogleDevtoolsCloudbuildV1GCSLocation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleDevtoolsCloudbuildV1GCSLocation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // GoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a configuration for git // operations. type GoogleDevtoolsCloudbuildV1GitConfig struct { @@ -3634,11 +3618,11 @@ func (s *GoogleDevtoolsCloudbuildV1Hash) MarshalJSON() ([]byte, error) { // related git operations. type GoogleDevtoolsCloudbuildV1HttpConfig struct { // ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The - // proxy URL should be in format protocol://@]proxyhost[:port]. + // Service Account used in the build (either the default Service Account or + // user-specified Service Account) should have secretmanager.versions.access + // permissions on this secret. The proxy URL should be in format + // protocol://@]proxyhost[:port]. ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"` - // ProxySslCaInfo: Optional. Cloud Storage object storing the certificate to - // use with the HTTP proxy. - ProxySslCaInfo *GoogleDevtoolsCloudbuildV1GCSLocation `json:"proxySslCaInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -5239,6 +5223,117 @@ func (c *ProjectsLocationsExportMetadataCall) Do(opts ...googleapi.CallOption) ( return ret, nil } +type ProjectsLocationsExportProjectMetadataCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ExportProjectMetadata: Export generated customer metadata for a given +// project. +// +// - name: The name of the project of which metadata should be exported. +// Format: `projects/{project_id_or_number}/locations/{location}` for Project +// in a given location. +func (r *ProjectsLocationsService) ExportProjectMetadata(name string) *ProjectsLocationsExportProjectMetadataCall { + c := &ProjectsLocationsExportProjectMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsExportProjectMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsExportProjectMetadataCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsExportProjectMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsExportProjectMetadataCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsExportProjectMetadataCall) Context(ctx context.Context) *ProjectsLocationsExportProjectMetadataCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsExportProjectMetadataCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExportProjectMetadataCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v2/{+name}:exportProjectMetadata") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "run.projects.locations.exportProjectMetadata" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRunV2Metadata.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 *ProjectsLocationsExportProjectMetadataCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Metadata, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudRunV2Metadata{ + 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 +} + type ProjectsLocationsJobsCreateCall struct { s *Service parent string