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
19 changes: 19 additions & 0 deletions src/CloudDataplex.php
Original file line number Diff line number Diff line change
Expand Up @@ -1709,6 +1709,25 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'required' => true,
],
],
],'patch' => [
'path' => 'v1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'allowMissing' => [
'location' => 'query',
'type' => 'boolean',
],
'aspectKeys' => [
'location' => 'query',
'type' => 'string',
'repeated' => true,
],
],
],
]
]
Expand Down
25 changes: 23 additions & 2 deletions src/CloudDataplex/GoogleCloudDataplexV1EntryLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
class GoogleCloudDataplexV1EntryLink extends \Google\Collection
{
protected $collection_key = 'entryReferences';
protected $aspectsType = GoogleCloudDataplexV1Aspect::class;
protected $aspectsDataType = 'map';
/**
* Output only. The time when the Entry Link was created.
*
Expand Down Expand Up @@ -55,6 +57,25 @@ class GoogleCloudDataplexV1EntryLink extends \Google\Collection
*/
public $updateTime;

/**
* Optional. The aspects that are attached to the entry link. The format of
* the aspect key has to be the following:
* {project_id_or_number}.{location_id}.{aspect_type_id} Currently, only a
* single aspect of a Dataplex-owned Aspect Type is allowed.
*
* @param GoogleCloudDataplexV1Aspect[] $aspects
*/
public function setAspects($aspects)
{
$this->aspects = $aspects;
}
/**
* @return GoogleCloudDataplexV1Aspect[]
*/
public function getAspects()
{
return $this->aspects;
}
/**
* Output only. The time when the Entry Link was created.
*
Expand Down Expand Up @@ -94,8 +115,8 @@ public function getEntryLinkType()
return $this->entryLinkType;
}
/**
* Required. Specifies the Entries referenced in the Entry Link. There should
* be exactly two entry references.
* Required. Immutable. Specifies the Entries referenced in the Entry Link.
* There should be exactly two entry references.
*
* @param GoogleCloudDataplexV1EntryLinkEntryReference[] $entryReferences
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,31 @@ public function get($name, $optParams = [])
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudDataplexV1EntryLink::class);
}
/**
* Updates an Entry Link. (entryLinks.patch)
*
* @param string $name Output only. Immutable. Identifier. The relative resource
* name of the Entry Link, of the form: projects/{project_id_or_number}/location
* s/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}
* @param GoogleCloudDataplexV1EntryLink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true and the entry link
* doesn't exist, the service will create it.
* @opt_param string aspectKeys Optional. The map keys of the Aspects which the
* service should modify. It should be the aspect type reference in the format
* {project_id_or_number}.{location_id}.{aspect_type_id}.If this field is left
* empty, the service treats it as specifying exactly those Aspects present in
* the request.
* @return GoogleCloudDataplexV1EntryLink
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudDataplexV1EntryLink $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudDataplexV1EntryLink::class);
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down