Skip to content

Commit 253ff79

Browse files
1 parent 4e4ebe1 commit 253ff79

16 files changed

+943
-2
lines changed

src/CloudDataplex.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,17 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
11921192
'jobs',
11931193
[
11941194
'methods' => [
1195-
'generateDataQualityRules' => [
1195+
'cancel' => [
1196+
'path' => 'v1/{+name}:cancel',
1197+
'httpMethod' => 'POST',
1198+
'parameters' => [
1199+
'name' => [
1200+
'location' => 'path',
1201+
'type' => 'string',
1202+
'required' => true,
1203+
],
1204+
],
1205+
],'generateDataQualityRules' => [
11961206
'path' => 'v1/{+name}:generateDataQualityRules',
11971207
'httpMethod' => 'POST',
11981208
'parameters' => [
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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\CloudDataplex;
19+
20+
class GoogleCloudDataplexV1CancelDataScanJobRequest extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(GoogleCloudDataplexV1CancelDataScanJobRequest::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1CancelDataScanJobRequest');
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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\CloudDataplex;
19+
20+
class GoogleCloudDataplexV1CancelDataScanJobResponse extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(GoogleCloudDataplexV1CancelDataScanJobResponse::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1CancelDataScanJobResponse');

src/CloudDataplex/GoogleCloudDataplexV1DataQualityRule.php

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
class GoogleCloudDataplexV1DataQualityRule extends \Google\Collection
2121
{
2222
protected $collection_key = 'debugQueries';
23+
/**
24+
* Optional. Map of attribute name and value linked to the rule. The rules to
25+
* evaluate can be filtered based on attributes provided here and a filter
26+
* expression provided in the DataQualitySpec.filter field.
27+
*
28+
* @var string[]
29+
*/
30+
public $attributes;
2331
/**
2432
* Optional. The unnested column which this rule is evaluated against.
2533
*
@@ -67,6 +75,8 @@ class GoogleCloudDataplexV1DataQualityRule extends \Google\Collection
6775
protected $regexExpectationDataType = '';
6876
protected $rowConditionExpectationType = GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation::class;
6977
protected $rowConditionExpectationDataType = '';
78+
protected $ruleSourceType = GoogleCloudDataplexV1DataQualityRuleRuleSource::class;
79+
protected $ruleSourceDataType = '';
7080
protected $setExpectationType = GoogleCloudDataplexV1DataQualityRuleSetExpectation::class;
7181
protected $setExpectationDataType = '';
7282
protected $sqlAssertionType = GoogleCloudDataplexV1DataQualityRuleSqlAssertion::class;
@@ -81,6 +91,8 @@ class GoogleCloudDataplexV1DataQualityRule extends \Google\Collection
8191
public $suspended;
8292
protected $tableConditionExpectationType = GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation::class;
8393
protected $tableConditionExpectationDataType = '';
94+
protected $templateReferenceType = GoogleCloudDataplexV1DataQualityRuleTemplateReference::class;
95+
protected $templateReferenceDataType = '';
8496
/**
8597
* Optional. The minimum ratio of passing_rows / total_rows required to pass
8698
* this rule, with a range of 0.0, 1.0.0 indicates default value (i.e.
@@ -92,6 +104,24 @@ class GoogleCloudDataplexV1DataQualityRule extends \Google\Collection
92104
protected $uniquenessExpectationType = GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation::class;
93105
protected $uniquenessExpectationDataType = '';
94106

107+
/**
108+
* Optional. Map of attribute name and value linked to the rule. The rules to
109+
* evaluate can be filtered based on attributes provided here and a filter
110+
* expression provided in the DataQualitySpec.filter field.
111+
*
112+
* @param string[] $attributes
113+
*/
114+
public function setAttributes($attributes)
115+
{
116+
$this->attributes = $attributes;
117+
}
118+
/**
119+
* @return string[]
120+
*/
121+
public function getAttributes()
122+
{
123+
return $this->attributes;
124+
}
95125
/**
96126
* Optional. The unnested column which this rule is evaluated against.
97127
*
@@ -263,6 +293,23 @@ public function getRowConditionExpectation()
263293
{
264294
return $this->rowConditionExpectation;
265295
}
296+
/**
297+
* Output only. Contains information about the source of the rule and its
298+
* relationship with the BigQuery table, where applicable.
299+
*
300+
* @param GoogleCloudDataplexV1DataQualityRuleRuleSource $ruleSource
301+
*/
302+
public function setRuleSource(GoogleCloudDataplexV1DataQualityRuleRuleSource $ruleSource)
303+
{
304+
$this->ruleSource = $ruleSource;
305+
}
306+
/**
307+
* @return GoogleCloudDataplexV1DataQualityRuleRuleSource
308+
*/
309+
public function getRuleSource()
310+
{
311+
return $this->ruleSource;
312+
}
266313
/**
267314
* Row-level rule which evaluates whether each column value is contained by a
268315
* specified set.
@@ -347,6 +394,24 @@ public function getTableConditionExpectation()
347394
{
348395
return $this->tableConditionExpectation;
349396
}
397+
/**
398+
* Aggregate rule which references a rule template and provides the parameters
399+
* to be substituted in the template. If any rows are returned, this rule
400+
* fails.
401+
*
402+
* @param GoogleCloudDataplexV1DataQualityRuleTemplateReference $templateReference
403+
*/
404+
public function setTemplateReference(GoogleCloudDataplexV1DataQualityRuleTemplateReference $templateReference)
405+
{
406+
$this->templateReference = $templateReference;
407+
}
408+
/**
409+
* @return GoogleCloudDataplexV1DataQualityRuleTemplateReference
410+
*/
411+
public function getTemplateReference()
412+
{
413+
return $this->templateReference;
414+
}
350415
public function setThreshold($threshold)
351416
{
352417
$this->threshold = $threshold;
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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\CloudDataplex;
19+
20+
class GoogleCloudDataplexV1DataQualityRuleRuleSource extends \Google\Collection
21+
{
22+
protected $collection_key = 'rulePathElements';
23+
protected $rulePathElementsType = GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement::class;
24+
protected $rulePathElementsDataType = 'array';
25+
26+
/**
27+
* Output only. Rule path elements represent information about the individual
28+
* items in the relationship path between the scan resource and rule origin in
29+
* that order.
30+
*
31+
* @param GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement[] $rulePathElements
32+
*/
33+
public function setRulePathElements($rulePathElements)
34+
{
35+
$this->rulePathElements = $rulePathElements;
36+
}
37+
/**
38+
* @return GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement[]
39+
*/
40+
public function getRulePathElements()
41+
{
42+
return $this->rulePathElements;
43+
}
44+
}
45+
46+
// Adding a class alias for backwards compatibility with the previous class name.
47+
class_alias(GoogleCloudDataplexV1DataQualityRuleRuleSource::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1DataQualityRuleRuleSource');
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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\CloudDataplex;
19+
20+
class GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement extends \Google\Model
21+
{
22+
protected $entryLinkSourceType = GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource::class;
23+
protected $entryLinkSourceDataType = '';
24+
protected $entrySourceType = GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource::class;
25+
protected $entrySourceDataType = '';
26+
27+
/**
28+
* Output only. Entry link source represents information about the entry link.
29+
*
30+
* @param GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource $entryLinkSource
31+
*/
32+
public function setEntryLinkSource(GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource $entryLinkSource)
33+
{
34+
$this->entryLinkSource = $entryLinkSource;
35+
}
36+
/**
37+
* @return GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource
38+
*/
39+
public function getEntryLinkSource()
40+
{
41+
return $this->entryLinkSource;
42+
}
43+
/**
44+
* Output only. Entry source represents information about the related source
45+
* entry.
46+
*
47+
* @param GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource $entrySource
48+
*/
49+
public function setEntrySource(GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource $entrySource)
50+
{
51+
$this->entrySource = $entrySource;
52+
}
53+
/**
54+
* @return GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource
55+
*/
56+
public function getEntrySource()
57+
{
58+
return $this->entrySource;
59+
}
60+
}
61+
62+
// Adding a class alias for backwards compatibility with the previous class name.
63+
class_alias(GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement');
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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\CloudDataplex;
19+
20+
class GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource extends \Google\Model
21+
{
22+
/**
23+
* Output only. The entry link name in the form of: projects/{project_id_or_nu
24+
* mber}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entr
25+
* y_link_id}
26+
*
27+
* @var string
28+
*/
29+
public $entryLink;
30+
/**
31+
* Output only. The entry link type to represent the current relationship
32+
* between the entry and the next entry in the path. In the form of: projects/
33+
* {project_id_or_number}/locations/{location_id}/entryLinkTypes/{entry_link_t
34+
* ype_id}
35+
*
36+
* @var string
37+
*/
38+
public $entryLinkType;
39+
40+
/**
41+
* Output only. The entry link name in the form of: projects/{project_id_or_nu
42+
* mber}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entr
43+
* y_link_id}
44+
*
45+
* @param string $entryLink
46+
*/
47+
public function setEntryLink($entryLink)
48+
{
49+
$this->entryLink = $entryLink;
50+
}
51+
/**
52+
* @return string
53+
*/
54+
public function getEntryLink()
55+
{
56+
return $this->entryLink;
57+
}
58+
/**
59+
* Output only. The entry link type to represent the current relationship
60+
* between the entry and the next entry in the path. In the form of: projects/
61+
* {project_id_or_number}/locations/{location_id}/entryLinkTypes/{entry_link_t
62+
* ype_id}
63+
*
64+
* @param string $entryLinkType
65+
*/
66+
public function setEntryLinkType($entryLinkType)
67+
{
68+
$this->entryLinkType = $entryLinkType;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getEntryLinkType()
74+
{
75+
return $this->entryLinkType;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource');

0 commit comments

Comments
 (0)