diff --git a/Dlp/metadata/V2/Dlp.php b/Dlp/metadata/V2/Dlp.php index 678397b6c79b..42469fcda0e8 100644 Binary files a/Dlp/metadata/V2/Dlp.php and b/Dlp/metadata/V2/Dlp.php differ diff --git a/Dlp/samples/V2/DlpServiceClient/create_connection.php b/Dlp/samples/V2/DlpServiceClient/create_connection.php index abbf09650f9a..4fbf0c2e41fa 100644 --- a/Dlp/samples/V2/DlpServiceClient/create_connection.php +++ b/Dlp/samples/V2/DlpServiceClient/create_connection.php @@ -32,9 +32,16 @@ /** * Create a Connection to an external data source. * - * @param string $formattedParent Parent resource name in the format: - * `projects/{project}/locations/{location}`. Please see - * {@see DlpServiceClient::locationName()} for help formatting this field. + * @param string $formattedParent Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization): + * + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. * @param int $connectionState The connection's state in its lifecycle. */ function create_connection_sample(string $formattedParent, int $connectionState): void @@ -70,7 +77,7 @@ function create_connection_sample(string $formattedParent, int $connectionState) */ function callSample(): void { - $formattedParent = DlpServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; create_connection_sample($formattedParent, $connectionState); diff --git a/Dlp/samples/V2/DlpServiceClient/create_deidentify_template.php b/Dlp/samples/V2/DlpServiceClient/create_deidentify_template.php index 4c2978939b14..34fdbd981815 100644 --- a/Dlp/samples/V2/DlpServiceClient/create_deidentify_template.php +++ b/Dlp/samples/V2/DlpServiceClient/create_deidentify_template.php @@ -42,13 +42,13 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/create_discovery_config.php b/Dlp/samples/V2/DlpServiceClient/create_discovery_config.php index 9232928ce90d..0ed565b80034 100644 --- a/Dlp/samples/V2/DlpServiceClient/create_discovery_config.php +++ b/Dlp/samples/V2/DlpServiceClient/create_discovery_config.php @@ -38,9 +38,9 @@ * (project or organization): * * + Projects scope: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Organizations scope: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/create_dlp_job.php b/Dlp/samples/V2/DlpServiceClient/create_dlp_job.php index 8493f1919c91..480f83dd8861 100644 --- a/Dlp/samples/V2/DlpServiceClient/create_dlp_job.php +++ b/Dlp/samples/V2/DlpServiceClient/create_dlp_job.php @@ -47,9 +47,9 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/create_inspect_template.php b/Dlp/samples/V2/DlpServiceClient/create_inspect_template.php index f4e94e1822d3..32be6449ca25 100644 --- a/Dlp/samples/V2/DlpServiceClient/create_inspect_template.php +++ b/Dlp/samples/V2/DlpServiceClient/create_inspect_template.php @@ -42,13 +42,13 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/create_job_trigger.php b/Dlp/samples/V2/DlpServiceClient/create_job_trigger.php index 17671b6b1d91..7dc3ae1e10c1 100644 --- a/Dlp/samples/V2/DlpServiceClient/create_job_trigger.php +++ b/Dlp/samples/V2/DlpServiceClient/create_job_trigger.php @@ -43,9 +43,9 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/create_stored_info_type.php b/Dlp/samples/V2/DlpServiceClient/create_stored_info_type.php index d37599058433..897584feb2c5 100644 --- a/Dlp/samples/V2/DlpServiceClient/create_stored_info_type.php +++ b/Dlp/samples/V2/DlpServiceClient/create_stored_info_type.php @@ -42,13 +42,13 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/list_connections.php b/Dlp/samples/V2/DlpServiceClient/list_connections.php index 31cee6928593..28182cf393d8 100644 --- a/Dlp/samples/V2/DlpServiceClient/list_connections.php +++ b/Dlp/samples/V2/DlpServiceClient/list_connections.php @@ -30,11 +30,13 @@ use Google\Cloud\Dlp\V2\ListConnectionsRequest; /** - * Lists Connections in a parent. + * Lists Connections in a parent. Use SearchConnections to see all connections + * within an organization. * - * @param string $formattedParent Parent name, for example: - * `projects/project-id/locations/global`. Please see - * {@see DlpServiceClient::locationName()} for help formatting this field. + * @param string $formattedParent Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. Please see + * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. */ function list_connections_sample(string $formattedParent): void { @@ -70,7 +72,7 @@ function list_connections_sample(string $formattedParent): void */ function callSample(): void { - $formattedParent = DlpServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); list_connections_sample($formattedParent); } diff --git a/Dlp/samples/V2/DlpServiceClient/list_deidentify_templates.php b/Dlp/samples/V2/DlpServiceClient/list_deidentify_templates.php index 7bdeb956c37b..f1042cb1e5d3 100644 --- a/Dlp/samples/V2/DlpServiceClient/list_deidentify_templates.php +++ b/Dlp/samples/V2/DlpServiceClient/list_deidentify_templates.php @@ -42,13 +42,13 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/list_discovery_configs.php b/Dlp/samples/V2/DlpServiceClient/list_discovery_configs.php index 8c1058ecbbee..89d0a3664367 100644 --- a/Dlp/samples/V2/DlpServiceClient/list_discovery_configs.php +++ b/Dlp/samples/V2/DlpServiceClient/list_discovery_configs.php @@ -35,7 +35,7 @@ * @param string $formattedParent Parent resource name. * * The format of this value is as follows: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/list_dlp_jobs.php b/Dlp/samples/V2/DlpServiceClient/list_dlp_jobs.php index 9d0f3b10c457..6163f463bb0b 100644 --- a/Dlp/samples/V2/DlpServiceClient/list_dlp_jobs.php +++ b/Dlp/samples/V2/DlpServiceClient/list_dlp_jobs.php @@ -44,9 +44,9 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/list_inspect_templates.php b/Dlp/samples/V2/DlpServiceClient/list_inspect_templates.php index f83115ffc8cf..ea9088d76840 100644 --- a/Dlp/samples/V2/DlpServiceClient/list_inspect_templates.php +++ b/Dlp/samples/V2/DlpServiceClient/list_inspect_templates.php @@ -42,13 +42,13 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/list_job_triggers.php b/Dlp/samples/V2/DlpServiceClient/list_job_triggers.php index 8f6fd5c602a7..5e09d6d4172d 100644 --- a/Dlp/samples/V2/DlpServiceClient/list_job_triggers.php +++ b/Dlp/samples/V2/DlpServiceClient/list_job_triggers.php @@ -42,9 +42,9 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/list_stored_info_types.php b/Dlp/samples/V2/DlpServiceClient/list_stored_info_types.php index 2832c2ef21fc..a1dcdc739bff 100644 --- a/Dlp/samples/V2/DlpServiceClient/list_stored_info_types.php +++ b/Dlp/samples/V2/DlpServiceClient/list_stored_info_types.php @@ -42,9 +42,9 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/reidentify_content.php b/Dlp/samples/V2/DlpServiceClient/reidentify_content.php index 2676405dcb3a..b1b0dd39080f 100644 --- a/Dlp/samples/V2/DlpServiceClient/reidentify_content.php +++ b/Dlp/samples/V2/DlpServiceClient/reidentify_content.php @@ -41,9 +41,9 @@ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location diff --git a/Dlp/samples/V2/DlpServiceClient/search_connections.php b/Dlp/samples/V2/DlpServiceClient/search_connections.php index 8156bf13200e..3bd270e9130b 100644 --- a/Dlp/samples/V2/DlpServiceClient/search_connections.php +++ b/Dlp/samples/V2/DlpServiceClient/search_connections.php @@ -32,9 +32,10 @@ /** * Searches for Connections in a parent. * - * @param string $formattedParent Parent name, typically an organization, without location. - * For example: `organizations/12345678`. Please see - * {@see DlpServiceClient::locationName()} for help formatting this field. + * @param string $formattedParent Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. Please see + * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. */ function search_connections_sample(string $formattedParent): void { @@ -70,7 +71,7 @@ function search_connections_sample(string $formattedParent): void */ function callSample(): void { - $formattedParent = DlpServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); search_connections_sample($formattedParent); } diff --git a/Dlp/src/V2/Client/DlpServiceClient.php b/Dlp/src/V2/Client/DlpServiceClient.php index 86b1e9902fb9..aa607eb479ea 100644 --- a/Dlp/src/V2/Client/DlpServiceClient.php +++ b/Dlp/src/V2/Client/DlpServiceClient.php @@ -476,6 +476,25 @@ public static function organizationLocationColumnDataProfileName(string $organiz ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_connection resource. + * + * @param string $organization + * @param string $location + * @param string $connection + * + * @return string The formatted organization_location_connection resource. + */ + public static function organizationLocationConnectionName(string $organization, string $location, string $connection): string + { + return self::getPathTemplate('organizationLocationConnection')->render([ + 'organization' => $organization, + 'location' => $location, + 'connection' => $connection, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * organization_location_deidentify_template resource. @@ -728,6 +747,25 @@ public static function projectLocationColumnDataProfileName(string $project, str ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_connection resource. + * + * @param string $project + * @param string $location + * @param string $connection + * + * @return string The formatted project_location_connection resource. + */ + public static function projectLocationConnectionName(string $project, string $location, string $connection): string + { + return self::getPathTemplate('projectLocationConnection')->render([ + 'project' => $project, + 'location' => $location, + 'connection' => $connection, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * project_location_deidentify_template resource. @@ -951,6 +989,7 @@ public static function tableDataProfileName(string $organization, string $locati * - organizationInspectTemplate: organizations/{organization}/inspectTemplates/{inspect_template} * - organizationLocation: organizations/{organization}/locations/{location} * - organizationLocationColumnDataProfile: organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile} + * - organizationLocationConnection: organizations/{organization}/locations/{location}/connections/{connection} * - organizationLocationDeidentifyTemplate: organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template} * - organizationLocationFileStoreDataProfile: organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} * - organizationLocationInspectTemplate: organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template} @@ -965,6 +1004,7 @@ public static function tableDataProfileName(string $organization, string $locati * - projectInspectTemplate: projects/{project}/inspectTemplates/{inspect_template} * - projectJobTrigger: projects/{project}/jobTriggers/{job_trigger} * - projectLocationColumnDataProfile: projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile} + * - projectLocationConnection: projects/{project}/locations/{location}/connections/{connection} * - projectLocationDeidentifyTemplate: projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template} * - projectLocationDlpJob: projects/{project}/locations/{location}/dlpJobs/{dlp_job} * - projectLocationFileStoreDataProfile: projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} @@ -2049,7 +2089,8 @@ public function listColumnDataProfiles(ListColumnDataProfilesRequest $request, a } /** - * Lists Connections in a parent. + * Lists Connections in a parent. Use SearchConnections to see all connections + * within an organization. * * The async variant is {@see DlpServiceClient::listConnectionsAsync()} . * diff --git a/Dlp/src/V2/CreateConnectionRequest.php b/Dlp/src/V2/CreateConnectionRequest.php index 81398dd6d830..06695c5714a4 100644 --- a/Dlp/src/V2/CreateConnectionRequest.php +++ b/Dlp/src/V2/CreateConnectionRequest.php @@ -16,8 +16,13 @@ class CreateConnectionRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Parent resource name in the format: - * `projects/{project}/locations/{location}`. + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ @@ -30,9 +35,16 @@ class CreateConnectionRequest extends \Google\Protobuf\Internal\Message private $connection = null; /** - * @param string $parent Required. Parent resource name in the format: - * `projects/{project}/locations/{location}`. Please see - * {@see DlpServiceClient::locationName()} for help formatting this field. + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization): + * + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. * @param \Google\Cloud\Dlp\V2\Connection $connection Required. The connection resource. * * @return \Google\Cloud\Dlp\V2\CreateConnectionRequest @@ -53,8 +65,13 @@ public static function build(string $parent, \Google\Cloud\Dlp\V2\Connection $co * Optional. Data for populating the Message object. * * @type string $parent - * Required. Parent resource name in the format: - * `projects/{project}/locations/{location}`. + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` * @type \Google\Cloud\Dlp\V2\Connection $connection * Required. The connection resource. * } @@ -65,8 +82,13 @@ public function __construct($data = NULL) { } /** - * Required. Parent resource name in the format: - * `projects/{project}/locations/{location}`. + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string @@ -77,8 +99,13 @@ public function getParent() } /** - * Required. Parent resource name in the format: - * `projects/{project}/locations/{location}`. + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var diff --git a/Dlp/src/V2/CreateDeidentifyTemplateRequest.php b/Dlp/src/V2/CreateDeidentifyTemplateRequest.php index 5e1aa5550bc1..846d8764d9fc 100644 --- a/Dlp/src/V2/CreateDeidentifyTemplateRequest.php +++ b/Dlp/src/V2/CreateDeidentifyTemplateRequest.php @@ -21,13 +21,13 @@ class CreateDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -66,13 +66,13 @@ class CreateDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -105,13 +105,13 @@ public static function build(string $parent, \Google\Cloud\Dlp\V2\DeidentifyTemp * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -138,13 +138,13 @@ public function __construct($data = NULL) { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -164,13 +164,13 @@ public function getParent() * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/CreateDiscoveryConfigRequest.php b/Dlp/src/V2/CreateDiscoveryConfigRequest.php index ab8e5a5b654b..fea8de6681d6 100644 --- a/Dlp/src/V2/CreateDiscoveryConfigRequest.php +++ b/Dlp/src/V2/CreateDiscoveryConfigRequest.php @@ -20,9 +20,9 @@ class CreateDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message * The format of this value varies depending on the scope of the request * (project or organization): * + Projects scope: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Organizations scope: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -54,9 +54,9 @@ class CreateDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message * (project or organization): * * + Projects scope: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Organizations scope: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -88,9 +88,9 @@ public static function build(string $parent, \Google\Cloud\Dlp\V2\DiscoveryConfi * The format of this value varies depending on the scope of the request * (project or organization): * + Projects scope: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Organizations scope: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -114,9 +114,9 @@ public function __construct($data = NULL) { * The format of this value varies depending on the scope of the request * (project or organization): * + Projects scope: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Organizations scope: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -135,9 +135,9 @@ public function getParent() * The format of this value varies depending on the scope of the request * (project or organization): * + Projects scope: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Organizations scope: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/CreateDlpJobRequest.php b/Dlp/src/V2/CreateDlpJobRequest.php index 1ad4288b0cd5..8cbca248cace 100644 --- a/Dlp/src/V2/CreateDlpJobRequest.php +++ b/Dlp/src/V2/CreateDlpJobRequest.php @@ -23,9 +23,9 @@ class CreateDlpJobRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -59,9 +59,9 @@ class CreateDlpJobRequest extends \Google\Protobuf\Internal\Message * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -90,9 +90,9 @@ public static function build(string $parent, \Google\Cloud\Dlp\V2\InspectJobConf * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -126,9 +126,9 @@ public static function buildFromParentRiskJob(string $parent, \Google\Cloud\Dlp\ * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -158,9 +158,9 @@ public function __construct($data = NULL) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -180,9 +180,9 @@ public function getParent() * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/CreateInspectTemplateRequest.php b/Dlp/src/V2/CreateInspectTemplateRequest.php index e98a86ab2d4a..d03589159558 100644 --- a/Dlp/src/V2/CreateInspectTemplateRequest.php +++ b/Dlp/src/V2/CreateInspectTemplateRequest.php @@ -21,13 +21,13 @@ class CreateInspectTemplateRequest extends \Google\Protobuf\Internal\Message * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -66,13 +66,13 @@ class CreateInspectTemplateRequest extends \Google\Protobuf\Internal\Message * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -105,13 +105,13 @@ public static function build(string $parent, \Google\Cloud\Dlp\V2\InspectTemplat * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -138,13 +138,13 @@ public function __construct($data = NULL) { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -164,13 +164,13 @@ public function getParent() * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/CreateJobTriggerRequest.php b/Dlp/src/V2/CreateJobTriggerRequest.php index d70c3be0b389..98a024549792 100644 --- a/Dlp/src/V2/CreateJobTriggerRequest.php +++ b/Dlp/src/V2/CreateJobTriggerRequest.php @@ -21,9 +21,9 @@ class CreateJobTriggerRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -62,9 +62,9 @@ class CreateJobTriggerRequest extends \Google\Protobuf\Internal\Message * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -97,9 +97,9 @@ public static function build(string $parent, \Google\Cloud\Dlp\V2\JobTrigger $jo * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -126,9 +126,9 @@ public function __construct($data = NULL) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -148,9 +148,9 @@ public function getParent() * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/CreateStoredInfoTypeRequest.php b/Dlp/src/V2/CreateStoredInfoTypeRequest.php index c5c93ed55339..3772acf36d8b 100644 --- a/Dlp/src/V2/CreateStoredInfoTypeRequest.php +++ b/Dlp/src/V2/CreateStoredInfoTypeRequest.php @@ -21,13 +21,13 @@ class CreateStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -66,13 +66,13 @@ class CreateStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -105,13 +105,13 @@ public static function build(string $parent, \Google\Cloud\Dlp\V2\StoredInfoType * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -138,13 +138,13 @@ public function __construct($data = NULL) { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -164,13 +164,13 @@ public function getParent() * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/CryptoReplaceFfxFpeConfig.php b/Dlp/src/V2/CryptoReplaceFfxFpeConfig.php index 25ac209d951b..a4190904f1db 100644 --- a/Dlp/src/V2/CryptoReplaceFfxFpeConfig.php +++ b/Dlp/src/V2/CryptoReplaceFfxFpeConfig.php @@ -115,8 +115,7 @@ class CryptoReplaceFfxFpeConfig extends \Google\Protobuf\Internal\Message * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/ + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` * @type int $radix * The native way to select the alphabet. Must be in the range [2, 95]. * @type \Google\Cloud\Dlp\V2\InfoType $surrogate_info_type @@ -287,8 +286,7 @@ public function setCommonAlphabet($var) * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/ + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` * * Generated from protobuf field string custom_alphabet = 5; * @return string @@ -312,8 +310,7 @@ public function hasCustomAlphabet() * This must be encoded as ASCII. * The order of characters does not matter. * The full list of allowed characters is: - * 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - * ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/ + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` * * Generated from protobuf field string custom_alphabet = 5; * @param string $var diff --git a/Dlp/src/V2/DeidentifyContentRequest.php b/Dlp/src/V2/DeidentifyContentRequest.php index f78793442138..62ba0a747a5b 100644 --- a/Dlp/src/V2/DeidentifyContentRequest.php +++ b/Dlp/src/V2/DeidentifyContentRequest.php @@ -21,9 +21,9 @@ class DeidentifyContentRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -99,9 +99,9 @@ class DeidentifyContentRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -149,9 +149,9 @@ public function __construct($data = NULL) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -171,9 +171,9 @@ public function getParent() * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/DiscoveryGenerationCadence.php b/Dlp/src/V2/DiscoveryGenerationCadence.php index 20dcb348c121..dd6e4455e80d 100644 --- a/Dlp/src/V2/DiscoveryGenerationCadence.php +++ b/Dlp/src/V2/DiscoveryGenerationCadence.php @@ -38,6 +38,13 @@ class DiscoveryGenerationCadence extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; */ private $inspect_template_modified_cadence = null; + /** + * Frequency at which profiles should be updated, regardless of whether the + * underlying resource has changed. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + */ + private $refresh_frequency = 0; /** * Constructor. @@ -53,6 +60,9 @@ class DiscoveryGenerationCadence extends \Google\Protobuf\Internal\Message * Governs when to update data profiles when the inspection rules * defined by the `InspectTemplate` change. * If not set, changing the template will not cause a data profile to update. + * @type int $refresh_frequency + * Frequency at which profiles should be updated, regardless of whether the + * underlying resource has changed. Defaults to never. * } */ public function __construct($data = NULL) { @@ -172,5 +182,33 @@ public function setInspectTemplateModifiedCadence($var) return $this; } + /** + * Frequency at which profiles should be updated, regardless of whether the + * underlying resource has changed. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * @return int + */ + public function getRefreshFrequency() + { + return $this->refresh_frequency; + } + + /** + * Frequency at which profiles should be updated, regardless of whether the + * underlying resource has changed. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * @param int $var + * @return $this + */ + public function setRefreshFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); + $this->refresh_frequency = $var; + + return $this; + } + } diff --git a/Dlp/src/V2/DiscoveryStartingLocation.php b/Dlp/src/V2/DiscoveryStartingLocation.php index a8272a44e29b..a4dea43d8df0 100644 --- a/Dlp/src/V2/DiscoveryStartingLocation.php +++ b/Dlp/src/V2/DiscoveryStartingLocation.php @@ -27,7 +27,7 @@ class DiscoveryStartingLocation extends \Google\Protobuf\Internal\Message * @type int|string $organization_id * The ID of an organization to scan. * @type int|string $folder_id - * The ID of the folder within an organization to scan. + * The ID of the folder within an organization to be scanned. * } */ public function __construct($data = NULL) { @@ -67,7 +67,7 @@ public function setOrganizationId($var) } /** - * The ID of the folder within an organization to scan. + * The ID of the folder within an organization to be scanned. * * Generated from protobuf field int64 folder_id = 2; * @return int|string @@ -83,7 +83,7 @@ public function hasFolderId() } /** - * The ID of the folder within an organization to scan. + * The ID of the folder within an organization to be scanned. * * Generated from protobuf field int64 folder_id = 2; * @param int|string $var diff --git a/Dlp/src/V2/FileClusterType/Cluster.php b/Dlp/src/V2/FileClusterType/Cluster.php index a82c48b70c5b..667b4beb37f5 100644 --- a/Dlp/src/V2/FileClusterType/Cluster.php +++ b/Dlp/src/V2/FileClusterType/Cluster.php @@ -8,7 +8,7 @@ /** * Cluster type. Each cluster corresponds to a set of file types. - * Over time new types may be added. + * Over time, new types may be added and files may move between clusters. * * Protobuf type google.privacy.dlp.v2.FileClusterType.Cluster */ diff --git a/Dlp/src/V2/Gapic/DlpServiceGapicClient.php b/Dlp/src/V2/Gapic/DlpServiceGapicClient.php index eb633e92f4ef..297a6696bd38 100644 --- a/Dlp/src/V2/Gapic/DlpServiceGapicClient.php +++ b/Dlp/src/V2/Gapic/DlpServiceGapicClient.php @@ -217,6 +217,8 @@ class DlpServiceGapicClient private static $organizationLocationColumnDataProfileNameTemplate; + private static $organizationLocationConnectionNameTemplate; + private static $organizationLocationDeidentifyTemplateNameTemplate; private static $organizationLocationFileStoreDataProfileNameTemplate; @@ -245,6 +247,8 @@ class DlpServiceGapicClient private static $projectLocationColumnDataProfileNameTemplate; + private static $projectLocationConnectionNameTemplate; + private static $projectLocationDeidentifyTemplateNameTemplate; private static $projectLocationDlpJobNameTemplate; @@ -448,6 +452,17 @@ private static function getOrganizationLocationColumnDataProfileNameTemplate() return self::$organizationLocationColumnDataProfileNameTemplate; } + private static function getOrganizationLocationConnectionNameTemplate() + { + if (self::$organizationLocationConnectionNameTemplate == null) { + self::$organizationLocationConnectionNameTemplate = new PathTemplate( + 'organizations/{organization}/locations/{location}/connections/{connection}' + ); + } + + return self::$organizationLocationConnectionNameTemplate; + } + private static function getOrganizationLocationDeidentifyTemplateNameTemplate() { if (self::$organizationLocationDeidentifyTemplateNameTemplate == null) { @@ -602,6 +617,17 @@ private static function getProjectLocationColumnDataProfileNameTemplate() return self::$projectLocationColumnDataProfileNameTemplate; } + private static function getProjectLocationConnectionNameTemplate() + { + if (self::$projectLocationConnectionNameTemplate == null) { + self::$projectLocationConnectionNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/connections/{connection}' + ); + } + + return self::$projectLocationConnectionNameTemplate; + } + private static function getProjectLocationDeidentifyTemplateNameTemplate() { if (self::$projectLocationDeidentifyTemplateNameTemplate == null) { @@ -741,6 +767,7 @@ private static function getPathTemplateMap() 'organizationInspectTemplate' => self::getOrganizationInspectTemplateNameTemplate(), 'organizationLocation' => self::getOrganizationLocationNameTemplate(), 'organizationLocationColumnDataProfile' => self::getOrganizationLocationColumnDataProfileNameTemplate(), + 'organizationLocationConnection' => self::getOrganizationLocationConnectionNameTemplate(), 'organizationLocationDeidentifyTemplate' => self::getOrganizationLocationDeidentifyTemplateNameTemplate(), 'organizationLocationFileStoreDataProfile' => self::getOrganizationLocationFileStoreDataProfileNameTemplate(), 'organizationLocationInspectTemplate' => self::getOrganizationLocationInspectTemplateNameTemplate(), @@ -755,6 +782,7 @@ private static function getPathTemplateMap() 'projectInspectTemplate' => self::getProjectInspectTemplateNameTemplate(), 'projectJobTrigger' => self::getProjectJobTriggerNameTemplate(), 'projectLocationColumnDataProfile' => self::getProjectLocationColumnDataProfileNameTemplate(), + 'projectLocationConnection' => self::getProjectLocationConnectionNameTemplate(), 'projectLocationDeidentifyTemplate' => self::getProjectLocationDeidentifyTemplateNameTemplate(), 'projectLocationDlpJob' => self::getProjectLocationDlpJobNameTemplate(), 'projectLocationFileStoreDataProfile' => self::getProjectLocationFileStoreDataProfileNameTemplate(), @@ -1038,6 +1066,28 @@ public static function organizationLocationColumnDataProfileName( ); } + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_connection resource. + * + * @param string $organization + * @param string $location + * @param string $connection + * + * @return string The formatted organization_location_connection resource. + */ + public static function organizationLocationConnectionName( + $organization, + $location, + $connection + ) { + return self::getOrganizationLocationConnectionNameTemplate()->render([ + 'organization' => $organization, + 'location' => $location, + 'connection' => $connection, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * organization_location_deidentify_template resource. @@ -1332,6 +1382,28 @@ public static function projectLocationColumnDataProfileName( ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_connection resource. + * + * @param string $project + * @param string $location + * @param string $connection + * + * @return string The formatted project_location_connection resource. + */ + public static function projectLocationConnectionName( + $project, + $location, + $connection + ) { + return self::getProjectLocationConnectionNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'connection' => $connection, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * project_location_deidentify_template resource. @@ -1588,6 +1660,7 @@ public static function tableDataProfileName( * - organizationInspectTemplate: organizations/{organization}/inspectTemplates/{inspect_template} * - organizationLocation: organizations/{organization}/locations/{location} * - organizationLocationColumnDataProfile: organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile} + * - organizationLocationConnection: organizations/{organization}/locations/{location}/connections/{connection} * - organizationLocationDeidentifyTemplate: organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template} * - organizationLocationFileStoreDataProfile: organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} * - organizationLocationInspectTemplate: organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template} @@ -1602,6 +1675,7 @@ public static function tableDataProfileName( * - projectInspectTemplate: projects/{project}/inspectTemplates/{inspect_template} * - projectJobTrigger: projects/{project}/jobTriggers/{job_trigger} * - projectLocationColumnDataProfile: projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile} + * - projectLocationConnection: projects/{project}/locations/{location}/connections/{connection} * - projectLocationDeidentifyTemplate: projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template} * - projectLocationDlpJob: projects/{project}/locations/{location}/dlpJobs/{dlp_job} * - projectLocationFileStoreDataProfile: projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} @@ -1823,7 +1897,7 @@ public function cancelDlpJob($name, array $optionalArgs = []) * ``` * $dlpServiceClient = new DlpServiceClient(); * try { - * $formattedParent = $dlpServiceClient->locationName('[PROJECT]', '[LOCATION]'); + * $formattedParent = $dlpServiceClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); * $connection = new Connection(); * $response = $dlpServiceClient->createConnection($formattedParent, $connection); * } finally { @@ -1831,8 +1905,15 @@ public function cancelDlpJob($name, array $optionalArgs = []) * } * ``` * - * @param string $parent Required. Parent resource name in the format: - * `projects/{project}/locations/{location}`. + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization): + * + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` * @param Connection $connection Required. The connection resource. * @param array $optionalArgs { * Optional. @@ -1897,13 +1978,13 @@ public function createConnection( * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -1984,9 +2065,9 @@ public function createDeidentifyTemplate( * (project or organization): * * + Projects scope: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Organizations scope: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -2070,9 +2151,9 @@ public function createDiscoveryConfig( * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -2168,13 +2249,13 @@ public function createDlpJob($parent, array $optionalArgs = []) * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -2260,9 +2341,9 @@ public function createInspectTemplate( * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -2347,13 +2428,13 @@ public function createJobTrigger( * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -2445,9 +2526,9 @@ public function createStoredInfoType( * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -3744,9 +3825,9 @@ public function hybridInspectJobTrigger($name, array $optionalArgs = []) * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -3957,13 +4038,14 @@ public function listColumnDataProfiles($parent, array $optionalArgs = []) } /** - * Lists Connections in a parent. + * Lists Connections in a parent. Use SearchConnections to see all connections + * within an organization. * * Sample code: * ``` * $dlpServiceClient = new DlpServiceClient(); * try { - * $formattedParent = $dlpServiceClient->locationName('[PROJECT]', '[LOCATION]'); + * $formattedParent = $dlpServiceClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); * // Iterate over pages of elements * $pagedResponse = $dlpServiceClient->listConnections($formattedParent); * foreach ($pagedResponse->iteratePages() as $page) { @@ -3982,8 +4064,9 @@ public function listColumnDataProfiles($parent, array $optionalArgs = []) * } * ``` * - * @param string $parent Required. Parent name, for example: - * `projects/project-id/locations/global`. + * @param string $parent Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. * @param array $optionalArgs { * Optional. * @@ -4076,13 +4159,13 @@ public function listConnections($parent, array $optionalArgs = []) * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -4192,7 +4275,7 @@ public function listDeidentifyTemplates($parent, array $optionalArgs = []) * @param string $parent Required. Parent resource name. * * The format of this value is as follows: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -4304,9 +4387,9 @@ public function listDiscoveryConfigs($parent, array $optionalArgs = []) * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -4588,7 +4671,7 @@ public function listFileStoreDataProfiles($parent, array $optionalArgs = []) * * The format of this value is as follows: * - * locations/LOCATION_ID + * `locations/{location_id}` * @type string $languageCode * BCP-47 language code for localized infoType friendly * names. If omitted, or if localized strings are not available, @@ -4679,13 +4762,13 @@ public function listInfoTypes(array $optionalArgs = []) * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -4802,9 +4885,9 @@ public function listInspectTemplates($parent, array $optionalArgs = []) * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -5083,9 +5166,9 @@ public function listProjectDataProfiles($parent, array $optionalArgs = []) * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -5336,9 +5419,9 @@ public function listTableDataProfiles($parent, array $optionalArgs = []) * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -5435,9 +5518,9 @@ public function redactImage(array $optionalArgs = []) * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -5543,7 +5626,7 @@ public function reidentifyContent($parent, array $optionalArgs = []) * ``` * $dlpServiceClient = new DlpServiceClient(); * try { - * $formattedParent = $dlpServiceClient->locationName('[PROJECT]', '[LOCATION]'); + * $formattedParent = $dlpServiceClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); * // Iterate over pages of elements * $pagedResponse = $dlpServiceClient->searchConnections($formattedParent); * foreach ($pagedResponse->iteratePages() as $page) { @@ -5562,8 +5645,9 @@ public function reidentifyContent($parent, array $optionalArgs = []) * } * ``` * - * @param string $parent Required. Parent name, typically an organization, without location. - * For example: `organizations/12345678`. + * @param string $parent Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. * @param array $optionalArgs { * Optional. * diff --git a/Dlp/src/V2/InspectContentRequest.php b/Dlp/src/V2/InspectContentRequest.php index 34a193b7ea77..5bc9f2b3f4fe 100644 --- a/Dlp/src/V2/InspectContentRequest.php +++ b/Dlp/src/V2/InspectContentRequest.php @@ -21,9 +21,9 @@ class InspectContentRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -74,9 +74,9 @@ class InspectContentRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -107,9 +107,9 @@ public function __construct($data = NULL) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -129,9 +129,9 @@ public function getParent() * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/ListConnectionsRequest.php b/Dlp/src/V2/ListConnectionsRequest.php index e6370d01f268..8723d805f8a5 100644 --- a/Dlp/src/V2/ListConnectionsRequest.php +++ b/Dlp/src/V2/ListConnectionsRequest.php @@ -16,8 +16,9 @@ class ListConnectionsRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Parent name, for example: - * `projects/project-id/locations/global`. + * Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ @@ -43,9 +44,10 @@ class ListConnectionsRequest extends \Google\Protobuf\Internal\Message private $filter = ''; /** - * @param string $parent Required. Parent name, for example: - * `projects/project-id/locations/global`. Please see - * {@see DlpServiceClient::locationName()} for help formatting this field. + * @param string $parent Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. Please see + * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. * * @return \Google\Cloud\Dlp\V2\ListConnectionsRequest * @@ -64,8 +66,9 @@ public static function build(string $parent): self * Optional. Data for populating the Message object. * * @type string $parent - * Required. Parent name, for example: - * `projects/project-id/locations/global`. + * Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. * @type int $page_size * Optional. Number of results per page, max 1000. * @type string $page_token @@ -81,8 +84,9 @@ public function __construct($data = NULL) { } /** - * Required. Parent name, for example: - * `projects/project-id/locations/global`. + * Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string @@ -93,8 +97,9 @@ public function getParent() } /** - * Required. Parent name, for example: - * `projects/project-id/locations/global`. + * Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var diff --git a/Dlp/src/V2/ListDeidentifyTemplatesRequest.php b/Dlp/src/V2/ListDeidentifyTemplatesRequest.php index 67ed2a240891..2f88aecbe134 100644 --- a/Dlp/src/V2/ListDeidentifyTemplatesRequest.php +++ b/Dlp/src/V2/ListDeidentifyTemplatesRequest.php @@ -21,13 +21,13 @@ class ListDeidentifyTemplatesRequest extends \Google\Protobuf\Internal\Message * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -80,13 +80,13 @@ class ListDeidentifyTemplatesRequest extends \Google\Protobuf\Internal\Message * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -117,13 +117,13 @@ public static function build(string $parent): self * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -160,13 +160,13 @@ public function __construct($data = NULL) { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -186,13 +186,13 @@ public function getParent() * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/ListDiscoveryConfigsRequest.php b/Dlp/src/V2/ListDiscoveryConfigsRequest.php index c83a81063dcb..f063b0d1f86b 100644 --- a/Dlp/src/V2/ListDiscoveryConfigsRequest.php +++ b/Dlp/src/V2/ListDiscoveryConfigsRequest.php @@ -18,7 +18,7 @@ class ListDiscoveryConfigsRequest extends \Google\Protobuf\Internal\Message /** * Required. Parent resource name. * The format of this value is as follows: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -60,7 +60,7 @@ class ListDiscoveryConfigsRequest extends \Google\Protobuf\Internal\Message * @param string $parent Required. Parent resource name. * * The format of this value is as follows: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -88,7 +88,7 @@ public static function build(string $parent): self * @type string $parent * Required. Parent resource name. * The format of this value is as follows: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -119,7 +119,7 @@ public function __construct($data = NULL) { /** * Required. Parent resource name. * The format of this value is as follows: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -136,7 +136,7 @@ public function getParent() /** * Required. Parent resource name. * The format of this value is as follows: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/ListDlpJobsRequest.php b/Dlp/src/V2/ListDlpJobsRequest.php index 7b6916501ef6..bf7d8944b166 100644 --- a/Dlp/src/V2/ListDlpJobsRequest.php +++ b/Dlp/src/V2/ListDlpJobsRequest.php @@ -21,9 +21,9 @@ class ListDlpJobsRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -108,9 +108,9 @@ class ListDlpJobsRequest extends \Google\Protobuf\Internal\Message * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -141,9 +141,9 @@ public static function build(string $parent): self * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -204,9 +204,9 @@ public function __construct($data = NULL) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -226,9 +226,9 @@ public function getParent() * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/ListInfoTypesRequest.php b/Dlp/src/V2/ListInfoTypesRequest.php index 9023c02f2898..ddcb3253c830 100644 --- a/Dlp/src/V2/ListInfoTypesRequest.php +++ b/Dlp/src/V2/ListInfoTypesRequest.php @@ -18,7 +18,7 @@ class ListInfoTypesRequest extends \Google\Protobuf\Internal\Message /** * The parent resource name. * The format of this value is as follows: - * locations/LOCATION_ID + * `locations/{location_id}` * * Generated from protobuf field string parent = 4; */ @@ -50,7 +50,7 @@ class ListInfoTypesRequest extends \Google\Protobuf\Internal\Message * * The format of this value is as follows: * - * locations/LOCATION_ID + * `locations/{location_id}` * * @return \Google\Cloud\Dlp\V2\ListInfoTypesRequest * @@ -71,7 +71,7 @@ public static function build(string $parent): self * @type string $parent * The parent resource name. * The format of this value is as follows: - * locations/LOCATION_ID + * `locations/{location_id}` * @type string $language_code * BCP-47 language code for localized infoType friendly * names. If omitted, or if localized strings are not available, @@ -91,7 +91,7 @@ public function __construct($data = NULL) { /** * The parent resource name. * The format of this value is as follows: - * locations/LOCATION_ID + * `locations/{location_id}` * * Generated from protobuf field string parent = 4; * @return string @@ -104,7 +104,7 @@ public function getParent() /** * The parent resource name. * The format of this value is as follows: - * locations/LOCATION_ID + * `locations/{location_id}` * * Generated from protobuf field string parent = 4; * @param string $var diff --git a/Dlp/src/V2/ListInspectTemplatesRequest.php b/Dlp/src/V2/ListInspectTemplatesRequest.php index 4351d1ad60f8..cfb34486d8d8 100644 --- a/Dlp/src/V2/ListInspectTemplatesRequest.php +++ b/Dlp/src/V2/ListInspectTemplatesRequest.php @@ -21,13 +21,13 @@ class ListInspectTemplatesRequest extends \Google\Protobuf\Internal\Message * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -80,13 +80,13 @@ class ListInspectTemplatesRequest extends \Google\Protobuf\Internal\Message * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -117,13 +117,13 @@ public static function build(string $parent): self * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -160,13 +160,13 @@ public function __construct($data = NULL) { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -186,13 +186,13 @@ public function getParent() * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * + Organizations scope, location specified: - * `organizations/`ORG_ID`/locations/`LOCATION_ID + * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): - * `organizations/`ORG_ID + * `organizations/{org_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/ListJobTriggersRequest.php b/Dlp/src/V2/ListJobTriggersRequest.php index ea2f35b33383..e909d2754627 100644 --- a/Dlp/src/V2/ListJobTriggersRequest.php +++ b/Dlp/src/V2/ListJobTriggersRequest.php @@ -21,9 +21,9 @@ class ListJobTriggersRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -108,9 +108,9 @@ class ListJobTriggersRequest extends \Google\Protobuf\Internal\Message * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -141,9 +141,9 @@ public static function build(string $parent): self * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -204,9 +204,9 @@ public function __construct($data = NULL) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -226,9 +226,9 @@ public function getParent() * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/ListStoredInfoTypesRequest.php b/Dlp/src/V2/ListStoredInfoTypesRequest.php index 92f8b64bce8d..f7d1cb75fdf2 100644 --- a/Dlp/src/V2/ListStoredInfoTypesRequest.php +++ b/Dlp/src/V2/ListStoredInfoTypesRequest.php @@ -21,9 +21,9 @@ class ListStoredInfoTypesRequest extends \Google\Protobuf\Internal\Message * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -77,9 +77,9 @@ class ListStoredInfoTypesRequest extends \Google\Protobuf\Internal\Message * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location @@ -110,9 +110,9 @@ public static function build(string $parent): self * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -150,9 +150,9 @@ public function __construct($data = NULL) { * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -172,9 +172,9 @@ public function getParent() * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/RedactImageRequest.php b/Dlp/src/V2/RedactImageRequest.php index ec8783855cda..cbd419775dea 100644 --- a/Dlp/src/V2/RedactImageRequest.php +++ b/Dlp/src/V2/RedactImageRequest.php @@ -22,9 +22,9 @@ class RedactImageRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -77,9 +77,9 @@ class RedactImageRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -108,9 +108,9 @@ public function __construct($data = NULL) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -130,9 +130,9 @@ public function getParent() * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/ReidentifyContentRequest.php b/Dlp/src/V2/ReidentifyContentRequest.php index 6e33662e0ee9..cc479dddad22 100644 --- a/Dlp/src/V2/ReidentifyContentRequest.php +++ b/Dlp/src/V2/ReidentifyContentRequest.php @@ -21,9 +21,9 @@ class ReidentifyContentRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -99,9 +99,9 @@ class ReidentifyContentRequest extends \Google\Protobuf\Internal\Message * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -149,9 +149,9 @@ public function __construct($data = NULL) { * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: @@ -171,9 +171,9 @@ public function getParent() * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * + Projects scope, location specified: - * `projects/`PROJECT_ID`/locations/`LOCATION_ID + * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): - * `projects/`PROJECT_ID + * `projects/{project_id}` * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: diff --git a/Dlp/src/V2/SearchConnectionsRequest.php b/Dlp/src/V2/SearchConnectionsRequest.php index 0a7adbc09c6b..9935d48ce2e1 100644 --- a/Dlp/src/V2/SearchConnectionsRequest.php +++ b/Dlp/src/V2/SearchConnectionsRequest.php @@ -16,8 +16,9 @@ class SearchConnectionsRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Parent name, typically an organization, without location. - * For example: `organizations/12345678`. + * Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ @@ -43,9 +44,10 @@ class SearchConnectionsRequest extends \Google\Protobuf\Internal\Message private $filter = ''; /** - * @param string $parent Required. Parent name, typically an organization, without location. - * For example: `organizations/12345678`. Please see - * {@see DlpServiceClient::locationName()} for help formatting this field. + * @param string $parent Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. Please see + * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. * * @return \Google\Cloud\Dlp\V2\SearchConnectionsRequest * @@ -64,8 +66,9 @@ public static function build(string $parent): self * Optional. Data for populating the Message object. * * @type string $parent - * Required. Parent name, typically an organization, without location. - * For example: `organizations/12345678`. + * Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. * @type int $page_size * Optional. Number of results per page, max 1000. * @type string $page_token @@ -81,8 +84,9 @@ public function __construct($data = NULL) { } /** - * Required. Parent name, typically an organization, without location. - * For example: `organizations/12345678`. + * Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string @@ -93,8 +97,9 @@ public function getParent() } /** - * Required. Parent name, typically an organization, without location. - * For example: `organizations/12345678`. + * Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var diff --git a/Dlp/src/V2/StorageConfig/TimespanConfig.php b/Dlp/src/V2/StorageConfig/TimespanConfig.php index 26986cae0ae9..e02e6756c75e 100644 --- a/Dlp/src/V2/StorageConfig/TimespanConfig.php +++ b/Dlp/src/V2/StorageConfig/TimespanConfig.php @@ -33,7 +33,7 @@ class TimespanConfig extends \Google\Protobuf\Internal\Message /** * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. - * For BigQuery + * **For BigQuery** * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this * value is specified, then rows are filtered based on the given start and @@ -45,12 +45,10 @@ class TimespanConfig extends \Google\Protobuf\Internal\Message * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - * For Datastore + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` + * **For Datastore** * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp * property or contains empty or invalid values, then it is included. @@ -97,7 +95,7 @@ class TimespanConfig extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Dlp\V2\FieldId $timestamp_field * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. - * For BigQuery + * **For BigQuery** * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this * value is specified, then rows are filtered based on the given start and @@ -109,12 +107,10 @@ class TimespanConfig extends \Google\Protobuf\Internal\Message * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - * For Datastore + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` + * **For Datastore** * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp * property or contains empty or invalid values, then it is included. @@ -223,7 +219,7 @@ public function setEndTime($var) /** * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. - * For BigQuery + * **For BigQuery** * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this * value is specified, then rows are filtered based on the given start and @@ -235,12 +231,10 @@ public function setEndTime($var) * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - * For Datastore + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` + * **For Datastore** * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp * property or contains empty or invalid values, then it is included. @@ -271,7 +265,7 @@ public function clearTimestampField() /** * Specification of the field containing the timestamp of scanned items. * Used for data sources like Datastore and BigQuery. - * For BigQuery + * **For BigQuery** * If this value is not specified and the table was modified between the * given start and end times, the entire table will be scanned. If this * value is specified, then rows are filtered based on the given start and @@ -283,12 +277,10 @@ public function clearTimestampField() * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), * you can use any of the following pseudo-columns as your timestamp field. * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - * For Datastore + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` + * **For Datastore** * If this value is specified, then entities are filtered based on the given * start and end times. If an entity does not contain the provided timestamp * property or contains empty or invalid values, then it is included. diff --git a/Dlp/src/V2/resources/dlp_service_client_config.json b/Dlp/src/V2/resources/dlp_service_client_config.json index 3fc610cdfdcc..5850bca2a2e0 100644 --- a/Dlp/src/V2/resources/dlp_service_client_config.json +++ b/Dlp/src/V2/resources/dlp_service_client_config.json @@ -110,9 +110,9 @@ "retry_params_name": "retry_policy_1_params" }, "DeleteFileStoreDataProfile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "DeleteInspectTemplate": { "timeout_millis": 300000, @@ -165,9 +165,9 @@ "retry_params_name": "retry_policy_1_params" }, "GetFileStoreDataProfile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "GetInspectTemplate": { "timeout_millis": 300000, @@ -235,9 +235,9 @@ "retry_params_name": "retry_policy_1_params" }, "ListFileStoreDataProfiles": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "ListInfoTypes": { "timeout_millis": 300000, diff --git a/Dlp/src/V2/resources/dlp_service_descriptor_config.php b/Dlp/src/V2/resources/dlp_service_descriptor_config.php index 3b0c959c440e..e6bd4d0e9aaa 100644 --- a/Dlp/src/V2/resources/dlp_service_descriptor_config.php +++ b/Dlp/src/V2/resources/dlp_service_descriptor_config.php @@ -794,6 +794,7 @@ 'organizationInspectTemplate' => 'organizations/{organization}/inspectTemplates/{inspect_template}', 'organizationLocation' => 'organizations/{organization}/locations/{location}', 'organizationLocationColumnDataProfile' => 'organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}', + 'organizationLocationConnection' => 'organizations/{organization}/locations/{location}/connections/{connection}', 'organizationLocationDeidentifyTemplate' => 'organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}', 'organizationLocationFileStoreDataProfile' => 'organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', 'organizationLocationInspectTemplate' => 'organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}', @@ -808,6 +809,7 @@ 'projectInspectTemplate' => 'projects/{project}/inspectTemplates/{inspect_template}', 'projectJobTrigger' => 'projects/{project}/jobTriggers/{job_trigger}', 'projectLocationColumnDataProfile' => 'projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}', + 'projectLocationConnection' => 'projects/{project}/locations/{location}/connections/{connection}', 'projectLocationDeidentifyTemplate' => 'projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}', 'projectLocationDlpJob' => 'projects/{project}/locations/{location}/dlpJobs/{dlp_job}', 'projectLocationFileStoreDataProfile' => 'projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', diff --git a/Dlp/src/V2/resources/dlp_service_rest_client_config.php b/Dlp/src/V2/resources/dlp_service_rest_client_config.php index 32e90a48c9a8..9960de2fffba 100644 --- a/Dlp/src/V2/resources/dlp_service_rest_client_config.php +++ b/Dlp/src/V2/resources/dlp_service_rest_client_config.php @@ -65,6 +65,13 @@ 'method' => 'post', 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections', 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections', + 'body' => '*', + ], + ], 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -142,7 +149,7 @@ ], 'CreateInspectTemplate' => [ 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*}/inspectTemplates', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/inspectTemplates', 'body' => '*', 'additionalBindings' => [ [ @@ -157,7 +164,7 @@ ], [ 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/inspectTemplates', + 'uriTemplate' => '/v2/{parent=organizations/*}/inspectTemplates', 'body' => '*', ], ], @@ -244,6 +251,12 @@ 'DeleteConnection' => [ 'method' => 'delete', 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -330,7 +343,7 @@ ], 'DeleteInspectTemplate' => [ 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', 'additionalBindings' => [ [ 'method' => 'delete', @@ -342,7 +355,7 @@ ], [ 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', + 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', ], ], 'placeholders' => [ @@ -448,6 +461,12 @@ 'GetConnection' => [ 'method' => 'get', 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -534,7 +553,7 @@ ], 'GetInspectTemplate' => [ 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', 'additionalBindings' => [ [ 'method' => 'get', @@ -546,7 +565,7 @@ ], [ 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', + 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', ], ], 'placeholders' => [ @@ -700,6 +719,12 @@ 'ListConnections' => [ 'method' => 'get', 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections', + ], + ], 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -807,7 +832,7 @@ ], 'ListInspectTemplates' => [ 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*}/inspectTemplates', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/inspectTemplates', 'additionalBindings' => [ [ 'method' => 'get', @@ -819,7 +844,7 @@ ], [ 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/inspectTemplates', + 'uriTemplate' => '/v2/{parent=organizations/*}/inspectTemplates', ], ], 'placeholders' => [ @@ -969,6 +994,13 @@ 'method' => 'patch', 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', + 'body' => '*', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [ @@ -1027,7 +1059,7 @@ ], 'UpdateInspectTemplate' => [ 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', 'body' => '*', 'additionalBindings' => [ [ @@ -1042,7 +1074,7 @@ ], [ 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', + 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', 'body' => '*', ], ], diff --git a/Dlp/tests/Unit/V2/Client/DlpServiceClientTest.php b/Dlp/tests/Unit/V2/Client/DlpServiceClientTest.php index 55669c2e212e..791ed7f05233 100644 --- a/Dlp/tests/Unit/V2/Client/DlpServiceClientTest.php +++ b/Dlp/tests/Unit/V2/Client/DlpServiceClientTest.php @@ -287,7 +287,7 @@ public function createConnectionTest() $expectedResponse->setName($name); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $connection = new Connection(); $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; $connection->setState($connectionState); @@ -327,7 +327,7 @@ public function createConnectionExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $connection = new Connection(); $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; $connection->setState($connectionState); @@ -2494,7 +2494,7 @@ public function listConnectionsTest() $expectedResponse->setConnections($connections); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $request = (new ListConnectionsRequest()) ->setParent($formattedParent); $response = $gapicClient->listConnections($request); @@ -2531,7 +2531,7 @@ public function listConnectionsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $request = (new ListConnectionsRequest()) ->setParent($formattedParent); try { @@ -3388,7 +3388,7 @@ public function searchConnectionsTest() $expectedResponse->setConnections($connections); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $request = (new SearchConnectionsRequest()) ->setParent($formattedParent); $response = $gapicClient->searchConnections($request); @@ -3425,7 +3425,7 @@ public function searchConnectionsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $request = (new SearchConnectionsRequest()) ->setParent($formattedParent); try { diff --git a/Dlp/tests/Unit/V2/DlpServiceClientTest.php b/Dlp/tests/Unit/V2/DlpServiceClientTest.php index f6d550781f09..37e4cafbd27a 100644 --- a/Dlp/tests/Unit/V2/DlpServiceClientTest.php +++ b/Dlp/tests/Unit/V2/DlpServiceClientTest.php @@ -224,7 +224,7 @@ public function createConnectionTest() $expectedResponse->setName($name); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $connection = new Connection(); $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; $connection->setState($connectionState); @@ -261,7 +261,7 @@ public function createConnectionExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $connection = new Connection(); $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; $connection->setState($connectionState); @@ -2291,7 +2291,7 @@ public function listConnectionsTest() $expectedResponse->setConnections($connections); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $response = $gapicClient->listConnections($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -2326,7 +2326,7 @@ public function listConnectionsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); try { $gapicClient->listConnections($formattedParent); // If the $gapicClient method call did not throw, fail the test @@ -3137,7 +3137,7 @@ public function searchConnectionsTest() $expectedResponse->setConnections($connections); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); $response = $gapicClient->searchConnections($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); @@ -3172,7 +3172,7 @@ public function searchConnectionsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); try { $gapicClient->searchConnections($formattedParent); // If the $gapicClient method call did not throw, fail the test