diff --git a/Dlp/metadata/V2/Dlp.php b/Dlp/metadata/V2/Dlp.php index b25541a6106d..ede415345d09 100644 Binary files a/Dlp/metadata/V2/Dlp.php and b/Dlp/metadata/V2/Dlp.php differ diff --git a/Dlp/metadata/V2/Storage.php b/Dlp/metadata/V2/Storage.php index b0e44d618339..54322abd217f 100644 Binary files a/Dlp/metadata/V2/Storage.php and b/Dlp/metadata/V2/Storage.php differ diff --git a/Dlp/src/V2/CloudSqlIamCredential.php b/Dlp/src/V2/CloudSqlIamCredential.php index 24f7585f2adb..bd753580e0b9 100644 --- a/Dlp/src/V2/CloudSqlIamCredential.php +++ b/Dlp/src/V2/CloudSqlIamCredential.php @@ -9,8 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * 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. + * Use IAM authentication 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. * diff --git a/Dlp/src/V2/CloudSqlProperties/DatabaseEngine.php b/Dlp/src/V2/CloudSqlProperties/DatabaseEngine.php index 17cbeb998f1c..c21e1f3d23c8 100644 --- a/Dlp/src/V2/CloudSqlProperties/DatabaseEngine.php +++ b/Dlp/src/V2/CloudSqlProperties/DatabaseEngine.php @@ -15,7 +15,7 @@ class DatabaseEngine { /** - * An engine that is not currently supported by SDP. + * An engine that is not currently supported by Sensitive Data Protection. * * Generated from protobuf enum <code>DATABASE_ENGINE_UNKNOWN = 0;</code> */ @@ -27,7 +27,7 @@ class DatabaseEngine */ const DATABASE_ENGINE_MYSQL = 1; /** - * Cloud SQL for Postgres instance. + * Cloud SQL for PostgreSQL instance. * * Generated from protobuf enum <code>DATABASE_ENGINE_POSTGRES = 2;</code> */ diff --git a/Dlp/src/V2/ConnectionState.php b/Dlp/src/V2/ConnectionState.php index 8217300c3910..84cec3815510 100644 --- a/Dlp/src/V2/ConnectionState.php +++ b/Dlp/src/V2/ConnectionState.php @@ -36,10 +36,10 @@ class ConnectionState /** * 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. + * If the resolution requires external action, then the client must send a + * request to set the status to AVAILABLE when the connection is ready for + * use. If the resolution doesn't require external action, then any changes to + * the connection properties will automatically mark it as AVAILABLE. * * Generated from protobuf enum <code>ERROR = 3;</code> */ diff --git a/Dlp/src/V2/DataProfileAction/EventType.php b/Dlp/src/V2/DataProfileAction/EventType.php index 51cee6a4953d..0c49c9ad18c9 100644 --- a/Dlp/src/V2/DataProfileAction/EventType.php +++ b/Dlp/src/V2/DataProfileAction/EventType.php @@ -26,13 +26,9 @@ class EventType */ const NEW_PROFILE = 1; /** - * Changed one of the following profile metrics: - * * Data risk score - * * Sensitivity score - * * Resource visibility - * * Encryption type - * * Predicted infoTypes - * * Other infoTypes + * One of the following profile metrics changed: Data risk score, + * Sensitivity score, Resource visibility, Encryption type, Predicted + * infoTypes, Other infoTypes * * Generated from protobuf enum <code>CHANGED_PROFILE = 2;</code> */ diff --git a/Dlp/src/V2/DatabaseResourceReference.php b/Dlp/src/V2/DatabaseResourceReference.php index 6bb585aa212f..6c7574dd66a1 100644 --- a/Dlp/src/V2/DatabaseResourceReference.php +++ b/Dlp/src/V2/DatabaseResourceReference.php @@ -17,18 +17,31 @@ class DatabaseResourceReference extends \Google\Protobuf\Internal\Message { /** * Required. If within a project-level config, then this must match the - * config's project id. + * config's project ID. * * Generated from protobuf field <code>string project_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ private $project_id = ''; /** * Required. The instance where this resource is located. For example: Cloud - * SQL's instance id. + * SQL instance ID. * * Generated from protobuf field <code>string instance = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ private $instance = ''; + /** + * Required. Name of a database within the instance. + * + * Generated from protobuf field <code>string database = 3 [(.google.api.field_behavior) = REQUIRED];</code> + */ + private $database = ''; + /** + * Required. Name of a database resource, for example, a table within the + * database. + * + * Generated from protobuf field <code>string database_resource = 4 [(.google.api.field_behavior) = REQUIRED];</code> + */ + private $database_resource = ''; /** * Constructor. @@ -38,10 +51,15 @@ class DatabaseResourceReference extends \Google\Protobuf\Internal\Message * * @type string $project_id * Required. If within a project-level config, then this must match the - * config's project id. + * config's project ID. * @type string $instance * Required. The instance where this resource is located. For example: Cloud - * SQL's instance id. + * SQL instance ID. + * @type string $database + * Required. Name of a database within the instance. + * @type string $database_resource + * Required. Name of a database resource, for example, a table within the + * database. * } */ public function __construct($data = NULL) { @@ -51,7 +69,7 @@ public function __construct($data = NULL) { /** * Required. If within a project-level config, then this must match the - * config's project id. + * config's project ID. * * Generated from protobuf field <code>string project_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return string @@ -63,7 +81,7 @@ public function getProjectId() /** * Required. If within a project-level config, then this must match the - * config's project id. + * config's project ID. * * Generated from protobuf field <code>string project_id = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @param string $var @@ -79,7 +97,7 @@ public function setProjectId($var) /** * Required. The instance where this resource is located. For example: Cloud - * SQL's instance id. + * SQL instance ID. * * Generated from protobuf field <code>string instance = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return string @@ -91,7 +109,7 @@ public function getInstance() /** * Required. The instance where this resource is located. For example: Cloud - * SQL's instance id. + * SQL instance ID. * * Generated from protobuf field <code>string instance = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @param string $var @@ -105,5 +123,59 @@ public function setInstance($var) return $this; } + /** + * Required. Name of a database within the instance. + * + * Generated from protobuf field <code>string database = 3 [(.google.api.field_behavior) = REQUIRED];</code> + * @return string + */ + public function getDatabase() + { + return $this->database; + } + + /** + * Required. Name of a database within the instance. + * + * Generated from protobuf field <code>string database = 3 [(.google.api.field_behavior) = REQUIRED];</code> + * @param string $var + * @return $this + */ + public function setDatabase($var) + { + GPBUtil::checkString($var, True); + $this->database = $var; + + return $this; + } + + /** + * Required. Name of a database resource, for example, a table within the + * database. + * + * Generated from protobuf field <code>string database_resource = 4 [(.google.api.field_behavior) = REQUIRED];</code> + * @return string + */ + public function getDatabaseResource() + { + return $this->database_resource; + } + + /** + * Required. Name of a database resource, for example, a table within the + * database. + * + * Generated from protobuf field <code>string database_resource = 4 [(.google.api.field_behavior) = REQUIRED];</code> + * @param string $var + * @return $this + */ + public function setDatabaseResource($var) + { + GPBUtil::checkString($var, True); + $this->database_resource = $var; + + return $this; + } + } diff --git a/Dlp/src/V2/DatabaseResourceRegex.php b/Dlp/src/V2/DatabaseResourceRegex.php index 94a832755dd5..6425a372eda7 100644 --- a/Dlp/src/V2/DatabaseResourceRegex.php +++ b/Dlp/src/V2/DatabaseResourceRegex.php @@ -20,7 +20,7 @@ class DatabaseResourceRegex extends \Google\Protobuf\Internal\Message { /** * For organizations, if unset, will match all projects. Has no effect - * for Data Profile configurations created within a project. + * for configurations created within a project. * * Generated from protobuf field <code>string project_id_regex = 1;</code> */ @@ -55,7 +55,7 @@ class DatabaseResourceRegex extends \Google\Protobuf\Internal\Message * * @type string $project_id_regex * For organizations, if unset, will match all projects. Has no effect - * for Data Profile configurations created within a project. + * for configurations created within a project. * @type string $instance_regex * Regex to test the instance name against. If empty, all instances match. * @type string $database_regex @@ -74,7 +74,7 @@ public function __construct($data = NULL) { /** * For organizations, if unset, will match all projects. Has no effect - * for Data Profile configurations created within a project. + * for configurations created within a project. * * Generated from protobuf field <code>string project_id_regex = 1;</code> * @return string @@ -86,7 +86,7 @@ public function getProjectIdRegex() /** * For organizations, if unset, will match all projects. Has no effect - * for Data Profile configurations created within a project. + * for configurations created within a project. * * Generated from protobuf field <code>string project_id_regex = 1;</code> * @param string $var diff --git a/Dlp/src/V2/DiscoveryBigQueryFilter.php b/Dlp/src/V2/DiscoveryBigQueryFilter.php index 72be4db89f46..a87ee0ec1d3b 100644 --- a/Dlp/src/V2/DiscoveryBigQueryFilter.php +++ b/Dlp/src/V2/DiscoveryBigQueryFilter.php @@ -35,6 +35,10 @@ class DiscoveryBigQueryFilter extends \Google\Protobuf\Internal\Message * 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 \Google\Cloud\Dlp\V2\TableReference $table_reference + * The table to scan. Discovery configurations including this can only + * include one DiscoveryTarget (the DiscoveryTarget with this + * TableReference). * } */ public function __construct($data = NULL) { @@ -116,6 +120,41 @@ public function setOtherTables($var) return $this; } + /** + * The table to scan. Discovery configurations including this can only + * include one DiscoveryTarget (the DiscoveryTarget with this + * TableReference). + * + * Generated from protobuf field <code>.google.privacy.dlp.v2.TableReference table_reference = 3;</code> + * @return \Google\Cloud\Dlp\V2\TableReference|null + */ + public function getTableReference() + { + return $this->readOneof(3); + } + + public function hasTableReference() + { + return $this->hasOneof(3); + } + + /** + * The table to scan. Discovery configurations including this can only + * include one DiscoveryTarget (the DiscoveryTarget with this + * TableReference). + * + * Generated from protobuf field <code>.google.privacy.dlp.v2.TableReference table_reference = 3;</code> + * @param \Google\Cloud\Dlp\V2\TableReference $var + * @return $this + */ + public function setTableReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableReference::class); + $this->writeOneof(3, $var); + + return $this; + } + /** * @return string */ diff --git a/Dlp/src/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php b/Dlp/src/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php index 77ce5455887b..8438c6877e4a 100644 --- a/Dlp/src/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php +++ b/Dlp/src/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php @@ -26,13 +26,13 @@ class DatabaseEngine */ const ALL_SUPPORTED_DATABASE_ENGINES = 1; /** - * MySql database. + * MySQL database. * * Generated from protobuf enum <code>MYSQL = 2;</code> */ const MYSQL = 2; /** - * PostGres database. + * PostgreSQL database. * * Generated from protobuf enum <code>POSTGRES = 3;</code> */ diff --git a/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence.php b/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence.php index a021a2f9936e..5fc3081fab3c 100644 --- a/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence.php +++ b/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence.php @@ -26,7 +26,7 @@ class DiscoveryCloudSqlGenerationCadence extends \Google\Protobuf\Internal\Messa /** * 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. + * frequency regardless of whether the underlying tables have changed. * Defaults to never. * * Generated from protobuf field <code>.google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2;</code> @@ -44,7 +44,7 @@ class DiscoveryCloudSqlGenerationCadence extends \Google\Protobuf\Internal\Messa * @type int $refresh_frequency * 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. + * frequency regardless of whether the underlying tables have changed. * Defaults to never. * } */ @@ -92,7 +92,7 @@ public function setSchemaModifiedCadence($var) /** * 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. + * frequency regardless of whether the underlying tables have changed. * Defaults to never. * * Generated from protobuf field <code>.google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2;</code> @@ -106,7 +106,7 @@ public function getRefreshFrequency() /** * 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. + * frequency regardless of whether the underlying tables have changed. * Defaults to never. * * Generated from protobuf field <code>.google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2;</code> diff --git a/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php b/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php index cda43bdbfc31..ede3a084bdf9 100644 --- a/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php +++ b/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php @@ -9,7 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * How frequency to modify the profile when the table's schema is modified. + * How frequently to modify the profile when the table's schema is modified. * * Generated from protobuf message <code>google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence</code> */ diff --git a/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php b/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php index 4795c5accc69..38682145dfb2 100644 --- a/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php +++ b/Dlp/src/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php @@ -20,7 +20,7 @@ class CloudSqlSchemaModification */ const SQL_SCHEMA_MODIFICATION_UNSPECIFIED = 0; /** - * New columns has appeared. + * New columns have appeared. * * Generated from protobuf enum <code>NEW_COLUMNS = 1;</code> */ diff --git a/Dlp/src/V2/DiscoveryTarget.php b/Dlp/src/V2/DiscoveryTarget.php index 2d370f3c3907..b9b4cc728e9b 100644 --- a/Dlp/src/V2/DiscoveryTarget.php +++ b/Dlp/src/V2/DiscoveryTarget.php @@ -29,6 +29,10 @@ class DiscoveryTarget extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget $cloud_sql_target * Cloud SQL target for Discovery. The first target to match a table will be * the one applied. + * @type \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget $secrets_target + * Discovery target that looks for credentials and secrets stored in cloud + * resource metadata and reports them as vulnerabilities to Security Command + * Center. Only one target of this type is allowed. * } */ public function __construct($data = NULL) { @@ -102,6 +106,41 @@ public function setCloudSqlTarget($var) return $this; } + /** + * Discovery target that looks for credentials and secrets stored in cloud + * resource metadata and reports them as vulnerabilities to Security Command + * Center. Only one target of this type is allowed. + * + * Generated from protobuf field <code>.google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3;</code> + * @return \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget|null + */ + public function getSecretsTarget() + { + return $this->readOneof(3); + } + + public function hasSecretsTarget() + { + return $this->hasOneof(3); + } + + /** + * Discovery target that looks for credentials and secrets stored in cloud + * resource metadata and reports them as vulnerabilities to Security Command + * Center. Only one target of this type is allowed. + * + * Generated from protobuf field <code>.google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3;</code> + * @param \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget $var + * @return $this + */ + public function setSecretsTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget::class); + $this->writeOneof(3, $var); + + return $this; + } + /** * @return string */ diff --git a/Dlp/src/V2/Gapic/DlpServiceGapicClient.php b/Dlp/src/V2/Gapic/DlpServiceGapicClient.php index fbe3b215eec3..540d4d85394b 100644 --- a/Dlp/src/V2/Gapic/DlpServiceGapicClient.php +++ b/Dlp/src/V2/Gapic/DlpServiceGapicClient.php @@ -3773,8 +3773,7 @@ public function listColumnDataProfiles($parent, array $optionalArgs = []) * of values will be returned. Any page token used here must have * been generated by a previous call to the API. * @type string $filter - * Optional. * Supported fields/values - * - `state` - MISSING|AVAILABLE|ERROR + * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on @@ -5217,8 +5216,7 @@ public function reidentifyContent($parent, array $optionalArgs = []) * of values will be returned. Any page token used here must have * been generated by a previous call to the API. * @type string $filter - * Optional. * Supported fields/values - * - `state` - MISSING|AVAILABLE|ERROR + * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on diff --git a/Dlp/src/V2/InfoTypeCategory/LocationCategory.php b/Dlp/src/V2/InfoTypeCategory/LocationCategory.php index e8f10a77b825..5d6155f21604 100644 --- a/Dlp/src/V2/InfoTypeCategory/LocationCategory.php +++ b/Dlp/src/V2/InfoTypeCategory/LocationCategory.php @@ -39,6 +39,12 @@ class LocationCategory * Generated from protobuf enum <code>AUSTRALIA = 3;</code> */ const AUSTRALIA = 3; + /** + * The infoType is typically used in Azerbaijan. + * + * Generated from protobuf enum <code>AZERBAIJAN = 48;</code> + */ + const AZERBAIJAN = 48; /** * The infoType is typically used in Belgium. * @@ -309,6 +315,7 @@ class LocationCategory self::PBGLOBAL => 'GLOBAL', self::ARGENTINA => 'ARGENTINA', self::AUSTRALIA => 'AUSTRALIA', + self::AZERBAIJAN => 'AZERBAIJAN', self::BELGIUM => 'BELGIUM', self::BRAZIL => 'BRAZIL', self::CANADA => 'CANADA', diff --git a/Dlp/src/V2/InspectDataSourceDetails/Result.php b/Dlp/src/V2/InspectDataSourceDetails/Result.php index 8082329f0d79..0660fbd48891 100644 --- a/Dlp/src/V2/InspectDataSourceDetails/Result.php +++ b/Dlp/src/V2/InspectDataSourceDetails/Result.php @@ -35,7 +35,7 @@ class Result extends \Google\Protobuf\Internal\Message */ private $info_type_stats; /** - * Number of rows scanned post sampling and time filtering (Applicable for + * Number of rows scanned after sampling and time filtering (applicable for * row based stores such as BigQuery). * * Generated from protobuf field <code>int64 num_rows_processed = 5;</code> @@ -62,7 +62,7 @@ class Result extends \Google\Protobuf\Internal\Message * Statistics of how many instances of each info type were found during * inspect job. * @type int|string $num_rows_processed - * Number of rows scanned post sampling and time filtering (Applicable for + * Number of rows scanned after sampling and time filtering (applicable for * row based stores such as BigQuery). * @type \Google\Cloud\Dlp\V2\HybridInspectStatistics $hybrid_stats * Statistics related to the processing of hybrid inspect. @@ -154,7 +154,7 @@ public function setInfoTypeStats($var) } /** - * Number of rows scanned post sampling and time filtering (Applicable for + * Number of rows scanned after sampling and time filtering (applicable for * row based stores such as BigQuery). * * Generated from protobuf field <code>int64 num_rows_processed = 5;</code> @@ -166,7 +166,7 @@ public function getNumRowsProcessed() } /** - * Number of rows scanned post sampling and time filtering (Applicable for + * Number of rows scanned after sampling and time filtering (applicable for * row based stores such as BigQuery). * * Generated from protobuf field <code>int64 num_rows_processed = 5;</code> diff --git a/Dlp/src/V2/JobTrigger.php b/Dlp/src/V2/JobTrigger.php index 7311b52bd590..a6bacf9daa9d 100644 --- a/Dlp/src/V2/JobTrigger.php +++ b/Dlp/src/V2/JobTrigger.php @@ -9,7 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Contains a configuration to make api calls on a repeating basis. + * 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. diff --git a/Dlp/src/V2/ListConnectionsRequest.php b/Dlp/src/V2/ListConnectionsRequest.php index 757b645d927c..e6370d01f268 100644 --- a/Dlp/src/V2/ListConnectionsRequest.php +++ b/Dlp/src/V2/ListConnectionsRequest.php @@ -36,8 +36,7 @@ class ListConnectionsRequest extends \Google\Protobuf\Internal\Message */ private $page_token = ''; /** - * Optional. * Supported fields/values - * - `state` - MISSING|AVAILABLE|ERROR + * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR * * Generated from protobuf field <code>string filter = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ @@ -73,8 +72,7 @@ public static function build(string $parent): self * 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. * @type string $filter - * Optional. * Supported fields/values - * - `state` - MISSING|AVAILABLE|ERROR + * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR * } */ public function __construct($data = NULL) { @@ -165,8 +163,7 @@ public function setPageToken($var) } /** - * Optional. * Supported fields/values - * - `state` - MISSING|AVAILABLE|ERROR + * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR * * Generated from protobuf field <code>string filter = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return string @@ -177,8 +174,7 @@ public function getFilter() } /** - * Optional. * Supported fields/values - * - `state` - MISSING|AVAILABLE|ERROR + * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR * * Generated from protobuf field <code>string filter = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @param string $var diff --git a/Dlp/src/V2/ResourceVisibility.php b/Dlp/src/V2/ResourceVisibility.php index 3fa892868cfd..091e4e5299f2 100644 --- a/Dlp/src/V2/ResourceVisibility.php +++ b/Dlp/src/V2/ResourceVisibility.php @@ -28,8 +28,8 @@ class ResourceVisibility const RESOURCE_VISIBILITY_PUBLIC = 10; /** * May contain public items. - * For example, if a GCS bucket has uniform bucket level access disabled, some - * objects inside it may be public. + * For example, if a Cloud Storage bucket has uniform bucket level access + * disabled, some objects inside it may be public. * * Generated from protobuf enum <code>RESOURCE_VISIBILITY_INCONCLUSIVE = 15;</code> */ diff --git a/Dlp/src/V2/SearchConnectionsRequest.php b/Dlp/src/V2/SearchConnectionsRequest.php index 7e060c5c120d..0a7adbc09c6b 100644 --- a/Dlp/src/V2/SearchConnectionsRequest.php +++ b/Dlp/src/V2/SearchConnectionsRequest.php @@ -36,8 +36,7 @@ class SearchConnectionsRequest extends \Google\Protobuf\Internal\Message */ private $page_token = ''; /** - * Optional. * Supported fields/values - * - `state` - MISSING|AVAILABLE|ERROR + * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR * * Generated from protobuf field <code>string filter = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ @@ -73,8 +72,7 @@ public static function build(string $parent): self * 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. * @type string $filter - * Optional. * Supported fields/values - * - `state` - MISSING|AVAILABLE|ERROR + * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR * } */ public function __construct($data = NULL) { @@ -165,8 +163,7 @@ public function setPageToken($var) } /** - * Optional. * Supported fields/values - * - `state` - MISSING|AVAILABLE|ERROR + * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR * * Generated from protobuf field <code>string filter = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return string @@ -177,8 +174,7 @@ public function getFilter() } /** - * Optional. * Supported fields/values - * - `state` - MISSING|AVAILABLE|ERROR + * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR * * Generated from protobuf field <code>string filter = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @param string $var diff --git a/Dlp/src/V2/SecretsDiscoveryTarget.php b/Dlp/src/V2/SecretsDiscoveryTarget.php new file mode 100644 index 000000000000..1e5a804a0f78 --- /dev/null +++ b/Dlp/src/V2/SecretsDiscoveryTarget.php @@ -0,0 +1,41 @@ +<?php +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/privacy/dlp/v2/dlp.proto + +namespace Google\Cloud\Dlp\V2; + +use Google\Protobuf\Internal\GPBType; +use Google\Protobuf\Internal\RepeatedField; +use Google\Protobuf\Internal\GPBUtil; + +/** + * Discovery target for credentials and secrets in cloud resource metadata. + * This target does not include any filtering or frequency controls. Cloud + * DLP will scan cloud resource metadata for secrets daily. + * No inspect template should be included in the discovery config for a + * security benchmarks scan. Instead, the built-in list of secrets and + * credentials infoTypes will be used (see + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#credentials_and_secrets). + * Credentials and secrets discovered will be reported as vulnerabilities to + * Security Command Center. + * + * Generated from protobuf message <code>google.privacy.dlp.v2.SecretsDiscoveryTarget</code> + */ +class SecretsDiscoveryTarget extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/Dlp/src/V2/TableReference.php b/Dlp/src/V2/TableReference.php new file mode 100644 index 000000000000..ac8f92322b63 --- /dev/null +++ b/Dlp/src/V2/TableReference.php @@ -0,0 +1,102 @@ +<?php +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/privacy/dlp/v2/storage.proto + +namespace Google\Cloud\Dlp\V2; + +use Google\Protobuf\Internal\GPBType; +use Google\Protobuf\Internal\RepeatedField; +use Google\Protobuf\Internal\GPBUtil; + +/** + * Message defining the location of a BigQuery table with the projectId inferred + * from the parent project. + * + * Generated from protobuf message <code>google.privacy.dlp.v2.TableReference</code> + */ +class TableReference extends \Google\Protobuf\Internal\Message +{ + /** + * Dataset ID of the table. + * + * Generated from protobuf field <code>string dataset_id = 1;</code> + */ + private $dataset_id = ''; + /** + * Name of the table. + * + * Generated from protobuf field <code>string table_id = 2;</code> + */ + private $table_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dataset_id + * Dataset ID of the table. + * @type string $table_id + * Name of the table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Dataset ID of the table. + * + * Generated from protobuf field <code>string dataset_id = 1;</code> + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * Dataset ID of the table. + * + * Generated from protobuf field <code>string dataset_id = 1;</code> + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * Name of the table. + * + * Generated from protobuf field <code>string table_id = 2;</code> + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * Name of the table. + * + * Generated from protobuf field <code>string table_id = 2;</code> + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + +} +