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\GooglePrivacyDlpV2ColumnDataProfile;
|
---|
21 | use Google\Service\DLP\GooglePrivacyDlpV2ListColumnDataProfilesResponse;
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * The "columnDataProfiles" collection of methods.
|
---|
25 | * Typical usage is:
|
---|
26 | * <code>
|
---|
27 | * $dlpService = new Google\Service\DLP(...);
|
---|
28 | * $columnDataProfiles = $dlpService->organizations_locations_columnDataProfiles;
|
---|
29 | * </code>
|
---|
30 | */
|
---|
31 | class OrganizationsLocationsColumnDataProfiles extends \Google\Service\Resource
|
---|
32 | {
|
---|
33 | /**
|
---|
34 | * Gets a column data profile. (columnDataProfiles.get)
|
---|
35 | *
|
---|
36 | * @param string $name Required. Resource name, for example
|
---|
37 | * `organizations/12345/locations/us/columnDataProfiles/53234423`.
|
---|
38 | * @param array $optParams Optional parameters.
|
---|
39 | * @return GooglePrivacyDlpV2ColumnDataProfile
|
---|
40 | * @throws \Google\Service\Exception
|
---|
41 | */
|
---|
42 | public function get($name, $optParams = [])
|
---|
43 | {
|
---|
44 | $params = ['name' => $name];
|
---|
45 | $params = array_merge($params, $optParams);
|
---|
46 | return $this->call('get', [$params], GooglePrivacyDlpV2ColumnDataProfile::class);
|
---|
47 | }
|
---|
48 | /**
|
---|
49 | * Lists column data profiles for an organization.
|
---|
50 | * (columnDataProfiles.listOrganizationsLocationsColumnDataProfiles)
|
---|
51 | *
|
---|
52 | * @param string $parent Required. Resource name of the organization or project,
|
---|
53 | * for example `organizations/433245324/locations/europe` or `projects/project-
|
---|
54 | * id/locations/asia`.
|
---|
55 | * @param array $optParams Optional parameters.
|
---|
56 | *
|
---|
57 | * @opt_param string filter Allows filtering. Supported syntax: * Filter
|
---|
58 | * expressions are made up of one or more restrictions. * Restrictions can be
|
---|
59 | * combined by `AND` or `OR` logical operators. A sequence of restrictions
|
---|
60 | * implicitly uses `AND`. * A restriction has the form of `{field} {operator}
|
---|
61 | * {value}`. * Supported fields/values: - `table_data_profile_name` - The name
|
---|
62 | * of the related table data profile. - `project_id` - The Google Cloud project
|
---|
63 | * ID. (REQUIRED) - `dataset_id` - The BigQuery dataset ID. (REQUIRED) -
|
---|
64 | * `table_id` - The BigQuery table ID. (REQUIRED) - `field_id` - The ID of the
|
---|
65 | * BigQuery field. - `info_type` - The infotype detected in the resource. -
|
---|
66 | * `sensitivity_level` - HIGH|MEDIUM|LOW - `data_risk_level`: How much risk is
|
---|
67 | * associated with this data. - `status_code` - an RPC status code as defined in
|
---|
68 | * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto *
|
---|
69 | * The operator must be `=` for project_id, dataset_id, and table_id. Other
|
---|
70 | * filters also support `!=`. Examples: * project_id = 12345 AND status_code = 1
|
---|
71 | * * project_id = 12345 AND sensitivity_level = HIGH * project_id = 12345 AND
|
---|
72 | * info_type = STREET_ADDRESS The length of this field should be no more than
|
---|
73 | * 500 characters.
|
---|
74 | * @opt_param string orderBy Comma-separated list of fields to order by,
|
---|
75 | * followed by `asc` or `desc` postfix. This list is case insensitive. The
|
---|
76 | * default sorting order is ascending. Redundant space characters are
|
---|
77 | * insignificant. Only one order field at a time is allowed. Examples: *
|
---|
78 | * `project_id asc` * `table_id` * `sensitivity_level desc` Supported fields
|
---|
79 | * are: - `project_id`: The Google Cloud project ID. - `dataset_id`: The ID of a
|
---|
80 | * BigQuery dataset. - `table_id`: The ID of a BigQuery table. -
|
---|
81 | * `sensitivity_level`: How sensitive the data in a column is, at most. -
|
---|
82 | * `data_risk_level`: How much risk is associated with this data. -
|
---|
83 | * `profile_last_generated`: When the profile was last updated in epoch seconds.
|
---|
84 | * @opt_param int pageSize Size of the page. This value can be limited by the
|
---|
85 | * server. If zero, server returns a page of max size 100.
|
---|
86 | * @opt_param string pageToken Page token to continue retrieval.
|
---|
87 | * @return GooglePrivacyDlpV2ListColumnDataProfilesResponse
|
---|
88 | * @throws \Google\Service\Exception
|
---|
89 | */
|
---|
90 | public function listOrganizationsLocationsColumnDataProfiles($parent, $optParams = [])
|
---|
91 | {
|
---|
92 | $params = ['parent' => $parent];
|
---|
93 | $params = array_merge($params, $optParams);
|
---|
94 | return $this->call('list', [$params], GooglePrivacyDlpV2ListColumnDataProfilesResponse::class);
|
---|
95 | }
|
---|
96 | }
|
---|
97 |
|
---|
98 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
99 | class_alias(OrganizationsLocationsColumnDataProfiles::class, 'Google_Service_DLP_Resource_OrganizationsLocationsColumnDataProfiles');
|
---|