Skip to content
Open
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
31 changes: 31 additions & 0 deletions src/CloudDataplex.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,37 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'type' => 'string',
],
],
],'lookupEntryLinks' => [
'path' => 'v1/{+name}:lookupEntryLinks',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'entry' => [
'location' => 'query',
'type' => 'string',
],
'entryLinkTypes' => [
'location' => 'query',
'type' => 'string',
'repeated' => true,
],
'entryMode' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'searchEntries' => [
'path' => 'v1/{+name}:searchEntries',
'httpMethod' => 'POST',
Expand Down
22 changes: 21 additions & 1 deletion src/CloudDataplex/GoogleCloudDataplexV1DataQualityRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@

namespace Google\Service\CloudDataplex;

class GoogleCloudDataplexV1DataQualityRule extends \Google\Model
class GoogleCloudDataplexV1DataQualityRule extends \Google\Collection
{
protected $collection_key = 'debugQueries';
/**
* Optional. The unnested column which this rule is evaluated against.
*
* @var string
*/
public $column;
protected $debugQueriesType = GoogleCloudDataplexV1DataQualityRuleDebugQuery::class;
protected $debugQueriesDataType = 'array';
/**
* Optional. Description of the rule. The maximum length is 1,024 characters.
*
Expand Down Expand Up @@ -105,6 +108,23 @@ public function getColumn()
{
return $this->column;
}
/**
* Optional. Specifies the debug queries for this rule. Currently, only one
* query is supported, but this may be expanded in the future.
*
* @param GoogleCloudDataplexV1DataQualityRuleDebugQuery[] $debugQueries
*/
public function setDebugQueries($debugQueries)
{
$this->debugQueries = $debugQueries;
}
/**
* @return GoogleCloudDataplexV1DataQualityRuleDebugQuery[]
*/
public function getDebugQueries()
{
return $this->debugQueries;
}
/**
* Optional. Description of the rule. The maximum length is 1,024 characters.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?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 GoogleCloudDataplexV1DataQualityRuleDebugQuery extends \Google\Model
{
/**
* Optional. Specifies the description of the debug query. The maximum length
* is 1,024 characters.
*
* @var string
*/
public $description;
/**
* Required. Specifies the SQL statement to be executed.
*
* @var string
*/
public $sqlStatement;

/**
* Optional. Specifies the description of the debug query. The maximum length
* is 1,024 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. Specifies the SQL statement to be executed.
*
* @param string $sqlStatement
*/
public function setSqlStatement($sqlStatement)
{
$this->sqlStatement = $sqlStatement;
}
/**
* @return string
*/
public function getSqlStatement()
{
return $this->sqlStatement;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDataplexV1DataQualityRuleDebugQuery::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1DataQualityRuleDebugQuery');
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@

namespace Google\Service\CloudDataplex;

class GoogleCloudDataplexV1DataQualityRuleResult extends \Google\Model
class GoogleCloudDataplexV1DataQualityRuleResult extends \Google\Collection
{
protected $collection_key = 'debugQueriesResultSets';
/**
* Output only. The number of rows returned by the SQL statement in a SQL
* assertion rule.This field is only valid for SQL assertion rules.
*
* @var string
*/
public $assertionRowCount;
protected $debugQueriesResultSetsType = GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResultSet::class;
protected $debugQueriesResultSetsDataType = 'array';
/**
* Output only. The number of rows a rule was evaluated against.This field is
* only valid for row-level type rules.Evaluated count can be configured to
Expand Down Expand Up @@ -90,6 +93,23 @@ public function getAssertionRowCount()
{
return $this->assertionRowCount;
}
/**
* Output only. Contains the results of all debug queries for this rule. The
* number of result sets will correspond to the number of debug_queries.
*
* @param GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResultSet[] $debugQueriesResultSets
*/
public function setDebugQueriesResultSets($debugQueriesResultSets)
{
$this->debugQueriesResultSets = $debugQueriesResultSets;
}
/**
* @return GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResultSet[]
*/
public function getDebugQueriesResultSets()
{
return $this->debugQueriesResultSets;
}
/**
* Output only. The number of rows a rule was evaluated against.This field is
* only valid for row-level type rules.Evaluated count can be configured to
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?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 GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResult extends \Google\Model
{
/**
* Specifies the name of the result. Available if provided with an explicit
* alias using [AS] alias.
*
* @var string
*/
public $name;
/**
* Indicates the data type of the result. For more information, see BigQuery
* data types (https://cloud.google.com/bigquery/docs/reference/standard-
* sql/data-types).
*
* @var string
*/
public $type;
/**
* Represents the value of the result as a string.
*
* @var string
*/
public $value;

/**
* Specifies the name of the result. Available if provided with an explicit
* alias using [AS] alias.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Indicates the data type of the result. For more information, see BigQuery
* data types (https://cloud.google.com/bigquery/docs/reference/standard-
* sql/data-types).
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Represents the value of the result as a string.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResult::class, 'Google_Service_CloudDataplex_GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResult');
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?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 GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResultSet extends \Google\Collection
{
protected $collection_key = 'results';
protected $resultsType = GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResult::class;
protected $resultsDataType = 'array';

/**
* Output only. Contains all results. Up to 10 results can be returned.
*
* @param GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResult[] $results
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return GoogleCloudDataplexV1DataQualityRuleResultDebugQueryResult[]
*/
public function getResults()
{
return $this->results;
}
}

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