[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\DLP\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\DLP\GooglePrivacyDlpV2ListTableDataProfilesResponse;
|
---|
| 21 | use Google\Service\DLP\GooglePrivacyDlpV2TableDataProfile;
|
---|
| 22 | use Google\Service\DLP\GoogleProtobufEmpty;
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * The "tableDataProfiles" collection of methods.
|
---|
| 26 | * Typical usage is:
|
---|
| 27 | * <code>
|
---|
| 28 | * $dlpService = new Google\Service\DLP(...);
|
---|
| 29 | * $tableDataProfiles = $dlpService->projects_locations_tableDataProfiles;
|
---|
| 30 | * </code>
|
---|
| 31 | */
|
---|
| 32 | class ProjectsLocationsTableDataProfiles extends \Google\Service\Resource
|
---|
| 33 | {
|
---|
| 34 | /**
|
---|
| 35 | * Delete a TableDataProfile. Will not prevent the profile from being
|
---|
| 36 | * regenerated if the table is still included in a discovery configuration.
|
---|
| 37 | * (tableDataProfiles.delete)
|
---|
| 38 | *
|
---|
| 39 | * @param string $name Required. Resource name of the table data profile.
|
---|
| 40 | * @param array $optParams Optional parameters.
|
---|
| 41 | * @return GoogleProtobufEmpty
|
---|
| 42 | * @throws \Google\Service\Exception
|
---|
| 43 | */
|
---|
| 44 | public function delete($name, $optParams = [])
|
---|
| 45 | {
|
---|
| 46 | $params = ['name' => $name];
|
---|
| 47 | $params = array_merge($params, $optParams);
|
---|
| 48 | return $this->call('delete', [$params], GoogleProtobufEmpty::class);
|
---|
| 49 | }
|
---|
| 50 | /**
|
---|
| 51 | * Gets a table data profile. (tableDataProfiles.get)
|
---|
| 52 | *
|
---|
| 53 | * @param string $name Required. Resource name, for example
|
---|
| 54 | * `organizations/12345/locations/us/tableDataProfiles/53234423`.
|
---|
| 55 | * @param array $optParams Optional parameters.
|
---|
| 56 | * @return GooglePrivacyDlpV2TableDataProfile
|
---|
| 57 | * @throws \Google\Service\Exception
|
---|
| 58 | */
|
---|
| 59 | public function get($name, $optParams = [])
|
---|
| 60 | {
|
---|
| 61 | $params = ['name' => $name];
|
---|
| 62 | $params = array_merge($params, $optParams);
|
---|
| 63 | return $this->call('get', [$params], GooglePrivacyDlpV2TableDataProfile::class);
|
---|
| 64 | }
|
---|
| 65 | /**
|
---|
| 66 | * Lists table data profiles for an organization.
|
---|
| 67 | * (tableDataProfiles.listProjectsLocationsTableDataProfiles)
|
---|
| 68 | *
|
---|
| 69 | * @param string $parent Required. Resource name of the organization or project,
|
---|
| 70 | * for example `organizations/433245324/locations/europe` or `projects/project-
|
---|
| 71 | * id/locations/asia`.
|
---|
| 72 | * @param array $optParams Optional parameters.
|
---|
| 73 | *
|
---|
| 74 | * @opt_param string filter Allows filtering. Supported syntax: * Filter
|
---|
| 75 | * expressions are made up of one or more restrictions. * Restrictions can be
|
---|
| 76 | * combined by `AND` or `OR` logical operators. A sequence of restrictions
|
---|
| 77 | * implicitly uses `AND`. * A restriction has the form of `{field} {operator}
|
---|
| 78 | * {value}`. * Supported fields/values: - `project_id` - The Google Cloud
|
---|
| 79 | * project ID. - `dataset_id` - The BigQuery dataset ID. - `table_id` - The ID
|
---|
| 80 | * of the BigQuery table. - `sensitivity_level` - HIGH|MODERATE|LOW -
|
---|
| 81 | * `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`:
|
---|
| 82 | * PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in
|
---|
| 83 | * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto *
|
---|
| 84 | * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND
|
---|
| 85 | * status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` *
|
---|
| 86 | * `project_id = 12345 AND resource_visibility = PUBLIC` The length of this
|
---|
| 87 | * field should be no more than 500 characters.
|
---|
| 88 | * @opt_param string orderBy Comma-separated list of fields to order by,
|
---|
| 89 | * followed by `asc` or `desc` postfix. This list is case insensitive. The
|
---|
| 90 | * default sorting order is ascending. Redundant space characters are
|
---|
| 91 | * insignificant. Only one order field at a time is allowed. Examples: *
|
---|
| 92 | * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields
|
---|
| 93 | * are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a
|
---|
| 94 | * BigQuery dataset. - `table_id`: The ID of a BigQuery table. -
|
---|
| 95 | * `sensitivity_level`: How sensitive the data in a table is, at most. -
|
---|
| 96 | * `data_risk_level`: How much risk is associated with this data. -
|
---|
| 97 | * `profile_last_generated`: When the profile was last updated in epoch seconds.
|
---|
| 98 | * - `last_modified`: The last time the resource was modified. -
|
---|
| 99 | * `resource_visibility`: Visibility restriction for this resource. -
|
---|
| 100 | * `row_count`: Number of rows in this resource.
|
---|
| 101 | * @opt_param int pageSize Size of the page. This value can be limited by the
|
---|
| 102 | * server. If zero, server returns a page of max size 100.
|
---|
| 103 | * @opt_param string pageToken Page token to continue retrieval.
|
---|
| 104 | * @return GooglePrivacyDlpV2ListTableDataProfilesResponse
|
---|
| 105 | * @throws \Google\Service\Exception
|
---|
| 106 | */
|
---|
| 107 | public function listProjectsLocationsTableDataProfiles($parent, $optParams = [])
|
---|
| 108 | {
|
---|
| 109 | $params = ['parent' => $parent];
|
---|
| 110 | $params = array_merge($params, $optParams);
|
---|
| 111 | return $this->call('list', [$params], GooglePrivacyDlpV2ListTableDataProfilesResponse::class);
|
---|
| 112 | }
|
---|
| 113 | }
|
---|
| 114 |
|
---|
| 115 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 116 | class_alias(ProjectsLocationsTableDataProfiles::class, 'Google_Service_DLP_Resource_ProjectsLocationsTableDataProfiles');
|
---|