Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/CloudDataplex.php
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,17 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'jobs',
[
'methods' => [
'generateDataQualityRules' => [
'cancel' => [
'path' => 'v1/{+name}:cancel',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'generateDataQualityRules' => [
'path' => 'v1/{+name}:generateDataQualityRules',
'httpMethod' => 'POST',
'parameters' => [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\CloudDataplex;

class GoogleCloudDataplexV1CancelDataScanJobRequest extends \Google\Model
{
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDataplexV1CancelDataScanJobRequest::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1CancelDataScanJobRequest');
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\CloudDataplex;

class GoogleCloudDataplexV1CancelDataScanJobResponse extends \Google\Model
{
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDataplexV1CancelDataScanJobResponse::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1CancelDataScanJobResponse');
65 changes: 65 additions & 0 deletions src/CloudDataplex/GoogleCloudDataplexV1DataQualityRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
class GoogleCloudDataplexV1DataQualityRule extends \Google\Collection
{
protected $collection_key = 'debugQueries';
/**
* Optional. Map of attribute name and value linked to the rule. The rules to
* evaluate can be filtered based on attributes provided here and a filter
* expression provided in the DataQualitySpec.filter field.
*
* @var string[]
*/
public $attributes;
/**
* Optional. The unnested column which this rule is evaluated against.
*
Expand Down Expand Up @@ -67,6 +75,8 @@ class GoogleCloudDataplexV1DataQualityRule extends \Google\Collection
protected $regexExpectationDataType = '';
protected $rowConditionExpectationType = GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation::class;
protected $rowConditionExpectationDataType = '';
protected $ruleSourceType = GoogleCloudDataplexV1DataQualityRuleRuleSource::class;
protected $ruleSourceDataType = '';
protected $setExpectationType = GoogleCloudDataplexV1DataQualityRuleSetExpectation::class;
protected $setExpectationDataType = '';
protected $sqlAssertionType = GoogleCloudDataplexV1DataQualityRuleSqlAssertion::class;
Expand All @@ -81,6 +91,8 @@ class GoogleCloudDataplexV1DataQualityRule extends \Google\Collection
public $suspended;
protected $tableConditionExpectationType = GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation::class;
protected $tableConditionExpectationDataType = '';
protected $templateReferenceType = GoogleCloudDataplexV1DataQualityRuleTemplateReference::class;
protected $templateReferenceDataType = '';
/**
* Optional. The minimum ratio of passing_rows / total_rows required to pass
* this rule, with a range of 0.0, 1.0.0 indicates default value (i.e.
Expand All @@ -92,6 +104,24 @@ class GoogleCloudDataplexV1DataQualityRule extends \Google\Collection
protected $uniquenessExpectationType = GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation::class;
protected $uniquenessExpectationDataType = '';

/**
* Optional. Map of attribute name and value linked to the rule. The rules to
* evaluate can be filtered based on attributes provided here and a filter
* expression provided in the DataQualitySpec.filter field.
*
* @param string[] $attributes
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return string[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Optional. The unnested column which this rule is evaluated against.
*
Expand Down Expand Up @@ -263,6 +293,23 @@ public function getRowConditionExpectation()
{
return $this->rowConditionExpectation;
}
/**
* Output only. Contains information about the source of the rule and its
* relationship with the BigQuery table, where applicable.
*
* @param GoogleCloudDataplexV1DataQualityRuleRuleSource $ruleSource
*/
public function setRuleSource(GoogleCloudDataplexV1DataQualityRuleRuleSource $ruleSource)
{
$this->ruleSource = $ruleSource;
}
/**
* @return GoogleCloudDataplexV1DataQualityRuleRuleSource
*/
public function getRuleSource()
{
return $this->ruleSource;
}
/**
* Row-level rule which evaluates whether each column value is contained by a
* specified set.
Expand Down Expand Up @@ -347,6 +394,24 @@ public function getTableConditionExpectation()
{
return $this->tableConditionExpectation;
}
/**
* Aggregate rule which references a rule template and provides the parameters
* to be substituted in the template. If any rows are returned, this rule
* fails.
*
* @param GoogleCloudDataplexV1DataQualityRuleTemplateReference $templateReference
*/
public function setTemplateReference(GoogleCloudDataplexV1DataQualityRuleTemplateReference $templateReference)
{
$this->templateReference = $templateReference;
}
/**
* @return GoogleCloudDataplexV1DataQualityRuleTemplateReference
*/
public function getTemplateReference()
{
return $this->templateReference;
}
public function setThreshold($threshold)
{
$this->threshold = $threshold;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\CloudDataplex;

class GoogleCloudDataplexV1DataQualityRuleRuleSource extends \Google\Collection
{
protected $collection_key = 'rulePathElements';
protected $rulePathElementsType = GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement::class;
protected $rulePathElementsDataType = 'array';

/**
* Output only. Rule path elements represent information about the individual
* items in the relationship path between the scan resource and rule origin in
* that order.
*
* @param GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement[] $rulePathElements
*/
public function setRulePathElements($rulePathElements)
{
$this->rulePathElements = $rulePathElements;
}
/**
* @return GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement[]
*/
public function getRulePathElements()
{
return $this->rulePathElements;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDataplexV1DataQualityRuleRuleSource::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1DataQualityRuleRuleSource');
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\CloudDataplex;

class GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement extends \Google\Model
{
protected $entryLinkSourceType = GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource::class;
protected $entryLinkSourceDataType = '';
protected $entrySourceType = GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource::class;
protected $entrySourceDataType = '';

/**
* Output only. Entry link source represents information about the entry link.
*
* @param GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource $entryLinkSource
*/
public function setEntryLinkSource(GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource $entryLinkSource)
{
$this->entryLinkSource = $entryLinkSource;
}
/**
* @return GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource
*/
public function getEntryLinkSource()
{
return $this->entryLinkSource;
}
/**
* Output only. Entry source represents information about the related source
* entry.
*
* @param GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource $entrySource
*/
public function setEntrySource(GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource $entrySource)
{
$this->entrySource = $entrySource;
}
/**
* @return GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntrySource
*/
public function getEntrySource()
{
return $this->entrySource;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElement');
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\CloudDataplex;

class GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource extends \Google\Model
{
/**
* Output only. The entry link name in the form of: projects/{project_id_or_nu
* mber}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entr
* y_link_id}
*
* @var string
*/
public $entryLink;
/**
* Output only. The entry link type to represent the current relationship
* between the entry and the next entry in the path. In the form of: projects/
* {project_id_or_number}/locations/{location_id}/entryLinkTypes/{entry_link_t
* ype_id}
*
* @var string
*/
public $entryLinkType;

/**
* Output only. The entry link name in the form of: projects/{project_id_or_nu
* mber}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entr
* y_link_id}
*
* @param string $entryLink
*/
public function setEntryLink($entryLink)
{
$this->entryLink = $entryLink;
}
/**
* @return string
*/
public function getEntryLink()
{
return $this->entryLink;
}
/**
* Output only. The entry link type to represent the current relationship
* between the entry and the next entry in the path. In the form of: projects/
* {project_id_or_number}/locations/{location_id}/entryLinkTypes/{entry_link_t
* ype_id}
*
* @param string $entryLinkType
*/
public function setEntryLinkType($entryLinkType)
{
$this->entryLinkType = $entryLinkType;
}
/**
* @return string
*/
public function getEntryLinkType()
{
return $this->entryLinkType;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1DataQualityRuleRuleSourceRulePathElementEntryLinkSource');
Loading
Loading