diff --git a/src/CloudDataplex.php b/src/CloudDataplex.php index f60918df03e..55d6cd75b84 100644 --- a/src/CloudDataplex.php +++ b/src/CloudDataplex.php @@ -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, + ], + ], ], ] ] diff --git a/src/CloudDataplex/GoogleCloudDataplexV1EntryLink.php b/src/CloudDataplex/GoogleCloudDataplexV1EntryLink.php index 2d8772b1bf0..0748042e350 100644 --- a/src/CloudDataplex/GoogleCloudDataplexV1EntryLink.php +++ b/src/CloudDataplex/GoogleCloudDataplexV1EntryLink.php @@ -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. * @@ -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. * @@ -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 */ diff --git a/src/CloudDataplex/Resource/ProjectsLocationsEntryGroupsEntryLinks.php b/src/CloudDataplex/Resource/ProjectsLocationsEntryGroupsEntryLinks.php index 36519198ffb..34f8967fce1 100644 --- a/src/CloudDataplex/Resource/ProjectsLocationsEntryGroupsEntryLinks.php +++ b/src/CloudDataplex/Resource/ProjectsLocationsEntryGroupsEntryLinks.php @@ -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.