From 807a96e29c7ba8b54426c492411ce71692791b8e Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Wed, 4 Mar 2026 15:12:57 +0000 Subject: [PATCH] Codegen: CRM Associations V4 --- codegen/Crm/Associations/V4/Api/BasicApi.php | 178 +++++++++--------- codegen/Crm/Associations/V4/Api/BatchApi.php | 100 +++++----- codegen/Crm/Associations/V4/Api/ReportApi.php | 10 +- .../Associations/V4/Model/AssociationSpec.php | 2 + .../V4/Model/AssociationSpecWithLabel.php | 2 + ...ssociatedObjectWithLabelForwardPaging.php} | 14 +- ...etweenObjectPair.php => ForwardPaging.php} | 117 +++--------- 7 files changed, 176 insertions(+), 247 deletions(-) rename codegen/Crm/Associations/V4/Model/{CollectionResponseMultiAssociatedObjectWithLabel.php => CollectionResponseMultiAssociatedObjectWithLabelForwardPaging.php} (94%) rename codegen/Crm/Associations/V4/Model/{CreatedResponseLabelsBetweenObjectPair.php => ForwardPaging.php} (72%) diff --git a/codegen/Crm/Associations/V4/Api/BasicApi.php b/codegen/Crm/Associations/V4/Api/BasicApi.php index e0e7ac8c..f50a0de5 100644 --- a/codegen/Crm/Associations/V4/Api/BasicApi.php +++ b/codegen/Crm/Associations/V4/Api/BasicApi.php @@ -139,10 +139,10 @@ public function getConfig() * * Delete * - * @param string $object_type Specifies the type of the source object in the association to be deleted. (required) - * @param string $object_id The unique identifier for the source object in the association to be deleted. (required) - * @param string $to_object_type Specifies the type of the target object in the association to be deleted. (required) - * @param string $to_object_id The unique identifier for the target object in the association to be deleted. (required) + * @param string $object_type object_type (required) + * @param string $object_id object_id (required) + * @param string $to_object_type to_object_type (required) + * @param string $to_object_id to_object_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format @@ -159,10 +159,10 @@ public function archive($object_type, $object_id, $to_object_type, $to_object_id * * Delete * - * @param string $object_type Specifies the type of the source object in the association to be deleted. (required) - * @param string $object_id The unique identifier for the source object in the association to be deleted. (required) - * @param string $to_object_type Specifies the type of the target object in the association to be deleted. (required) - * @param string $to_object_id The unique identifier for the target object in the association to be deleted. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format @@ -219,10 +219,10 @@ public function archiveWithHttpInfo($object_type, $object_id, $to_object_type, $ * * Delete * - * @param string $object_type Specifies the type of the source object in the association to be deleted. (required) - * @param string $object_id The unique identifier for the source object in the association to be deleted. (required) - * @param string $to_object_type Specifies the type of the target object in the association to be deleted. (required) - * @param string $to_object_id The unique identifier for the target object in the association to be deleted. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -243,10 +243,10 @@ function ($response) { * * Delete * - * @param string $object_type Specifies the type of the source object in the association to be deleted. (required) - * @param string $object_id The unique identifier for the source object in the association to be deleted. (required) - * @param string $to_object_type Specifies the type of the target object in the association to be deleted. (required) - * @param string $to_object_id The unique identifier for the target object in the association to be deleted. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -283,10 +283,10 @@ function ($exception) { /** * Create request for operation 'archive' * - * @param string $object_type Specifies the type of the source object in the association to be deleted. (required) - * @param string $object_id The unique identifier for the source object in the association to be deleted. (required) - * @param string $to_object_type Specifies the type of the target object in the association to be deleted. (required) - * @param string $to_object_id The unique identifier for the target object in the association to be deleted. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -429,16 +429,16 @@ public function archiveRequest($object_type, $object_id, $to_object_type, $to_ob * * Create * - * @param string $object_type Specifies the type of the source object in the association to be created. (required) - * @param string $object_id The unique identifier for the source object in the association to be created. (required) - * @param string $to_object_type Specifies the type of the target object in the association to be created. (required) - * @param string $to_object_id The unique identifier for the target object in the association to be created. (required) + * @param string $object_type object_type (required) + * @param string $object_id object_id (required) + * @param string $to_object_type to_object_type (required) + * @param string $to_object_id to_object_id (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\AssociationSpec[] $association_spec association_spec (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \HubSpot\Client\Crm\Associations\V4\Model\CreatedResponseLabelsBetweenObjectPair|\HubSpot\Client\Crm\Associations\V4\Model\Error + * @return \HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair|\HubSpot\Client\Crm\Associations\V4\Model\Error */ public function create($object_type, $object_id, $to_object_type, $to_object_id, $association_spec, string $contentType = self::contentTypes['create'][0]) { @@ -451,16 +451,16 @@ public function create($object_type, $object_id, $to_object_type, $to_object_id, * * Create * - * @param string $object_type Specifies the type of the source object in the association to be created. (required) - * @param string $object_id The unique identifier for the source object in the association to be created. (required) - * @param string $to_object_type Specifies the type of the target object in the association to be created. (required) - * @param string $to_object_id The unique identifier for the target object in the association to be created. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\AssociationSpec[] $association_spec (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Crm\Associations\V4\Model\CreatedResponseLabelsBetweenObjectPair|\HubSpot\Client\Crm\Associations\V4\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of \HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair|\HubSpot\Client\Crm\Associations\V4\Model\Error, HTTP status code, HTTP response headers (array of strings) */ public function createWithHttpInfo($object_type, $object_id, $to_object_type, $to_object_id, $association_spec, string $contentType = self::contentTypes['create'][0]) { @@ -490,9 +490,9 @@ public function createWithHttpInfo($object_type, $object_id, $to_object_type, $t switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( - '\HubSpot\Client\Crm\Associations\V4\Model\CreatedResponseLabelsBetweenObjectPair', + '\HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair', $request, $response, ); @@ -520,16 +520,16 @@ public function createWithHttpInfo($object_type, $object_id, $to_object_type, $t } return $this->handleResponseWithDataType( - '\HubSpot\Client\Crm\Associations\V4\Model\CreatedResponseLabelsBetweenObjectPair', + '\HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair', $request, $response, ); } catch (ApiException $e) { switch ($e->getCode()) { - case 200: + case 201: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\HubSpot\Client\Crm\Associations\V4\Model\CreatedResponseLabelsBetweenObjectPair', + '\HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -554,10 +554,10 @@ public function createWithHttpInfo($object_type, $object_id, $to_object_type, $t * * Create * - * @param string $object_type Specifies the type of the source object in the association to be created. (required) - * @param string $object_id The unique identifier for the source object in the association to be created. (required) - * @param string $to_object_type Specifies the type of the target object in the association to be created. (required) - * @param string $to_object_id The unique identifier for the target object in the association to be created. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\AssociationSpec[] $association_spec (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -579,10 +579,10 @@ function ($response) { * * Create * - * @param string $object_type Specifies the type of the source object in the association to be created. (required) - * @param string $object_id The unique identifier for the source object in the association to be created. (required) - * @param string $to_object_type Specifies the type of the target object in the association to be created. (required) - * @param string $to_object_id The unique identifier for the target object in the association to be created. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\AssociationSpec[] $association_spec (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -591,7 +591,7 @@ function ($response) { */ public function createAsyncWithHttpInfo($object_type, $object_id, $to_object_type, $to_object_id, $association_spec, string $contentType = self::contentTypes['create'][0]) { - $returnType = '\HubSpot\Client\Crm\Associations\V4\Model\CreatedResponseLabelsBetweenObjectPair'; + $returnType = '\HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair'; $request = $this->createRequest($object_type, $object_id, $to_object_type, $to_object_id, $association_spec, $contentType); return $this->client @@ -633,10 +633,10 @@ function ($exception) { /** * Create request for operation 'create' * - * @param string $object_type Specifies the type of the source object in the association to be created. (required) - * @param string $object_id The unique identifier for the source object in the association to be created. (required) - * @param string $to_object_type Specifies the type of the target object in the association to be created. (required) - * @param string $to_object_id The unique identifier for the target object in the association to be created. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\AssociationSpec[] $association_spec (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -794,10 +794,10 @@ public function createRequest($object_type, $object_id, $to_object_type, $to_obj * * Create Default * - * @param string $from_object_type The type of the source object in the association. (required) - * @param string $from_object_id The ID of the source object in the association. (required) - * @param string $to_object_type The type of the target object in the association. (required) - * @param string $to_object_id The ID of the target object in the association. (required) + * @param string $from_object_type from_object_type (required) + * @param string $from_object_id from_object_id (required) + * @param string $to_object_type to_object_type (required) + * @param string $to_object_id to_object_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDefault'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format @@ -815,10 +815,10 @@ public function createDefault($from_object_type, $from_object_id, $to_object_typ * * Create Default * - * @param string $from_object_type The type of the source object in the association. (required) - * @param string $from_object_id The ID of the source object in the association. (required) - * @param string $to_object_type The type of the target object in the association. (required) - * @param string $to_object_id The ID of the target object in the association. (required) + * @param string $from_object_type (required) + * @param string $from_object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDefault'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format @@ -917,10 +917,10 @@ public function createDefaultWithHttpInfo($from_object_type, $from_object_id, $t * * Create Default * - * @param string $from_object_type The type of the source object in the association. (required) - * @param string $from_object_id The ID of the source object in the association. (required) - * @param string $to_object_type The type of the target object in the association. (required) - * @param string $to_object_id The ID of the target object in the association. (required) + * @param string $from_object_type (required) + * @param string $from_object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDefault'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -941,10 +941,10 @@ function ($response) { * * Create Default * - * @param string $from_object_type The type of the source object in the association. (required) - * @param string $from_object_id The ID of the source object in the association. (required) - * @param string $to_object_type The type of the target object in the association. (required) - * @param string $to_object_id The ID of the target object in the association. (required) + * @param string $from_object_type (required) + * @param string $from_object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDefault'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -994,10 +994,10 @@ function ($exception) { /** * Create request for operation 'createDefault' * - * @param string $from_object_type The type of the source object in the association. (required) - * @param string $from_object_id The ID of the source object in the association. (required) - * @param string $to_object_type The type of the target object in the association. (required) - * @param string $to_object_id The ID of the target object in the association. (required) + * @param string $from_object_type (required) + * @param string $from_object_id (required) + * @param string $to_object_type (required) + * @param string $to_object_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDefault'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1140,16 +1140,16 @@ public function createDefaultRequest($from_object_type, $from_object_id, $to_obj * * List * - * @param string $object_type Specifies the type of the source object in the association. (required) - * @param string $object_id The unique identifier for the source object whose associations are being retrieved. (required) - * @param string $to_object_type Specifies the type of the target object in the association. (required) + * @param string $object_type object_type (required) + * @param string $object_id object_id (required) + * @param string $to_object_type to_object_type (required) * @param string|null $after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to display per page. (optional, default to 500) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabel|\HubSpot\Client\Crm\Associations\V4\Model\Error + * @return \HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabelForwardPaging|\HubSpot\Client\Crm\Associations\V4\Model\Error */ public function getPage($object_type, $object_id, $to_object_type, $after = null, $limit = 500, string $contentType = self::contentTypes['getPage'][0]) { @@ -1162,16 +1162,16 @@ public function getPage($object_type, $object_id, $to_object_type, $after = null * * List * - * @param string $object_type Specifies the type of the source object in the association. (required) - * @param string $object_id The unique identifier for the source object whose associations are being retrieved. (required) - * @param string $to_object_type Specifies the type of the target object in the association. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) * @param string|null $after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to display per page. (optional, default to 500) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabel|\HubSpot\Client\Crm\Associations\V4\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of \HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabelForwardPaging|\HubSpot\Client\Crm\Associations\V4\Model\Error, HTTP status code, HTTP response headers (array of strings) */ public function getPageWithHttpInfo($object_type, $object_id, $to_object_type, $after = null, $limit = 500, string $contentType = self::contentTypes['getPage'][0]) { @@ -1203,7 +1203,7 @@ public function getPageWithHttpInfo($object_type, $object_id, $to_object_type, $ switch($statusCode) { case 200: return $this->handleResponseWithDataType( - '\HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabel', + '\HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabelForwardPaging', $request, $response, ); @@ -1231,7 +1231,7 @@ public function getPageWithHttpInfo($object_type, $object_id, $to_object_type, $ } return $this->handleResponseWithDataType( - '\HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabel', + '\HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabelForwardPaging', $request, $response, ); @@ -1240,7 +1240,7 @@ public function getPageWithHttpInfo($object_type, $object_id, $to_object_type, $ case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabel', + '\HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabelForwardPaging', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1265,9 +1265,9 @@ public function getPageWithHttpInfo($object_type, $object_id, $to_object_type, $ * * List * - * @param string $object_type Specifies the type of the source object in the association. (required) - * @param string $object_id The unique identifier for the source object whose associations are being retrieved. (required) - * @param string $to_object_type Specifies the type of the target object in the association. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) * @param string|null $after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to display per page. (optional, default to 500) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation @@ -1290,9 +1290,9 @@ function ($response) { * * List * - * @param string $object_type Specifies the type of the source object in the association. (required) - * @param string $object_id The unique identifier for the source object whose associations are being retrieved. (required) - * @param string $to_object_type Specifies the type of the target object in the association. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) * @param string|null $after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to display per page. (optional, default to 500) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation @@ -1302,7 +1302,7 @@ function ($response) { */ public function getPageAsyncWithHttpInfo($object_type, $object_id, $to_object_type, $after = null, $limit = 500, string $contentType = self::contentTypes['getPage'][0]) { - $returnType = '\HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabel'; + $returnType = '\HubSpot\Client\Crm\Associations\V4\Model\CollectionResponseMultiAssociatedObjectWithLabelForwardPaging'; $request = $this->getPageRequest($object_type, $object_id, $to_object_type, $after, $limit, $contentType); return $this->client @@ -1344,9 +1344,9 @@ function ($exception) { /** * Create request for operation 'getPage' * - * @param string $object_type Specifies the type of the source object in the association. (required) - * @param string $object_id The unique identifier for the source object whose associations are being retrieved. (required) - * @param string $to_object_type Specifies the type of the target object in the association. (required) + * @param string $object_type (required) + * @param string $object_id (required) + * @param string $to_object_type (required) * @param string|null $after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to display per page. (optional, default to 500) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation diff --git a/codegen/Crm/Associations/V4/Api/BatchApi.php b/codegen/Crm/Associations/V4/Api/BatchApi.php index 4c486ab6..e3a3796a 100644 --- a/codegen/Crm/Associations/V4/Api/BatchApi.php +++ b/codegen/Crm/Associations/V4/Api/BatchApi.php @@ -142,8 +142,8 @@ public function getConfig() * * Delete * - * @param string $from_object_type Specifies the type of the source object in the batch association deletion. (required) - * @param string $to_object_type Specifies the type of the target object in the batch association deletion. (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiArchive $batch_input_public_association_multi_archive batch_input_public_association_multi_archive (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * @@ -162,8 +162,8 @@ public function archive($from_object_type, $to_object_type, $batch_input_public_ * * Delete * - * @param string $from_object_type Specifies the type of the source object in the batch association deletion. (required) - * @param string $to_object_type Specifies the type of the target object in the batch association deletion. (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiArchive $batch_input_public_association_multi_archive (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * @@ -263,8 +263,8 @@ public function archiveWithHttpInfo($from_object_type, $to_object_type, $batch_i * * Delete * - * @param string $from_object_type Specifies the type of the source object in the batch association deletion. (required) - * @param string $to_object_type Specifies the type of the target object in the batch association deletion. (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiArchive $batch_input_public_association_multi_archive (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * @@ -286,8 +286,8 @@ function ($response) { * * Delete * - * @param string $from_object_type Specifies the type of the source object in the batch association deletion. (required) - * @param string $to_object_type Specifies the type of the target object in the batch association deletion. (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiArchive $batch_input_public_association_multi_archive (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * @@ -338,8 +338,8 @@ function ($exception) { /** * Create request for operation 'archive' * - * @param string $from_object_type Specifies the type of the source object in the batch association deletion. (required) - * @param string $to_object_type Specifies the type of the target object in the batch association deletion. (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiArchive $batch_input_public_association_multi_archive (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archive'] to see the possible values for this operation * @@ -467,8 +467,8 @@ public function archiveRequest($from_object_type, $to_object_type, $batch_input_ * * Delete Specific Labels * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiPost $batch_input_public_association_multi_post batch_input_public_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archiveLabels'] to see the possible values for this operation * @@ -487,8 +487,8 @@ public function archiveLabels($from_object_type, $to_object_type, $batch_input_p * * Delete Specific Labels * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiPost $batch_input_public_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archiveLabels'] to see the possible values for this operation * @@ -588,8 +588,8 @@ public function archiveLabelsWithHttpInfo($from_object_type, $to_object_type, $b * * Delete Specific Labels * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiPost $batch_input_public_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archiveLabels'] to see the possible values for this operation * @@ -611,8 +611,8 @@ function ($response) { * * Delete Specific Labels * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiPost $batch_input_public_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archiveLabels'] to see the possible values for this operation * @@ -663,8 +663,8 @@ function ($exception) { /** * Create request for operation 'archiveLabels' * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiPost $batch_input_public_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['archiveLabels'] to see the possible values for this operation * @@ -792,8 +792,8 @@ public function archiveLabelsRequest($from_object_type, $to_object_type, $batch_ * * Create * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiPost $batch_input_public_association_multi_post batch_input_public_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -812,8 +812,8 @@ public function create($from_object_type, $to_object_type, $batch_input_public_a * * Create * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiPost $batch_input_public_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -913,8 +913,8 @@ public function createWithHttpInfo($from_object_type, $to_object_type, $batch_in * * Create * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiPost $batch_input_public_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -936,8 +936,8 @@ function ($response) { * * Create * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiPost $batch_input_public_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -988,8 +988,8 @@ function ($exception) { /** * Create request for operation 'create' * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicAssociationMultiPost $batch_input_public_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation * @@ -1117,8 +1117,8 @@ public function createRequest($from_object_type, $to_object_type, $batch_input_p * * Create Default Associations * - * @param string $from_object_type Specifies the type of the source object in the association. (required) - * @param string $to_object_type Specifies the type of the target object in the association. (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicDefaultAssociationMultiPost $batch_input_public_default_association_multi_post batch_input_public_default_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDefault'] to see the possible values for this operation * @@ -1137,8 +1137,8 @@ public function createDefault($from_object_type, $to_object_type, $batch_input_p * * Create Default Associations * - * @param string $from_object_type Specifies the type of the source object in the association. (required) - * @param string $to_object_type Specifies the type of the target object in the association. (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicDefaultAssociationMultiPost $batch_input_public_default_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDefault'] to see the possible values for this operation * @@ -1238,8 +1238,8 @@ public function createDefaultWithHttpInfo($from_object_type, $to_object_type, $b * * Create Default Associations * - * @param string $from_object_type Specifies the type of the source object in the association. (required) - * @param string $to_object_type Specifies the type of the target object in the association. (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicDefaultAssociationMultiPost $batch_input_public_default_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDefault'] to see the possible values for this operation * @@ -1261,8 +1261,8 @@ function ($response) { * * Create Default Associations * - * @param string $from_object_type Specifies the type of the source object in the association. (required) - * @param string $to_object_type Specifies the type of the target object in the association. (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicDefaultAssociationMultiPost $batch_input_public_default_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDefault'] to see the possible values for this operation * @@ -1313,8 +1313,8 @@ function ($exception) { /** * Create request for operation 'createDefault' * - * @param string $from_object_type Specifies the type of the source object in the association. (required) - * @param string $to_object_type Specifies the type of the target object in the association. (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicDefaultAssociationMultiPost $batch_input_public_default_association_multi_post (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDefault'] to see the possible values for this operation * @@ -1442,8 +1442,8 @@ public function createDefaultRequest($from_object_type, $to_object_type, $batch_ * * Read * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicFetchAssociationsBatchRequest $batch_input_public_fetch_associations_batch_request batch_input_public_fetch_associations_batch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * @@ -1462,8 +1462,8 @@ public function getPage($from_object_type, $to_object_type, $batch_input_public_ * * Read * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicFetchAssociationsBatchRequest $batch_input_public_fetch_associations_batch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * @@ -1563,8 +1563,8 @@ public function getPageWithHttpInfo($from_object_type, $to_object_type, $batch_i * * Read * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicFetchAssociationsBatchRequest $batch_input_public_fetch_associations_batch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * @@ -1586,8 +1586,8 @@ function ($response) { * * Read * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicFetchAssociationsBatchRequest $batch_input_public_fetch_associations_batch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * @@ -1638,8 +1638,8 @@ function ($exception) { /** * Create request for operation 'getPage' * - * @param string $from_object_type The type of the from Object (required) - * @param string $to_object_type The type of the to Object (required) + * @param string $from_object_type (required) + * @param string $to_object_type (required) * @param \HubSpot\Client\Crm\Associations\V4\Model\BatchInputPublicFetchAssociationsBatchRequest $batch_input_public_fetch_associations_batch_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * diff --git a/codegen/Crm/Associations/V4/Api/ReportApi.php b/codegen/Crm/Associations/V4/Api/ReportApi.php index cd027e8e..43c79e5a 100644 --- a/codegen/Crm/Associations/V4/Api/ReportApi.php +++ b/codegen/Crm/Associations/V4/Api/ReportApi.php @@ -130,7 +130,7 @@ public function getConfig() * * Report * - * @param int $user_id The user for the report (required) + * @param int $user_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['request'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format @@ -148,7 +148,7 @@ public function request($user_id, string $contentType = self::contentTypes['requ * * Report * - * @param int $user_id The user for the report (required) + * @param int $user_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['request'] to see the possible values for this operation * * @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format @@ -247,7 +247,7 @@ public function requestWithHttpInfo($user_id, string $contentType = self::conten * * Report * - * @param int $user_id The user for the report (required) + * @param int $user_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['request'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -268,7 +268,7 @@ function ($response) { * * Report * - * @param int $user_id The user for the report (required) + * @param int $user_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['request'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -318,7 +318,7 @@ function ($exception) { /** * Create request for operation 'request' * - * @param int $user_id The user for the report (required) + * @param int $user_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['request'] to see the possible values for this operation * * @throws \InvalidArgumentException diff --git a/codegen/Crm/Associations/V4/Model/AssociationSpec.php b/codegen/Crm/Associations/V4/Model/AssociationSpec.php index 3334732e..655d8651 100644 --- a/codegen/Crm/Associations/V4/Model/AssociationSpec.php +++ b/codegen/Crm/Associations/V4/Model/AssociationSpec.php @@ -238,6 +238,7 @@ public function getModelName() public const ASSOCIATION_CATEGORY_HUBSPOT_DEFINED = 'HUBSPOT_DEFINED'; public const ASSOCIATION_CATEGORY_INTEGRATOR_DEFINED = 'INTEGRATOR_DEFINED'; public const ASSOCIATION_CATEGORY_USER_DEFINED = 'USER_DEFINED'; + public const ASSOCIATION_CATEGORY_WORK = 'WORK'; /** * Gets allowable values of the enum @@ -250,6 +251,7 @@ public function getAssociationCategoryAllowableValues() self::ASSOCIATION_CATEGORY_HUBSPOT_DEFINED, self::ASSOCIATION_CATEGORY_INTEGRATOR_DEFINED, self::ASSOCIATION_CATEGORY_USER_DEFINED, + self::ASSOCIATION_CATEGORY_WORK, ]; } diff --git a/codegen/Crm/Associations/V4/Model/AssociationSpecWithLabel.php b/codegen/Crm/Associations/V4/Model/AssociationSpecWithLabel.php index d7b0a3fc..5ffe4d32 100644 --- a/codegen/Crm/Associations/V4/Model/AssociationSpecWithLabel.php +++ b/codegen/Crm/Associations/V4/Model/AssociationSpecWithLabel.php @@ -244,6 +244,7 @@ public function getModelName() public const CATEGORY_HUBSPOT_DEFINED = 'HUBSPOT_DEFINED'; public const CATEGORY_INTEGRATOR_DEFINED = 'INTEGRATOR_DEFINED'; public const CATEGORY_USER_DEFINED = 'USER_DEFINED'; + public const CATEGORY_WORK = 'WORK'; /** * Gets allowable values of the enum @@ -256,6 +257,7 @@ public function getCategoryAllowableValues() self::CATEGORY_HUBSPOT_DEFINED, self::CATEGORY_INTEGRATOR_DEFINED, self::CATEGORY_USER_DEFINED, + self::CATEGORY_WORK, ]; } diff --git a/codegen/Crm/Associations/V4/Model/CollectionResponseMultiAssociatedObjectWithLabel.php b/codegen/Crm/Associations/V4/Model/CollectionResponseMultiAssociatedObjectWithLabelForwardPaging.php similarity index 94% rename from codegen/Crm/Associations/V4/Model/CollectionResponseMultiAssociatedObjectWithLabel.php rename to codegen/Crm/Associations/V4/Model/CollectionResponseMultiAssociatedObjectWithLabelForwardPaging.php index a99ee826..5c8f9873 100644 --- a/codegen/Crm/Associations/V4/Model/CollectionResponseMultiAssociatedObjectWithLabel.php +++ b/codegen/Crm/Associations/V4/Model/CollectionResponseMultiAssociatedObjectWithLabelForwardPaging.php @@ -1,6 +1,6 @@ */ -class CollectionResponseMultiAssociatedObjectWithLabel implements ModelInterface, ArrayAccess, \JsonSerializable +class CollectionResponseMultiAssociatedObjectWithLabelForwardPaging implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -49,7 +49,7 @@ class CollectionResponseMultiAssociatedObjectWithLabel implements ModelInterface * * @var string */ - protected static $openAPIModelName = 'CollectionResponseMultiAssociatedObjectWithLabel'; + protected static $openAPIModelName = 'CollectionResponseMultiAssociatedObjectWithLabelForwardPaging'; /** * Array of property to type mappings. Used for (de)serialization @@ -57,7 +57,7 @@ class CollectionResponseMultiAssociatedObjectWithLabel implements ModelInterface * @var string[] */ protected static $openAPITypes = [ - 'paging' => '\HubSpot\Client\Crm\Associations\V4\Model\Paging', + 'paging' => '\HubSpot\Client\Crm\Associations\V4\Model\ForwardPaging', 'results' => '\HubSpot\Client\Crm\Associations\V4\Model\MultiAssociatedObjectWithLabel[]' ]; @@ -302,7 +302,7 @@ public function valid() /** * Gets paging * - * @return \HubSpot\Client\Crm\Associations\V4\Model\Paging|null + * @return \HubSpot\Client\Crm\Associations\V4\Model\ForwardPaging|null */ public function getPaging() { @@ -312,7 +312,7 @@ public function getPaging() /** * Sets paging * - * @param \HubSpot\Client\Crm\Associations\V4\Model\Paging|null $paging paging + * @param \HubSpot\Client\Crm\Associations\V4\Model\ForwardPaging|null $paging paging * * @return self */ diff --git a/codegen/Crm/Associations/V4/Model/CreatedResponseLabelsBetweenObjectPair.php b/codegen/Crm/Associations/V4/Model/ForwardPaging.php similarity index 72% rename from codegen/Crm/Associations/V4/Model/CreatedResponseLabelsBetweenObjectPair.php rename to codegen/Crm/Associations/V4/Model/ForwardPaging.php index 93e5d72e..4671bef6 100644 --- a/codegen/Crm/Associations/V4/Model/CreatedResponseLabelsBetweenObjectPair.php +++ b/codegen/Crm/Associations/V4/Model/ForwardPaging.php @@ -1,6 +1,6 @@ */ -class CreatedResponseLabelsBetweenObjectPair implements ModelInterface, ArrayAccess, \JsonSerializable +class ForwardPaging implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -50,7 +49,7 @@ class CreatedResponseLabelsBetweenObjectPair implements ModelInterface, ArrayAcc * * @var string */ - protected static $openAPIModelName = 'CreatedResponseLabelsBetweenObjectPair'; + protected static $openAPIModelName = 'ForwardPaging'; /** * Array of property to type mappings. Used for (de)serialization @@ -58,9 +57,7 @@ class CreatedResponseLabelsBetweenObjectPair implements ModelInterface, ArrayAcc * @var string[] */ protected static $openAPITypes = [ - 'created_resource_id' => 'string', - 'entity' => '\HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair', - 'location' => 'string' + 'next' => '\HubSpot\Client\Crm\Associations\V4\Model\NextPage' ]; /** @@ -71,9 +68,7 @@ class CreatedResponseLabelsBetweenObjectPair implements ModelInterface, ArrayAcc * @psalm-var array */ protected static $openAPIFormats = [ - 'created_resource_id' => null, - 'entity' => null, - 'location' => null + 'next' => null ]; /** @@ -82,9 +77,7 @@ class CreatedResponseLabelsBetweenObjectPair implements ModelInterface, ArrayAcc * @var boolean[] */ protected static array $openAPINullables = [ - 'created_resource_id' => false, - 'entity' => false, - 'location' => false + 'next' => false ]; /** @@ -173,9 +166,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'created_resource_id' => 'createdResourceId', - 'entity' => 'entity', - 'location' => 'location' + 'next' => 'next' ]; /** @@ -184,9 +175,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'created_resource_id' => 'setCreatedResourceId', - 'entity' => 'setEntity', - 'location' => 'setLocation' + 'next' => 'setNext' ]; /** @@ -195,9 +184,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'created_resource_id' => 'getCreatedResourceId', - 'entity' => 'getEntity', - 'location' => 'getLocation' + 'next' => 'getNext' ]; /** @@ -257,9 +244,7 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('created_resource_id', $data ?? [], null); - $this->setIfExists('entity', $data ?? [], null); - $this->setIfExists('location', $data ?? [], null); + $this->setIfExists('next', $data ?? [], null); } /** @@ -289,12 +274,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['created_resource_id'] === null) { - $invalidProperties[] = "'created_resource_id' can't be null"; - } - if ($this->container['entity'] === null) { - $invalidProperties[] = "'entity' can't be null"; - } return $invalidProperties; } @@ -311,82 +290,28 @@ public function valid() /** - * Gets created_resource_id - * - * @return string - */ - public function getCreatedResourceId() - { - return $this->container['created_resource_id']; - } - - /** - * Sets created_resource_id - * - * @param string $created_resource_id The unique identifier of the newly created resource. - * - * @return self - */ - public function setCreatedResourceId($created_resource_id) - { - if (is_null($created_resource_id)) { - throw new \InvalidArgumentException('non-nullable created_resource_id cannot be null'); - } - $this->container['created_resource_id'] = $created_resource_id; - - return $this; - } - - /** - * Gets entity - * - * @return \HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair - */ - public function getEntity() - { - return $this->container['entity']; - } - - /** - * Sets entity - * - * @param \HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair $entity entity - * - * @return self - */ - public function setEntity($entity) - { - if (is_null($entity)) { - throw new \InvalidArgumentException('non-nullable entity cannot be null'); - } - $this->container['entity'] = $entity; - - return $this; - } - - /** - * Gets location + * Gets next * - * @return string|null + * @return \HubSpot\Client\Crm\Associations\V4\Model\NextPage|null */ - public function getLocation() + public function getNext() { - return $this->container['location']; + return $this->container['next']; } /** - * Sets location + * Sets next * - * @param string|null $location The URL location of the newly created resource. + * @param \HubSpot\Client\Crm\Associations\V4\Model\NextPage|null $next next * * @return self */ - public function setLocation($location) + public function setNext($next) { - if (is_null($location)) { - throw new \InvalidArgumentException('non-nullable location cannot be null'); + if (is_null($next)) { + throw new \InvalidArgumentException('non-nullable next cannot be null'); } - $this->container['location'] = $location; + $this->container['next'] = $next; return $this; }