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\GooglePrivacyDlpV2ListDlpJobsResponse;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * The "dlpJobs" collection of methods.
|
---|
24 | * Typical usage is:
|
---|
25 | * <code>
|
---|
26 | * $dlpService = new Google\Service\DLP(...);
|
---|
27 | * $dlpJobs = $dlpService->organizations_locations_dlpJobs;
|
---|
28 | * </code>
|
---|
29 | */
|
---|
30 | class OrganizationsLocationsDlpJobs extends \Google\Service\Resource
|
---|
31 | {
|
---|
32 | /**
|
---|
33 | * Lists DlpJobs that match the specified filter in the request. See
|
---|
34 | * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
---|
35 | * and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-
|
---|
36 | * analysis to learn more. (dlpJobs.listOrganizationsLocationsDlpJobs)
|
---|
37 | *
|
---|
38 | * @param string $parent Required. Parent resource name. The format of this
|
---|
39 | * value varies depending on whether you have [specified a processing
|
---|
40 | * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-
|
---|
41 | * location): + Projects scope, location specified:
|
---|
42 | * `projects/{project_id}/locations/{location_id}` + Projects scope, no location
|
---|
43 | * specified (defaults to global): `projects/{project_id}` The following example
|
---|
44 | * `parent` string specifies a parent project with the identifier `example-
|
---|
45 | * project`, and specifies the `europe-west3` location for processing data:
|
---|
46 | * parent=projects/example-project/locations/europe-west3
|
---|
47 | * @param array $optParams Optional parameters.
|
---|
48 | *
|
---|
49 | * @opt_param string filter Allows filtering. Supported syntax: * Filter
|
---|
50 | * expressions are made up of one or more restrictions. * Restrictions can be
|
---|
51 | * combined by `AND` or `OR` logical operators. A sequence of restrictions
|
---|
52 | * implicitly uses `AND`. * A restriction has the form of `{field} {operator}
|
---|
53 | * {value}`. * Supported fields/values for inspect jobs: - `state` -
|
---|
54 | * PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` -
|
---|
55 | * DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger
|
---|
56 | * that created the job. - 'end_time` - Corresponds to the time the job
|
---|
57 | * finished. - 'start_time` - Corresponds to the time the job finished. *
|
---|
58 | * Supported fields for risk analysis jobs: - `state` -
|
---|
59 | * RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the
|
---|
60 | * job finished. - 'start_time` - Corresponds to the time the job finished. *
|
---|
61 | * The operator must be `=` or `!=`. Examples: * inspected_storage =
|
---|
62 | * cloud_storage AND state = done * inspected_storage = cloud_storage OR
|
---|
63 | * inspected_storage = bigquery * inspected_storage = cloud_storage AND (state =
|
---|
64 | * done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The
|
---|
65 | * length of this field should be no more than 500 characters.
|
---|
66 | * @opt_param string locationId Deprecated. This field has no effect.
|
---|
67 | * @opt_param string orderBy Comma-separated list of fields to order by,
|
---|
68 | * followed by `asc` or `desc` postfix. This list is case insensitive. The
|
---|
69 | * default sorting order is ascending. Redundant space characters are
|
---|
70 | * insignificant. Example: `name asc, end_time asc, create_time desc` Supported
|
---|
71 | * fields are: - `create_time`: corresponds to the time the job was created. -
|
---|
72 | * `end_time`: corresponds to the time the job ended. - `name`: corresponds to
|
---|
73 | * the job's name. - `state`: corresponds to `state`
|
---|
74 | * @opt_param int pageSize The standard list page size.
|
---|
75 | * @opt_param string pageToken The standard list page token.
|
---|
76 | * @opt_param string type The type of job. Defaults to `DlpJobType.INSPECT`
|
---|
77 | * @return GooglePrivacyDlpV2ListDlpJobsResponse
|
---|
78 | * @throws \Google\Service\Exception
|
---|
79 | */
|
---|
80 | public function listOrganizationsLocationsDlpJobs($parent, $optParams = [])
|
---|
81 | {
|
---|
82 | $params = ['parent' => $parent];
|
---|
83 | $params = array_merge($params, $optParams);
|
---|
84 | return $this->call('list', [$params], GooglePrivacyDlpV2ListDlpJobsResponse::class);
|
---|
85 | }
|
---|
86 | }
|
---|
87 |
|
---|
88 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
89 | class_alias(OrganizationsLocationsDlpJobs::class, 'Google_Service_DLP_Resource_OrganizationsLocationsDlpJobs');
|
---|