source: vendor/google/apiclient-services/src/DLP/Resource/ProjectsLocationsProjectDataProfiles.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 10 days ago

Upload project files

  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[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
18namespace Google\Service\DLP\Resource;
19
20use Google\Service\DLP\GooglePrivacyDlpV2ListProjectDataProfilesResponse;
21use Google\Service\DLP\GooglePrivacyDlpV2ProjectDataProfile;
22
23/**
24 * The "projectDataProfiles" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $dlpService = new Google\Service\DLP(...);
28 * $projectDataProfiles = $dlpService->projects_locations_projectDataProfiles;
29 * </code>
30 */
31class ProjectsLocationsProjectDataProfiles extends \Google\Service\Resource
32{
33 /**
34 * Gets a project data profile. (projectDataProfiles.get)
35 *
36 * @param string $name Required. Resource name, for example
37 * `organizations/12345/locations/us/projectDataProfiles/53234423`.
38 * @param array $optParams Optional parameters.
39 * @return GooglePrivacyDlpV2ProjectDataProfile
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], GooglePrivacyDlpV2ProjectDataProfile::class);
47 }
48 /**
49 * Lists project data profiles for an organization.
50 * (projectDataProfiles.listProjectsLocationsProjectDataProfiles)
51 *
52 * @param string $parent Required. organizations/{org_id}/locations/{loc_id}
53 * @param array $optParams Optional parameters.
54 *
55 * @opt_param string filter Allows filtering. Supported syntax: * Filter
56 * expressions are made up of one or more restrictions. * Restrictions can be
57 * combined by `AND` or `OR` logical operators. A sequence of restrictions
58 * implicitly uses `AND`. * A restriction has the form of `{field} {operator}
59 * {value}`. * Supported fields/values: - `sensitivity_level` -
60 * HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `status_code` -
61 * an RPC status code as defined in
62 * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto *
63 * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND
64 * status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` The
65 * length of this field should be no more than 500 characters.
66 * @opt_param string orderBy Comma-separated list of fields to order by,
67 * followed by `asc` or `desc` postfix. This list is case insensitive. The
68 * default sorting order is ascending. Redundant space characters are
69 * insignificant. Only one order field at a time is allowed. Examples: *
70 * `project_id` * `sensitivity_level desc` Supported fields are: - `project_id`:
71 * Google Cloud project ID - `sensitivity_level`: How sensitive the data in a
72 * project is, at most. - `data_risk_level`: How much risk is associated with
73 * this data. - `profile_last_generated`: When the profile was last updated in
74 * epoch seconds.
75 * @opt_param int pageSize Size of the page. This value can be limited by the
76 * server. If zero, server returns a page of max size 100.
77 * @opt_param string pageToken Page token to continue retrieval.
78 * @return GooglePrivacyDlpV2ListProjectDataProfilesResponse
79 * @throws \Google\Service\Exception
80 */
81 public function listProjectsLocationsProjectDataProfiles($parent, $optParams = [])
82 {
83 $params = ['parent' => $parent];
84 $params = array_merge($params, $optParams);
85 return $this->call('list', [$params], GooglePrivacyDlpV2ListProjectDataProfilesResponse::class);
86 }
87}
88
89// Adding a class alias for backwards compatibility with the previous class name.
90class_alias(ProjectsLocationsProjectDataProfiles::class, 'Google_Service_DLP_Resource_ProjectsLocationsProjectDataProfiles');
Note: See TracBrowser for help on using the repository browser.