source: vendor/google/apiclient-services/src/CloudDataplex/Resource/ProjectsLocationsDataScansJobs.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload new project files

  • Property mode set to 100644
File size: 5.2 KB
Line 
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\CloudDataplex\Resource;
19
20use Google\Service\CloudDataplex\GoogleCloudDataplexV1DataScanJob;
21use Google\Service\CloudDataplex\GoogleCloudDataplexV1GenerateDataQualityRulesRequest;
22use Google\Service\CloudDataplex\GoogleCloudDataplexV1GenerateDataQualityRulesResponse;
23use Google\Service\CloudDataplex\GoogleCloudDataplexV1ListDataScanJobsResponse;
24
25/**
26 * The "jobs" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $dataplexService = new Google\Service\CloudDataplex(...);
30 * $jobs = $dataplexService->projects_locations_dataScans_jobs;
31 * </code>
32 */
33class ProjectsLocationsDataScansJobs extends \Google\Service\Resource
34{
35 /**
36 * Generates recommended data quality rules based on the results of a data
37 * profiling scan.Use the recommendations to build rules for a data quality
38 * scan. (jobs.generateDataQualityRules)
39 *
40 * @param string $name Required. The name must be one of the following: The name
41 * of a data scan with at least one successful, completed data profiling job The
42 * name of a successful, completed data profiling job (a data scan job where the
43 * job type is data profiling)
44 * @param GoogleCloudDataplexV1GenerateDataQualityRulesRequest $postBody
45 * @param array $optParams Optional parameters.
46 * @return GoogleCloudDataplexV1GenerateDataQualityRulesResponse
47 * @throws \Google\Service\Exception
48 */
49 public function generateDataQualityRules($name, GoogleCloudDataplexV1GenerateDataQualityRulesRequest $postBody, $optParams = [])
50 {
51 $params = ['name' => $name, 'postBody' => $postBody];
52 $params = array_merge($params, $optParams);
53 return $this->call('generateDataQualityRules', [$params], GoogleCloudDataplexV1GenerateDataQualityRulesResponse::class);
54 }
55 /**
56 * Gets a DataScanJob resource. (jobs.get)
57 *
58 * @param string $name Required. The resource name of the DataScanJob: projects/
59 * {project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_jo
60 * b_id} where project refers to a project_id or project_number and location_id
61 * refers to a GCP region.
62 * @param array $optParams Optional parameters.
63 *
64 * @opt_param string view Optional. Select the DataScanJob view to return.
65 * Defaults to BASIC.
66 * @return GoogleCloudDataplexV1DataScanJob
67 * @throws \Google\Service\Exception
68 */
69 public function get($name, $optParams = [])
70 {
71 $params = ['name' => $name];
72 $params = array_merge($params, $optParams);
73 return $this->call('get', [$params], GoogleCloudDataplexV1DataScanJob::class);
74 }
75 /**
76 * Lists DataScanJobs under the given DataScan.
77 * (jobs.listProjectsLocationsDataScansJobs)
78 *
79 * @param string $parent Required. The resource name of the parent environment:
80 * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where
81 * project refers to a project_id or project_number and location_id refers to a
82 * GCP region.
83 * @param array $optParams Optional parameters.
84 *
85 * @opt_param string filter Optional. An expression for filtering the results of
86 * the ListDataScanJobs request.If unspecified, all datascan jobs will be
87 * returned. Multiple filters can be applied (with AND, OR logical operators).
88 * Filters are case-sensitive.Allowed fields are: start_time end_timestart_time
89 * and end_time expect RFC-3339 formatted strings (e.g.
90 * 2018-10-08T18:30:00-07:00).For instance, 'start_time >
91 * 2018-10-08T00:00:00.123456789Z AND end_time < 2018-10-09T00:00:00.123456789Z'
92 * limits results to DataScanJobs between specified start and end times.
93 * @opt_param int pageSize Optional. Maximum number of DataScanJobs to return.
94 * The service may return fewer than this value. If unspecified, at most 10
95 * DataScanJobs will be returned. The maximum value is 1000; values above 1000
96 * will be coerced to 1000.
97 * @opt_param string pageToken Optional. Page token received from a previous
98 * ListDataScanJobs call. Provide this to retrieve the subsequent page. When
99 * paginating, all other parameters provided to ListDataScanJobs must match the
100 * call that provided the page token.
101 * @return GoogleCloudDataplexV1ListDataScanJobsResponse
102 * @throws \Google\Service\Exception
103 */
104 public function listProjectsLocationsDataScansJobs($parent, $optParams = [])
105 {
106 $params = ['parent' => $parent];
107 $params = array_merge($params, $optParams);
108 return $this->call('list', [$params], GoogleCloudDataplexV1ListDataScanJobsResponse::class);
109 }
110}
111
112// Adding a class alias for backwards compatibility with the previous class name.
113class_alias(ProjectsLocationsDataScansJobs::class, 'Google_Service_CloudDataplex_Resource_ProjectsLocationsDataScansJobs');
Note: See TracBrowser for help on using the repository browser.