diff --git a/docs/dyn/dlp_v2.organizations.locations.connections.html b/docs/dyn/dlp_v2.organizations.locations.connections.html new file mode 100644 index 0000000000..cb286baa9d --- /dev/null +++ b/docs/dyn/dlp_v2.organizations.locations.connections.html @@ -0,0 +1,161 @@ + + + +

Sensitive Data Protection (DLP) . organizations . locations . connections

+

Instance Methods

+

+ close()

+

Close httplib2 connections.

+

+ search(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)

+

Searches for Connections in a parent.

+

+ search_next()

+

Retrieves the next page of results.

+

Method Details

+
+ close() +
Close httplib2 connections.
+
+ +
+ search(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None) +
Searches for Connections in a parent.
+
+Args:
+  parent: string, Required. Parent name, typically an organization, without location. For example: "organizations/12345678". (required)
+  filter: string, Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR
+  pageSize: integer, Optional. Number of results per page, max 1000.
+  pageToken: string, Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Response message for SearchConnections.
+  "connections": [ # List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.
+    { # A data connection to allow DLP to profile data in locations that require additional configuration.
+      "cloudSql": { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
+        "cloudSqlIam": { # Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
+        },
+        "connectionName": "A String", # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name "project-id:us-central1:sql-instance" must be created under the parent "projects/project-id/locations/us-central1"
+        "databaseEngine": "A String", # Required. The database engine used by the Cloud SQL instance that this connection configures.
+        "maxConnections": 42, # Required. DLP will limit its connections to max_connections. Must be 2 or greater.
+        "usernamePassword": { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
+          "passwordSecretVersionName": "A String", # Required. The name of the Secret Manager resource that stores the password, in the form "projects/project-id/secrets/secret-name/versions/version".
+          "username": "A String", # Required. The username.
+        },
+      },
+      "errors": [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
+        { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
+          "details": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Detailed error codes and messages.
+            "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+            "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+              {
+                "a_key": "", # Properties of the object. Contains field @type with type URL.
+              },
+            ],
+            "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+          },
+          "timestamps": [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
+            "A String",
+          ],
+        },
+      ],
+      "name": "A String", # Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.
+      "state": "A String", # Required. The connection's state in its lifecycle.
+    },
+  ],
+  "nextPageToken": "A String", # Token to retrieve the next page of results. An empty value means there are no more results.
+}
+
+ +
+ search_next() +
Retrieves the next page of results.
+
+        Args:
+          previous_request: The request for the previous page. (required)
+          previous_response: The response from the request for the previous page. (required)
+
+        Returns:
+          A request object that you can call 'execute()' on to request the next
+          page. Returns None if there are no more items in the collection.
+        
+
+ + \ No newline at end of file diff --git a/docs/dyn/dlp_v2.organizations.locations.discoveryConfigs.html b/docs/dyn/dlp_v2.organizations.locations.discoveryConfigs.html index 6035ca5de1..bf8e306927 100644 --- a/docs/dyn/dlp_v2.organizations.locations.discoveryConfigs.html +++ b/docs/dyn/dlp_v2.organizations.locations.discoveryConfigs.html @@ -219,6 +219,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -340,6 +381,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -485,6 +567,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -617,6 +740,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -757,6 +921,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -879,6 +1084,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. diff --git a/docs/dyn/dlp_v2.organizations.locations.html b/docs/dyn/dlp_v2.organizations.locations.html index ffb466da18..93aa02e65b 100644 --- a/docs/dyn/dlp_v2.organizations.locations.html +++ b/docs/dyn/dlp_v2.organizations.locations.html @@ -79,6 +79,11 @@

Instance Methods

Returns the columnDataProfiles Resource.

+

+ connections() +

+

Returns the connections Resource.

+

deidentifyTemplates()

diff --git a/docs/dyn/dlp_v2.organizations.locations.jobTriggers.html b/docs/dyn/dlp_v2.organizations.locations.jobTriggers.html index 15e5aa7386..cb26f41fcb 100644 --- a/docs/dyn/dlp_v2.organizations.locations.jobTriggers.html +++ b/docs/dyn/dlp_v2.organizations.locations.jobTriggers.html @@ -111,7 +111,7 @@

Method Details

The object takes the form of: { # Request message for CreateJobTrigger. - "jobTrigger": { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # Required. The JobTrigger to create. + "jobTrigger": { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # Required. The JobTrigger to create. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -462,7 +462,7 @@

Method Details

Returns: An object of the form: - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -835,7 +835,7 @@

Method Details

Returns: An object of the form: - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -1202,7 +1202,7 @@

Method Details

{ # Response message for ListJobTriggers. "jobTriggers": [ # List of triggeredJobs, up to page_size in ListJobTriggersRequest. - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -1570,7 +1570,7 @@

Method Details

The object takes the form of: { # Request message for UpdateJobTrigger. - "jobTrigger": { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # New JobTrigger value. + "jobTrigger": { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # New JobTrigger value. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -1920,7 +1920,7 @@

Method Details

Returns: An object of the form: - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) diff --git a/docs/dyn/dlp_v2.organizations.locations.tableDataProfiles.html b/docs/dyn/dlp_v2.organizations.locations.tableDataProfiles.html index 5d6aba4c0a..642037ec12 100644 --- a/docs/dyn/dlp_v2.organizations.locations.tableDataProfiles.html +++ b/docs/dyn/dlp_v2.organizations.locations.tableDataProfiles.html @@ -77,6 +77,9 @@

Instance Methods

close()

Close httplib2 connections.

+

+ delete(name, x__xgafv=None)

+

Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.

get(name, x__xgafv=None)

Gets a table data profile.

@@ -92,6 +95,24 @@

Method Details

Close httplib2 connections.
+
+ delete(name, x__xgafv=None) +
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
+
+Args:
+  name: string, Required. Resource name of the table data profile. (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
+}
+
+
get(name, x__xgafv=None)
Gets a table data profile.
@@ -252,6 +273,47 @@ 

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -674,6 +736,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. diff --git a/docs/dyn/dlp_v2.projects.jobTriggers.html b/docs/dyn/dlp_v2.projects.jobTriggers.html index 311ed701f5..79e1b04e50 100644 --- a/docs/dyn/dlp_v2.projects.jobTriggers.html +++ b/docs/dyn/dlp_v2.projects.jobTriggers.html @@ -3827,7 +3827,7 @@

Method Details

The object takes the form of: { # Request message for CreateJobTrigger. - "jobTrigger": { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # Required. The JobTrigger to create. + "jobTrigger": { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # Required. The JobTrigger to create. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -4178,7 +4178,7 @@

Method Details

Returns: An object of the form: - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -4551,7 +4551,7 @@

Method Details

Returns: An object of the form: - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -4918,7 +4918,7 @@

Method Details

{ # Response message for ListJobTriggers. "jobTriggers": [ # List of triggeredJobs, up to page_size in ListJobTriggersRequest. - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -5286,7 +5286,7 @@

Method Details

The object takes the form of: { # Request message for UpdateJobTrigger. - "jobTrigger": { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # New JobTrigger value. + "jobTrigger": { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # New JobTrigger value. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -5636,7 +5636,7 @@

Method Details

Returns: An object of the form: - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) diff --git a/docs/dyn/dlp_v2.projects.locations.connections.html b/docs/dyn/dlp_v2.projects.locations.connections.html new file mode 100644 index 0000000000..8de8561a60 --- /dev/null +++ b/docs/dyn/dlp_v2.projects.locations.connections.html @@ -0,0 +1,482 @@ + + + +

Sensitive Data Protection (DLP) . projects . locations . connections

+

Instance Methods

+

+ close()

+

Close httplib2 connections.

+

+ create(parent, body=None, x__xgafv=None)

+

Create a Connection to an external data source.

+

+ delete(name, x__xgafv=None)

+

Delete a Connection.

+

+ get(name, x__xgafv=None)

+

Get a Connection by name.

+

+ list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)

+

Lists Connections in a parent.

+

+ list_next()

+

Retrieves the next page of results.

+

+ patch(name, body=None, x__xgafv=None)

+

Update a Connection.

+

+ search(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)

+

Searches for Connections in a parent.

+

+ search_next()

+

Retrieves the next page of results.

+

Method Details

+
+ close() +
Close httplib2 connections.
+
+ +
+ create(parent, body=None, x__xgafv=None) +
Create a Connection to an external data source.
+
+Args:
+  parent: string, Required. Parent resource name in the format: "projects/{project}/locations/{location}". (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Request message for CreateConnection.
+  "connection": { # A data connection to allow DLP to profile data in locations that require additional configuration. # Required. The connection resource.
+    "cloudSql": { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
+      "cloudSqlIam": { # Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
+      },
+      "connectionName": "A String", # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name "project-id:us-central1:sql-instance" must be created under the parent "projects/project-id/locations/us-central1"
+      "databaseEngine": "A String", # Required. The database engine used by the Cloud SQL instance that this connection configures.
+      "maxConnections": 42, # Required. DLP will limit its connections to max_connections. Must be 2 or greater.
+      "usernamePassword": { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
+        "passwordSecretVersionName": "A String", # Required. The name of the Secret Manager resource that stores the password, in the form "projects/project-id/secrets/secret-name/versions/version".
+        "username": "A String", # Required. The username.
+      },
+    },
+    "errors": [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
+      { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
+        "details": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Detailed error codes and messages.
+          "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+          "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+            {
+              "a_key": "", # Properties of the object. Contains field @type with type URL.
+            },
+          ],
+          "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+        },
+        "timestamps": [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
+          "A String",
+        ],
+      },
+    ],
+    "name": "A String", # Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.
+    "state": "A String", # Required. The connection's state in its lifecycle.
+  },
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # A data connection to allow DLP to profile data in locations that require additional configuration.
+  "cloudSql": { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
+    "cloudSqlIam": { # Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
+    },
+    "connectionName": "A String", # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name "project-id:us-central1:sql-instance" must be created under the parent "projects/project-id/locations/us-central1"
+    "databaseEngine": "A String", # Required. The database engine used by the Cloud SQL instance that this connection configures.
+    "maxConnections": 42, # Required. DLP will limit its connections to max_connections. Must be 2 or greater.
+    "usernamePassword": { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
+      "passwordSecretVersionName": "A String", # Required. The name of the Secret Manager resource that stores the password, in the form "projects/project-id/secrets/secret-name/versions/version".
+      "username": "A String", # Required. The username.
+    },
+  },
+  "errors": [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
+    { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
+      "details": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Detailed error codes and messages.
+        "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+        "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+          {
+            "a_key": "", # Properties of the object. Contains field @type with type URL.
+          },
+        ],
+        "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+      },
+      "timestamps": [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
+        "A String",
+      ],
+    },
+  ],
+  "name": "A String", # Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.
+  "state": "A String", # Required. The connection's state in its lifecycle.
+}
+
+ +
+ delete(name, x__xgafv=None) +
Delete a Connection.
+
+Args:
+  name: string, Required. Resource name of the Connection to be deleted, in the format: "projects/{project}/locations/{location}/connections/{connection}". (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
+}
+
+ +
+ get(name, x__xgafv=None) +
Get a Connection by name.
+
+Args:
+  name: string, Required. Resource name in the format: "projects/{project}/locations/{location}/connections/{connection}". (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # A data connection to allow DLP to profile data in locations that require additional configuration.
+  "cloudSql": { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
+    "cloudSqlIam": { # Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
+    },
+    "connectionName": "A String", # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name "project-id:us-central1:sql-instance" must be created under the parent "projects/project-id/locations/us-central1"
+    "databaseEngine": "A String", # Required. The database engine used by the Cloud SQL instance that this connection configures.
+    "maxConnections": 42, # Required. DLP will limit its connections to max_connections. Must be 2 or greater.
+    "usernamePassword": { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
+      "passwordSecretVersionName": "A String", # Required. The name of the Secret Manager resource that stores the password, in the form "projects/project-id/secrets/secret-name/versions/version".
+      "username": "A String", # Required. The username.
+    },
+  },
+  "errors": [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
+    { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
+      "details": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Detailed error codes and messages.
+        "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+        "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+          {
+            "a_key": "", # Properties of the object. Contains field @type with type URL.
+          },
+        ],
+        "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+      },
+      "timestamps": [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
+        "A String",
+      ],
+    },
+  ],
+  "name": "A String", # Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.
+  "state": "A String", # Required. The connection's state in its lifecycle.
+}
+
+ +
+ list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None) +
Lists Connections in a parent.
+
+Args:
+  parent: string, Required. Parent name, for example: "projects/project-id/locations/global". (required)
+  filter: string, Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR
+  pageSize: integer, Optional. Number of results per page, max 1000.
+  pageToken: string, Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Response message for ListConnections.
+  "connections": [ # List of connections.
+    { # A data connection to allow DLP to profile data in locations that require additional configuration.
+      "cloudSql": { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
+        "cloudSqlIam": { # Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
+        },
+        "connectionName": "A String", # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name "project-id:us-central1:sql-instance" must be created under the parent "projects/project-id/locations/us-central1"
+        "databaseEngine": "A String", # Required. The database engine used by the Cloud SQL instance that this connection configures.
+        "maxConnections": 42, # Required. DLP will limit its connections to max_connections. Must be 2 or greater.
+        "usernamePassword": { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
+          "passwordSecretVersionName": "A String", # Required. The name of the Secret Manager resource that stores the password, in the form "projects/project-id/secrets/secret-name/versions/version".
+          "username": "A String", # Required. The username.
+        },
+      },
+      "errors": [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
+        { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
+          "details": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Detailed error codes and messages.
+            "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+            "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+              {
+                "a_key": "", # Properties of the object. Contains field @type with type URL.
+              },
+            ],
+            "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+          },
+          "timestamps": [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
+            "A String",
+          ],
+        },
+      ],
+      "name": "A String", # Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.
+      "state": "A String", # Required. The connection's state in its lifecycle.
+    },
+  ],
+  "nextPageToken": "A String", # Token to retrieve the next page of results. An empty value means there are no more results.
+}
+
+ +
+ list_next() +
Retrieves the next page of results.
+
+        Args:
+          previous_request: The request for the previous page. (required)
+          previous_response: The response from the request for the previous page. (required)
+
+        Returns:
+          A request object that you can call 'execute()' on to request the next
+          page. Returns None if there are no more items in the collection.
+        
+
+ +
+ patch(name, body=None, x__xgafv=None) +
Update a Connection.
+
+Args:
+  name: string, Required. Resource name in the format: "projects/{project}/locations/{location}/connections/{connection}". (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Request message for UpdateConnection.
+  "connection": { # A data connection to allow DLP to profile data in locations that require additional configuration. # Required. The connection with new values for the relevant fields.
+    "cloudSql": { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
+      "cloudSqlIam": { # Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
+      },
+      "connectionName": "A String", # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name "project-id:us-central1:sql-instance" must be created under the parent "projects/project-id/locations/us-central1"
+      "databaseEngine": "A String", # Required. The database engine used by the Cloud SQL instance that this connection configures.
+      "maxConnections": 42, # Required. DLP will limit its connections to max_connections. Must be 2 or greater.
+      "usernamePassword": { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
+        "passwordSecretVersionName": "A String", # Required. The name of the Secret Manager resource that stores the password, in the form "projects/project-id/secrets/secret-name/versions/version".
+        "username": "A String", # Required. The username.
+      },
+    },
+    "errors": [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
+      { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
+        "details": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Detailed error codes and messages.
+          "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+          "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+            {
+              "a_key": "", # Properties of the object. Contains field @type with type URL.
+            },
+          ],
+          "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+        },
+        "timestamps": [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
+          "A String",
+        ],
+      },
+    ],
+    "name": "A String", # Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.
+    "state": "A String", # Required. The connection's state in its lifecycle.
+  },
+  "updateMask": "A String", # Optional. Mask to control which fields get updated.
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # A data connection to allow DLP to profile data in locations that require additional configuration.
+  "cloudSql": { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
+    "cloudSqlIam": { # Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
+    },
+    "connectionName": "A String", # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name "project-id:us-central1:sql-instance" must be created under the parent "projects/project-id/locations/us-central1"
+    "databaseEngine": "A String", # Required. The database engine used by the Cloud SQL instance that this connection configures.
+    "maxConnections": 42, # Required. DLP will limit its connections to max_connections. Must be 2 or greater.
+    "usernamePassword": { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
+      "passwordSecretVersionName": "A String", # Required. The name of the Secret Manager resource that stores the password, in the form "projects/project-id/secrets/secret-name/versions/version".
+      "username": "A String", # Required. The username.
+    },
+  },
+  "errors": [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
+    { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
+      "details": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Detailed error codes and messages.
+        "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+        "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+          {
+            "a_key": "", # Properties of the object. Contains field @type with type URL.
+          },
+        ],
+        "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+      },
+      "timestamps": [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
+        "A String",
+      ],
+    },
+  ],
+  "name": "A String", # Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.
+  "state": "A String", # Required. The connection's state in its lifecycle.
+}
+
+ +
+ search(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None) +
Searches for Connections in a parent.
+
+Args:
+  parent: string, Required. Parent name, typically an organization, without location. For example: "organizations/12345678". (required)
+  filter: string, Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR
+  pageSize: integer, Optional. Number of results per page, max 1000.
+  pageToken: string, Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Response message for SearchConnections.
+  "connections": [ # List of connections that match the search query. Note that only a subset of the fields will be populated, and only "name" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.
+    { # A data connection to allow DLP to profile data in locations that require additional configuration.
+      "cloudSql": { # Cloud SQL connection properties. # Connect to a Cloud SQL instance.
+        "cloudSqlIam": { # Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication. # Built-in IAM authentication (must be configured in Cloud SQL).
+        },
+        "connectionName": "A String", # Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name "project-id:us-central1:sql-instance" must be created under the parent "projects/project-id/locations/us-central1"
+        "databaseEngine": "A String", # Required. The database engine used by the Cloud SQL instance that this connection configures.
+        "maxConnections": 42, # Required. DLP will limit its connections to max_connections. Must be 2 or greater.
+        "usernamePassword": { # A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing). # A username and password stored in Secret Manager.
+          "passwordSecretVersionName": "A String", # Required. The name of the Secret Manager resource that stores the password, in the form "projects/project-id/secrets/secret-name/versions/version".
+          "username": "A String", # Required. The username.
+        },
+      },
+      "errors": [ # Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
+        { # Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
+          "details": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Detailed error codes and messages.
+            "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+            "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+              {
+                "a_key": "", # Properties of the object. Contains field @type with type URL.
+              },
+            ],
+            "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+          },
+          "timestamps": [ # The times the error occurred. List includes the oldest timestamp and the last 9 timestamps.
+            "A String",
+          ],
+        },
+      ],
+      "name": "A String", # Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.
+      "state": "A String", # Required. The connection's state in its lifecycle.
+    },
+  ],
+  "nextPageToken": "A String", # Token to retrieve the next page of results. An empty value means there are no more results.
+}
+
+ +
+ search_next() +
Retrieves the next page of results.
+
+        Args:
+          previous_request: The request for the previous page. (required)
+          previous_response: The response from the request for the previous page. (required)
+
+        Returns:
+          A request object that you can call 'execute()' on to request the next
+          page. Returns None if there are no more items in the collection.
+        
+
+ + \ No newline at end of file diff --git a/docs/dyn/dlp_v2.projects.locations.discoveryConfigs.html b/docs/dyn/dlp_v2.projects.locations.discoveryConfigs.html index 9ba80c6139..4106364d51 100644 --- a/docs/dyn/dlp_v2.projects.locations.discoveryConfigs.html +++ b/docs/dyn/dlp_v2.projects.locations.discoveryConfigs.html @@ -219,6 +219,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -340,6 +381,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -485,6 +567,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -617,6 +740,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -757,6 +921,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -879,6 +1084,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. diff --git a/docs/dyn/dlp_v2.projects.locations.html b/docs/dyn/dlp_v2.projects.locations.html index d426de3cd2..a5fcc8f960 100644 --- a/docs/dyn/dlp_v2.projects.locations.html +++ b/docs/dyn/dlp_v2.projects.locations.html @@ -79,6 +79,11 @@

Instance Methods

Returns the columnDataProfiles Resource.

+

+ connections() +

+

Returns the connections Resource.

+

content()

diff --git a/docs/dyn/dlp_v2.projects.locations.jobTriggers.html b/docs/dyn/dlp_v2.projects.locations.jobTriggers.html index b4ff13302b..bdf2f8015c 100644 --- a/docs/dyn/dlp_v2.projects.locations.jobTriggers.html +++ b/docs/dyn/dlp_v2.projects.locations.jobTriggers.html @@ -3830,7 +3830,7 @@

Method Details

The object takes the form of: { # Request message for CreateJobTrigger. - "jobTrigger": { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # Required. The JobTrigger to create. + "jobTrigger": { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # Required. The JobTrigger to create. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -4181,7 +4181,7 @@

Method Details

Returns: An object of the form: - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -4554,7 +4554,7 @@

Method Details

Returns: An object of the form: - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -5009,7 +5009,7 @@

Method Details

{ # Response message for ListJobTriggers. "jobTriggers": [ # List of triggeredJobs, up to page_size in ListJobTriggersRequest. - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -5377,7 +5377,7 @@

Method Details

The object takes the form of: { # Request message for UpdateJobTrigger. - "jobTrigger": { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # New JobTrigger value. + "jobTrigger": { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. # New JobTrigger value. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) @@ -5727,7 +5727,7 @@

Method Details

Returns: An object of the form: - { # Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. + { # Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more. "createTime": "A String", # Output only. The creation timestamp of a triggeredJob. "description": "A String", # User provided description (max 256 chars) "displayName": "A String", # Display name (max 100 chars) diff --git a/docs/dyn/dlp_v2.projects.locations.tableDataProfiles.html b/docs/dyn/dlp_v2.projects.locations.tableDataProfiles.html index c17704fdb9..79cecadda3 100644 --- a/docs/dyn/dlp_v2.projects.locations.tableDataProfiles.html +++ b/docs/dyn/dlp_v2.projects.locations.tableDataProfiles.html @@ -77,6 +77,9 @@

Instance Methods

close()

Close httplib2 connections.

+

+ delete(name, x__xgafv=None)

+

Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.

get(name, x__xgafv=None)

Gets a table data profile.

@@ -92,6 +95,24 @@

Method Details

Close httplib2 connections.
+
+ delete(name, x__xgafv=None) +
Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.
+
+Args:
+  name: string, Required. Resource name of the table data profile. (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
+}
+
+
get(name, x__xgafv=None)
Gets a table data profile.
@@ -252,6 +273,47 @@ 

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. @@ -674,6 +736,47 @@

Method Details

}, }, }, + "cloudSqlTarget": { # Target used to match against for discovery with Cloud SQL tables. # Cloud SQL target for Discovery. The first target to match a table will be the one applied. + "conditions": { # Requirements that must be true before a table is profiled for the first time. # In addition to matching the filter, these conditions must be true before a profile is generated. + "databaseEngines": [ # Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + "A String", + ], + "types": [ # Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + "A String", + ], + }, + "disabled": { # Do not profile the tables. # Disable profiling for database resources that match this filter. + }, + "filter": { # Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name. # Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + "collection": { # Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures. # A specific set of database resources for this filter to apply to. + "includeRegexes": { # A collection of regular expressions to determine what database resources to match against. # A collection of regular expressions to match a database resource against. + "patterns": [ # A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. + { # A pattern to match against one or more database resources. 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. + "databaseRegex": "A String", # Regex to test the database name against. If empty, all databases match. + "databaseResourceNameRegex": "A String", # Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match. + "instanceRegex": "A String", # Regex to test the instance name against. If empty, all instances match. + "projectIdRegex": "A String", # For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. + }, + ], + }, + }, + "databaseResourceReference": { # Identifies a single database resource, like a table within a database. # The database resource to scan. Targets including this can only include one target (the target with this database resource reference). + "instance": "A String", # Required. The instance where this resource is located. For example: Cloud SQL's instance id. + "projectId": "A String", # Required. If within a project-level config, then this must match the config's project id. + }, + "others": { # Match database resources not covered by any other filter. # 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. + }, + }, + "generationCadence": { # How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity. # How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + "refreshFrequency": "A String", # Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never. + "schemaModifiedCadence": { # How frequency to modify the profile when the table's schema is modified. # When to reprofile if the schema has changed. + "frequency": "A String", # Frequency to regenerate data profiles when the schema is modified. Defaults to monthly. + "types": [ # The types of schema modifications to consider. Defaults to NEW_COLUMNS. + "A String", + ], + }, + }, + }, }, ], "updateTime": "A String", # Output only. The last update timestamp of a DiscoveryConfig. diff --git a/googleapiclient/discovery_cache/documents/dlp.v2.json b/googleapiclient/discovery_cache/documents/dlp.v2.json index 113dfe0761..ce3a67cad0 100644 --- a/googleapiclient/discovery_cache/documents/dlp.v2.json +++ b/googleapiclient/discovery_cache/documents/dlp.v2.json @@ -584,6 +584,51 @@ } } }, +"connections": { +"methods": { +"search": { +"description": "Searches for Connections in a parent.", +"flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/connections:search", +"httpMethod": "GET", +"id": "dlp.organizations.locations.connections.search", +"parameterOrder": [ +"parent" +], +"parameters": { +"filter": { +"description": "Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR", +"location": "query", +"type": "string" +}, +"pageSize": { +"description": "Optional. Number of results per page, max 1000.", +"format": "int32", +"location": "query", +"type": "integer" +}, +"pageToken": { +"description": "Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.", +"location": "query", +"type": "string" +}, +"parent": { +"description": "Required. Parent name, typically an organization, without location. For example: \"organizations/12345678\".", +"location": "path", +"pattern": "^organizations/[^/]+/locations/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v2/{+parent}/connections:search", +"response": { +"$ref": "GooglePrivacyDlpV2SearchConnectionsResponse" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +} +} +}, "deidentifyTemplates": { "methods": { "create": { @@ -1526,6 +1571,31 @@ }, "tableDataProfiles": { "methods": { +"delete": { +"description": "Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.", +"flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/tableDataProfiles/{tableDataProfilesId}", +"httpMethod": "DELETE", +"id": "dlp.organizations.locations.tableDataProfiles.delete", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "Required. Resource name of the table data profile.", +"location": "path", +"pattern": "^organizations/[^/]+/locations/[^/]+/tableDataProfiles/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v2/{+name}", +"response": { +"$ref": "GoogleProtobufEmpty" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +}, "get": { "description": "Gets a table data profile.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/tableDataProfiles/{tableDataProfilesId}", @@ -2650,6 +2720,198 @@ } } }, +"connections": { +"methods": { +"create": { +"description": "Create a Connection to an external data source.", +"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections", +"httpMethod": "POST", +"id": "dlp.projects.locations.connections.create", +"parameterOrder": [ +"parent" +], +"parameters": { +"parent": { +"description": "Required. Parent resource name in the format: \"projects/{project}/locations/{location}\".", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v2/{+parent}/connections", +"request": { +"$ref": "GooglePrivacyDlpV2CreateConnectionRequest" +}, +"response": { +"$ref": "GooglePrivacyDlpV2Connection" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +}, +"delete": { +"description": "Delete a Connection.", +"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}", +"httpMethod": "DELETE", +"id": "dlp.projects.locations.connections.delete", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "Required. Resource name of the Connection to be deleted, in the format: \"projects/{project}/locations/{location}/connections/{connection}\".", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v2/{+name}", +"response": { +"$ref": "GoogleProtobufEmpty" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +}, +"get": { +"description": "Get a Connection by name.", +"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}", +"httpMethod": "GET", +"id": "dlp.projects.locations.connections.get", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "Required. Resource name in the format: \"projects/{project}/locations/{location}/connections/{connection}\".", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v2/{+name}", +"response": { +"$ref": "GooglePrivacyDlpV2Connection" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +}, +"list": { +"description": "Lists Connections in a parent.", +"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections", +"httpMethod": "GET", +"id": "dlp.projects.locations.connections.list", +"parameterOrder": [ +"parent" +], +"parameters": { +"filter": { +"description": "Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR", +"location": "query", +"type": "string" +}, +"pageSize": { +"description": "Optional. Number of results per page, max 1000.", +"format": "int32", +"location": "query", +"type": "integer" +}, +"pageToken": { +"description": "Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.", +"location": "query", +"type": "string" +}, +"parent": { +"description": "Required. Parent name, for example: \"projects/project-id/locations/global\".", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v2/{+parent}/connections", +"response": { +"$ref": "GooglePrivacyDlpV2ListConnectionsResponse" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +}, +"patch": { +"description": "Update a Connection.", +"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}", +"httpMethod": "PATCH", +"id": "dlp.projects.locations.connections.patch", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "Required. Resource name in the format: \"projects/{project}/locations/{location}/connections/{connection}\".", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v2/{+name}", +"request": { +"$ref": "GooglePrivacyDlpV2UpdateConnectionRequest" +}, +"response": { +"$ref": "GooglePrivacyDlpV2Connection" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +}, +"search": { +"description": "Searches for Connections in a parent.", +"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections:search", +"httpMethod": "GET", +"id": "dlp.projects.locations.connections.search", +"parameterOrder": [ +"parent" +], +"parameters": { +"filter": { +"description": "Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR", +"location": "query", +"type": "string" +}, +"pageSize": { +"description": "Optional. Number of results per page, max 1000.", +"format": "int32", +"location": "query", +"type": "integer" +}, +"pageToken": { +"description": "Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.", +"location": "query", +"type": "string" +}, +"parent": { +"description": "Required. Parent name, typically an organization, without location. For example: \"organizations/12345678\".", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v2/{+parent}/connections:search", +"response": { +"$ref": "GooglePrivacyDlpV2SearchConnectionsResponse" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +} +} +}, "content": { "methods": { "deidentify": { @@ -3930,6 +4192,31 @@ }, "tableDataProfiles": { "methods": { +"delete": { +"description": "Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.", +"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/tableDataProfiles/{tableDataProfilesId}", +"httpMethod": "DELETE", +"id": "dlp.projects.locations.tableDataProfiles.delete", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "Required. Resource name of the table data profile.", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+/tableDataProfiles/[^/]+$", +"required": true, +"type": "string" +} +}, +"path": "v2/{+name}", +"response": { +"$ref": "GoogleProtobufEmpty" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +}, "get": { "description": "Gets a table data profile.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/tableDataProfiles/{tableDataProfilesId}", @@ -4164,7 +4451,7 @@ } } }, -"revision": "20240324", +"revision": "20240331", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -4231,6 +4518,12 @@ "properties": {}, "type": "object" }, +"GooglePrivacyDlpV2AllOtherDatabaseResources": { +"description": "Match database resources not covered by any other filter.", +"id": "GooglePrivacyDlpV2AllOtherDatabaseResources", +"properties": {}, +"type": "object" +}, "GooglePrivacyDlpV2AllText": { "description": "Apply to all text.", "id": "GooglePrivacyDlpV2AllText", @@ -4730,6 +5023,73 @@ }, "type": "object" }, +"GooglePrivacyDlpV2CloudSqlDiscoveryTarget": { +"description": "Target used to match against for discovery with Cloud SQL tables.", +"id": "GooglePrivacyDlpV2CloudSqlDiscoveryTarget", +"properties": { +"conditions": { +"$ref": "GooglePrivacyDlpV2DiscoveryCloudSqlConditions", +"description": "In addition to matching the filter, these conditions must be true before a profile is generated." +}, +"disabled": { +"$ref": "GooglePrivacyDlpV2Disabled", +"description": "Disable profiling for database resources that match this filter." +}, +"filter": { +"$ref": "GooglePrivacyDlpV2DiscoveryCloudSqlFilter", +"description": "Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table." +}, +"generationCadence": { +"$ref": "GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence", +"description": "How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity." +} +}, +"type": "object" +}, +"GooglePrivacyDlpV2CloudSqlIamCredential": { +"description": "Use IAM auth to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication.", +"id": "GooglePrivacyDlpV2CloudSqlIamCredential", +"properties": {}, +"type": "object" +}, +"GooglePrivacyDlpV2CloudSqlProperties": { +"description": "Cloud SQL connection properties.", +"id": "GooglePrivacyDlpV2CloudSqlProperties", +"properties": { +"cloudSqlIam": { +"$ref": "GooglePrivacyDlpV2CloudSqlIamCredential", +"description": "Built-in IAM authentication (must be configured in Cloud SQL)." +}, +"connectionName": { +"description": "Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name \"project-id:us-central1:sql-instance\" must be created under the parent \"projects/project-id/locations/us-central1\"", +"type": "string" +}, +"databaseEngine": { +"description": "Required. The database engine used by the Cloud SQL instance that this connection configures.", +"enum": [ +"DATABASE_ENGINE_UNKNOWN", +"DATABASE_ENGINE_MYSQL", +"DATABASE_ENGINE_POSTGRES" +], +"enumDescriptions": [ +"An engine that is not currently supported by SDP.", +"Cloud SQL for MySQL instance.", +"Cloud SQL for Postgres instance." +], +"type": "string" +}, +"maxConnections": { +"description": "Required. DLP will limit its connections to max_connections. Must be 2 or greater.", +"format": "int32", +"type": "integer" +}, +"usernamePassword": { +"$ref": "GooglePrivacyDlpV2SecretManagerCredential", +"description": "A username and password stored in Secret Manager." +} +}, +"type": "object" +}, "GooglePrivacyDlpV2CloudStorageFileSet": { "description": "Message representing a set of files in Cloud Storage.", "id": "GooglePrivacyDlpV2CloudStorageFileSet", @@ -5103,6 +5463,46 @@ }, "type": "object" }, +"GooglePrivacyDlpV2Connection": { +"description": "A data connection to allow DLP to profile data in locations that require additional configuration.", +"id": "GooglePrivacyDlpV2Connection", +"properties": { +"cloudSql": { +"$ref": "GooglePrivacyDlpV2CloudSqlProperties", +"description": "Connect to a Cloud SQL instance." +}, +"errors": { +"description": "Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.", +"items": { +"$ref": "GooglePrivacyDlpV2Error" +}, +"readOnly": true, +"type": "array" +}, +"name": { +"description": "Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.", +"readOnly": true, +"type": "string" +}, +"state": { +"description": "Required. The connection's state in its lifecycle.", +"enum": [ +"CONNECTION_STATE_UNSPECIFIED", +"MISSING_CREDENTIALS", +"AVAILABLE", +"ERROR" +], +"enumDescriptions": [ +"Unused", +"DLP automatically created this connection during an initial scan, and it is awaiting full configuration by a user.", +"A configured connection that has not encountered any errors.", +"A configured connection that encountered errors during its last use. It will not be used again until it is set to AVAILABLE. If the resolution requires external action, then a request to set the status to AVAILABLE will mark this connection for use. Otherwise, any changes to the connection properties will automatically mark it as AVAILABLE." +], +"type": "string" +} +}, +"type": "object" +}, "GooglePrivacyDlpV2Container": { "description": "Represents a container that may contain DLP findings. Examples of a container include a file, table, or database record.", "id": "GooglePrivacyDlpV2Container", @@ -5194,6 +5594,17 @@ }, "type": "object" }, +"GooglePrivacyDlpV2CreateConnectionRequest": { +"description": "Request message for CreateConnection.", +"id": "GooglePrivacyDlpV2CreateConnectionRequest", +"properties": { +"connection": { +"$ref": "GooglePrivacyDlpV2Connection", +"description": "Required. The connection resource." +} +}, +"type": "object" +}, "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest": { "description": "Request message for CreateDeidentifyTemplate.", "id": "GooglePrivacyDlpV2CreateDeidentifyTemplateRequest", @@ -5653,6 +6064,69 @@ }, "type": "object" }, +"GooglePrivacyDlpV2DatabaseResourceCollection": { +"description": "Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures.", +"id": "GooglePrivacyDlpV2DatabaseResourceCollection", +"properties": { +"includeRegexes": { +"$ref": "GooglePrivacyDlpV2DatabaseResourceRegexes", +"description": "A collection of regular expressions to match a database resource against." +} +}, +"type": "object" +}, +"GooglePrivacyDlpV2DatabaseResourceReference": { +"description": "Identifies a single database resource, like a table within a database.", +"id": "GooglePrivacyDlpV2DatabaseResourceReference", +"properties": { +"instance": { +"description": "Required. The instance where this resource is located. For example: Cloud SQL's instance id.", +"type": "string" +}, +"projectId": { +"description": "Required. If within a project-level config, then this must match the config's project id.", +"type": "string" +} +}, +"type": "object" +}, +"GooglePrivacyDlpV2DatabaseResourceRegex": { +"description": "A pattern to match against one or more database resources. 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": "GooglePrivacyDlpV2DatabaseResourceRegex", +"properties": { +"databaseRegex": { +"description": "Regex to test the database name against. If empty, all databases match.", +"type": "string" +}, +"databaseResourceNameRegex": { +"description": "Regex to test the database resource's name against. An example of a database resource name is a table's name. Other database resource names like view names could be included in the future. If empty, all database resources match.", +"type": "string" +}, +"instanceRegex": { +"description": "Regex to test the instance name against. If empty, all instances match.", +"type": "string" +}, +"projectIdRegex": { +"description": "For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project.", +"type": "string" +} +}, +"type": "object" +}, +"GooglePrivacyDlpV2DatabaseResourceRegexes": { +"description": "A collection of regular expressions to determine what database resources to match against.", +"id": "GooglePrivacyDlpV2DatabaseResourceRegexes", +"properties": { +"patterns": { +"description": "A group of regular expression patterns to match against one or more database resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB.", +"items": { +"$ref": "GooglePrivacyDlpV2DatabaseResourceRegex" +}, +"type": "array" +} +}, +"type": "object" +}, "GooglePrivacyDlpV2DatastoreKey": { "description": "Record key for a finding in Cloud Datastore.", "id": "GooglePrivacyDlpV2DatastoreKey", @@ -6114,6 +6588,95 @@ }, "type": "object" }, +"GooglePrivacyDlpV2DiscoveryCloudSqlConditions": { +"description": "Requirements that must be true before a table is profiled for the first time.", +"id": "GooglePrivacyDlpV2DiscoveryCloudSqlConditions", +"properties": { +"databaseEngines": { +"description": "Optional. Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.", +"items": { +"enum": [ +"DATABASE_ENGINE_UNSPECIFIED", +"ALL_SUPPORTED_DATABASE_ENGINES", +"MYSQL", +"POSTGRES" +], +"enumDescriptions": [ +"Unused.", +"Include all supported database engines.", +"MySql database.", +"PostGres database." +], +"type": "string" +}, +"type": "array" +}, +"types": { +"description": "Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].", +"items": { +"enum": [ +"DATABASE_RESOURCE_TYPE_UNSPECIFIED", +"DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES", +"DATABASE_RESOURCE_TYPE_TABLE" +], +"enumDescriptions": [ +"Unused.", +"Includes database resource types that become supported at a later time.", +"Tables." +], +"type": "string" +}, +"type": "array" +} +}, +"type": "object" +}, +"GooglePrivacyDlpV2DiscoveryCloudSqlFilter": { +"description": "Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name.", +"id": "GooglePrivacyDlpV2DiscoveryCloudSqlFilter", +"properties": { +"collection": { +"$ref": "GooglePrivacyDlpV2DatabaseResourceCollection", +"description": "A specific set of database resources for this filter to apply to." +}, +"databaseResourceReference": { +"$ref": "GooglePrivacyDlpV2DatabaseResourceReference", +"description": "The database resource to scan. Targets including this can only include one target (the target with this database resource reference)." +}, +"others": { +"$ref": "GooglePrivacyDlpV2AllOtherDatabaseResources", +"description": "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" +}, +"GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence": { +"description": "How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity.", +"id": "GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence", +"properties": { +"refreshFrequency": { +"description": "Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. 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" +}, +"schemaModifiedCadence": { +"$ref": "GooglePrivacyDlpV2SchemaModifiedCadence", +"description": "When to reprofile if the schema has changed." +} +}, +"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", @@ -6311,6 +6874,10 @@ "bigQueryTarget": { "$ref": "GooglePrivacyDlpV2BigQueryDiscoveryTarget", "description": "BigQuery target for Discovery. The first target to match a table will be the one applied." +}, +"cloudSqlTarget": { +"$ref": "GooglePrivacyDlpV2CloudSqlDiscoveryTarget", +"description": "Cloud SQL target for Discovery. The first target to match a table will be the one applied." } }, "type": "object" @@ -7533,7 +8100,7 @@ "type": "object" }, "GooglePrivacyDlpV2JobTrigger": { -"description": "Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more.", +"description": "Contains a configuration to make api calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more.", "id": "GooglePrivacyDlpV2JobTrigger", "properties": { "createTime": { @@ -8010,6 +8577,24 @@ }, "type": "object" }, +"GooglePrivacyDlpV2ListConnectionsResponse": { +"description": "Response message for ListConnections.", +"id": "GooglePrivacyDlpV2ListConnectionsResponse", +"properties": { +"connections": { +"description": "List of connections.", +"items": { +"$ref": "GooglePrivacyDlpV2Connection" +}, +"type": "array" +}, +"nextPageToken": { +"description": "Token to retrieve the next page of results. An empty value means there are no more results.", +"type": "string" +} +}, +"type": "object" +}, "GooglePrivacyDlpV2ListDeidentifyTemplatesResponse": { "description": "Response message for ListDeidentifyTemplates.", "id": "GooglePrivacyDlpV2ListDeidentifyTemplatesResponse", @@ -9130,6 +9715,79 @@ }, "type": "object" }, +"GooglePrivacyDlpV2SchemaModifiedCadence": { +"description": "How frequency to modify the profile when the table's schema is modified.", +"id": "GooglePrivacyDlpV2SchemaModifiedCadence", +"properties": { +"frequency": { +"description": "Frequency to regenerate data profiles when the schema is modified. Defaults to monthly.", +"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" +}, +"types": { +"description": "The types of schema modifications to consider. Defaults to NEW_COLUMNS.", +"items": { +"enum": [ +"SQL_SCHEMA_MODIFICATION_UNSPECIFIED", +"NEW_COLUMNS", +"REMOVED_COLUMNS" +], +"enumDescriptions": [ +"Unused.", +"New columns has appeared.", +"Columns have been removed from the table." +], +"type": "string" +}, +"type": "array" +} +}, +"type": "object" +}, +"GooglePrivacyDlpV2SearchConnectionsResponse": { +"description": "Response message for SearchConnections.", +"id": "GooglePrivacyDlpV2SearchConnectionsResponse", +"properties": { +"connections": { +"description": "List of connections that match the search query. Note that only a subset of the fields will be populated, and only \"name\" is guaranteed to be set. For full details of a Connection, call GetConnection with the name.", +"items": { +"$ref": "GooglePrivacyDlpV2Connection" +}, +"type": "array" +}, +"nextPageToken": { +"description": "Token to retrieve the next page of results. An empty value means there are no more results.", +"type": "string" +} +}, +"type": "object" +}, +"GooglePrivacyDlpV2SecretManagerCredential": { +"description": "A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager [charges apply](https://cloud.google.com/secret-manager/pricing).", +"id": "GooglePrivacyDlpV2SecretManagerCredential", +"properties": { +"passwordSecretVersionName": { +"description": "Required. The name of the Secret Manager resource that stores the password, in the form \"projects/project-id/secrets/secret-name/versions/version\".", +"type": "string" +}, +"username": { +"description": "Required. The username.", +"type": "string" +} +}, +"type": "object" +}, "GooglePrivacyDlpV2SelectedInfoTypes": { "description": "Apply transformation to the selected info_types.", "id": "GooglePrivacyDlpV2SelectedInfoTypes", @@ -9980,6 +10638,22 @@ }, "type": "object" }, +"GooglePrivacyDlpV2UpdateConnectionRequest": { +"description": "Request message for UpdateConnection.", +"id": "GooglePrivacyDlpV2UpdateConnectionRequest", +"properties": { +"connection": { +"$ref": "GooglePrivacyDlpV2Connection", +"description": "Required. The connection with new values for the relevant fields." +}, +"updateMask": { +"description": "Optional. Mask to control which fields get updated.", +"format": "google-fieldmask", +"type": "string" +} +}, +"type": "object" +}, "GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest": { "description": "Request message for UpdateDeidentifyTemplate.", "id": "GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest",