From 32e204b60a54641890577aaf5f051954665f2fd3 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 6 Feb 2026 15:38:30 +0300 Subject: [PATCH 1/6] Codegen: CMS Audit Logs --- codegen/Cms/AuditLogs/Api/AuditLogsApi.php | 2 +- codegen/Cms/AuditLogs/ApiException.php | 2 +- codegen/Cms/AuditLogs/Configuration.php | 2 +- codegen/Cms/AuditLogs/FormDataProcessor.php | 2 +- codegen/Cms/AuditLogs/HeaderSelector.php | 2 +- .../CollectionResponsePublicAuditLog.php | 2 +- codegen/Cms/AuditLogs/Model/Error.php | 144 ++++----- codegen/Cms/AuditLogs/Model/ErrorDetail.php | 120 +++---- .../Cms/AuditLogs/Model/ModelInterface.php | 2 +- codegen/Cms/AuditLogs/Model/NextPage.php | 68 ++-- codegen/Cms/AuditLogs/Model/Paging.php | 2 +- codegen/Cms/AuditLogs/Model/PreviousPage.php | 6 +- .../Cms/AuditLogs/Model/PublicAuditLog.php | 298 +++++++++--------- codegen/Cms/AuditLogs/ObjectSerializer.php | 2 +- 14 files changed, 327 insertions(+), 327 deletions(-) diff --git a/codegen/Cms/AuditLogs/Api/AuditLogsApi.php b/codegen/Cms/AuditLogs/Api/AuditLogsApi.php index 512e0a6c..f2bb5454 100644 --- a/codegen/Cms/AuditLogs/Api/AuditLogsApi.php +++ b/codegen/Cms/AuditLogs/Api/AuditLogsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/AuditLogs/ApiException.php b/codegen/Cms/AuditLogs/ApiException.php index 5fdd681f..72157271 100644 --- a/codegen/Cms/AuditLogs/ApiException.php +++ b/codegen/Cms/AuditLogs/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/AuditLogs/Configuration.php b/codegen/Cms/AuditLogs/Configuration.php index 7a1e2144..725f493d 100644 --- a/codegen/Cms/AuditLogs/Configuration.php +++ b/codegen/Cms/AuditLogs/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/AuditLogs/FormDataProcessor.php b/codegen/Cms/AuditLogs/FormDataProcessor.php index 6326ef09..3affd04c 100644 --- a/codegen/Cms/AuditLogs/FormDataProcessor.php +++ b/codegen/Cms/AuditLogs/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/AuditLogs/HeaderSelector.php b/codegen/Cms/AuditLogs/HeaderSelector.php index 4f58d23e..6b6da65c 100644 --- a/codegen/Cms/AuditLogs/HeaderSelector.php +++ b/codegen/Cms/AuditLogs/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/AuditLogs/Model/CollectionResponsePublicAuditLog.php b/codegen/Cms/AuditLogs/Model/CollectionResponsePublicAuditLog.php index c693a8cf..bf07858f 100644 --- a/codegen/Cms/AuditLogs/Model/CollectionResponsePublicAuditLog.php +++ b/codegen/Cms/AuditLogs/Model/CollectionResponsePublicAuditLog.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/AuditLogs/Model/Error.php b/codegen/Cms/AuditLogs/Model/Error.php index 3552ad47..e299f9c5 100644 --- a/codegen/Cms/AuditLogs/Model/Error.php +++ b/codegen/Cms/AuditLogs/Model/Error.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', + 'category' => 'string', 'context' => 'array', 'correlation_id' => 'string', + 'errors' => '\HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]', 'links' => 'array', 'message' => 'string', - 'category' => 'string', - 'errors' => '\HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]' + 'sub_category' => 'string' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, + 'category' => null, 'context' => null, 'correlation_id' => 'uuid', + 'errors' => null, 'links' => null, 'message' => null, - 'category' => null, - 'errors' => null + 'sub_category' => null ]; /** @@ -89,13 +89,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, + 'category' => false, 'context' => false, 'correlation_id' => false, + 'errors' => false, 'links' => false, 'message' => false, - 'category' => false, - 'errors' => false + 'sub_category' => false ]; /** @@ -184,13 +184,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', + 'category' => 'category', 'context' => 'context', 'correlation_id' => 'correlationId', + 'errors' => 'errors', 'links' => 'links', 'message' => 'message', - 'category' => 'category', - 'errors' => 'errors' + 'sub_category' => 'subCategory' ]; /** @@ -199,13 +199,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', + 'category' => 'setCategory', 'context' => 'setContext', 'correlation_id' => 'setCorrelationId', + 'errors' => 'setErrors', 'links' => 'setLinks', 'message' => 'setMessage', - 'category' => 'setCategory', - 'errors' => 'setErrors' + 'sub_category' => 'setSubCategory' ]; /** @@ -214,13 +214,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', + 'category' => 'getCategory', 'context' => 'getContext', 'correlation_id' => 'getCorrelationId', + 'errors' => 'getErrors', 'links' => 'getLinks', 'message' => 'getMessage', - 'category' => 'getCategory', - 'errors' => 'getErrors' + 'sub_category' => 'getSubCategory' ]; /** @@ -280,13 +280,13 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); $this->setIfExists('correlation_id', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); $this->setIfExists('links', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -316,15 +316,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; + } if ($this->container['correlation_id'] === null) { $invalidProperties[] = "'correlation_id' can't be null"; } if ($this->container['message'] === null) { $invalidProperties[] = "'message' can't be null"; } - if ($this->container['category'] === null) { - $invalidProperties[] = "'category' can't be null"; - } return $invalidProperties; } @@ -341,28 +341,28 @@ public function valid() /** - * Gets sub_category + * Gets category * - * @return string|null + * @return string */ - public function getSubCategory() + public function getCategory() { - return $this->container['sub_category']; + return $this->container['category']; } /** - * Sets sub_category + * Sets category * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string $category The error category * * @return self */ - public function setSubCategory($sub_category) + public function setCategory($category) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['category'] = $category; return $this; } @@ -421,6 +421,33 @@ public function setCorrelationId($correlation_id) return $this; } + /** + * Gets errors + * + * @return \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null $errors further information about the error + * + * @return self + */ + public function setErrors($errors) + { + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); + } + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets links * @@ -476,55 +503,28 @@ public function setMessage($message) } /** - * Gets category - * - * @return string - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param string $category The error category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets errors + * Gets sub_category * - * @return \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null + * @return string|null */ - public function getErrors() + public function getSubCategory() { - return $this->container['errors']; + return $this->container['sub_category']; } /** - * Sets errors + * Sets sub_category * - * @param \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null $errors further information about the error + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setErrors($errors) + public function setSubCategory($sub_category) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['errors'] = $errors; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/AuditLogs/Model/ErrorDetail.php b/codegen/Cms/AuditLogs/Model/ErrorDetail.php index c83b8af9..7ce60fab 100644 --- a/codegen/Cms/AuditLogs/Model/ErrorDetail.php +++ b/codegen/Cms/AuditLogs/Model/ErrorDetail.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', 'code' => 'string', - 'in' => 'string', 'context' => 'array', - 'message' => 'string' + 'in' => 'string', + 'message' => 'string', + 'sub_category' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, 'code' => null, - 'in' => null, 'context' => null, - 'message' => null + 'in' => null, + 'message' => null, + 'sub_category' => null ]; /** @@ -85,11 +85,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, 'code' => false, - 'in' => false, 'context' => false, - 'message' => false + 'in' => false, + 'message' => false, + 'sub_category' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', 'code' => 'code', - 'in' => 'in', 'context' => 'context', - 'message' => 'message' + 'in' => 'in', + 'message' => 'message', + 'sub_category' => 'subCategory' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', 'code' => 'setCode', - 'in' => 'setIn', 'context' => 'setContext', - 'message' => 'setMessage' + 'in' => 'setIn', + 'message' => 'setMessage', + 'sub_category' => 'setSubCategory' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', 'code' => 'getCode', - 'in' => 'getIn', 'context' => 'getContext', - 'message' => 'getMessage' + 'in' => 'getIn', + 'message' => 'getMessage', + 'sub_category' => 'getSubCategory' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('in', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); + $this->setIfExists('in', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -321,55 +321,55 @@ public function valid() /** - * Gets sub_category + * Gets code * * @return string|null */ - public function getSubCategory() + public function getCode() { - return $this->container['sub_category']; + return $this->container['code']; } /** - * Sets sub_category + * Sets code * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $code The status code associated with the error detail * * @return self */ - public function setSubCategory($sub_category) + public function setCode($code) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['code'] = $code; return $this; } /** - * Gets code + * Gets context * - * @return string|null + * @return array|null */ - public function getCode() + public function getContext() { - return $this->container['code']; + return $this->container['context']; } /** - * Sets code + * Sets context * - * @param string|null $code The status code associated with the error detail + * @param array|null $context Context about the error condition * * @return self */ - public function setCode($code) + public function setContext($context) { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); + if (is_null($context)) { + throw new \InvalidArgumentException('non-nullable context cannot be null'); } - $this->container['code'] = $code; + $this->container['context'] = $context; return $this; } @@ -402,55 +402,55 @@ public function setIn($in) } /** - * Gets context + * Gets message * - * @return array|null + * @return string */ - public function getContext() + public function getMessage() { - return $this->container['context']; + return $this->container['message']; } /** - * Sets context + * Sets message * - * @param array|null $context Context about the error condition + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setContext($context) + public function setMessage($message) { - if (is_null($context)) { - throw new \InvalidArgumentException('non-nullable context cannot be null'); + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); } - $this->container['context'] = $context; + $this->container['message'] = $message; return $this; } /** - * Gets message + * Gets sub_category * - * @return string + * @return string|null */ - public function getMessage() + public function getSubCategory() { - return $this->container['message']; + return $this->container['sub_category']; } /** - * Sets message + * Sets sub_category * - * @param string $message A human readable message describing the error along with remediation steps where appropriate + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setMessage($message) + public function setSubCategory($sub_category) { - if (is_null($message)) { - throw new \InvalidArgumentException('non-nullable message cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/AuditLogs/Model/ModelInterface.php b/codegen/Cms/AuditLogs/Model/ModelInterface.php index 262d9e32..23c975d4 100644 --- a/codegen/Cms/AuditLogs/Model/ModelInterface.php +++ b/codegen/Cms/AuditLogs/Model/ModelInterface.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/AuditLogs/Model/NextPage.php b/codegen/Cms/AuditLogs/Model/NextPage.php index 734b43eb..1f465023 100644 --- a/codegen/Cms/AuditLogs/Model/NextPage.php +++ b/codegen/Cms/AuditLogs/Model/NextPage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'link' => 'string', - 'after' => 'string' + 'after' => 'string', + 'link' => 'string' ]; /** @@ -70,8 +70,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'link' => null, - 'after' => null + 'after' => null, + 'link' => null ]; /** @@ -80,8 +80,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'link' => false, - 'after' => false + 'after' => false, + 'link' => false ]; /** @@ -170,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'link' => 'link', - 'after' => 'after' + 'after' => 'after', + 'link' => 'link' ]; /** @@ -180,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'link' => 'setLink', - 'after' => 'setAfter' + 'after' => 'setAfter', + 'link' => 'setLink' ]; /** @@ -190,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'link' => 'getLink', - 'after' => 'getAfter' + 'after' => 'getAfter', + 'link' => 'getLink' ]; /** @@ -251,8 +251,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('link', $data ?? [], null); $this->setIfExists('after', $data ?? [], null); + $this->setIfExists('link', $data ?? [], null); } /** @@ -301,55 +301,55 @@ public function valid() /** - * Gets link + * Gets after * - * @return string|null + * @return string */ - public function getLink() + public function getAfter() { - return $this->container['link']; + return $this->container['after']; } /** - * Sets link + * Sets after * - * @param string|null $link A URL that can be used to retrieve the next page results. + * @param string $after Cursor token representing the boundary timestamp after which to fetch the next page of results. Pass this value as the after query parameter to retrieve later audit logs. * * @return self */ - public function setLink($link) + public function setAfter($after) { - if (is_null($link)) { - throw new \InvalidArgumentException('non-nullable link cannot be null'); + if (is_null($after)) { + throw new \InvalidArgumentException('non-nullable after cannot be null'); } - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } /** - * Gets after + * Gets link * - * @return string + * @return string|null */ - public function getAfter() + public function getLink() { - return $this->container['after']; + return $this->container['link']; } /** - * Sets after + * Sets link * - * @param string $after A paging cursor token for retrieving subsequent pages. + * @param string|null $link Pre-constructed URL that can be used to directly fetch the next page of results without manually building the query. * * @return self */ - public function setAfter($after) + public function setLink($link) { - if (is_null($after)) { - throw new \InvalidArgumentException('non-nullable after cannot be null'); + if (is_null($link)) { + throw new \InvalidArgumentException('non-nullable link cannot be null'); } - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } diff --git a/codegen/Cms/AuditLogs/Model/Paging.php b/codegen/Cms/AuditLogs/Model/Paging.php index cdd4b77a..e1b953f2 100644 --- a/codegen/Cms/AuditLogs/Model/Paging.php +++ b/codegen/Cms/AuditLogs/Model/Paging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/AuditLogs/Model/PreviousPage.php b/codegen/Cms/AuditLogs/Model/PreviousPage.php index 32bdb333..fb669db3 100644 --- a/codegen/Cms/AuditLogs/Model/PreviousPage.php +++ b/codegen/Cms/AuditLogs/Model/PreviousPage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -313,7 +313,7 @@ public function getBefore() /** * Sets before * - * @param string $before A paging cursor token for retrieving previous pages. + * @param string $before Pre-constructed URL that can be used to directly fetch the previous page of results without manually building the query. * * @return self */ @@ -340,7 +340,7 @@ public function getLink() /** * Sets link * - * @param string|null $link A URL that can be used to retrieve the previous pages' results. + * @param string|null $link Cursor token representing the boundary timestamp before which to fetch the previous page of results. Pass this value as the before query parameter to retrieve earlier audit logs. * * @return self */ diff --git a/codegen/Cms/AuditLogs/Model/PublicAuditLog.php b/codegen/Cms/AuditLogs/Model/PublicAuditLog.php index 84541f65..c74ffff5 100644 --- a/codegen/Cms/AuditLogs/Model/PublicAuditLog.php +++ b/codegen/Cms/AuditLogs/Model/PublicAuditLog.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,14 +57,14 @@ class PublicAuditLog implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'meta' => 'object', - 'object_name' => 'string', - 'full_name' => 'string', 'event' => 'string', - 'user_id' => 'string', + 'full_name' => 'string', + 'meta' => 'object', 'object_id' => 'string', + 'object_name' => 'string', 'object_type' => 'string', - 'timestamp' => '\DateTime' + 'timestamp' => '\DateTime', + 'user_id' => 'string' ]; /** @@ -75,14 +75,14 @@ class PublicAuditLog implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'meta' => null, - 'object_name' => null, - 'full_name' => null, 'event' => null, - 'user_id' => null, + 'full_name' => null, + 'meta' => null, 'object_id' => null, + 'object_name' => null, 'object_type' => null, - 'timestamp' => 'date-time' + 'timestamp' => 'date-time', + 'user_id' => null ]; /** @@ -91,14 +91,14 @@ class PublicAuditLog implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'meta' => false, - 'object_name' => false, - 'full_name' => false, 'event' => false, - 'user_id' => false, + 'full_name' => false, + 'meta' => false, 'object_id' => false, + 'object_name' => false, 'object_type' => false, - 'timestamp' => false + 'timestamp' => false, + 'user_id' => false ]; /** @@ -187,14 +187,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'meta' => 'meta', - 'object_name' => 'objectName', - 'full_name' => 'fullName', 'event' => 'event', - 'user_id' => 'userId', + 'full_name' => 'fullName', + 'meta' => 'meta', 'object_id' => 'objectId', + 'object_name' => 'objectName', 'object_type' => 'objectType', - 'timestamp' => 'timestamp' + 'timestamp' => 'timestamp', + 'user_id' => 'userId' ]; /** @@ -203,14 +203,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'meta' => 'setMeta', - 'object_name' => 'setObjectName', - 'full_name' => 'setFullName', 'event' => 'setEvent', - 'user_id' => 'setUserId', + 'full_name' => 'setFullName', + 'meta' => 'setMeta', 'object_id' => 'setObjectId', + 'object_name' => 'setObjectName', 'object_type' => 'setObjectType', - 'timestamp' => 'setTimestamp' + 'timestamp' => 'setTimestamp', + 'user_id' => 'setUserId' ]; /** @@ -219,14 +219,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'meta' => 'getMeta', - 'object_name' => 'getObjectName', - 'full_name' => 'getFullName', 'event' => 'getEvent', - 'user_id' => 'getUserId', + 'full_name' => 'getFullName', + 'meta' => 'getMeta', 'object_id' => 'getObjectId', + 'object_name' => 'getObjectName', 'object_type' => 'getObjectType', - 'timestamp' => 'getTimestamp' + 'timestamp' => 'getTimestamp', + 'user_id' => 'getUserId' ]; /** @@ -271,31 +271,31 @@ public function getModelName() } public const EVENT_CREATED = 'CREATED'; - public const EVENT_UPDATED = 'UPDATED'; - public const EVENT_PUBLISHED = 'PUBLISHED'; public const EVENT_DELETED = 'DELETED'; - public const EVENT_UNPUBLISHED = 'UNPUBLISHED'; + public const EVENT_PUBLISHED = 'PUBLISHED'; public const EVENT_RESTORE = 'RESTORE'; + public const EVENT_UNPUBLISHED = 'UNPUBLISHED'; + public const EVENT_UPDATED = 'UPDATED'; public const OBJECT_TYPE_BLOG = 'BLOG'; public const OBJECT_TYPE_BLOG_POST = 'BLOG_POST'; - public const OBJECT_TYPE_LANDING_PAGE = 'LANDING_PAGE'; - public const OBJECT_TYPE_WEBSITE_PAGE = 'WEBSITE_PAGE'; - public const OBJECT_TYPE_TEMPLATE = 'TEMPLATE'; - public const OBJECT_TYPE_MODULE = 'MODULE'; - public const OBJECT_TYPE_GLOBAL_MODULE = 'GLOBAL_MODULE'; - public const OBJECT_TYPE_SERVERLESS_FUNCTION = 'SERVERLESS_FUNCTION'; + public const OBJECT_TYPE_CONTENT_SETTINGS = 'CONTENT_SETTINGS'; + public const OBJECT_TYPE_CSS = 'CSS'; + public const OBJECT_TYPE_CTA = 'CTA'; public const OBJECT_TYPE_DOMAIN = 'DOMAIN'; - public const OBJECT_TYPE_URL_MAPPING = 'URL_MAPPING'; public const OBJECT_TYPE_EMAIL = 'EMAIL'; - public const OBJECT_TYPE_CONTENT_SETTINGS = 'CONTENT_SETTINGS'; + public const OBJECT_TYPE_FILE = 'FILE'; + public const OBJECT_TYPE_GLOBAL_MODULE = 'GLOBAL_MODULE'; public const OBJECT_TYPE_HUBDB_TABLE = 'HUBDB_TABLE'; - public const OBJECT_TYPE_KNOWLEDGE_BASE_ARTICLE = 'KNOWLEDGE_BASE_ARTICLE'; + public const OBJECT_TYPE_JS = 'JS'; public const OBJECT_TYPE_KNOWLEDGE_BASE = 'KNOWLEDGE_BASE'; + public const OBJECT_TYPE_KNOWLEDGE_BASE_ARTICLE = 'KNOWLEDGE_BASE_ARTICLE'; + public const OBJECT_TYPE_LANDING_PAGE = 'LANDING_PAGE'; + public const OBJECT_TYPE_MODULE = 'MODULE'; + public const OBJECT_TYPE_SERVERLESS_FUNCTION = 'SERVERLESS_FUNCTION'; + public const OBJECT_TYPE_TEMPLATE = 'TEMPLATE'; public const OBJECT_TYPE_THEME = 'THEME'; - public const OBJECT_TYPE_CSS = 'CSS'; - public const OBJECT_TYPE_JS = 'JS'; - public const OBJECT_TYPE_CTA = 'CTA'; - public const OBJECT_TYPE_FILE = 'FILE'; + public const OBJECT_TYPE_URL_MAPPING = 'URL_MAPPING'; + public const OBJECT_TYPE_WEBSITE_PAGE = 'WEBSITE_PAGE'; /** * Gets allowable values of the enum @@ -306,11 +306,11 @@ public function getEventAllowableValues() { return [ self::EVENT_CREATED, - self::EVENT_UPDATED, - self::EVENT_PUBLISHED, self::EVENT_DELETED, - self::EVENT_UNPUBLISHED, + self::EVENT_PUBLISHED, self::EVENT_RESTORE, + self::EVENT_UNPUBLISHED, + self::EVENT_UPDATED, ]; } @@ -324,24 +324,24 @@ public function getObjectTypeAllowableValues() return [ self::OBJECT_TYPE_BLOG, self::OBJECT_TYPE_BLOG_POST, - self::OBJECT_TYPE_LANDING_PAGE, - self::OBJECT_TYPE_WEBSITE_PAGE, - self::OBJECT_TYPE_TEMPLATE, - self::OBJECT_TYPE_MODULE, - self::OBJECT_TYPE_GLOBAL_MODULE, - self::OBJECT_TYPE_SERVERLESS_FUNCTION, + self::OBJECT_TYPE_CONTENT_SETTINGS, + self::OBJECT_TYPE_CSS, + self::OBJECT_TYPE_CTA, self::OBJECT_TYPE_DOMAIN, - self::OBJECT_TYPE_URL_MAPPING, self::OBJECT_TYPE_EMAIL, - self::OBJECT_TYPE_CONTENT_SETTINGS, + self::OBJECT_TYPE_FILE, + self::OBJECT_TYPE_GLOBAL_MODULE, self::OBJECT_TYPE_HUBDB_TABLE, - self::OBJECT_TYPE_KNOWLEDGE_BASE_ARTICLE, + self::OBJECT_TYPE_JS, self::OBJECT_TYPE_KNOWLEDGE_BASE, + self::OBJECT_TYPE_KNOWLEDGE_BASE_ARTICLE, + self::OBJECT_TYPE_LANDING_PAGE, + self::OBJECT_TYPE_MODULE, + self::OBJECT_TYPE_SERVERLESS_FUNCTION, + self::OBJECT_TYPE_TEMPLATE, self::OBJECT_TYPE_THEME, - self::OBJECT_TYPE_CSS, - self::OBJECT_TYPE_JS, - self::OBJECT_TYPE_CTA, - self::OBJECT_TYPE_FILE, + self::OBJECT_TYPE_URL_MAPPING, + self::OBJECT_TYPE_WEBSITE_PAGE, ]; } @@ -360,14 +360,14 @@ public function getObjectTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('meta', $data ?? [], null); - $this->setIfExists('object_name', $data ?? [], null); - $this->setIfExists('full_name', $data ?? [], null); $this->setIfExists('event', $data ?? [], null); - $this->setIfExists('user_id', $data ?? [], null); + $this->setIfExists('full_name', $data ?? [], null); + $this->setIfExists('meta', $data ?? [], null); $this->setIfExists('object_id', $data ?? [], null); + $this->setIfExists('object_name', $data ?? [], null); $this->setIfExists('object_type', $data ?? [], null); $this->setIfExists('timestamp', $data ?? [], null); + $this->setIfExists('user_id', $data ?? [], null); } /** @@ -397,12 +397,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['object_name'] === null) { - $invalidProperties[] = "'object_name' can't be null"; - } - if ($this->container['full_name'] === null) { - $invalidProperties[] = "'full_name' can't be null"; - } if ($this->container['event'] === null) { $invalidProperties[] = "'event' can't be null"; } @@ -415,12 +409,15 @@ public function listInvalidProperties() ); } - if ($this->container['user_id'] === null) { - $invalidProperties[] = "'user_id' can't be null"; + if ($this->container['full_name'] === null) { + $invalidProperties[] = "'full_name' can't be null"; } if ($this->container['object_id'] === null) { $invalidProperties[] = "'object_id' can't be null"; } + if ($this->container['object_name'] === null) { + $invalidProperties[] = "'object_name' can't be null"; + } if ($this->container['object_type'] === null) { $invalidProperties[] = "'object_type' can't be null"; } @@ -436,6 +433,9 @@ public function listInvalidProperties() if ($this->container['timestamp'] === null) { $invalidProperties[] = "'timestamp' can't be null"; } + if ($this->container['user_id'] === null) { + $invalidProperties[] = "'user_id' can't be null"; + } return $invalidProperties; } @@ -452,55 +452,38 @@ public function valid() /** - * Gets meta - * - * @return object|null - */ - public function getMeta() - { - return $this->container['meta']; - } - - /** - * Sets meta - * - * @param object|null $meta meta - * - * @return self - */ - public function setMeta($meta) - { - if (is_null($meta)) { - throw new \InvalidArgumentException('non-nullable meta cannot be null'); - } - $this->container['meta'] = $meta; - - return $this; - } - - /** - * Gets object_name + * Gets event * * @return string */ - public function getObjectName() + public function getEvent() { - return $this->container['object_name']; + return $this->container['event']; } /** - * Sets object_name + * Sets event * - * @param string $object_name The internal name of the object in HubSpot. + * @param string $event The type of event that took place (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). * * @return self */ - public function setObjectName($object_name) + public function setEvent($event) { - if (is_null($object_name)) { - throw new \InvalidArgumentException('non-nullable object_name cannot be null'); + if (is_null($event)) { + throw new \InvalidArgumentException('non-nullable event cannot be null'); } - $this->container['object_name'] = $object_name; + $allowedValues = $this->getEventAllowableValues(); + if (!in_array($event, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'event', must be one of '%s'", + $event, + implode("', '", $allowedValues) + ) + ); + } + $this->container['event'] = $event; return $this; } @@ -533,92 +516,82 @@ public function setFullName($full_name) } /** - * Gets event + * Gets meta * - * @return string + * @return object|null */ - public function getEvent() + public function getMeta() { - return $this->container['event']; + return $this->container['meta']; } /** - * Sets event + * Sets meta * - * @param string $event The type of event that took place (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). + * @param object|null $meta Supplementary metadata associated with the audit log entry. It provides additional context about the audited event (ex: rows deleted/updated for a HubDB event, the specific fields that were changed for a Content Settings event). * * @return self */ - public function setEvent($event) + public function setMeta($meta) { - if (is_null($event)) { - throw new \InvalidArgumentException('non-nullable event cannot be null'); - } - $allowedValues = $this->getEventAllowableValues(); - if (!in_array($event, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'event', must be one of '%s'", - $event, - implode("', '", $allowedValues) - ) - ); + if (is_null($meta)) { + throw new \InvalidArgumentException('non-nullable meta cannot be null'); } - $this->container['event'] = $event; + $this->container['meta'] = $meta; return $this; } /** - * Gets user_id + * Gets object_id * * @return string */ - public function getUserId() + public function getObjectId() { - return $this->container['user_id']; + return $this->container['object_id']; } /** - * Sets user_id + * Sets object_id * - * @param string $user_id The ID of the user who caused the event. + * @param string $object_id The ID of the object. * * @return self */ - public function setUserId($user_id) + public function setObjectId($object_id) { - if (is_null($user_id)) { - throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + if (is_null($object_id)) { + throw new \InvalidArgumentException('non-nullable object_id cannot be null'); } - $this->container['user_id'] = $user_id; + $this->container['object_id'] = $object_id; return $this; } /** - * Gets object_id + * Gets object_name * * @return string */ - public function getObjectId() + public function getObjectName() { - return $this->container['object_id']; + return $this->container['object_name']; } /** - * Sets object_id + * Sets object_name * - * @param string $object_id The ID of the object. + * @param string $object_name The internal name of the object in HubSpot. * * @return self */ - public function setObjectId($object_id) + public function setObjectName($object_name) { - if (is_null($object_id)) { - throw new \InvalidArgumentException('non-nullable object_id cannot be null'); + if (is_null($object_name)) { + throw new \InvalidArgumentException('non-nullable object_name cannot be null'); } - $this->container['object_id'] = $object_id; + $this->container['object_name'] = $object_name; return $this; } @@ -686,6 +659,33 @@ public function setTimestamp($timestamp) return $this; } + + /** + * Gets user_id + * + * @return string + */ + public function getUserId() + { + return $this->container['user_id']; + } + + /** + * Sets user_id + * + * @param string $user_id The ID of the user who caused the event. + * + * @return self + */ + public function setUserId($user_id) + { + if (is_null($user_id)) { + throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + } + $this->container['user_id'] = $user_id; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/AuditLogs/ObjectSerializer.php b/codegen/Cms/AuditLogs/ObjectSerializer.php index cc7b4853..17f36e43 100644 --- a/codegen/Cms/AuditLogs/ObjectSerializer.php +++ b/codegen/Cms/AuditLogs/ObjectSerializer.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** From fc471bcacb19d09a91d60646e65a46730bb6db67 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 6 Feb 2026 15:46:44 +0300 Subject: [PATCH 2/6] Codegen: CMS Domains --- codegen/Cms/Domains/Api/DomainsApi.php | 12 +- codegen/Cms/Domains/ApiException.php | 2 +- codegen/Cms/Domains/Configuration.php | 2 +- codegen/Cms/Domains/FormDataProcessor.php | 2 +- codegen/Cms/Domains/HeaderSelector.php | 2 +- ...onResponseWithTotalDomainForwardPaging.php | 88 +-- codegen/Cms/Domains/Model/Domain.php | 606 +++++++++--------- codegen/Cms/Domains/Model/Error.php | 144 ++--- codegen/Cms/Domains/Model/ErrorDetail.php | 120 ++-- codegen/Cms/Domains/Model/ForwardPaging.php | 2 +- codegen/Cms/Domains/Model/ModelInterface.php | 2 +- codegen/Cms/Domains/Model/NextPage.php | 68 +- codegen/Cms/Domains/ObjectSerializer.php | 2 +- 13 files changed, 526 insertions(+), 526 deletions(-) diff --git a/codegen/Cms/Domains/Api/DomainsApi.php b/codegen/Cms/Domains/Api/DomainsApi.php index 77cb76c4..2f4df983 100644 --- a/codegen/Cms/Domains/Api/DomainsApi.php +++ b/codegen/Cms/Domains/Api/DomainsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -425,7 +425,7 @@ public function getByIdRequest($domain_id, string $contentType = self::contentTy * @param \DateTime|null $updated_at Only return domains updated at this date. (optional) * @param \DateTime|null $updated_after Only return domains updated after this date. (optional) * @param \DateTime|null $updated_before Only return domains updated before this date. (optional) - * @param string[]|null $sort sort (optional) + * @param string[]|null $sort Specifies the order in which the domains are returned. (optional) * @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 Maximum number of results per page. (optional) * @param bool|null $archived Whether to return only results that have been archived. (optional) @@ -452,7 +452,7 @@ public function getPage($created_at = null, $created_after = null, $created_befo * @param \DateTime|null $updated_at Only return domains updated at this date. (optional) * @param \DateTime|null $updated_after Only return domains updated after this date. (optional) * @param \DateTime|null $updated_before Only return domains updated before this date. (optional) - * @param string[]|null $sort (optional) + * @param string[]|null $sort Specifies the order in which the domains are returned. (optional) * @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 Maximum number of results per page. (optional) * @param bool|null $archived Whether to return only results that have been archived. (optional) @@ -560,7 +560,7 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ * @param \DateTime|null $updated_at Only return domains updated at this date. (optional) * @param \DateTime|null $updated_after Only return domains updated after this date. (optional) * @param \DateTime|null $updated_before Only return domains updated before this date. (optional) - * @param string[]|null $sort (optional) + * @param string[]|null $sort Specifies the order in which the domains are returned. (optional) * @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 Maximum number of results per page. (optional) * @param bool|null $archived Whether to return only results that have been archived. (optional) @@ -590,7 +590,7 @@ function ($response) { * @param \DateTime|null $updated_at Only return domains updated at this date. (optional) * @param \DateTime|null $updated_after Only return domains updated after this date. (optional) * @param \DateTime|null $updated_before Only return domains updated before this date. (optional) - * @param string[]|null $sort (optional) + * @param string[]|null $sort Specifies the order in which the domains are returned. (optional) * @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 Maximum number of results per page. (optional) * @param bool|null $archived Whether to return only results that have been archived. (optional) @@ -649,7 +649,7 @@ function ($exception) { * @param \DateTime|null $updated_at Only return domains updated at this date. (optional) * @param \DateTime|null $updated_after Only return domains updated after this date. (optional) * @param \DateTime|null $updated_before Only return domains updated before this date. (optional) - * @param string[]|null $sort (optional) + * @param string[]|null $sort Specifies the order in which the domains are returned. (optional) * @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 Maximum number of results per page. (optional) * @param bool|null $archived Whether to return only results that have been archived. (optional) diff --git a/codegen/Cms/Domains/ApiException.php b/codegen/Cms/Domains/ApiException.php index ce533783..8c3a5ee4 100644 --- a/codegen/Cms/Domains/ApiException.php +++ b/codegen/Cms/Domains/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Domains/Configuration.php b/codegen/Cms/Domains/Configuration.php index 3a4cbb12..72c5b5c6 100644 --- a/codegen/Cms/Domains/Configuration.php +++ b/codegen/Cms/Domains/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Domains/FormDataProcessor.php b/codegen/Cms/Domains/FormDataProcessor.php index d7ee407a..6657c24e 100644 --- a/codegen/Cms/Domains/FormDataProcessor.php +++ b/codegen/Cms/Domains/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Domains/HeaderSelector.php b/codegen/Cms/Domains/HeaderSelector.php index 1f59357b..0b41b3d9 100644 --- a/codegen/Cms/Domains/HeaderSelector.php +++ b/codegen/Cms/Domains/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Domains/Model/CollectionResponseWithTotalDomainForwardPaging.php b/codegen/Cms/Domains/Model/CollectionResponseWithTotalDomainForwardPaging.php index 661fca80..9863da06 100644 --- a/codegen/Cms/Domains/Model/CollectionResponseWithTotalDomainForwardPaging.php +++ b/codegen/Cms/Domains/Model/CollectionResponseWithTotalDomainForwardPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,9 +57,9 @@ class CollectionResponseWithTotalDomainForwardPaging implements ModelInterface, * @var string[] */ protected static $openAPITypes = [ - 'total' => 'int', 'paging' => '\HubSpot\Client\Cms\Domains\Model\ForwardPaging', - 'results' => '\HubSpot\Client\Cms\Domains\Model\Domain[]' + 'results' => '\HubSpot\Client\Cms\Domains\Model\Domain[]', + 'total' => 'int' ]; /** @@ -70,9 +70,9 @@ class CollectionResponseWithTotalDomainForwardPaging implements ModelInterface, * @psalm-var array */ protected static $openAPIFormats = [ - 'total' => 'int32', 'paging' => null, - 'results' => null + 'results' => null, + 'total' => 'int32' ]; /** @@ -81,9 +81,9 @@ class CollectionResponseWithTotalDomainForwardPaging implements ModelInterface, * @var boolean[] */ protected static array $openAPINullables = [ - 'total' => false, 'paging' => false, - 'results' => false + 'results' => false, + 'total' => false ]; /** @@ -172,9 +172,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'total' => 'total', 'paging' => 'paging', - 'results' => 'results' + 'results' => 'results', + 'total' => 'total' ]; /** @@ -183,9 +183,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'total' => 'setTotal', 'paging' => 'setPaging', - 'results' => 'setResults' + 'results' => 'setResults', + 'total' => 'setTotal' ]; /** @@ -194,9 +194,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'total' => 'getTotal', 'paging' => 'getPaging', - 'results' => 'getResults' + 'results' => 'getResults', + 'total' => 'getTotal' ]; /** @@ -256,9 +256,9 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('total', $data ?? [], null); $this->setIfExists('paging', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); + $this->setIfExists('total', $data ?? [], null); } /** @@ -288,12 +288,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['total'] === null) { - $invalidProperties[] = "'total' can't be null"; - } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } return $invalidProperties; } @@ -309,33 +309,6 @@ public function valid() } - /** - * Gets total - * - * @return int - */ - public function getTotal() - { - return $this->container['total']; - } - - /** - * Sets total - * - * @param int $total total - * - * @return self - */ - public function setTotal($total) - { - if (is_null($total)) { - throw new \InvalidArgumentException('non-nullable total cannot be null'); - } - $this->container['total'] = $total; - - return $this; - } - /** * Gets paging * @@ -389,6 +362,33 @@ public function setResults($results) return $this; } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total The total number of domains returned in the response. + * + * @return self + */ + public function setTotal($total) + { + if (is_null($total)) { + throw new \InvalidArgumentException('non-nullable total cannot be null'); + } + $this->container['total'] = $total; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Domains/Model/Domain.php b/codegen/Cms/Domains/Model/Domain.php index 0205b354..361cda99 100644 --- a/codegen/Cms/Domains/Model/Domain.php +++ b/codegen/Cms/Domains/Model/Domain.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,26 +57,26 @@ class Domain implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'is_used_for_landing_page' => 'bool', - 'primary_blog_post' => 'bool', - 'primary_knowledge' => 'bool', + 'correct_cname' => 'string', 'created' => '\DateTime', - 'secondary_to_domain' => 'string', - 'manually_marked_as_resolving' => 'bool', - 'is_used_for_knowledge' => 'bool', - 'is_used_for_blog_post' => 'bool', - 'is_used_for_site_page' => 'bool', + 'domain' => 'string', + 'id' => 'string', 'is_resolving' => 'bool', 'is_ssl_enabled' => 'bool', + 'is_ssl_only' => 'bool', + 'is_used_for_blog_post' => 'bool', 'is_used_for_email' => 'bool', - 'domain' => 'string', - 'primary_site_page' => 'bool', + 'is_used_for_knowledge' => 'bool', + 'is_used_for_landing_page' => 'bool', + 'is_used_for_site_page' => 'bool', + 'manually_marked_as_resolving' => 'bool', + 'primary_blog_post' => 'bool', + 'primary_email' => 'bool', + 'primary_knowledge' => 'bool', 'primary_landing_page' => 'bool', - 'id' => 'string', - 'correct_cname' => 'string', - 'is_ssl_only' => 'bool', - 'updated' => '\DateTime', - 'primary_email' => 'bool' + 'primary_site_page' => 'bool', + 'secondary_to_domain' => 'string', + 'updated' => '\DateTime' ]; /** @@ -87,26 +87,26 @@ class Domain implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'is_used_for_landing_page' => null, - 'primary_blog_post' => null, - 'primary_knowledge' => null, + 'correct_cname' => null, 'created' => 'date-time', - 'secondary_to_domain' => null, - 'manually_marked_as_resolving' => null, - 'is_used_for_knowledge' => null, - 'is_used_for_blog_post' => null, - 'is_used_for_site_page' => null, + 'domain' => null, + 'id' => null, 'is_resolving' => null, 'is_ssl_enabled' => null, + 'is_ssl_only' => null, + 'is_used_for_blog_post' => null, 'is_used_for_email' => null, - 'domain' => null, - 'primary_site_page' => null, + 'is_used_for_knowledge' => null, + 'is_used_for_landing_page' => null, + 'is_used_for_site_page' => null, + 'manually_marked_as_resolving' => null, + 'primary_blog_post' => null, + 'primary_email' => null, + 'primary_knowledge' => null, 'primary_landing_page' => null, - 'id' => null, - 'correct_cname' => null, - 'is_ssl_only' => null, - 'updated' => 'date-time', - 'primary_email' => null + 'primary_site_page' => null, + 'secondary_to_domain' => null, + 'updated' => 'date-time' ]; /** @@ -115,26 +115,26 @@ class Domain implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'is_used_for_landing_page' => false, - 'primary_blog_post' => false, - 'primary_knowledge' => false, + 'correct_cname' => false, 'created' => false, - 'secondary_to_domain' => false, - 'manually_marked_as_resolving' => false, - 'is_used_for_knowledge' => false, - 'is_used_for_blog_post' => false, - 'is_used_for_site_page' => false, + 'domain' => false, + 'id' => false, 'is_resolving' => false, 'is_ssl_enabled' => false, + 'is_ssl_only' => false, + 'is_used_for_blog_post' => false, 'is_used_for_email' => false, - 'domain' => false, - 'primary_site_page' => false, + 'is_used_for_knowledge' => false, + 'is_used_for_landing_page' => false, + 'is_used_for_site_page' => false, + 'manually_marked_as_resolving' => false, + 'primary_blog_post' => false, + 'primary_email' => false, + 'primary_knowledge' => false, 'primary_landing_page' => false, - 'id' => false, - 'correct_cname' => false, - 'is_ssl_only' => false, - 'updated' => false, - 'primary_email' => false + 'primary_site_page' => false, + 'secondary_to_domain' => false, + 'updated' => false ]; /** @@ -223,26 +223,26 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'is_used_for_landing_page' => 'isUsedForLandingPage', - 'primary_blog_post' => 'primaryBlogPost', - 'primary_knowledge' => 'primaryKnowledge', + 'correct_cname' => 'correctCname', 'created' => 'created', - 'secondary_to_domain' => 'secondaryToDomain', - 'manually_marked_as_resolving' => 'manuallyMarkedAsResolving', - 'is_used_for_knowledge' => 'isUsedForKnowledge', - 'is_used_for_blog_post' => 'isUsedForBlogPost', - 'is_used_for_site_page' => 'isUsedForSitePage', + 'domain' => 'domain', + 'id' => 'id', 'is_resolving' => 'isResolving', 'is_ssl_enabled' => 'isSslEnabled', + 'is_ssl_only' => 'isSslOnly', + 'is_used_for_blog_post' => 'isUsedForBlogPost', 'is_used_for_email' => 'isUsedForEmail', - 'domain' => 'domain', - 'primary_site_page' => 'primarySitePage', + 'is_used_for_knowledge' => 'isUsedForKnowledge', + 'is_used_for_landing_page' => 'isUsedForLandingPage', + 'is_used_for_site_page' => 'isUsedForSitePage', + 'manually_marked_as_resolving' => 'manuallyMarkedAsResolving', + 'primary_blog_post' => 'primaryBlogPost', + 'primary_email' => 'primaryEmail', + 'primary_knowledge' => 'primaryKnowledge', 'primary_landing_page' => 'primaryLandingPage', - 'id' => 'id', - 'correct_cname' => 'correctCname', - 'is_ssl_only' => 'isSslOnly', - 'updated' => 'updated', - 'primary_email' => 'primaryEmail' + 'primary_site_page' => 'primarySitePage', + 'secondary_to_domain' => 'secondaryToDomain', + 'updated' => 'updated' ]; /** @@ -251,26 +251,26 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'is_used_for_landing_page' => 'setIsUsedForLandingPage', - 'primary_blog_post' => 'setPrimaryBlogPost', - 'primary_knowledge' => 'setPrimaryKnowledge', + 'correct_cname' => 'setCorrectCname', 'created' => 'setCreated', - 'secondary_to_domain' => 'setSecondaryToDomain', - 'manually_marked_as_resolving' => 'setManuallyMarkedAsResolving', - 'is_used_for_knowledge' => 'setIsUsedForKnowledge', - 'is_used_for_blog_post' => 'setIsUsedForBlogPost', - 'is_used_for_site_page' => 'setIsUsedForSitePage', + 'domain' => 'setDomain', + 'id' => 'setId', 'is_resolving' => 'setIsResolving', 'is_ssl_enabled' => 'setIsSslEnabled', + 'is_ssl_only' => 'setIsSslOnly', + 'is_used_for_blog_post' => 'setIsUsedForBlogPost', 'is_used_for_email' => 'setIsUsedForEmail', - 'domain' => 'setDomain', - 'primary_site_page' => 'setPrimarySitePage', + 'is_used_for_knowledge' => 'setIsUsedForKnowledge', + 'is_used_for_landing_page' => 'setIsUsedForLandingPage', + 'is_used_for_site_page' => 'setIsUsedForSitePage', + 'manually_marked_as_resolving' => 'setManuallyMarkedAsResolving', + 'primary_blog_post' => 'setPrimaryBlogPost', + 'primary_email' => 'setPrimaryEmail', + 'primary_knowledge' => 'setPrimaryKnowledge', 'primary_landing_page' => 'setPrimaryLandingPage', - 'id' => 'setId', - 'correct_cname' => 'setCorrectCname', - 'is_ssl_only' => 'setIsSslOnly', - 'updated' => 'setUpdated', - 'primary_email' => 'setPrimaryEmail' + 'primary_site_page' => 'setPrimarySitePage', + 'secondary_to_domain' => 'setSecondaryToDomain', + 'updated' => 'setUpdated' ]; /** @@ -279,26 +279,26 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'is_used_for_landing_page' => 'getIsUsedForLandingPage', - 'primary_blog_post' => 'getPrimaryBlogPost', - 'primary_knowledge' => 'getPrimaryKnowledge', + 'correct_cname' => 'getCorrectCname', 'created' => 'getCreated', - 'secondary_to_domain' => 'getSecondaryToDomain', - 'manually_marked_as_resolving' => 'getManuallyMarkedAsResolving', - 'is_used_for_knowledge' => 'getIsUsedForKnowledge', - 'is_used_for_blog_post' => 'getIsUsedForBlogPost', - 'is_used_for_site_page' => 'getIsUsedForSitePage', + 'domain' => 'getDomain', + 'id' => 'getId', 'is_resolving' => 'getIsResolving', 'is_ssl_enabled' => 'getIsSslEnabled', + 'is_ssl_only' => 'getIsSslOnly', + 'is_used_for_blog_post' => 'getIsUsedForBlogPost', 'is_used_for_email' => 'getIsUsedForEmail', - 'domain' => 'getDomain', - 'primary_site_page' => 'getPrimarySitePage', + 'is_used_for_knowledge' => 'getIsUsedForKnowledge', + 'is_used_for_landing_page' => 'getIsUsedForLandingPage', + 'is_used_for_site_page' => 'getIsUsedForSitePage', + 'manually_marked_as_resolving' => 'getManuallyMarkedAsResolving', + 'primary_blog_post' => 'getPrimaryBlogPost', + 'primary_email' => 'getPrimaryEmail', + 'primary_knowledge' => 'getPrimaryKnowledge', 'primary_landing_page' => 'getPrimaryLandingPage', - 'id' => 'getId', - 'correct_cname' => 'getCorrectCname', - 'is_ssl_only' => 'getIsSslOnly', - 'updated' => 'getUpdated', - 'primary_email' => 'getPrimaryEmail' + 'primary_site_page' => 'getPrimarySitePage', + 'secondary_to_domain' => 'getSecondaryToDomain', + 'updated' => 'getUpdated' ]; /** @@ -358,26 +358,26 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('is_used_for_landing_page', $data ?? [], null); - $this->setIfExists('primary_blog_post', $data ?? [], null); - $this->setIfExists('primary_knowledge', $data ?? [], null); + $this->setIfExists('correct_cname', $data ?? [], null); $this->setIfExists('created', $data ?? [], null); - $this->setIfExists('secondary_to_domain', $data ?? [], null); - $this->setIfExists('manually_marked_as_resolving', $data ?? [], null); - $this->setIfExists('is_used_for_knowledge', $data ?? [], null); - $this->setIfExists('is_used_for_blog_post', $data ?? [], null); - $this->setIfExists('is_used_for_site_page', $data ?? [], null); + $this->setIfExists('domain', $data ?? [], null); + $this->setIfExists('id', $data ?? [], null); $this->setIfExists('is_resolving', $data ?? [], null); $this->setIfExists('is_ssl_enabled', $data ?? [], null); + $this->setIfExists('is_ssl_only', $data ?? [], null); + $this->setIfExists('is_used_for_blog_post', $data ?? [], null); $this->setIfExists('is_used_for_email', $data ?? [], null); - $this->setIfExists('domain', $data ?? [], null); - $this->setIfExists('primary_site_page', $data ?? [], null); + $this->setIfExists('is_used_for_knowledge', $data ?? [], null); + $this->setIfExists('is_used_for_landing_page', $data ?? [], null); + $this->setIfExists('is_used_for_site_page', $data ?? [], null); + $this->setIfExists('manually_marked_as_resolving', $data ?? [], null); + $this->setIfExists('primary_blog_post', $data ?? [], null); + $this->setIfExists('primary_email', $data ?? [], null); + $this->setIfExists('primary_knowledge', $data ?? [], null); $this->setIfExists('primary_landing_page', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('correct_cname', $data ?? [], null); - $this->setIfExists('is_ssl_only', $data ?? [], null); + $this->setIfExists('primary_site_page', $data ?? [], null); + $this->setIfExists('secondary_to_domain', $data ?? [], null); $this->setIfExists('updated', $data ?? [], null); - $this->setIfExists('primary_email', $data ?? [], null); } /** @@ -407,29 +407,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['is_used_for_landing_page'] === null) { - $invalidProperties[] = "'is_used_for_landing_page' can't be null"; - } - if ($this->container['is_used_for_knowledge'] === null) { - $invalidProperties[] = "'is_used_for_knowledge' can't be null"; - } - if ($this->container['is_used_for_blog_post'] === null) { - $invalidProperties[] = "'is_used_for_blog_post' can't be null"; + if ($this->container['domain'] === null) { + $invalidProperties[] = "'domain' can't be null"; } - if ($this->container['is_used_for_site_page'] === null) { - $invalidProperties[] = "'is_used_for_site_page' can't be null"; + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } if ($this->container['is_resolving'] === null) { $invalidProperties[] = "'is_resolving' can't be null"; } + if ($this->container['is_used_for_blog_post'] === null) { + $invalidProperties[] = "'is_used_for_blog_post' can't be null"; + } if ($this->container['is_used_for_email'] === null) { $invalidProperties[] = "'is_used_for_email' can't be null"; } - if ($this->container['domain'] === null) { - $invalidProperties[] = "'domain' can't be null"; + if ($this->container['is_used_for_knowledge'] === null) { + $invalidProperties[] = "'is_used_for_knowledge' can't be null"; } - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; + if ($this->container['is_used_for_landing_page'] === null) { + $invalidProperties[] = "'is_used_for_landing_page' can't be null"; + } + if ($this->container['is_used_for_site_page'] === null) { + $invalidProperties[] = "'is_used_for_site_page' can't be null"; } return $invalidProperties; } @@ -447,190 +447,190 @@ public function valid() /** - * Gets is_used_for_landing_page + * Gets correct_cname * - * @return bool + * @return string|null */ - public function getIsUsedForLandingPage() + public function getCorrectCname() { - return $this->container['is_used_for_landing_page']; + return $this->container['correct_cname']; } /** - * Sets is_used_for_landing_page + * Sets correct_cname * - * @param bool $is_used_for_landing_page Whether the domain is used for CMS landing pages. + * @param string|null $correct_cname The expected CNAME record for the domain. * * @return self */ - public function setIsUsedForLandingPage($is_used_for_landing_page) + public function setCorrectCname($correct_cname) { - if (is_null($is_used_for_landing_page)) { - throw new \InvalidArgumentException('non-nullable is_used_for_landing_page cannot be null'); + if (is_null($correct_cname)) { + throw new \InvalidArgumentException('non-nullable correct_cname cannot be null'); } - $this->container['is_used_for_landing_page'] = $is_used_for_landing_page; + $this->container['correct_cname'] = $correct_cname; return $this; } /** - * Gets primary_blog_post + * Gets created * - * @return bool|null + * @return \DateTime|null */ - public function getPrimaryBlogPost() + public function getCreated() { - return $this->container['primary_blog_post']; + return $this->container['created']; } /** - * Sets primary_blog_post + * Sets created * - * @param bool|null $primary_blog_post primary_blog_post + * @param \DateTime|null $created The date and time when the domain was created. * * @return self */ - public function setPrimaryBlogPost($primary_blog_post) + public function setCreated($created) { - if (is_null($primary_blog_post)) { - throw new \InvalidArgumentException('non-nullable primary_blog_post cannot be null'); + if (is_null($created)) { + throw new \InvalidArgumentException('non-nullable created cannot be null'); } - $this->container['primary_blog_post'] = $primary_blog_post; + $this->container['created'] = $created; return $this; } /** - * Gets primary_knowledge + * Gets domain * - * @return bool|null + * @return string */ - public function getPrimaryKnowledge() + public function getDomain() { - return $this->container['primary_knowledge']; + return $this->container['domain']; } /** - * Sets primary_knowledge + * Sets domain * - * @param bool|null $primary_knowledge primary_knowledge + * @param string $domain The actual domain or sub-domain. e.g. www.hubspot.com * * @return self */ - public function setPrimaryKnowledge($primary_knowledge) + public function setDomain($domain) { - if (is_null($primary_knowledge)) { - throw new \InvalidArgumentException('non-nullable primary_knowledge cannot be null'); + if (is_null($domain)) { + throw new \InvalidArgumentException('non-nullable domain cannot be null'); } - $this->container['primary_knowledge'] = $primary_knowledge; + $this->container['domain'] = $domain; return $this; } /** - * Gets created + * Gets id * - * @return \DateTime|null + * @return string */ - public function getCreated() + public function getId() { - return $this->container['created']; + return $this->container['id']; } /** - * Sets created + * Sets id * - * @param \DateTime|null $created created + * @param string $id The unique ID of this domain. * * @return self */ - public function setCreated($created) + public function setId($id) { - if (is_null($created)) { - throw new \InvalidArgumentException('non-nullable created cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['created'] = $created; + $this->container['id'] = $id; return $this; } /** - * Gets secondary_to_domain + * Gets is_resolving * - * @return string|null + * @return bool */ - public function getSecondaryToDomain() + public function getIsResolving() { - return $this->container['secondary_to_domain']; + return $this->container['is_resolving']; } /** - * Sets secondary_to_domain + * Sets is_resolving * - * @param string|null $secondary_to_domain secondary_to_domain + * @param bool $is_resolving Whether the DNS for this domain is optimally configured for use with HubSpot. * * @return self */ - public function setSecondaryToDomain($secondary_to_domain) + public function setIsResolving($is_resolving) { - if (is_null($secondary_to_domain)) { - throw new \InvalidArgumentException('non-nullable secondary_to_domain cannot be null'); + if (is_null($is_resolving)) { + throw new \InvalidArgumentException('non-nullable is_resolving cannot be null'); } - $this->container['secondary_to_domain'] = $secondary_to_domain; + $this->container['is_resolving'] = $is_resolving; return $this; } /** - * Gets manually_marked_as_resolving + * Gets is_ssl_enabled * * @return bool|null */ - public function getManuallyMarkedAsResolving() + public function getIsSslEnabled() { - return $this->container['manually_marked_as_resolving']; + return $this->container['is_ssl_enabled']; } /** - * Sets manually_marked_as_resolving + * Sets is_ssl_enabled * - * @param bool|null $manually_marked_as_resolving manually_marked_as_resolving + * @param bool|null $is_ssl_enabled Indicates whether SSL is enabled for the domain. * * @return self */ - public function setManuallyMarkedAsResolving($manually_marked_as_resolving) + public function setIsSslEnabled($is_ssl_enabled) { - if (is_null($manually_marked_as_resolving)) { - throw new \InvalidArgumentException('non-nullable manually_marked_as_resolving cannot be null'); + if (is_null($is_ssl_enabled)) { + throw new \InvalidArgumentException('non-nullable is_ssl_enabled cannot be null'); } - $this->container['manually_marked_as_resolving'] = $manually_marked_as_resolving; + $this->container['is_ssl_enabled'] = $is_ssl_enabled; return $this; } /** - * Gets is_used_for_knowledge + * Gets is_ssl_only * - * @return bool + * @return bool|null */ - public function getIsUsedForKnowledge() + public function getIsSslOnly() { - return $this->container['is_used_for_knowledge']; + return $this->container['is_ssl_only']; } /** - * Sets is_used_for_knowledge + * Sets is_ssl_only * - * @param bool $is_used_for_knowledge Whether the domain is used for CMS knowledge pages. + * @param bool|null $is_ssl_only Indicates whether the domain is accessible only via SSL. * * @return self */ - public function setIsUsedForKnowledge($is_used_for_knowledge) + public function setIsSslOnly($is_ssl_only) { - if (is_null($is_used_for_knowledge)) { - throw new \InvalidArgumentException('non-nullable is_used_for_knowledge cannot be null'); + if (is_null($is_ssl_only)) { + throw new \InvalidArgumentException('non-nullable is_ssl_only cannot be null'); } - $this->container['is_used_for_knowledge'] = $is_used_for_knowledge; + $this->container['is_ssl_only'] = $is_ssl_only; return $this; } @@ -648,7 +648,7 @@ public function getIsUsedForBlogPost() /** * Sets is_used_for_blog_post * - * @param bool $is_used_for_blog_post Whether the domain is used for CMS blog posts. + * @param bool $is_used_for_blog_post Whether the domain is used for CMS blog posts. Deprecated * * @return self */ @@ -663,325 +663,325 @@ public function setIsUsedForBlogPost($is_used_for_blog_post) } /** - * Gets is_used_for_site_page + * Gets is_used_for_email * * @return bool */ - public function getIsUsedForSitePage() + public function getIsUsedForEmail() { - return $this->container['is_used_for_site_page']; + return $this->container['is_used_for_email']; } /** - * Sets is_used_for_site_page + * Sets is_used_for_email * - * @param bool $is_used_for_site_page Whether the domain is used for CMS site pages. + * @param bool $is_used_for_email Whether the domain is used for CMS email web pages. Deprecated * * @return self */ - public function setIsUsedForSitePage($is_used_for_site_page) + public function setIsUsedForEmail($is_used_for_email) { - if (is_null($is_used_for_site_page)) { - throw new \InvalidArgumentException('non-nullable is_used_for_site_page cannot be null'); + if (is_null($is_used_for_email)) { + throw new \InvalidArgumentException('non-nullable is_used_for_email cannot be null'); } - $this->container['is_used_for_site_page'] = $is_used_for_site_page; + $this->container['is_used_for_email'] = $is_used_for_email; return $this; } /** - * Gets is_resolving + * Gets is_used_for_knowledge * * @return bool */ - public function getIsResolving() + public function getIsUsedForKnowledge() { - return $this->container['is_resolving']; + return $this->container['is_used_for_knowledge']; } /** - * Sets is_resolving + * Sets is_used_for_knowledge * - * @param bool $is_resolving Whether the DNS for this domain is optimally configured for use with HubSpot. + * @param bool $is_used_for_knowledge Whether the domain is used for CMS knowledge pages. Deprecated * * @return self */ - public function setIsResolving($is_resolving) + public function setIsUsedForKnowledge($is_used_for_knowledge) { - if (is_null($is_resolving)) { - throw new \InvalidArgumentException('non-nullable is_resolving cannot be null'); + if (is_null($is_used_for_knowledge)) { + throw new \InvalidArgumentException('non-nullable is_used_for_knowledge cannot be null'); } - $this->container['is_resolving'] = $is_resolving; + $this->container['is_used_for_knowledge'] = $is_used_for_knowledge; return $this; } /** - * Gets is_ssl_enabled + * Gets is_used_for_landing_page * - * @return bool|null + * @return bool */ - public function getIsSslEnabled() + public function getIsUsedForLandingPage() { - return $this->container['is_ssl_enabled']; + return $this->container['is_used_for_landing_page']; } /** - * Sets is_ssl_enabled + * Sets is_used_for_landing_page * - * @param bool|null $is_ssl_enabled is_ssl_enabled + * @param bool $is_used_for_landing_page Whether the domain is used for CMS landing pages. Deprecated * * @return self */ - public function setIsSslEnabled($is_ssl_enabled) + public function setIsUsedForLandingPage($is_used_for_landing_page) { - if (is_null($is_ssl_enabled)) { - throw new \InvalidArgumentException('non-nullable is_ssl_enabled cannot be null'); + if (is_null($is_used_for_landing_page)) { + throw new \InvalidArgumentException('non-nullable is_used_for_landing_page cannot be null'); } - $this->container['is_ssl_enabled'] = $is_ssl_enabled; + $this->container['is_used_for_landing_page'] = $is_used_for_landing_page; return $this; } /** - * Gets is_used_for_email + * Gets is_used_for_site_page * * @return bool */ - public function getIsUsedForEmail() + public function getIsUsedForSitePage() { - return $this->container['is_used_for_email']; + return $this->container['is_used_for_site_page']; } /** - * Sets is_used_for_email + * Sets is_used_for_site_page * - * @param bool $is_used_for_email Whether the domain is used for CMS email web pages. + * @param bool $is_used_for_site_page Whether the domain is used for CMS site pages. Deprecated * * @return self */ - public function setIsUsedForEmail($is_used_for_email) + public function setIsUsedForSitePage($is_used_for_site_page) { - if (is_null($is_used_for_email)) { - throw new \InvalidArgumentException('non-nullable is_used_for_email cannot be null'); + if (is_null($is_used_for_site_page)) { + throw new \InvalidArgumentException('non-nullable is_used_for_site_page cannot be null'); } - $this->container['is_used_for_email'] = $is_used_for_email; + $this->container['is_used_for_site_page'] = $is_used_for_site_page; return $this; } /** - * Gets domain + * Gets manually_marked_as_resolving * - * @return string + * @return bool|null */ - public function getDomain() + public function getManuallyMarkedAsResolving() { - return $this->container['domain']; + return $this->container['manually_marked_as_resolving']; } /** - * Sets domain + * Sets manually_marked_as_resolving * - * @param string $domain The actual domain or sub-domain. e.g. www.hubspot.com + * @param bool|null $manually_marked_as_resolving Indicates whether the domain has been manually marked as resolving. * * @return self */ - public function setDomain($domain) + public function setManuallyMarkedAsResolving($manually_marked_as_resolving) { - if (is_null($domain)) { - throw new \InvalidArgumentException('non-nullable domain cannot be null'); + if (is_null($manually_marked_as_resolving)) { + throw new \InvalidArgumentException('non-nullable manually_marked_as_resolving cannot be null'); } - $this->container['domain'] = $domain; + $this->container['manually_marked_as_resolving'] = $manually_marked_as_resolving; return $this; } /** - * Gets primary_site_page + * Gets primary_blog_post * * @return bool|null */ - public function getPrimarySitePage() + public function getPrimaryBlogPost() { - return $this->container['primary_site_page']; + return $this->container['primary_blog_post']; } /** - * Sets primary_site_page + * Sets primary_blog_post * - * @param bool|null $primary_site_page primary_site_page + * @param bool|null $primary_blog_post Indicates whether the domain is the primary domain for blog posts. * * @return self */ - public function setPrimarySitePage($primary_site_page) + public function setPrimaryBlogPost($primary_blog_post) { - if (is_null($primary_site_page)) { - throw new \InvalidArgumentException('non-nullable primary_site_page cannot be null'); + if (is_null($primary_blog_post)) { + throw new \InvalidArgumentException('non-nullable primary_blog_post cannot be null'); } - $this->container['primary_site_page'] = $primary_site_page; + $this->container['primary_blog_post'] = $primary_blog_post; return $this; } /** - * Gets primary_landing_page + * Gets primary_email * * @return bool|null */ - public function getPrimaryLandingPage() + public function getPrimaryEmail() { - return $this->container['primary_landing_page']; + return $this->container['primary_email']; } /** - * Sets primary_landing_page + * Sets primary_email * - * @param bool|null $primary_landing_page primary_landing_page + * @param bool|null $primary_email Indicates whether the domain is the primary domain for email pages. * * @return self */ - public function setPrimaryLandingPage($primary_landing_page) + public function setPrimaryEmail($primary_email) { - if (is_null($primary_landing_page)) { - throw new \InvalidArgumentException('non-nullable primary_landing_page cannot be null'); + if (is_null($primary_email)) { + throw new \InvalidArgumentException('non-nullable primary_email cannot be null'); } - $this->container['primary_landing_page'] = $primary_landing_page; + $this->container['primary_email'] = $primary_email; return $this; } /** - * Gets id + * Gets primary_knowledge * - * @return string + * @return bool|null */ - public function getId() + public function getPrimaryKnowledge() { - return $this->container['id']; + return $this->container['primary_knowledge']; } /** - * Sets id + * Sets primary_knowledge * - * @param string $id The unique ID of this domain. + * @param bool|null $primary_knowledge Indicates whether the domain is the primary domain for knowledge pages. * * @return self */ - public function setId($id) + public function setPrimaryKnowledge($primary_knowledge) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($primary_knowledge)) { + throw new \InvalidArgumentException('non-nullable primary_knowledge cannot be null'); } - $this->container['id'] = $id; + $this->container['primary_knowledge'] = $primary_knowledge; return $this; } /** - * Gets correct_cname + * Gets primary_landing_page * - * @return string|null + * @return bool|null */ - public function getCorrectCname() + public function getPrimaryLandingPage() { - return $this->container['correct_cname']; + return $this->container['primary_landing_page']; } /** - * Sets correct_cname + * Sets primary_landing_page * - * @param string|null $correct_cname correct_cname + * @param bool|null $primary_landing_page Indicates whether the domain is the primary domain for landing pages. * * @return self */ - public function setCorrectCname($correct_cname) + public function setPrimaryLandingPage($primary_landing_page) { - if (is_null($correct_cname)) { - throw new \InvalidArgumentException('non-nullable correct_cname cannot be null'); + if (is_null($primary_landing_page)) { + throw new \InvalidArgumentException('non-nullable primary_landing_page cannot be null'); } - $this->container['correct_cname'] = $correct_cname; + $this->container['primary_landing_page'] = $primary_landing_page; return $this; } /** - * Gets is_ssl_only + * Gets primary_site_page * * @return bool|null */ - public function getIsSslOnly() + public function getPrimarySitePage() { - return $this->container['is_ssl_only']; + return $this->container['primary_site_page']; } /** - * Sets is_ssl_only + * Sets primary_site_page * - * @param bool|null $is_ssl_only is_ssl_only + * @param bool|null $primary_site_page Indicates whether the domain is the primary domain for site pages. * * @return self */ - public function setIsSslOnly($is_ssl_only) + public function setPrimarySitePage($primary_site_page) { - if (is_null($is_ssl_only)) { - throw new \InvalidArgumentException('non-nullable is_ssl_only cannot be null'); + if (is_null($primary_site_page)) { + throw new \InvalidArgumentException('non-nullable primary_site_page cannot be null'); } - $this->container['is_ssl_only'] = $is_ssl_only; + $this->container['primary_site_page'] = $primary_site_page; return $this; } /** - * Gets updated + * Gets secondary_to_domain * - * @return \DateTime|null + * @return string|null */ - public function getUpdated() + public function getSecondaryToDomain() { - return $this->container['updated']; + return $this->container['secondary_to_domain']; } /** - * Sets updated + * Sets secondary_to_domain * - * @param \DateTime|null $updated updated + * @param string|null $secondary_to_domain Specifies the domain to which this domain is secondary. * * @return self */ - public function setUpdated($updated) + public function setSecondaryToDomain($secondary_to_domain) { - if (is_null($updated)) { - throw new \InvalidArgumentException('non-nullable updated cannot be null'); + if (is_null($secondary_to_domain)) { + throw new \InvalidArgumentException('non-nullable secondary_to_domain cannot be null'); } - $this->container['updated'] = $updated; + $this->container['secondary_to_domain'] = $secondary_to_domain; return $this; } /** - * Gets primary_email + * Gets updated * - * @return bool|null + * @return \DateTime|null */ - public function getPrimaryEmail() + public function getUpdated() { - return $this->container['primary_email']; + return $this->container['updated']; } /** - * Sets primary_email + * Sets updated * - * @param bool|null $primary_email primary_email + * @param \DateTime|null $updated The date and time when the domain was last updated. * * @return self */ - public function setPrimaryEmail($primary_email) + public function setUpdated($updated) { - if (is_null($primary_email)) { - throw new \InvalidArgumentException('non-nullable primary_email cannot be null'); + if (is_null($updated)) { + throw new \InvalidArgumentException('non-nullable updated cannot be null'); } - $this->container['primary_email'] = $primary_email; + $this->container['updated'] = $updated; return $this; } diff --git a/codegen/Cms/Domains/Model/Error.php b/codegen/Cms/Domains/Model/Error.php index f86304e7..211bd163 100644 --- a/codegen/Cms/Domains/Model/Error.php +++ b/codegen/Cms/Domains/Model/Error.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', + 'category' => 'string', 'context' => 'array', 'correlation_id' => 'string', + 'errors' => '\HubSpot\Client\Cms\Domains\Model\ErrorDetail[]', 'links' => 'array', 'message' => 'string', - 'category' => 'string', - 'errors' => '\HubSpot\Client\Cms\Domains\Model\ErrorDetail[]' + 'sub_category' => 'string' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, + 'category' => null, 'context' => null, 'correlation_id' => 'uuid', + 'errors' => null, 'links' => null, 'message' => null, - 'category' => null, - 'errors' => null + 'sub_category' => null ]; /** @@ -89,13 +89,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, + 'category' => false, 'context' => false, 'correlation_id' => false, + 'errors' => false, 'links' => false, 'message' => false, - 'category' => false, - 'errors' => false + 'sub_category' => false ]; /** @@ -184,13 +184,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', + 'category' => 'category', 'context' => 'context', 'correlation_id' => 'correlationId', + 'errors' => 'errors', 'links' => 'links', 'message' => 'message', - 'category' => 'category', - 'errors' => 'errors' + 'sub_category' => 'subCategory' ]; /** @@ -199,13 +199,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', + 'category' => 'setCategory', 'context' => 'setContext', 'correlation_id' => 'setCorrelationId', + 'errors' => 'setErrors', 'links' => 'setLinks', 'message' => 'setMessage', - 'category' => 'setCategory', - 'errors' => 'setErrors' + 'sub_category' => 'setSubCategory' ]; /** @@ -214,13 +214,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', + 'category' => 'getCategory', 'context' => 'getContext', 'correlation_id' => 'getCorrelationId', + 'errors' => 'getErrors', 'links' => 'getLinks', 'message' => 'getMessage', - 'category' => 'getCategory', - 'errors' => 'getErrors' + 'sub_category' => 'getSubCategory' ]; /** @@ -280,13 +280,13 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); $this->setIfExists('correlation_id', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); $this->setIfExists('links', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -316,15 +316,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; + } if ($this->container['correlation_id'] === null) { $invalidProperties[] = "'correlation_id' can't be null"; } if ($this->container['message'] === null) { $invalidProperties[] = "'message' can't be null"; } - if ($this->container['category'] === null) { - $invalidProperties[] = "'category' can't be null"; - } return $invalidProperties; } @@ -341,28 +341,28 @@ public function valid() /** - * Gets sub_category + * Gets category * - * @return string|null + * @return string */ - public function getSubCategory() + public function getCategory() { - return $this->container['sub_category']; + return $this->container['category']; } /** - * Sets sub_category + * Sets category * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string $category The error category * * @return self */ - public function setSubCategory($sub_category) + public function setCategory($category) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['category'] = $category; return $this; } @@ -421,6 +421,33 @@ public function setCorrelationId($correlation_id) return $this; } + /** + * Gets errors + * + * @return \HubSpot\Client\Cms\Domains\Model\ErrorDetail[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \HubSpot\Client\Cms\Domains\Model\ErrorDetail[]|null $errors further information about the error + * + * @return self + */ + public function setErrors($errors) + { + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); + } + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets links * @@ -476,55 +503,28 @@ public function setMessage($message) } /** - * Gets category - * - * @return string - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param string $category The error category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets errors + * Gets sub_category * - * @return \HubSpot\Client\Cms\Domains\Model\ErrorDetail[]|null + * @return string|null */ - public function getErrors() + public function getSubCategory() { - return $this->container['errors']; + return $this->container['sub_category']; } /** - * Sets errors + * Sets sub_category * - * @param \HubSpot\Client\Cms\Domains\Model\ErrorDetail[]|null $errors further information about the error + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setErrors($errors) + public function setSubCategory($sub_category) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['errors'] = $errors; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/Domains/Model/ErrorDetail.php b/codegen/Cms/Domains/Model/ErrorDetail.php index 13a6579a..11baac39 100644 --- a/codegen/Cms/Domains/Model/ErrorDetail.php +++ b/codegen/Cms/Domains/Model/ErrorDetail.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', 'code' => 'string', - 'in' => 'string', 'context' => 'array', - 'message' => 'string' + 'in' => 'string', + 'message' => 'string', + 'sub_category' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, 'code' => null, - 'in' => null, 'context' => null, - 'message' => null + 'in' => null, + 'message' => null, + 'sub_category' => null ]; /** @@ -85,11 +85,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, 'code' => false, - 'in' => false, 'context' => false, - 'message' => false + 'in' => false, + 'message' => false, + 'sub_category' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', 'code' => 'code', - 'in' => 'in', 'context' => 'context', - 'message' => 'message' + 'in' => 'in', + 'message' => 'message', + 'sub_category' => 'subCategory' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', 'code' => 'setCode', - 'in' => 'setIn', 'context' => 'setContext', - 'message' => 'setMessage' + 'in' => 'setIn', + 'message' => 'setMessage', + 'sub_category' => 'setSubCategory' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', 'code' => 'getCode', - 'in' => 'getIn', 'context' => 'getContext', - 'message' => 'getMessage' + 'in' => 'getIn', + 'message' => 'getMessage', + 'sub_category' => 'getSubCategory' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('in', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); + $this->setIfExists('in', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -321,55 +321,55 @@ public function valid() /** - * Gets sub_category + * Gets code * * @return string|null */ - public function getSubCategory() + public function getCode() { - return $this->container['sub_category']; + return $this->container['code']; } /** - * Sets sub_category + * Sets code * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $code The status code associated with the error detail * * @return self */ - public function setSubCategory($sub_category) + public function setCode($code) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['code'] = $code; return $this; } /** - * Gets code + * Gets context * - * @return string|null + * @return array|null */ - public function getCode() + public function getContext() { - return $this->container['code']; + return $this->container['context']; } /** - * Sets code + * Sets context * - * @param string|null $code The status code associated with the error detail + * @param array|null $context Context about the error condition * * @return self */ - public function setCode($code) + public function setContext($context) { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); + if (is_null($context)) { + throw new \InvalidArgumentException('non-nullable context cannot be null'); } - $this->container['code'] = $code; + $this->container['context'] = $context; return $this; } @@ -402,55 +402,55 @@ public function setIn($in) } /** - * Gets context + * Gets message * - * @return array|null + * @return string */ - public function getContext() + public function getMessage() { - return $this->container['context']; + return $this->container['message']; } /** - * Sets context + * Sets message * - * @param array|null $context Context about the error condition + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setContext($context) + public function setMessage($message) { - if (is_null($context)) { - throw new \InvalidArgumentException('non-nullable context cannot be null'); + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); } - $this->container['context'] = $context; + $this->container['message'] = $message; return $this; } /** - * Gets message + * Gets sub_category * - * @return string + * @return string|null */ - public function getMessage() + public function getSubCategory() { - return $this->container['message']; + return $this->container['sub_category']; } /** - * Sets message + * Sets sub_category * - * @param string $message A human readable message describing the error along with remediation steps where appropriate + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setMessage($message) + public function setSubCategory($sub_category) { - if (is_null($message)) { - throw new \InvalidArgumentException('non-nullable message cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/Domains/Model/ForwardPaging.php b/codegen/Cms/Domains/Model/ForwardPaging.php index abf38d77..4f9ca4f6 100644 --- a/codegen/Cms/Domains/Model/ForwardPaging.php +++ b/codegen/Cms/Domains/Model/ForwardPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Domains/Model/ModelInterface.php b/codegen/Cms/Domains/Model/ModelInterface.php index cb736407..7a1da71d 100644 --- a/codegen/Cms/Domains/Model/ModelInterface.php +++ b/codegen/Cms/Domains/Model/ModelInterface.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Domains/Model/NextPage.php b/codegen/Cms/Domains/Model/NextPage.php index 25902a4f..f295f59c 100644 --- a/codegen/Cms/Domains/Model/NextPage.php +++ b/codegen/Cms/Domains/Model/NextPage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'link' => 'string', - 'after' => 'string' + 'after' => 'string', + 'link' => 'string' ]; /** @@ -70,8 +70,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'link' => null, - 'after' => null + 'after' => null, + 'link' => null ]; /** @@ -80,8 +80,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'link' => false, - 'after' => false + 'after' => false, + 'link' => false ]; /** @@ -170,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'link' => 'link', - 'after' => 'after' + 'after' => 'after', + 'link' => 'link' ]; /** @@ -180,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'link' => 'setLink', - 'after' => 'setAfter' + 'after' => 'setAfter', + 'link' => 'setLink' ]; /** @@ -190,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'link' => 'getLink', - 'after' => 'getAfter' + 'after' => 'getAfter', + 'link' => 'getLink' ]; /** @@ -251,8 +251,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('link', $data ?? [], null); $this->setIfExists('after', $data ?? [], null); + $this->setIfExists('link', $data ?? [], null); } /** @@ -301,55 +301,55 @@ public function valid() /** - * Gets link + * Gets after * - * @return string|null + * @return string */ - public function getLink() + public function getAfter() { - return $this->container['link']; + return $this->container['after']; } /** - * Sets link + * Sets after * - * @param string|null $link A URL that can be used to retrieve the next page results. + * @param string $after The cursor value indicating where to begin fetching the next page of results in a paginated collection * * @return self */ - public function setLink($link) + public function setAfter($after) { - if (is_null($link)) { - throw new \InvalidArgumentException('non-nullable link cannot be null'); + if (is_null($after)) { + throw new \InvalidArgumentException('non-nullable after cannot be null'); } - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } /** - * Gets after + * Gets link * - * @return string + * @return string|null */ - public function getAfter() + public function getLink() { - return $this->container['after']; + return $this->container['link']; } /** - * Sets after + * Sets link * - * @param string $after A paging cursor token for retrieving subsequent pages. + * @param string|null $link An optional URL for directly accessing the next page of results. * * @return self */ - public function setAfter($after) + public function setLink($link) { - if (is_null($after)) { - throw new \InvalidArgumentException('non-nullable after cannot be null'); + if (is_null($link)) { + throw new \InvalidArgumentException('non-nullable link cannot be null'); } - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } diff --git a/codegen/Cms/Domains/ObjectSerializer.php b/codegen/Cms/Domains/ObjectSerializer.php index a00eaf64..8d085955 100644 --- a/codegen/Cms/Domains/ObjectSerializer.php +++ b/codegen/Cms/Domains/ObjectSerializer.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** From 9f333cb5a1e8a8094c8bec81798f7faf43b1461f Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 6 Feb 2026 16:11:17 +0300 Subject: [PATCH 3/6] Codegen: CMS Pages --- codegen/Cms/Pages/Api/LandingPagesApi.php | 62 +- codegen/Cms/Pages/Api/SitePagesApi.php | 32 +- codegen/Cms/Pages/ApiException.php | 2 +- codegen/Cms/Pages/Configuration.php | 2 +- codegen/Cms/Pages/FormDataProcessor.php | 2 +- codegen/Cms/Pages/HeaderSelector.php | 2 +- .../Pages/Model/AbTestCreateRequestVNext.php | 70 +- .../Cms/Pages/Model/AbTestEndRequestVNext.php | 70 +- .../Pages/Model/AbTestRerunRequestVNext.php | 70 +- codegen/Cms/Pages/Model/Angle.php | 6 +- .../Model/AttachToLangPrimaryRequestVNext.php | 58 +- codegen/Cms/Pages/Model/BackgroundImage.php | 76 +- .../Pages/Model/BatchInputContentFolder.php | 2 +- .../Cms/Pages/Model/BatchInputJsonNode.php | 2 +- codegen/Cms/Pages/Model/BatchInputPage.php | 2 +- codegen/Cms/Pages/Model/BatchInputString.php | 2 +- .../Model/BatchResponseContentFolder.php | 128 +- .../BatchResponseContentFolderWithErrors.php | 158 +- codegen/Cms/Pages/Model/BatchResponsePage.php | 128 +- .../Model/BatchResponsePageWithErrors.php | 158 +- ...nseWithTotalContentFolderForwardPaging.php | 88 +- ...tionResponseWithTotalPageForwardPaging.php | 88 +- ...nResponseWithTotalVersionContentFolder.php | 88 +- ...CollectionResponseWithTotalVersionPage.php | 88 +- codegen/Cms/Pages/Model/ColorStop.php | 2 +- .../Pages/Model/ContentCloneRequestVNext.php | 2 +- codegen/Cms/Pages/Model/ContentFolder.php | 190 +- .../ContentLanguageCloneRequestVNext.php | 56 +- .../Pages/Model/ContentLanguageVariation.php | 396 +-- .../Model/ContentScheduleRequestVNext.php | 74 +- .../Model/DetachFromLangGroupRequestVNext.php | 2 +- codegen/Cms/Pages/Model/Error.php | 144 +- codegen/Cms/Pages/Model/ErrorDetail.php | 120 +- codegen/Cms/Pages/Model/ForwardPaging.php | 2 +- codegen/Cms/Pages/Model/Gradient.php | 74 +- codegen/Cms/Pages/Model/LayoutSection.php | 404 +-- codegen/Cms/Pages/Model/ModelInterface.php | 2 +- codegen/Cms/Pages/Model/NextPage.php | 68 +- codegen/Cms/Pages/Model/Page.php | 2422 ++++++++--------- codegen/Cms/Pages/Model/Paging.php | 2 +- codegen/Cms/Pages/Model/PreviousPage.php | 2 +- codegen/Cms/Pages/Model/RGBAColor.php | 88 +- codegen/Cms/Pages/Model/RowMetaData.php | 4 +- .../SetNewLanguagePrimaryRequestVNext.php | 2 +- codegen/Cms/Pages/Model/SideOrCorner.php | 6 +- codegen/Cms/Pages/Model/StandardError.php | 182 +- codegen/Cms/Pages/Model/Styles.php | 140 +- .../Model/UpdateLanguagesRequestVNext.php | 2 +- .../Cms/Pages/Model/VersionContentFolder.php | 90 +- codegen/Cms/Pages/Model/VersionPage.php | 90 +- codegen/Cms/Pages/Model/VersionUser.php | 88 +- codegen/Cms/Pages/ObjectSerializer.php | 2 +- 52 files changed, 3020 insertions(+), 3020 deletions(-) diff --git a/codegen/Cms/Pages/Api/LandingPagesApi.php b/codegen/Cms/Pages/Api/LandingPagesApi.php index 2306e0d1..7e358a18 100644 --- a/codegen/Cms/Pages/Api/LandingPagesApi.php +++ b/codegen/Cms/Pages/Api/LandingPagesApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -3856,7 +3856,7 @@ public function endActiveABTestRequest($ab_test_end_request_v_next, string $cont * * @param string $object_id The Landing Page id. (required) * @param bool|null $archived Specifies whether to return deleted Landing Pages. Defaults to `false`. (optional) - * @param string|null $property property (optional) + * @param string|null $property Specifies which properties of the landing page to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \HubSpot\Client\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -3876,7 +3876,7 @@ public function getById($object_id, $archived = null, $property = null, string $ * * @param string $object_id The Landing Page id. (required) * @param bool|null $archived Specifies whether to return deleted Landing Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing page to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \HubSpot\Client\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -3977,7 +3977,7 @@ public function getByIdWithHttpInfo($object_id, $archived = null, $property = nu * * @param string $object_id The Landing Page id. (required) * @param bool|null $archived Specifies whether to return deleted Landing Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing page to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -4000,7 +4000,7 @@ function ($response) { * * @param string $object_id The Landing Page id. (required) * @param bool|null $archived Specifies whether to return deleted Landing Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing page to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -4052,7 +4052,7 @@ function ($exception) { * * @param string $object_id The Landing Page id. (required) * @param bool|null $archived Specifies whether to return deleted Landing Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing page to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -4458,7 +4458,7 @@ public function getDraftByIdRequest($object_id, string $contentType = self::cont * * @param string $object_id The Folder id. (required) * @param bool|null $archived Specifies whether to return deleted Folders. Defaults to `false`. (optional) - * @param string|null $property property (optional) + * @param string|null $property Specifies which properties of the folder to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFolderById'] to see the possible values for this operation * * @throws \HubSpot\Client\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -4478,7 +4478,7 @@ public function getFolderById($object_id, $archived = null, $property = null, st * * @param string $object_id The Folder id. (required) * @param bool|null $archived Specifies whether to return deleted Folders. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the folder to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFolderById'] to see the possible values for this operation * * @throws \HubSpot\Client\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -4579,7 +4579,7 @@ public function getFolderByIdWithHttpInfo($object_id, $archived = null, $propert * * @param string $object_id The Folder id. (required) * @param bool|null $archived Specifies whether to return deleted Folders. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the folder to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFolderById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -4602,7 +4602,7 @@ function ($response) { * * @param string $object_id The Folder id. (required) * @param bool|null $archived Specifies whether to return deleted Folders. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the folder to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFolderById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -4654,7 +4654,7 @@ function ($exception) { * * @param string $object_id The Folder id. (required) * @param bool|null $archived Specifies whether to return deleted Folders. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the folder to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFolderById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -5080,7 +5080,7 @@ public function getFolderPreviousVersionRequest($object_id, $revision_id, string * * @param string $object_id The Folder id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the specified cursor. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFolderPreviousVersions'] to see the possible values for this operation * @@ -5101,7 +5101,7 @@ public function getFolderPreviousVersions($object_id, $after = null, $before = n * * @param string $object_id The Folder id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the specified cursor. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFolderPreviousVersions'] to see the possible values for this operation * @@ -5203,7 +5203,7 @@ public function getFolderPreviousVersionsWithHttpInfo($object_id, $after = null, * * @param string $object_id The Folder id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the specified cursor. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFolderPreviousVersions'] to see the possible values for this operation * @@ -5227,7 +5227,7 @@ function ($response) { * * @param string $object_id The Folder id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the specified cursor. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFolderPreviousVersions'] to see the possible values for this operation * @@ -5280,7 +5280,7 @@ function ($exception) { * * @param string $object_id The Folder id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the specified cursor. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFolderPreviousVersions'] to see the possible values for this operation * @@ -5419,7 +5419,7 @@ public function getFolderPreviousVersionsRequest($object_id, $after = null, $bef * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Folders. Defaults to `false`. (optional) - * @param string|null $property property (optional) + * @param string|null $property Specifies which properties of the landing page folders to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFoldersPage'] to see the possible values for this operation * * @throws \HubSpot\Client\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -5447,7 +5447,7 @@ public function getFoldersPage($created_at = null, $created_after = null, $creat * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Folders. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing page folders to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFoldersPage'] to see the possible values for this operation * * @throws \HubSpot\Client\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -5556,7 +5556,7 @@ public function getFoldersPageWithHttpInfo($created_at = null, $created_after = * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Folders. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing page folders to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFoldersPage'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -5587,7 +5587,7 @@ function ($response) { * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Folders. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing page folders to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFoldersPage'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -5647,7 +5647,7 @@ function ($exception) { * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Folders. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing page folders to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFoldersPage'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -5850,7 +5850,7 @@ public function getFoldersPageRequest($created_at = null, $created_after = null, * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Landing Pages. Defaults to `false`. (optional) - * @param string|null $property property (optional) + * @param string|null $property Specifies which properties of the landing pages to include in the response. (optional) * @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\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -5878,7 +5878,7 @@ public function getPage($created_at = null, $created_after = null, $created_befo * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Landing Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing pages to include in the response. (optional) * @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\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -5987,7 +5987,7 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Landing Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing pages to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -6018,7 +6018,7 @@ function ($response) { * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Landing Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing pages to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -6078,7 +6078,7 @@ function ($exception) { * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Landing Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the landing pages to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -6579,7 +6579,7 @@ public function getPreviousVersionRequest($object_id, $revision_id, string $cont * * @param string $object_id The Landing Page id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the current page. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPreviousVersions'] to see the possible values for this operation * @@ -6600,7 +6600,7 @@ public function getPreviousVersions($object_id, $after = null, $before = null, $ * * @param string $object_id The Landing Page id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the current page. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPreviousVersions'] to see the possible values for this operation * @@ -6702,7 +6702,7 @@ public function getPreviousVersionsWithHttpInfo($object_id, $after = null, $befo * * @param string $object_id The Landing Page id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the current page. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPreviousVersions'] to see the possible values for this operation * @@ -6726,7 +6726,7 @@ function ($response) { * * @param string $object_id The Landing Page id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the current page. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPreviousVersions'] to see the possible values for this operation * @@ -6779,7 +6779,7 @@ function ($exception) { * * @param string $object_id The Landing Page id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the current page. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPreviousVersions'] to see the possible values for this operation * diff --git a/codegen/Cms/Pages/Api/SitePagesApi.php b/codegen/Cms/Pages/Api/SitePagesApi.php index 0e4d7cbd..3306ba04 100644 --- a/codegen/Cms/Pages/Api/SitePagesApi.php +++ b/codegen/Cms/Pages/Api/SitePagesApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -2762,7 +2762,7 @@ public function endActiveABTestRequest($ab_test_end_request_v_next, string $cont * * @param string $object_id The Site Page id. (required) * @param bool|null $archived Specifies whether to return deleted Site Pages. Defaults to `false`. (optional) - * @param string|null $property property (optional) + * @param string|null $property Specifies which properties of the site page to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \HubSpot\Client\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -2782,7 +2782,7 @@ public function getById($object_id, $archived = null, $property = null, string $ * * @param string $object_id The Site Page id. (required) * @param bool|null $archived Specifies whether to return deleted Site Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the site page to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \HubSpot\Client\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -2883,7 +2883,7 @@ public function getByIdWithHttpInfo($object_id, $archived = null, $property = nu * * @param string $object_id The Site Page id. (required) * @param bool|null $archived Specifies whether to return deleted Site Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the site page to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -2906,7 +2906,7 @@ function ($response) { * * @param string $object_id The Site Page id. (required) * @param bool|null $archived Specifies whether to return deleted Site Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the site page to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -2958,7 +2958,7 @@ function ($exception) { * * @param string $object_id The Site Page id. (required) * @param bool|null $archived Specifies whether to return deleted Site Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the site page to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getById'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -3372,7 +3372,7 @@ public function getDraftByIdRequest($object_id, string $contentType = self::cont * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Site Pages. Defaults to `false`. (optional) - * @param string|null $property property (optional) + * @param string|null $property Specifies which properties of the site pages to include in the response. (optional) * @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\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -3400,7 +3400,7 @@ public function getPage($created_at = null, $created_after = null, $created_befo * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Site Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the site pages to include in the response. (optional) * @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\Cms\Pages\ApiException on non-2xx response or if the response body is not in the expected format @@ -3509,7 +3509,7 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Site Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the site pages to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -3540,7 +3540,7 @@ function ($response) { * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Site Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the site pages to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -3600,7 +3600,7 @@ function ($exception) { * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param bool|null $archived Specifies whether to return deleted Site Pages. Defaults to `false`. (optional) - * @param string|null $property (optional) + * @param string|null $property Specifies which properties of the site pages to include in the response. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPage'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -4101,7 +4101,7 @@ public function getPreviousVersionRequest($object_id, $revision_id, string $cont * * @param string $object_id The Site Page id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the current page. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPreviousVersions'] to see the possible values for this operation * @@ -4122,7 +4122,7 @@ public function getPreviousVersions($object_id, $after = null, $before = null, $ * * @param string $object_id The Site Page id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the current page. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPreviousVersions'] to see the possible values for this operation * @@ -4224,7 +4224,7 @@ public function getPreviousVersionsWithHttpInfo($object_id, $after = null, $befo * * @param string $object_id The Site Page id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the current page. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPreviousVersions'] to see the possible values for this operation * @@ -4248,7 +4248,7 @@ function ($response) { * * @param string $object_id The Site Page id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the current page. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPreviousVersions'] to see the possible values for this operation * @@ -4301,7 +4301,7 @@ function ($exception) { * * @param string $object_id The Site Page id. (required) * @param string|null $after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. (optional) - * @param string|null $before (optional) + * @param string|null $before The cursor token value to retrieve the set of results before the current page. (optional) * @param int|null $limit The maximum number of results to return. Default is 100. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPreviousVersions'] to see the possible values for this operation * diff --git a/codegen/Cms/Pages/ApiException.php b/codegen/Cms/Pages/ApiException.php index de82905d..6c655e37 100644 --- a/codegen/Cms/Pages/ApiException.php +++ b/codegen/Cms/Pages/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Configuration.php b/codegen/Cms/Pages/Configuration.php index 6714951a..a7b22e1c 100644 --- a/codegen/Cms/Pages/Configuration.php +++ b/codegen/Cms/Pages/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/FormDataProcessor.php b/codegen/Cms/Pages/FormDataProcessor.php index 052f87a3..25717afb 100644 --- a/codegen/Cms/Pages/FormDataProcessor.php +++ b/codegen/Cms/Pages/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/HeaderSelector.php b/codegen/Cms/Pages/HeaderSelector.php index ffdcbc25..3aa5a168 100644 --- a/codegen/Cms/Pages/HeaderSelector.php +++ b/codegen/Cms/Pages/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/AbTestCreateRequestVNext.php b/codegen/Cms/Pages/Model/AbTestCreateRequestVNext.php index 333b8a79..2b949d2a 100644 --- a/codegen/Cms/Pages/Model/AbTestCreateRequestVNext.php +++ b/codegen/Cms/Pages/Model/AbTestCreateRequestVNext.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class AbTestCreateRequestVNext implements ModelInterface, ArrayAccess, \JsonSeri * @var string[] */ protected static $openAPITypes = [ - 'variation_name' => 'string', - 'content_id' => 'string' + 'content_id' => 'string', + 'variation_name' => 'string' ]; /** @@ -70,8 +70,8 @@ class AbTestCreateRequestVNext implements ModelInterface, ArrayAccess, \JsonSeri * @psalm-var array */ protected static $openAPIFormats = [ - 'variation_name' => null, - 'content_id' => null + 'content_id' => null, + 'variation_name' => null ]; /** @@ -80,8 +80,8 @@ class AbTestCreateRequestVNext implements ModelInterface, ArrayAccess, \JsonSeri * @var boolean[] */ protected static array $openAPINullables = [ - 'variation_name' => false, - 'content_id' => false + 'content_id' => false, + 'variation_name' => false ]; /** @@ -170,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'variation_name' => 'variationName', - 'content_id' => 'contentId' + 'content_id' => 'contentId', + 'variation_name' => 'variationName' ]; /** @@ -180,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'variation_name' => 'setVariationName', - 'content_id' => 'setContentId' + 'content_id' => 'setContentId', + 'variation_name' => 'setVariationName' ]; /** @@ -190,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'variation_name' => 'getVariationName', - 'content_id' => 'getContentId' + 'content_id' => 'getContentId', + 'variation_name' => 'getVariationName' ]; /** @@ -251,8 +251,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('variation_name', $data ?? [], null); $this->setIfExists('content_id', $data ?? [], null); + $this->setIfExists('variation_name', $data ?? [], null); } /** @@ -282,12 +282,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['variation_name'] === null) { - $invalidProperties[] = "'variation_name' can't be null"; - } if ($this->container['content_id'] === null) { $invalidProperties[] = "'content_id' can't be null"; } + if ($this->container['variation_name'] === null) { + $invalidProperties[] = "'variation_name' can't be null"; + } return $invalidProperties; } @@ -304,55 +304,55 @@ public function valid() /** - * Gets variation_name + * Gets content_id * * @return string */ - public function getVariationName() + public function getContentId() { - return $this->container['variation_name']; + return $this->container['content_id']; } /** - * Sets variation_name + * Sets content_id * - * @param string $variation_name Name of A/B test variation. + * @param string $content_id ID of the object to test. * * @return self */ - public function setVariationName($variation_name) + public function setContentId($content_id) { - if (is_null($variation_name)) { - throw new \InvalidArgumentException('non-nullable variation_name cannot be null'); + if (is_null($content_id)) { + throw new \InvalidArgumentException('non-nullable content_id cannot be null'); } - $this->container['variation_name'] = $variation_name; + $this->container['content_id'] = $content_id; return $this; } /** - * Gets content_id + * Gets variation_name * * @return string */ - public function getContentId() + public function getVariationName() { - return $this->container['content_id']; + return $this->container['variation_name']; } /** - * Sets content_id + * Sets variation_name * - * @param string $content_id ID of the object to test. + * @param string $variation_name Name of A/B test variation. * * @return self */ - public function setContentId($content_id) + public function setVariationName($variation_name) { - if (is_null($content_id)) { - throw new \InvalidArgumentException('non-nullable content_id cannot be null'); + if (is_null($variation_name)) { + throw new \InvalidArgumentException('non-nullable variation_name cannot be null'); } - $this->container['content_id'] = $content_id; + $this->container['variation_name'] = $variation_name; return $this; } diff --git a/codegen/Cms/Pages/Model/AbTestEndRequestVNext.php b/codegen/Cms/Pages/Model/AbTestEndRequestVNext.php index 9b7e7fd5..7ba607c8 100644 --- a/codegen/Cms/Pages/Model/AbTestEndRequestVNext.php +++ b/codegen/Cms/Pages/Model/AbTestEndRequestVNext.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class AbTestEndRequestVNext implements ModelInterface, ArrayAccess, \JsonSeriali * @var string[] */ protected static $openAPITypes = [ - 'winner_id' => 'string', - 'ab_test_id' => 'string' + 'ab_test_id' => 'string', + 'winner_id' => 'string' ]; /** @@ -70,8 +70,8 @@ class AbTestEndRequestVNext implements ModelInterface, ArrayAccess, \JsonSeriali * @psalm-var array */ protected static $openAPIFormats = [ - 'winner_id' => null, - 'ab_test_id' => null + 'ab_test_id' => null, + 'winner_id' => null ]; /** @@ -80,8 +80,8 @@ class AbTestEndRequestVNext implements ModelInterface, ArrayAccess, \JsonSeriali * @var boolean[] */ protected static array $openAPINullables = [ - 'winner_id' => false, - 'ab_test_id' => false + 'ab_test_id' => false, + 'winner_id' => false ]; /** @@ -170,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'winner_id' => 'winnerId', - 'ab_test_id' => 'abTestId' + 'ab_test_id' => 'abTestId', + 'winner_id' => 'winnerId' ]; /** @@ -180,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'winner_id' => 'setWinnerId', - 'ab_test_id' => 'setAbTestId' + 'ab_test_id' => 'setAbTestId', + 'winner_id' => 'setWinnerId' ]; /** @@ -190,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'winner_id' => 'getWinnerId', - 'ab_test_id' => 'getAbTestId' + 'ab_test_id' => 'getAbTestId', + 'winner_id' => 'getWinnerId' ]; /** @@ -251,8 +251,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('winner_id', $data ?? [], null); $this->setIfExists('ab_test_id', $data ?? [], null); + $this->setIfExists('winner_id', $data ?? [], null); } /** @@ -282,12 +282,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['winner_id'] === null) { - $invalidProperties[] = "'winner_id' can't be null"; - } if ($this->container['ab_test_id'] === null) { $invalidProperties[] = "'ab_test_id' can't be null"; } + if ($this->container['winner_id'] === null) { + $invalidProperties[] = "'winner_id' can't be null"; + } return $invalidProperties; } @@ -304,55 +304,55 @@ public function valid() /** - * Gets winner_id + * Gets ab_test_id * * @return string */ - public function getWinnerId() + public function getAbTestId() { - return $this->container['winner_id']; + return $this->container['ab_test_id']; } /** - * Sets winner_id + * Sets ab_test_id * - * @param string $winner_id ID of the object to designate as the test winner. + * @param string $ab_test_id ID of the test to end. * * @return self */ - public function setWinnerId($winner_id) + public function setAbTestId($ab_test_id) { - if (is_null($winner_id)) { - throw new \InvalidArgumentException('non-nullable winner_id cannot be null'); + if (is_null($ab_test_id)) { + throw new \InvalidArgumentException('non-nullable ab_test_id cannot be null'); } - $this->container['winner_id'] = $winner_id; + $this->container['ab_test_id'] = $ab_test_id; return $this; } /** - * Gets ab_test_id + * Gets winner_id * * @return string */ - public function getAbTestId() + public function getWinnerId() { - return $this->container['ab_test_id']; + return $this->container['winner_id']; } /** - * Sets ab_test_id + * Sets winner_id * - * @param string $ab_test_id ID of the test to end. + * @param string $winner_id ID of the object to designate as the test winner. * * @return self */ - public function setAbTestId($ab_test_id) + public function setWinnerId($winner_id) { - if (is_null($ab_test_id)) { - throw new \InvalidArgumentException('non-nullable ab_test_id cannot be null'); + if (is_null($winner_id)) { + throw new \InvalidArgumentException('non-nullable winner_id cannot be null'); } - $this->container['ab_test_id'] = $ab_test_id; + $this->container['winner_id'] = $winner_id; return $this; } diff --git a/codegen/Cms/Pages/Model/AbTestRerunRequestVNext.php b/codegen/Cms/Pages/Model/AbTestRerunRequestVNext.php index a4f67aa8..5e65664c 100644 --- a/codegen/Cms/Pages/Model/AbTestRerunRequestVNext.php +++ b/codegen/Cms/Pages/Model/AbTestRerunRequestVNext.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class AbTestRerunRequestVNext implements ModelInterface, ArrayAccess, \JsonSeria * @var string[] */ protected static $openAPITypes = [ - 'variation_id' => 'string', - 'ab_test_id' => 'string' + 'ab_test_id' => 'string', + 'variation_id' => 'string' ]; /** @@ -70,8 +70,8 @@ class AbTestRerunRequestVNext implements ModelInterface, ArrayAccess, \JsonSeria * @psalm-var array */ protected static $openAPIFormats = [ - 'variation_id' => null, - 'ab_test_id' => null + 'ab_test_id' => null, + 'variation_id' => null ]; /** @@ -80,8 +80,8 @@ class AbTestRerunRequestVNext implements ModelInterface, ArrayAccess, \JsonSeria * @var boolean[] */ protected static array $openAPINullables = [ - 'variation_id' => false, - 'ab_test_id' => false + 'ab_test_id' => false, + 'variation_id' => false ]; /** @@ -170,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'variation_id' => 'variationId', - 'ab_test_id' => 'abTestId' + 'ab_test_id' => 'abTestId', + 'variation_id' => 'variationId' ]; /** @@ -180,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'variation_id' => 'setVariationId', - 'ab_test_id' => 'setAbTestId' + 'ab_test_id' => 'setAbTestId', + 'variation_id' => 'setVariationId' ]; /** @@ -190,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'variation_id' => 'getVariationId', - 'ab_test_id' => 'getAbTestId' + 'ab_test_id' => 'getAbTestId', + 'variation_id' => 'getVariationId' ]; /** @@ -251,8 +251,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('variation_id', $data ?? [], null); $this->setIfExists('ab_test_id', $data ?? [], null); + $this->setIfExists('variation_id', $data ?? [], null); } /** @@ -282,12 +282,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['variation_id'] === null) { - $invalidProperties[] = "'variation_id' can't be null"; - } if ($this->container['ab_test_id'] === null) { $invalidProperties[] = "'ab_test_id' can't be null"; } + if ($this->container['variation_id'] === null) { + $invalidProperties[] = "'variation_id' can't be null"; + } return $invalidProperties; } @@ -304,55 +304,55 @@ public function valid() /** - * Gets variation_id + * Gets ab_test_id * * @return string */ - public function getVariationId() + public function getAbTestId() { - return $this->container['variation_id']; + return $this->container['ab_test_id']; } /** - * Sets variation_id + * Sets ab_test_id * - * @param string $variation_id ID of the object to reactivate as a test variation. + * @param string $ab_test_id ID of the test to rerun. * * @return self */ - public function setVariationId($variation_id) + public function setAbTestId($ab_test_id) { - if (is_null($variation_id)) { - throw new \InvalidArgumentException('non-nullable variation_id cannot be null'); + if (is_null($ab_test_id)) { + throw new \InvalidArgumentException('non-nullable ab_test_id cannot be null'); } - $this->container['variation_id'] = $variation_id; + $this->container['ab_test_id'] = $ab_test_id; return $this; } /** - * Gets ab_test_id + * Gets variation_id * * @return string */ - public function getAbTestId() + public function getVariationId() { - return $this->container['ab_test_id']; + return $this->container['variation_id']; } /** - * Sets ab_test_id + * Sets variation_id * - * @param string $ab_test_id ID of the test to rerun. + * @param string $variation_id ID of the object to reactivate as a test variation. * * @return self */ - public function setAbTestId($ab_test_id) + public function setVariationId($variation_id) { - if (is_null($ab_test_id)) { - throw new \InvalidArgumentException('non-nullable ab_test_id cannot be null'); + if (is_null($variation_id)) { + throw new \InvalidArgumentException('non-nullable variation_id cannot be null'); } - $this->container['ab_test_id'] = $ab_test_id; + $this->container['variation_id'] = $variation_id; return $this; } diff --git a/codegen/Cms/Pages/Model/Angle.php b/codegen/Cms/Pages/Model/Angle.php index fd206942..4132a501 100644 --- a/codegen/Cms/Pages/Model/Angle.php +++ b/codegen/Cms/Pages/Model/Angle.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -315,7 +315,7 @@ public function getUnits() /** * Sets units * - * @param string $units units + * @param string $units The unit of measurement for the angle. * * @return self */ @@ -342,7 +342,7 @@ public function getValue() /** * Sets value * - * @param float $value value + * @param float $value The numerical representation of the angle. * * @return self */ diff --git a/codegen/Cms/Pages/Model/AttachToLangPrimaryRequestVNext.php b/codegen/Cms/Pages/Model/AttachToLangPrimaryRequestVNext.php index 728e6f7a..0cf45581 100644 --- a/codegen/Cms/Pages/Model/AttachToLangPrimaryRequestVNext.php +++ b/codegen/Cms/Pages/Model/AttachToLangPrimaryRequestVNext.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class AttachToLangPrimaryRequestVNext implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'language' => 'string', 'id' => 'string', + 'language' => 'string', 'primary_id' => 'string', 'primary_language' => 'string' ]; @@ -72,8 +72,8 @@ class AttachToLangPrimaryRequestVNext implements ModelInterface, ArrayAccess, \J * @psalm-var array */ protected static $openAPIFormats = [ - 'language' => null, 'id' => null, + 'language' => null, 'primary_id' => null, 'primary_language' => null ]; @@ -84,8 +84,8 @@ class AttachToLangPrimaryRequestVNext implements ModelInterface, ArrayAccess, \J * @var boolean[] */ protected static array $openAPINullables = [ - 'language' => false, 'id' => false, + 'language' => false, 'primary_id' => false, 'primary_language' => false ]; @@ -176,8 +176,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'language' => 'language', 'id' => 'id', + 'language' => 'language', 'primary_id' => 'primaryId', 'primary_language' => 'primaryLanguage' ]; @@ -188,8 +188,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'language' => 'setLanguage', 'id' => 'setId', + 'language' => 'setLanguage', 'primary_id' => 'setPrimaryId', 'primary_language' => 'setPrimaryLanguage' ]; @@ -200,8 +200,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'language' => 'getLanguage', 'id' => 'getId', + 'language' => 'getLanguage', 'primary_id' => 'getPrimaryId', 'primary_language' => 'getPrimaryLanguage' ]; @@ -263,8 +263,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('language', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('language', $data ?? [], null); $this->setIfExists('primary_id', $data ?? [], null); $this->setIfExists('primary_language', $data ?? [], null); } @@ -296,12 +296,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['language'] === null) { - $invalidProperties[] = "'language' can't be null"; - } if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } + if ($this->container['language'] === null) { + $invalidProperties[] = "'language' can't be null"; + } if ($this->container['primary_id'] === null) { $invalidProperties[] = "'primary_id' can't be null"; } @@ -321,55 +321,55 @@ public function valid() /** - * Gets language + * Gets id * * @return string */ - public function getLanguage() + public function getId() { - return $this->container['language']; + return $this->container['id']; } /** - * Sets language + * Sets id * - * @param string $language Designated language of the object to add to a multi-language group. + * @param string $id ID of the object to add to a multi-language group. * * @return self */ - public function setLanguage($language) + public function setId($id) { - if (is_null($language)) { - throw new \InvalidArgumentException('non-nullable language cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['language'] = $language; + $this->container['id'] = $id; return $this; } /** - * Gets id + * Gets language * * @return string */ - public function getId() + public function getLanguage() { - return $this->container['id']; + return $this->container['language']; } /** - * Sets id + * Sets language * - * @param string $id ID of the object to add to a multi-language group. + * @param string $language Designated language of the object to add to a multi-language group. * * @return self */ - public function setId($id) + public function setLanguage($language) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($language)) { + throw new \InvalidArgumentException('non-nullable language cannot be null'); } - $this->container['id'] = $id; + $this->container['language'] = $language; return $this; } diff --git a/codegen/Cms/Pages/Model/BackgroundImage.php b/codegen/Cms/Pages/Model/BackgroundImage.php index db74e443..0a6de7d0 100644 --- a/codegen/Cms/Pages/Model/BackgroundImage.php +++ b/codegen/Cms/Pages/Model/BackgroundImage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,9 +57,9 @@ class BackgroundImage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'image_url' => 'string', + 'background_position' => 'string', 'background_size' => 'string', - 'background_position' => 'string' + 'image_url' => 'string' ]; /** @@ -70,9 +70,9 @@ class BackgroundImage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'image_url' => null, + 'background_position' => null, 'background_size' => null, - 'background_position' => null + 'image_url' => null ]; /** @@ -81,9 +81,9 @@ class BackgroundImage implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'image_url' => false, + 'background_position' => false, 'background_size' => false, - 'background_position' => false + 'image_url' => false ]; /** @@ -172,9 +172,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'image_url' => 'imageUrl', + 'background_position' => 'backgroundPosition', 'background_size' => 'backgroundSize', - 'background_position' => 'backgroundPosition' + 'image_url' => 'imageUrl' ]; /** @@ -183,9 +183,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'image_url' => 'setImageUrl', + 'background_position' => 'setBackgroundPosition', 'background_size' => 'setBackgroundSize', - 'background_position' => 'setBackgroundPosition' + 'image_url' => 'setImageUrl' ]; /** @@ -194,9 +194,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'image_url' => 'getImageUrl', + 'background_position' => 'getBackgroundPosition', 'background_size' => 'getBackgroundSize', - 'background_position' => 'getBackgroundPosition' + 'image_url' => 'getImageUrl' ]; /** @@ -256,9 +256,9 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('image_url', $data ?? [], null); - $this->setIfExists('background_size', $data ?? [], null); $this->setIfExists('background_position', $data ?? [], null); + $this->setIfExists('background_size', $data ?? [], null); + $this->setIfExists('image_url', $data ?? [], null); } /** @@ -288,14 +288,14 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['image_url'] === null) { - $invalidProperties[] = "'image_url' can't be null"; + if ($this->container['background_position'] === null) { + $invalidProperties[] = "'background_position' can't be null"; } if ($this->container['background_size'] === null) { $invalidProperties[] = "'background_size' can't be null"; } - if ($this->container['background_position'] === null) { - $invalidProperties[] = "'background_position' can't be null"; + if ($this->container['image_url'] === null) { + $invalidProperties[] = "'image_url' can't be null"; } return $invalidProperties; } @@ -313,28 +313,28 @@ public function valid() /** - * Gets image_url + * Gets background_position * * @return string */ - public function getImageUrl() + public function getBackgroundPosition() { - return $this->container['image_url']; + return $this->container['background_position']; } /** - * Sets image_url + * Sets background_position * - * @param string $image_url image_url + * @param string $background_position Defines the position of the background image. * * @return self */ - public function setImageUrl($image_url) + public function setBackgroundPosition($background_position) { - if (is_null($image_url)) { - throw new \InvalidArgumentException('non-nullable image_url cannot be null'); + if (is_null($background_position)) { + throw new \InvalidArgumentException('non-nullable background_position cannot be null'); } - $this->container['image_url'] = $image_url; + $this->container['background_position'] = $background_position; return $this; } @@ -352,7 +352,7 @@ public function getBackgroundSize() /** * Sets background_size * - * @param string $background_size background_size + * @param string $background_size Specifies the size of the background image. * * @return self */ @@ -367,28 +367,28 @@ public function setBackgroundSize($background_size) } /** - * Gets background_position + * Gets image_url * * @return string */ - public function getBackgroundPosition() + public function getImageUrl() { - return $this->container['background_position']; + return $this->container['image_url']; } /** - * Sets background_position + * Sets image_url * - * @param string $background_position background_position + * @param string $image_url The URL of the background image. * * @return self */ - public function setBackgroundPosition($background_position) + public function setImageUrl($image_url) { - if (is_null($background_position)) { - throw new \InvalidArgumentException('non-nullable background_position cannot be null'); + if (is_null($image_url)) { + throw new \InvalidArgumentException('non-nullable image_url cannot be null'); } - $this->container['background_position'] = $background_position; + $this->container['image_url'] = $image_url; return $this; } diff --git a/codegen/Cms/Pages/Model/BatchInputContentFolder.php b/codegen/Cms/Pages/Model/BatchInputContentFolder.php index 4eaa98ad..a65f428d 100644 --- a/codegen/Cms/Pages/Model/BatchInputContentFolder.php +++ b/codegen/Cms/Pages/Model/BatchInputContentFolder.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/BatchInputJsonNode.php b/codegen/Cms/Pages/Model/BatchInputJsonNode.php index f3090041..65218d95 100644 --- a/codegen/Cms/Pages/Model/BatchInputJsonNode.php +++ b/codegen/Cms/Pages/Model/BatchInputJsonNode.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/BatchInputPage.php b/codegen/Cms/Pages/Model/BatchInputPage.php index 9a478e7a..63bf4ded 100644 --- a/codegen/Cms/Pages/Model/BatchInputPage.php +++ b/codegen/Cms/Pages/Model/BatchInputPage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/BatchInputString.php b/codegen/Cms/Pages/Model/BatchInputString.php index 8feceb9c..551d9da9 100644 --- a/codegen/Cms/Pages/Model/BatchInputString.php +++ b/codegen/Cms/Pages/Model/BatchInputString.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/BatchResponseContentFolder.php b/codegen/Cms/Pages/Model/BatchResponseContentFolder.php index cac3f2de..66991334 100644 --- a/codegen/Cms/Pages/Model/BatchResponseContentFolder.php +++ b/codegen/Cms/Pages/Model/BatchResponseContentFolder.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -59,10 +59,10 @@ class BatchResponseContentFolder implements ModelInterface, ArrayAccess, \JsonSe */ protected static $openAPITypes = [ 'completed_at' => '\DateTime', - 'requested_at' => '\DateTime', - 'started_at' => '\DateTime', 'links' => 'array', + 'requested_at' => '\DateTime', 'results' => '\HubSpot\Client\Cms\Pages\Model\ContentFolder[]', + 'started_at' => '\DateTime', 'status' => 'string' ]; @@ -75,10 +75,10 @@ class BatchResponseContentFolder implements ModelInterface, ArrayAccess, \JsonSe */ protected static $openAPIFormats = [ 'completed_at' => 'date-time', - 'requested_at' => 'date-time', - 'started_at' => 'date-time', 'links' => null, + 'requested_at' => 'date-time', 'results' => null, + 'started_at' => 'date-time', 'status' => null ]; @@ -89,10 +89,10 @@ class BatchResponseContentFolder implements ModelInterface, ArrayAccess, \JsonSe */ protected static array $openAPINullables = [ 'completed_at' => false, - 'requested_at' => false, - 'started_at' => false, 'links' => false, + 'requested_at' => false, 'results' => false, + 'started_at' => false, 'status' => false ]; @@ -183,10 +183,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'completed_at' => 'completedAt', - 'requested_at' => 'requestedAt', - 'started_at' => 'startedAt', 'links' => 'links', + 'requested_at' => 'requestedAt', 'results' => 'results', + 'started_at' => 'startedAt', 'status' => 'status' ]; @@ -197,10 +197,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'completed_at' => 'setCompletedAt', - 'requested_at' => 'setRequestedAt', - 'started_at' => 'setStartedAt', 'links' => 'setLinks', + 'requested_at' => 'setRequestedAt', 'results' => 'setResults', + 'started_at' => 'setStartedAt', 'status' => 'setStatus' ]; @@ -211,10 +211,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'completed_at' => 'getCompletedAt', - 'requested_at' => 'getRequestedAt', - 'started_at' => 'getStartedAt', 'links' => 'getLinks', + 'requested_at' => 'getRequestedAt', 'results' => 'getResults', + 'started_at' => 'getStartedAt', 'status' => 'getStatus' ]; @@ -259,10 +259,10 @@ public function getModelName() return self::$openAPIModelName; } - public const STATUS_PENDING = 'PENDING'; - public const STATUS_PROCESSING = 'PROCESSING'; public const STATUS_CANCELED = 'CANCELED'; public const STATUS_COMPLETE = 'COMPLETE'; + public const STATUS_PENDING = 'PENDING'; + public const STATUS_PROCESSING = 'PROCESSING'; /** * Gets allowable values of the enum @@ -272,10 +272,10 @@ public function getModelName() public function getStatusAllowableValues() { return [ - self::STATUS_PENDING, - self::STATUS_PROCESSING, self::STATUS_CANCELED, self::STATUS_COMPLETE, + self::STATUS_PENDING, + self::STATUS_PROCESSING, ]; } @@ -295,10 +295,10 @@ public function getStatusAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('completed_at', $data ?? [], null); - $this->setIfExists('requested_at', $data ?? [], null); - $this->setIfExists('started_at', $data ?? [], null); $this->setIfExists('links', $data ?? [], null); + $this->setIfExists('requested_at', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); + $this->setIfExists('started_at', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); } @@ -332,12 +332,12 @@ public function listInvalidProperties() if ($this->container['completed_at'] === null) { $invalidProperties[] = "'completed_at' can't be null"; } - if ($this->container['started_at'] === null) { - $invalidProperties[] = "'started_at' can't be null"; - } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['started_at'] === null) { + $invalidProperties[] = "'started_at' can't be null"; + } if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -378,7 +378,7 @@ public function getCompletedAt() /** * Sets completed_at * - * @param \DateTime $completed_at completed_at + * @param \DateTime $completed_at The timestamp indicating when the batch operation was completed. * * @return self */ @@ -393,109 +393,109 @@ public function setCompletedAt($completed_at) } /** - * Gets requested_at + * Gets links * - * @return \DateTime|null + * @return array|null */ - public function getRequestedAt() + public function getLinks() { - return $this->container['requested_at']; + return $this->container['links']; } /** - * Sets requested_at + * Sets links * - * @param \DateTime|null $requested_at requested_at + * @param array|null $links A collection of associated links for the batch operation. * * @return self */ - public function setRequestedAt($requested_at) + public function setLinks($links) { - if (is_null($requested_at)) { - throw new \InvalidArgumentException('non-nullable requested_at cannot be null'); + if (is_null($links)) { + throw new \InvalidArgumentException('non-nullable links cannot be null'); } - $this->container['requested_at'] = $requested_at; + $this->container['links'] = $links; return $this; } /** - * Gets started_at + * Gets requested_at * - * @return \DateTime + * @return \DateTime|null */ - public function getStartedAt() + public function getRequestedAt() { - return $this->container['started_at']; + return $this->container['requested_at']; } /** - * Sets started_at + * Sets requested_at * - * @param \DateTime $started_at started_at + * @param \DateTime|null $requested_at The timestamp indicating when the batch operation was requested. * * @return self */ - public function setStartedAt($started_at) + public function setRequestedAt($requested_at) { - if (is_null($started_at)) { - throw new \InvalidArgumentException('non-nullable started_at cannot be null'); + if (is_null($requested_at)) { + throw new \InvalidArgumentException('non-nullable requested_at cannot be null'); } - $this->container['started_at'] = $started_at; + $this->container['requested_at'] = $requested_at; return $this; } /** - * Gets links + * Gets results * - * @return array|null + * @return \HubSpot\Client\Cms\Pages\Model\ContentFolder[] */ - public function getLinks() + public function getResults() { - return $this->container['links']; + return $this->container['results']; } /** - * Sets links + * Sets results * - * @param array|null $links links + * @param \HubSpot\Client\Cms\Pages\Model\ContentFolder[] $results results * * @return self */ - public function setLinks($links) + public function setResults($results) { - if (is_null($links)) { - throw new \InvalidArgumentException('non-nullable links cannot be null'); + if (is_null($results)) { + throw new \InvalidArgumentException('non-nullable results cannot be null'); } - $this->container['links'] = $links; + $this->container['results'] = $results; return $this; } /** - * Gets results + * Gets started_at * - * @return \HubSpot\Client\Cms\Pages\Model\ContentFolder[] + * @return \DateTime */ - public function getResults() + public function getStartedAt() { - return $this->container['results']; + return $this->container['started_at']; } /** - * Sets results + * Sets started_at * - * @param \HubSpot\Client\Cms\Pages\Model\ContentFolder[] $results results + * @param \DateTime $started_at The timestamp indicating when the batch operation started. * * @return self */ - public function setResults($results) + public function setStartedAt($started_at) { - if (is_null($results)) { - throw new \InvalidArgumentException('non-nullable results cannot be null'); + if (is_null($started_at)) { + throw new \InvalidArgumentException('non-nullable started_at cannot be null'); } - $this->container['results'] = $results; + $this->container['started_at'] = $started_at; return $this; } @@ -513,7 +513,7 @@ public function getStatus() /** * Sets status * - * @param string $status status + * @param string $status The current status of the batch operation, which can be CANCELED, COMPLETE, PENDING, or PROCESSING. * * @return self */ diff --git a/codegen/Cms/Pages/Model/BatchResponseContentFolderWithErrors.php b/codegen/Cms/Pages/Model/BatchResponseContentFolderWithErrors.php index f8561825..808219c4 100644 --- a/codegen/Cms/Pages/Model/BatchResponseContentFolderWithErrors.php +++ b/codegen/Cms/Pages/Model/BatchResponseContentFolderWithErrors.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -59,12 +59,12 @@ class BatchResponseContentFolderWithErrors implements ModelInterface, ArrayAcces */ protected static $openAPITypes = [ 'completed_at' => '\DateTime', + 'errors' => '\HubSpot\Client\Cms\Pages\Model\StandardError[]', + 'links' => 'array', 'num_errors' => 'int', 'requested_at' => '\DateTime', - 'started_at' => '\DateTime', - 'links' => 'array', 'results' => '\HubSpot\Client\Cms\Pages\Model\ContentFolder[]', - 'errors' => '\HubSpot\Client\Cms\Pages\Model\StandardError[]', + 'started_at' => '\DateTime', 'status' => 'string' ]; @@ -77,12 +77,12 @@ class BatchResponseContentFolderWithErrors implements ModelInterface, ArrayAcces */ protected static $openAPIFormats = [ 'completed_at' => 'date-time', + 'errors' => null, + 'links' => null, 'num_errors' => 'int32', 'requested_at' => 'date-time', - 'started_at' => 'date-time', - 'links' => null, 'results' => null, - 'errors' => null, + 'started_at' => 'date-time', 'status' => null ]; @@ -93,12 +93,12 @@ class BatchResponseContentFolderWithErrors implements ModelInterface, ArrayAcces */ protected static array $openAPINullables = [ 'completed_at' => false, + 'errors' => false, + 'links' => false, 'num_errors' => false, 'requested_at' => false, - 'started_at' => false, - 'links' => false, 'results' => false, - 'errors' => false, + 'started_at' => false, 'status' => false ]; @@ -189,12 +189,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'completed_at' => 'completedAt', + 'errors' => 'errors', + 'links' => 'links', 'num_errors' => 'numErrors', 'requested_at' => 'requestedAt', - 'started_at' => 'startedAt', - 'links' => 'links', 'results' => 'results', - 'errors' => 'errors', + 'started_at' => 'startedAt', 'status' => 'status' ]; @@ -205,12 +205,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'completed_at' => 'setCompletedAt', + 'errors' => 'setErrors', + 'links' => 'setLinks', 'num_errors' => 'setNumErrors', 'requested_at' => 'setRequestedAt', - 'started_at' => 'setStartedAt', - 'links' => 'setLinks', 'results' => 'setResults', - 'errors' => 'setErrors', + 'started_at' => 'setStartedAt', 'status' => 'setStatus' ]; @@ -221,12 +221,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'completed_at' => 'getCompletedAt', + 'errors' => 'getErrors', + 'links' => 'getLinks', 'num_errors' => 'getNumErrors', 'requested_at' => 'getRequestedAt', - 'started_at' => 'getStartedAt', - 'links' => 'getLinks', 'results' => 'getResults', - 'errors' => 'getErrors', + 'started_at' => 'getStartedAt', 'status' => 'getStatus' ]; @@ -271,10 +271,10 @@ public function getModelName() return self::$openAPIModelName; } - public const STATUS_PENDING = 'PENDING'; - public const STATUS_PROCESSING = 'PROCESSING'; public const STATUS_CANCELED = 'CANCELED'; public const STATUS_COMPLETE = 'COMPLETE'; + public const STATUS_PENDING = 'PENDING'; + public const STATUS_PROCESSING = 'PROCESSING'; /** * Gets allowable values of the enum @@ -284,10 +284,10 @@ public function getModelName() public function getStatusAllowableValues() { return [ - self::STATUS_PENDING, - self::STATUS_PROCESSING, self::STATUS_CANCELED, self::STATUS_COMPLETE, + self::STATUS_PENDING, + self::STATUS_PROCESSING, ]; } @@ -307,12 +307,12 @@ public function getStatusAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('completed_at', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('links', $data ?? [], null); $this->setIfExists('num_errors', $data ?? [], null); $this->setIfExists('requested_at', $data ?? [], null); - $this->setIfExists('started_at', $data ?? [], null); - $this->setIfExists('links', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('started_at', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); } @@ -346,12 +346,12 @@ public function listInvalidProperties() if ($this->container['completed_at'] === null) { $invalidProperties[] = "'completed_at' can't be null"; } - if ($this->container['started_at'] === null) { - $invalidProperties[] = "'started_at' can't be null"; - } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['started_at'] === null) { + $invalidProperties[] = "'started_at' can't be null"; + } if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -407,109 +407,109 @@ public function setCompletedAt($completed_at) } /** - * Gets num_errors + * Gets errors * - * @return int|null + * @return \HubSpot\Client\Cms\Pages\Model\StandardError[]|null */ - public function getNumErrors() + public function getErrors() { - return $this->container['num_errors']; + return $this->container['errors']; } /** - * Sets num_errors + * Sets errors * - * @param int|null $num_errors Number of errors. + * @param \HubSpot\Client\Cms\Pages\Model\StandardError[]|null $errors Errors in batch operation. * * @return self */ - public function setNumErrors($num_errors) + public function setErrors($errors) { - if (is_null($num_errors)) { - throw new \InvalidArgumentException('non-nullable num_errors cannot be null'); + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); } - $this->container['num_errors'] = $num_errors; + $this->container['errors'] = $errors; return $this; } /** - * Gets requested_at + * Gets links * - * @return \DateTime|null + * @return array|null */ - public function getRequestedAt() + public function getLinks() { - return $this->container['requested_at']; + return $this->container['links']; } /** - * Sets requested_at + * Sets links * - * @param \DateTime|null $requested_at Time of batch operation request. + * @param array|null $links Links associated with batch operation. * * @return self */ - public function setRequestedAt($requested_at) + public function setLinks($links) { - if (is_null($requested_at)) { - throw new \InvalidArgumentException('non-nullable requested_at cannot be null'); + if (is_null($links)) { + throw new \InvalidArgumentException('non-nullable links cannot be null'); } - $this->container['requested_at'] = $requested_at; + $this->container['links'] = $links; return $this; } /** - * Gets started_at + * Gets num_errors * - * @return \DateTime + * @return int|null */ - public function getStartedAt() + public function getNumErrors() { - return $this->container['started_at']; + return $this->container['num_errors']; } /** - * Sets started_at + * Sets num_errors * - * @param \DateTime $started_at Time of batch operation start. + * @param int|null $num_errors Number of errors. * * @return self */ - public function setStartedAt($started_at) + public function setNumErrors($num_errors) { - if (is_null($started_at)) { - throw new \InvalidArgumentException('non-nullable started_at cannot be null'); + if (is_null($num_errors)) { + throw new \InvalidArgumentException('non-nullable num_errors cannot be null'); } - $this->container['started_at'] = $started_at; + $this->container['num_errors'] = $num_errors; return $this; } /** - * Gets links + * Gets requested_at * - * @return array|null + * @return \DateTime|null */ - public function getLinks() + public function getRequestedAt() { - return $this->container['links']; + return $this->container['requested_at']; } /** - * Sets links + * Sets requested_at * - * @param array|null $links Links associated with batch operation. + * @param \DateTime|null $requested_at Time of batch operation request. * * @return self */ - public function setLinks($links) + public function setRequestedAt($requested_at) { - if (is_null($links)) { - throw new \InvalidArgumentException('non-nullable links cannot be null'); + if (is_null($requested_at)) { + throw new \InvalidArgumentException('non-nullable requested_at cannot be null'); } - $this->container['links'] = $links; + $this->container['requested_at'] = $requested_at; return $this; } @@ -542,28 +542,28 @@ public function setResults($results) } /** - * Gets errors + * Gets started_at * - * @return \HubSpot\Client\Cms\Pages\Model\StandardError[]|null + * @return \DateTime */ - public function getErrors() + public function getStartedAt() { - return $this->container['errors']; + return $this->container['started_at']; } /** - * Sets errors + * Sets started_at * - * @param \HubSpot\Client\Cms\Pages\Model\StandardError[]|null $errors Errors in batch operation. + * @param \DateTime $started_at Time of batch operation start. * * @return self */ - public function setErrors($errors) + public function setStartedAt($started_at) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($started_at)) { + throw new \InvalidArgumentException('non-nullable started_at cannot be null'); } - $this->container['errors'] = $errors; + $this->container['started_at'] = $started_at; return $this; } diff --git a/codegen/Cms/Pages/Model/BatchResponsePage.php b/codegen/Cms/Pages/Model/BatchResponsePage.php index e4d0e7a3..6c51c6f9 100644 --- a/codegen/Cms/Pages/Model/BatchResponsePage.php +++ b/codegen/Cms/Pages/Model/BatchResponsePage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -59,10 +59,10 @@ class BatchResponsePage implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPITypes = [ 'completed_at' => '\DateTime', - 'requested_at' => '\DateTime', - 'started_at' => '\DateTime', 'links' => 'array', + 'requested_at' => '\DateTime', 'results' => '\HubSpot\Client\Cms\Pages\Model\Page[]', + 'started_at' => '\DateTime', 'status' => 'string' ]; @@ -75,10 +75,10 @@ class BatchResponsePage implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPIFormats = [ 'completed_at' => 'date-time', - 'requested_at' => 'date-time', - 'started_at' => 'date-time', 'links' => null, + 'requested_at' => 'date-time', 'results' => null, + 'started_at' => 'date-time', 'status' => null ]; @@ -89,10 +89,10 @@ class BatchResponsePage implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static array $openAPINullables = [ 'completed_at' => false, - 'requested_at' => false, - 'started_at' => false, 'links' => false, + 'requested_at' => false, 'results' => false, + 'started_at' => false, 'status' => false ]; @@ -183,10 +183,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'completed_at' => 'completedAt', - 'requested_at' => 'requestedAt', - 'started_at' => 'startedAt', 'links' => 'links', + 'requested_at' => 'requestedAt', 'results' => 'results', + 'started_at' => 'startedAt', 'status' => 'status' ]; @@ -197,10 +197,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'completed_at' => 'setCompletedAt', - 'requested_at' => 'setRequestedAt', - 'started_at' => 'setStartedAt', 'links' => 'setLinks', + 'requested_at' => 'setRequestedAt', 'results' => 'setResults', + 'started_at' => 'setStartedAt', 'status' => 'setStatus' ]; @@ -211,10 +211,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'completed_at' => 'getCompletedAt', - 'requested_at' => 'getRequestedAt', - 'started_at' => 'getStartedAt', 'links' => 'getLinks', + 'requested_at' => 'getRequestedAt', 'results' => 'getResults', + 'started_at' => 'getStartedAt', 'status' => 'getStatus' ]; @@ -259,10 +259,10 @@ public function getModelName() return self::$openAPIModelName; } - public const STATUS_PENDING = 'PENDING'; - public const STATUS_PROCESSING = 'PROCESSING'; public const STATUS_CANCELED = 'CANCELED'; public const STATUS_COMPLETE = 'COMPLETE'; + public const STATUS_PENDING = 'PENDING'; + public const STATUS_PROCESSING = 'PROCESSING'; /** * Gets allowable values of the enum @@ -272,10 +272,10 @@ public function getModelName() public function getStatusAllowableValues() { return [ - self::STATUS_PENDING, - self::STATUS_PROCESSING, self::STATUS_CANCELED, self::STATUS_COMPLETE, + self::STATUS_PENDING, + self::STATUS_PROCESSING, ]; } @@ -295,10 +295,10 @@ public function getStatusAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('completed_at', $data ?? [], null); - $this->setIfExists('requested_at', $data ?? [], null); - $this->setIfExists('started_at', $data ?? [], null); $this->setIfExists('links', $data ?? [], null); + $this->setIfExists('requested_at', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); + $this->setIfExists('started_at', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); } @@ -332,12 +332,12 @@ public function listInvalidProperties() if ($this->container['completed_at'] === null) { $invalidProperties[] = "'completed_at' can't be null"; } - if ($this->container['started_at'] === null) { - $invalidProperties[] = "'started_at' can't be null"; - } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['started_at'] === null) { + $invalidProperties[] = "'started_at' can't be null"; + } if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -378,7 +378,7 @@ public function getCompletedAt() /** * Sets completed_at * - * @param \DateTime $completed_at completed_at + * @param \DateTime $completed_at The timestamp indicating when the batch operation was completed. * * @return self */ @@ -393,109 +393,109 @@ public function setCompletedAt($completed_at) } /** - * Gets requested_at + * Gets links * - * @return \DateTime|null + * @return array|null */ - public function getRequestedAt() + public function getLinks() { - return $this->container['requested_at']; + return $this->container['links']; } /** - * Sets requested_at + * Sets links * - * @param \DateTime|null $requested_at requested_at + * @param array|null $links A collection of associated links for the batch operation. * * @return self */ - public function setRequestedAt($requested_at) + public function setLinks($links) { - if (is_null($requested_at)) { - throw new \InvalidArgumentException('non-nullable requested_at cannot be null'); + if (is_null($links)) { + throw new \InvalidArgumentException('non-nullable links cannot be null'); } - $this->container['requested_at'] = $requested_at; + $this->container['links'] = $links; return $this; } /** - * Gets started_at + * Gets requested_at * - * @return \DateTime + * @return \DateTime|null */ - public function getStartedAt() + public function getRequestedAt() { - return $this->container['started_at']; + return $this->container['requested_at']; } /** - * Sets started_at + * Sets requested_at * - * @param \DateTime $started_at started_at + * @param \DateTime|null $requested_at The timestamp indicating when the batch operation was requested. * * @return self */ - public function setStartedAt($started_at) + public function setRequestedAt($requested_at) { - if (is_null($started_at)) { - throw new \InvalidArgumentException('non-nullable started_at cannot be null'); + if (is_null($requested_at)) { + throw new \InvalidArgumentException('non-nullable requested_at cannot be null'); } - $this->container['started_at'] = $started_at; + $this->container['requested_at'] = $requested_at; return $this; } /** - * Gets links + * Gets results * - * @return array|null + * @return \HubSpot\Client\Cms\Pages\Model\Page[] */ - public function getLinks() + public function getResults() { - return $this->container['links']; + return $this->container['results']; } /** - * Sets links + * Sets results * - * @param array|null $links links + * @param \HubSpot\Client\Cms\Pages\Model\Page[] $results results * * @return self */ - public function setLinks($links) + public function setResults($results) { - if (is_null($links)) { - throw new \InvalidArgumentException('non-nullable links cannot be null'); + if (is_null($results)) { + throw new \InvalidArgumentException('non-nullable results cannot be null'); } - $this->container['links'] = $links; + $this->container['results'] = $results; return $this; } /** - * Gets results + * Gets started_at * - * @return \HubSpot\Client\Cms\Pages\Model\Page[] + * @return \DateTime */ - public function getResults() + public function getStartedAt() { - return $this->container['results']; + return $this->container['started_at']; } /** - * Sets results + * Sets started_at * - * @param \HubSpot\Client\Cms\Pages\Model\Page[] $results results + * @param \DateTime $started_at The timestamp indicating when the batch operation started. * * @return self */ - public function setResults($results) + public function setStartedAt($started_at) { - if (is_null($results)) { - throw new \InvalidArgumentException('non-nullable results cannot be null'); + if (is_null($started_at)) { + throw new \InvalidArgumentException('non-nullable started_at cannot be null'); } - $this->container['results'] = $results; + $this->container['started_at'] = $started_at; return $this; } @@ -513,7 +513,7 @@ public function getStatus() /** * Sets status * - * @param string $status status + * @param string $status The current status of the batch operation, which can be CANCELED, COMPLETE, PENDING, or PROCESSING. * * @return self */ diff --git a/codegen/Cms/Pages/Model/BatchResponsePageWithErrors.php b/codegen/Cms/Pages/Model/BatchResponsePageWithErrors.php index a7f77d4a..22440799 100644 --- a/codegen/Cms/Pages/Model/BatchResponsePageWithErrors.php +++ b/codegen/Cms/Pages/Model/BatchResponsePageWithErrors.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -59,12 +59,12 @@ class BatchResponsePageWithErrors implements ModelInterface, ArrayAccess, \JsonS */ protected static $openAPITypes = [ 'completed_at' => '\DateTime', + 'errors' => '\HubSpot\Client\Cms\Pages\Model\StandardError[]', + 'links' => 'array', 'num_errors' => 'int', 'requested_at' => '\DateTime', - 'started_at' => '\DateTime', - 'links' => 'array', 'results' => '\HubSpot\Client\Cms\Pages\Model\Page[]', - 'errors' => '\HubSpot\Client\Cms\Pages\Model\StandardError[]', + 'started_at' => '\DateTime', 'status' => 'string' ]; @@ -77,12 +77,12 @@ class BatchResponsePageWithErrors implements ModelInterface, ArrayAccess, \JsonS */ protected static $openAPIFormats = [ 'completed_at' => 'date-time', + 'errors' => null, + 'links' => null, 'num_errors' => 'int32', 'requested_at' => 'date-time', - 'started_at' => 'date-time', - 'links' => null, 'results' => null, - 'errors' => null, + 'started_at' => 'date-time', 'status' => null ]; @@ -93,12 +93,12 @@ class BatchResponsePageWithErrors implements ModelInterface, ArrayAccess, \JsonS */ protected static array $openAPINullables = [ 'completed_at' => false, + 'errors' => false, + 'links' => false, 'num_errors' => false, 'requested_at' => false, - 'started_at' => false, - 'links' => false, 'results' => false, - 'errors' => false, + 'started_at' => false, 'status' => false ]; @@ -189,12 +189,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'completed_at' => 'completedAt', + 'errors' => 'errors', + 'links' => 'links', 'num_errors' => 'numErrors', 'requested_at' => 'requestedAt', - 'started_at' => 'startedAt', - 'links' => 'links', 'results' => 'results', - 'errors' => 'errors', + 'started_at' => 'startedAt', 'status' => 'status' ]; @@ -205,12 +205,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'completed_at' => 'setCompletedAt', + 'errors' => 'setErrors', + 'links' => 'setLinks', 'num_errors' => 'setNumErrors', 'requested_at' => 'setRequestedAt', - 'started_at' => 'setStartedAt', - 'links' => 'setLinks', 'results' => 'setResults', - 'errors' => 'setErrors', + 'started_at' => 'setStartedAt', 'status' => 'setStatus' ]; @@ -221,12 +221,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'completed_at' => 'getCompletedAt', + 'errors' => 'getErrors', + 'links' => 'getLinks', 'num_errors' => 'getNumErrors', 'requested_at' => 'getRequestedAt', - 'started_at' => 'getStartedAt', - 'links' => 'getLinks', 'results' => 'getResults', - 'errors' => 'getErrors', + 'started_at' => 'getStartedAt', 'status' => 'getStatus' ]; @@ -271,10 +271,10 @@ public function getModelName() return self::$openAPIModelName; } - public const STATUS_PENDING = 'PENDING'; - public const STATUS_PROCESSING = 'PROCESSING'; public const STATUS_CANCELED = 'CANCELED'; public const STATUS_COMPLETE = 'COMPLETE'; + public const STATUS_PENDING = 'PENDING'; + public const STATUS_PROCESSING = 'PROCESSING'; /** * Gets allowable values of the enum @@ -284,10 +284,10 @@ public function getModelName() public function getStatusAllowableValues() { return [ - self::STATUS_PENDING, - self::STATUS_PROCESSING, self::STATUS_CANCELED, self::STATUS_COMPLETE, + self::STATUS_PENDING, + self::STATUS_PROCESSING, ]; } @@ -307,12 +307,12 @@ public function getStatusAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('completed_at', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('links', $data ?? [], null); $this->setIfExists('num_errors', $data ?? [], null); $this->setIfExists('requested_at', $data ?? [], null); - $this->setIfExists('started_at', $data ?? [], null); - $this->setIfExists('links', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('started_at', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); } @@ -346,12 +346,12 @@ public function listInvalidProperties() if ($this->container['completed_at'] === null) { $invalidProperties[] = "'completed_at' can't be null"; } - if ($this->container['started_at'] === null) { - $invalidProperties[] = "'started_at' can't be null"; - } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['started_at'] === null) { + $invalidProperties[] = "'started_at' can't be null"; + } if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -407,109 +407,109 @@ public function setCompletedAt($completed_at) } /** - * Gets num_errors + * Gets errors * - * @return int|null + * @return \HubSpot\Client\Cms\Pages\Model\StandardError[]|null */ - public function getNumErrors() + public function getErrors() { - return $this->container['num_errors']; + return $this->container['errors']; } /** - * Sets num_errors + * Sets errors * - * @param int|null $num_errors Number of errors. + * @param \HubSpot\Client\Cms\Pages\Model\StandardError[]|null $errors Errors in batch operation. * * @return self */ - public function setNumErrors($num_errors) + public function setErrors($errors) { - if (is_null($num_errors)) { - throw new \InvalidArgumentException('non-nullable num_errors cannot be null'); + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); } - $this->container['num_errors'] = $num_errors; + $this->container['errors'] = $errors; return $this; } /** - * Gets requested_at + * Gets links * - * @return \DateTime|null + * @return array|null */ - public function getRequestedAt() + public function getLinks() { - return $this->container['requested_at']; + return $this->container['links']; } /** - * Sets requested_at + * Sets links * - * @param \DateTime|null $requested_at Time of batch operation request. + * @param array|null $links Links associated with batch operation. * * @return self */ - public function setRequestedAt($requested_at) + public function setLinks($links) { - if (is_null($requested_at)) { - throw new \InvalidArgumentException('non-nullable requested_at cannot be null'); + if (is_null($links)) { + throw new \InvalidArgumentException('non-nullable links cannot be null'); } - $this->container['requested_at'] = $requested_at; + $this->container['links'] = $links; return $this; } /** - * Gets started_at + * Gets num_errors * - * @return \DateTime + * @return int|null */ - public function getStartedAt() + public function getNumErrors() { - return $this->container['started_at']; + return $this->container['num_errors']; } /** - * Sets started_at + * Sets num_errors * - * @param \DateTime $started_at Time of batch operation start. + * @param int|null $num_errors Number of errors. * * @return self */ - public function setStartedAt($started_at) + public function setNumErrors($num_errors) { - if (is_null($started_at)) { - throw new \InvalidArgumentException('non-nullable started_at cannot be null'); + if (is_null($num_errors)) { + throw new \InvalidArgumentException('non-nullable num_errors cannot be null'); } - $this->container['started_at'] = $started_at; + $this->container['num_errors'] = $num_errors; return $this; } /** - * Gets links + * Gets requested_at * - * @return array|null + * @return \DateTime|null */ - public function getLinks() + public function getRequestedAt() { - return $this->container['links']; + return $this->container['requested_at']; } /** - * Sets links + * Sets requested_at * - * @param array|null $links Links associated with batch operation. + * @param \DateTime|null $requested_at Time of batch operation request. * * @return self */ - public function setLinks($links) + public function setRequestedAt($requested_at) { - if (is_null($links)) { - throw new \InvalidArgumentException('non-nullable links cannot be null'); + if (is_null($requested_at)) { + throw new \InvalidArgumentException('non-nullable requested_at cannot be null'); } - $this->container['links'] = $links; + $this->container['requested_at'] = $requested_at; return $this; } @@ -542,28 +542,28 @@ public function setResults($results) } /** - * Gets errors + * Gets started_at * - * @return \HubSpot\Client\Cms\Pages\Model\StandardError[]|null + * @return \DateTime */ - public function getErrors() + public function getStartedAt() { - return $this->container['errors']; + return $this->container['started_at']; } /** - * Sets errors + * Sets started_at * - * @param \HubSpot\Client\Cms\Pages\Model\StandardError[]|null $errors Errors in batch operation. + * @param \DateTime $started_at Time of batch operation start. * * @return self */ - public function setErrors($errors) + public function setStartedAt($started_at) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($started_at)) { + throw new \InvalidArgumentException('non-nullable started_at cannot be null'); } - $this->container['errors'] = $errors; + $this->container['started_at'] = $started_at; return $this; } diff --git a/codegen/Cms/Pages/Model/CollectionResponseWithTotalContentFolderForwardPaging.php b/codegen/Cms/Pages/Model/CollectionResponseWithTotalContentFolderForwardPaging.php index 6ab98263..39ae7292 100644 --- a/codegen/Cms/Pages/Model/CollectionResponseWithTotalContentFolderForwardPaging.php +++ b/codegen/Cms/Pages/Model/CollectionResponseWithTotalContentFolderForwardPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,9 +58,9 @@ class CollectionResponseWithTotalContentFolderForwardPaging implements ModelInte * @var string[] */ protected static $openAPITypes = [ - 'total' => 'int', 'paging' => '\HubSpot\Client\Cms\Pages\Model\ForwardPaging', - 'results' => '\HubSpot\Client\Cms\Pages\Model\ContentFolder[]' + 'results' => '\HubSpot\Client\Cms\Pages\Model\ContentFolder[]', + 'total' => 'int' ]; /** @@ -71,9 +71,9 @@ class CollectionResponseWithTotalContentFolderForwardPaging implements ModelInte * @psalm-var array */ protected static $openAPIFormats = [ - 'total' => 'int32', 'paging' => null, - 'results' => null + 'results' => null, + 'total' => 'int32' ]; /** @@ -82,9 +82,9 @@ class CollectionResponseWithTotalContentFolderForwardPaging implements ModelInte * @var boolean[] */ protected static array $openAPINullables = [ - 'total' => false, 'paging' => false, - 'results' => false + 'results' => false, + 'total' => false ]; /** @@ -173,9 +173,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'total' => 'total', 'paging' => 'paging', - 'results' => 'results' + 'results' => 'results', + 'total' => 'total' ]; /** @@ -184,9 +184,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'total' => 'setTotal', 'paging' => 'setPaging', - 'results' => 'setResults' + 'results' => 'setResults', + 'total' => 'setTotal' ]; /** @@ -195,9 +195,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'total' => 'getTotal', 'paging' => 'getPaging', - 'results' => 'getResults' + 'results' => 'getResults', + 'total' => 'getTotal' ]; /** @@ -257,9 +257,9 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('total', $data ?? [], null); $this->setIfExists('paging', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); + $this->setIfExists('total', $data ?? [], null); } /** @@ -289,12 +289,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['total'] === null) { - $invalidProperties[] = "'total' can't be null"; - } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } return $invalidProperties; } @@ -310,33 +310,6 @@ public function valid() } - /** - * Gets total - * - * @return int - */ - public function getTotal() - { - return $this->container['total']; - } - - /** - * Sets total - * - * @param int $total Total number of content folders. - * - * @return self - */ - public function setTotal($total) - { - if (is_null($total)) { - throw new \InvalidArgumentException('non-nullable total cannot be null'); - } - $this->container['total'] = $total; - - return $this; - } - /** * Gets paging * @@ -390,6 +363,33 @@ public function setResults($results) return $this; } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total Total number of content folders. + * + * @return self + */ + public function setTotal($total) + { + if (is_null($total)) { + throw new \InvalidArgumentException('non-nullable total cannot be null'); + } + $this->container['total'] = $total; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Pages/Model/CollectionResponseWithTotalPageForwardPaging.php b/codegen/Cms/Pages/Model/CollectionResponseWithTotalPageForwardPaging.php index 71658376..7b445fe6 100644 --- a/codegen/Cms/Pages/Model/CollectionResponseWithTotalPageForwardPaging.php +++ b/codegen/Cms/Pages/Model/CollectionResponseWithTotalPageForwardPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,9 +58,9 @@ class CollectionResponseWithTotalPageForwardPaging implements ModelInterface, Ar * @var string[] */ protected static $openAPITypes = [ - 'total' => 'int', 'paging' => '\HubSpot\Client\Cms\Pages\Model\ForwardPaging', - 'results' => '\HubSpot\Client\Cms\Pages\Model\Page[]' + 'results' => '\HubSpot\Client\Cms\Pages\Model\Page[]', + 'total' => 'int' ]; /** @@ -71,9 +71,9 @@ class CollectionResponseWithTotalPageForwardPaging implements ModelInterface, Ar * @psalm-var array */ protected static $openAPIFormats = [ - 'total' => 'int32', 'paging' => null, - 'results' => null + 'results' => null, + 'total' => 'int32' ]; /** @@ -82,9 +82,9 @@ class CollectionResponseWithTotalPageForwardPaging implements ModelInterface, Ar * @var boolean[] */ protected static array $openAPINullables = [ - 'total' => false, 'paging' => false, - 'results' => false + 'results' => false, + 'total' => false ]; /** @@ -173,9 +173,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'total' => 'total', 'paging' => 'paging', - 'results' => 'results' + 'results' => 'results', + 'total' => 'total' ]; /** @@ -184,9 +184,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'total' => 'setTotal', 'paging' => 'setPaging', - 'results' => 'setResults' + 'results' => 'setResults', + 'total' => 'setTotal' ]; /** @@ -195,9 +195,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'total' => 'getTotal', 'paging' => 'getPaging', - 'results' => 'getResults' + 'results' => 'getResults', + 'total' => 'getTotal' ]; /** @@ -257,9 +257,9 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('total', $data ?? [], null); $this->setIfExists('paging', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); + $this->setIfExists('total', $data ?? [], null); } /** @@ -289,12 +289,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['total'] === null) { - $invalidProperties[] = "'total' can't be null"; - } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } return $invalidProperties; } @@ -310,33 +310,6 @@ public function valid() } - /** - * Gets total - * - * @return int - */ - public function getTotal() - { - return $this->container['total']; - } - - /** - * Sets total - * - * @param int $total Total number of pages. - * - * @return self - */ - public function setTotal($total) - { - if (is_null($total)) { - throw new \InvalidArgumentException('non-nullable total cannot be null'); - } - $this->container['total'] = $total; - - return $this; - } - /** * Gets paging * @@ -390,6 +363,33 @@ public function setResults($results) return $this; } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total Total number of pages. + * + * @return self + */ + public function setTotal($total) + { + if (is_null($total)) { + throw new \InvalidArgumentException('non-nullable total cannot be null'); + } + $this->container['total'] = $total; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Pages/Model/CollectionResponseWithTotalVersionContentFolder.php b/codegen/Cms/Pages/Model/CollectionResponseWithTotalVersionContentFolder.php index 2d7ea902..13e8cd9b 100644 --- a/codegen/Cms/Pages/Model/CollectionResponseWithTotalVersionContentFolder.php +++ b/codegen/Cms/Pages/Model/CollectionResponseWithTotalVersionContentFolder.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,9 +58,9 @@ class CollectionResponseWithTotalVersionContentFolder implements ModelInterface, * @var string[] */ protected static $openAPITypes = [ - 'total' => 'int', 'paging' => '\HubSpot\Client\Cms\Pages\Model\Paging', - 'results' => '\HubSpot\Client\Cms\Pages\Model\VersionContentFolder[]' + 'results' => '\HubSpot\Client\Cms\Pages\Model\VersionContentFolder[]', + 'total' => 'int' ]; /** @@ -71,9 +71,9 @@ class CollectionResponseWithTotalVersionContentFolder implements ModelInterface, * @psalm-var array */ protected static $openAPIFormats = [ - 'total' => 'int32', 'paging' => null, - 'results' => null + 'results' => null, + 'total' => 'int32' ]; /** @@ -82,9 +82,9 @@ class CollectionResponseWithTotalVersionContentFolder implements ModelInterface, * @var boolean[] */ protected static array $openAPINullables = [ - 'total' => false, 'paging' => false, - 'results' => false + 'results' => false, + 'total' => false ]; /** @@ -173,9 +173,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'total' => 'total', 'paging' => 'paging', - 'results' => 'results' + 'results' => 'results', + 'total' => 'total' ]; /** @@ -184,9 +184,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'total' => 'setTotal', 'paging' => 'setPaging', - 'results' => 'setResults' + 'results' => 'setResults', + 'total' => 'setTotal' ]; /** @@ -195,9 +195,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'total' => 'getTotal', 'paging' => 'getPaging', - 'results' => 'getResults' + 'results' => 'getResults', + 'total' => 'getTotal' ]; /** @@ -257,9 +257,9 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('total', $data ?? [], null); $this->setIfExists('paging', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); + $this->setIfExists('total', $data ?? [], null); } /** @@ -289,12 +289,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['total'] === null) { - $invalidProperties[] = "'total' can't be null"; - } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } return $invalidProperties; } @@ -310,33 +310,6 @@ public function valid() } - /** - * Gets total - * - * @return int - */ - public function getTotal() - { - return $this->container['total']; - } - - /** - * Sets total - * - * @param int $total Total number of content folder versions. - * - * @return self - */ - public function setTotal($total) - { - if (is_null($total)) { - throw new \InvalidArgumentException('non-nullable total cannot be null'); - } - $this->container['total'] = $total; - - return $this; - } - /** * Gets paging * @@ -390,6 +363,33 @@ public function setResults($results) return $this; } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total Total number of content folder versions. + * + * @return self + */ + public function setTotal($total) + { + if (is_null($total)) { + throw new \InvalidArgumentException('non-nullable total cannot be null'); + } + $this->container['total'] = $total; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Pages/Model/CollectionResponseWithTotalVersionPage.php b/codegen/Cms/Pages/Model/CollectionResponseWithTotalVersionPage.php index 21438196..0eaf33ba 100644 --- a/codegen/Cms/Pages/Model/CollectionResponseWithTotalVersionPage.php +++ b/codegen/Cms/Pages/Model/CollectionResponseWithTotalVersionPage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,9 +58,9 @@ class CollectionResponseWithTotalVersionPage implements ModelInterface, ArrayAcc * @var string[] */ protected static $openAPITypes = [ - 'total' => 'int', 'paging' => '\HubSpot\Client\Cms\Pages\Model\Paging', - 'results' => '\HubSpot\Client\Cms\Pages\Model\VersionPage[]' + 'results' => '\HubSpot\Client\Cms\Pages\Model\VersionPage[]', + 'total' => 'int' ]; /** @@ -71,9 +71,9 @@ class CollectionResponseWithTotalVersionPage implements ModelInterface, ArrayAcc * @psalm-var array */ protected static $openAPIFormats = [ - 'total' => 'int32', 'paging' => null, - 'results' => null + 'results' => null, + 'total' => 'int32' ]; /** @@ -82,9 +82,9 @@ class CollectionResponseWithTotalVersionPage implements ModelInterface, ArrayAcc * @var boolean[] */ protected static array $openAPINullables = [ - 'total' => false, 'paging' => false, - 'results' => false + 'results' => false, + 'total' => false ]; /** @@ -173,9 +173,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'total' => 'total', 'paging' => 'paging', - 'results' => 'results' + 'results' => 'results', + 'total' => 'total' ]; /** @@ -184,9 +184,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'total' => 'setTotal', 'paging' => 'setPaging', - 'results' => 'setResults' + 'results' => 'setResults', + 'total' => 'setTotal' ]; /** @@ -195,9 +195,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'total' => 'getTotal', 'paging' => 'getPaging', - 'results' => 'getResults' + 'results' => 'getResults', + 'total' => 'getTotal' ]; /** @@ -257,9 +257,9 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('total', $data ?? [], null); $this->setIfExists('paging', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); + $this->setIfExists('total', $data ?? [], null); } /** @@ -289,12 +289,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['total'] === null) { - $invalidProperties[] = "'total' can't be null"; - } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } return $invalidProperties; } @@ -310,33 +310,6 @@ public function valid() } - /** - * Gets total - * - * @return int - */ - public function getTotal() - { - return $this->container['total']; - } - - /** - * Sets total - * - * @param int $total Total number of page versions. - * - * @return self - */ - public function setTotal($total) - { - if (is_null($total)) { - throw new \InvalidArgumentException('non-nullable total cannot be null'); - } - $this->container['total'] = $total; - - return $this; - } - /** * Gets paging * @@ -390,6 +363,33 @@ public function setResults($results) return $this; } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total Total number of page versions. + * + * @return self + */ + public function setTotal($total) + { + if (is_null($total)) { + throw new \InvalidArgumentException('non-nullable total cannot be null'); + } + $this->container['total'] = $total; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Pages/Model/ColorStop.php b/codegen/Cms/Pages/Model/ColorStop.php index bf589abf..aa82e000 100644 --- a/codegen/Cms/Pages/Model/ColorStop.php +++ b/codegen/Cms/Pages/Model/ColorStop.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/ContentCloneRequestVNext.php b/codegen/Cms/Pages/Model/ContentCloneRequestVNext.php index 3a00af34..3821746d 100644 --- a/codegen/Cms/Pages/Model/ContentCloneRequestVNext.php +++ b/codegen/Cms/Pages/Model/ContentCloneRequestVNext.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/ContentFolder.php b/codegen/Cms/Pages/Model/ContentFolder.php index fdd8fa22..a5a2fcbb 100644 --- a/codegen/Cms/Pages/Model/ContentFolder.php +++ b/codegen/Cms/Pages/Model/ContentFolder.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,12 +58,12 @@ class ContentFolder implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'deleted_at' => '\DateTime', - 'parent_folder_id' => 'int', + 'category' => 'int', 'created' => '\DateTime', - 'name' => 'string', + 'deleted_at' => '\DateTime', 'id' => 'string', - 'category' => 'int', + 'name' => 'string', + 'parent_folder_id' => 'int', 'updated' => '\DateTime' ]; @@ -75,12 +75,12 @@ class ContentFolder implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'deleted_at' => 'date-time', - 'parent_folder_id' => 'int64', + 'category' => 'int32', 'created' => 'date-time', - 'name' => null, + 'deleted_at' => 'date-time', 'id' => null, - 'category' => 'int32', + 'name' => null, + 'parent_folder_id' => 'int64', 'updated' => 'date-time' ]; @@ -90,12 +90,12 @@ class ContentFolder implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'deleted_at' => false, - 'parent_folder_id' => false, + 'category' => false, 'created' => false, - 'name' => false, + 'deleted_at' => false, 'id' => false, - 'category' => false, + 'name' => false, + 'parent_folder_id' => false, 'updated' => false ]; @@ -185,12 +185,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'deleted_at' => 'deletedAt', - 'parent_folder_id' => 'parentFolderId', + 'category' => 'category', 'created' => 'created', - 'name' => 'name', + 'deleted_at' => 'deletedAt', 'id' => 'id', - 'category' => 'category', + 'name' => 'name', + 'parent_folder_id' => 'parentFolderId', 'updated' => 'updated' ]; @@ -200,12 +200,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'deleted_at' => 'setDeletedAt', - 'parent_folder_id' => 'setParentFolderId', + 'category' => 'setCategory', 'created' => 'setCreated', - 'name' => 'setName', + 'deleted_at' => 'setDeletedAt', 'id' => 'setId', - 'category' => 'setCategory', + 'name' => 'setName', + 'parent_folder_id' => 'setParentFolderId', 'updated' => 'setUpdated' ]; @@ -215,12 +215,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'deleted_at' => 'getDeletedAt', - 'parent_folder_id' => 'getParentFolderId', + 'category' => 'getCategory', 'created' => 'getCreated', - 'name' => 'getName', + 'deleted_at' => 'getDeletedAt', 'id' => 'getId', - 'category' => 'getCategory', + 'name' => 'getName', + 'parent_folder_id' => 'getParentFolderId', 'updated' => 'getUpdated' ]; @@ -281,12 +281,12 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('deleted_at', $data ?? [], null); - $this->setIfExists('parent_folder_id', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('created', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('deleted_at', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('parent_folder_id', $data ?? [], null); $this->setIfExists('updated', $data ?? [], null); } @@ -317,23 +317,23 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['deleted_at'] === null) { - $invalidProperties[] = "'deleted_at' can't be null"; - } - if ($this->container['parent_folder_id'] === null) { - $invalidProperties[] = "'parent_folder_id' can't be null"; + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; } if ($this->container['created'] === null) { $invalidProperties[] = "'created' can't be null"; } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; + if ($this->container['deleted_at'] === null) { + $invalidProperties[] = "'deleted_at' can't be null"; } if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } - if ($this->container['category'] === null) { - $invalidProperties[] = "'category' can't be null"; + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['parent_folder_id'] === null) { + $invalidProperties[] = "'parent_folder_id' can't be null"; } if ($this->container['updated'] === null) { $invalidProperties[] = "'updated' can't be null"; @@ -354,55 +354,28 @@ public function valid() /** - * Gets deleted_at - * - * @return \DateTime - */ - public function getDeletedAt() - { - return $this->container['deleted_at']; - } - - /** - * Sets deleted_at - * - * @param \DateTime $deleted_at The timestamp (ISO8601 format) when this content folder was deleted. - * - * @return self - */ - public function setDeletedAt($deleted_at) - { - if (is_null($deleted_at)) { - throw new \InvalidArgumentException('non-nullable deleted_at cannot be null'); - } - $this->container['deleted_at'] = $deleted_at; - - return $this; - } - - /** - * Gets parent_folder_id + * Gets category * * @return int */ - public function getParentFolderId() + public function getCategory() { - return $this->container['parent_folder_id']; + return $this->container['category']; } /** - * Sets parent_folder_id + * Sets category * - * @param int $parent_folder_id The ID of the content folder this folder is nested under + * @param int $category The type of object this folder applies to. Should always be LANDING_PAGE. * * @return self */ - public function setParentFolderId($parent_folder_id) + public function setCategory($category) { - if (is_null($parent_folder_id)) { - throw new \InvalidArgumentException('non-nullable parent_folder_id cannot be null'); + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); } - $this->container['parent_folder_id'] = $parent_folder_id; + $this->container['category'] = $category; return $this; } @@ -420,7 +393,7 @@ public function getCreated() /** * Sets created * - * @param \DateTime $created created + * @param \DateTime $created The timestamp indicating when the content folder was created. * * @return self */ @@ -435,28 +408,28 @@ public function setCreated($created) } /** - * Gets name + * Gets deleted_at * - * @return string + * @return \DateTime */ - public function getName() + public function getDeletedAt() { - return $this->container['name']; + return $this->container['deleted_at']; } /** - * Sets name + * Sets deleted_at * - * @param string $name The name of the folder which will show up in the app dashboard + * @param \DateTime $deleted_at The timestamp (ISO8601 format) when this content folder was deleted. * * @return self */ - public function setName($name) + public function setDeletedAt($deleted_at) { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); + if (is_null($deleted_at)) { + throw new \InvalidArgumentException('non-nullable deleted_at cannot be null'); } - $this->container['name'] = $name; + $this->container['deleted_at'] = $deleted_at; return $this; } @@ -489,28 +462,55 @@ public function setId($id) } /** - * Gets category + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The name of the folder which will show up in the app dashboard + * + * @return self + */ + public function setName($name) + { + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); + } + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets parent_folder_id * * @return int */ - public function getCategory() + public function getParentFolderId() { - return $this->container['category']; + return $this->container['parent_folder_id']; } /** - * Sets category + * Sets parent_folder_id * - * @param int $category The type of object this folder applies to. Should always be LANDING_PAGE. + * @param int $parent_folder_id The ID of the content folder this folder is nested under * * @return self */ - public function setCategory($category) + public function setParentFolderId($parent_folder_id) { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); + if (is_null($parent_folder_id)) { + throw new \InvalidArgumentException('non-nullable parent_folder_id cannot be null'); } - $this->container['category'] = $category; + $this->container['parent_folder_id'] = $parent_folder_id; return $this; } @@ -528,7 +528,7 @@ public function getUpdated() /** * Sets updated * - * @param \DateTime $updated updated + * @param \DateTime $updated The timestamp indicating when the content folder was last updated. * * @return self */ diff --git a/codegen/Cms/Pages/Model/ContentLanguageCloneRequestVNext.php b/codegen/Cms/Pages/Model/ContentLanguageCloneRequestVNext.php index 556aad62..7494ba00 100644 --- a/codegen/Cms/Pages/Model/ContentLanguageCloneRequestVNext.php +++ b/codegen/Cms/Pages/Model/ContentLanguageCloneRequestVNext.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class ContentLanguageCloneRequestVNext implements ModelInterface, ArrayAccess, \ * @var string[] */ protected static $openAPITypes = [ - 'language' => 'string', 'id' => 'string', + 'language' => 'string', 'primary_language' => 'string' ]; @@ -71,8 +71,8 @@ class ContentLanguageCloneRequestVNext implements ModelInterface, ArrayAccess, \ * @psalm-var array */ protected static $openAPIFormats = [ - 'language' => null, 'id' => null, + 'language' => null, 'primary_language' => null ]; @@ -82,8 +82,8 @@ class ContentLanguageCloneRequestVNext implements ModelInterface, ArrayAccess, \ * @var boolean[] */ protected static array $openAPINullables = [ - 'language' => false, 'id' => false, + 'language' => false, 'primary_language' => false ]; @@ -173,8 +173,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'language' => 'language', 'id' => 'id', + 'language' => 'language', 'primary_language' => 'primaryLanguage' ]; @@ -184,8 +184,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'language' => 'setLanguage', 'id' => 'setId', + 'language' => 'setLanguage', 'primary_language' => 'setPrimaryLanguage' ]; @@ -195,8 +195,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'language' => 'getLanguage', 'id' => 'getId', + 'language' => 'getLanguage', 'primary_language' => 'getPrimaryLanguage' ]; @@ -257,8 +257,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('language', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('language', $data ?? [], null); $this->setIfExists('primary_language', $data ?? [], null); } @@ -308,55 +308,55 @@ public function valid() /** - * Gets language + * Gets id * - * @return string|null + * @return string */ - public function getLanguage() + public function getId() { - return $this->container['language']; + return $this->container['id']; } /** - * Sets language + * Sets id * - * @param string|null $language Target language of new variant. + * @param string $id ID of content to clone. * * @return self */ - public function setLanguage($language) + public function setId($id) { - if (is_null($language)) { - throw new \InvalidArgumentException('non-nullable language cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['language'] = $language; + $this->container['id'] = $id; return $this; } /** - * Gets id + * Gets language * - * @return string + * @return string|null */ - public function getId() + public function getLanguage() { - return $this->container['id']; + return $this->container['language']; } /** - * Sets id + * Sets language * - * @param string $id ID of content to clone. + * @param string|null $language Target language of new variant. * * @return self */ - public function setId($id) + public function setLanguage($language) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($language)) { + throw new \InvalidArgumentException('non-nullable language cannot be null'); } - $this->container['id'] = $id; + $this->container['language'] = $language; return $this; } diff --git a/codegen/Cms/Pages/Model/ContentLanguageVariation.php b/codegen/Cms/Pages/Model/ContentLanguageVariation.php index 013e55e7..64c09d05 100644 --- a/codegen/Cms/Pages/Model/ContentLanguageVariation.php +++ b/codegen/Cms/Pages/Model/ContentLanguageVariation.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,19 +58,19 @@ class ContentLanguageVariation implements ModelInterface, ArrayAccess, \JsonSeri */ protected static $openAPITypes = [ 'archived_in_dashboard' => 'bool', - 'created' => '\DateTime', - 'tag_ids' => 'int[]', - 'publish_date' => '\DateTime', - 'public_access_rules' => 'object[]', - 'password' => 'string', 'author_name' => 'string', - 'public_access_rules_enabled' => 'bool', - 'name' => 'string', 'campaign' => 'string', + 'created' => '\DateTime', 'id' => 'int', + 'name' => 'string', + 'password' => 'string', + 'public_access_rules' => 'object[]', + 'public_access_rules_enabled' => 'bool', + 'publish_date' => '\DateTime', + 'slug' => 'string', 'state' => 'string', - 'updated' => '\DateTime', - 'slug' => 'string' + 'tag_ids' => 'int[]', + 'updated' => '\DateTime' ]; /** @@ -82,19 +82,19 @@ class ContentLanguageVariation implements ModelInterface, ArrayAccess, \JsonSeri */ protected static $openAPIFormats = [ 'archived_in_dashboard' => null, - 'created' => 'date-time', - 'tag_ids' => 'int64', - 'publish_date' => 'date-time', - 'public_access_rules' => null, - 'password' => null, 'author_name' => null, - 'public_access_rules_enabled' => null, - 'name' => null, 'campaign' => null, + 'created' => 'date-time', 'id' => 'int64', + 'name' => null, + 'password' => null, + 'public_access_rules' => null, + 'public_access_rules_enabled' => null, + 'publish_date' => 'date-time', + 'slug' => null, 'state' => null, - 'updated' => 'date-time', - 'slug' => null + 'tag_ids' => 'int64', + 'updated' => 'date-time' ]; /** @@ -104,19 +104,19 @@ class ContentLanguageVariation implements ModelInterface, ArrayAccess, \JsonSeri */ protected static array $openAPINullables = [ 'archived_in_dashboard' => false, - 'created' => false, - 'tag_ids' => false, - 'publish_date' => false, - 'public_access_rules' => false, - 'password' => false, 'author_name' => false, - 'public_access_rules_enabled' => false, - 'name' => false, 'campaign' => false, + 'created' => false, 'id' => false, + 'name' => false, + 'password' => false, + 'public_access_rules' => false, + 'public_access_rules_enabled' => false, + 'publish_date' => false, + 'slug' => false, 'state' => false, - 'updated' => false, - 'slug' => false + 'tag_ids' => false, + 'updated' => false ]; /** @@ -206,19 +206,19 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'archived_in_dashboard' => 'archivedInDashboard', - 'created' => 'created', - 'tag_ids' => 'tagIds', - 'publish_date' => 'publishDate', - 'public_access_rules' => 'publicAccessRules', - 'password' => 'password', 'author_name' => 'authorName', - 'public_access_rules_enabled' => 'publicAccessRulesEnabled', - 'name' => 'name', 'campaign' => 'campaign', + 'created' => 'created', 'id' => 'id', + 'name' => 'name', + 'password' => 'password', + 'public_access_rules' => 'publicAccessRules', + 'public_access_rules_enabled' => 'publicAccessRulesEnabled', + 'publish_date' => 'publishDate', + 'slug' => 'slug', 'state' => 'state', - 'updated' => 'updated', - 'slug' => 'slug' + 'tag_ids' => 'tagIds', + 'updated' => 'updated' ]; /** @@ -228,19 +228,19 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'archived_in_dashboard' => 'setArchivedInDashboard', - 'created' => 'setCreated', - 'tag_ids' => 'setTagIds', - 'publish_date' => 'setPublishDate', - 'public_access_rules' => 'setPublicAccessRules', - 'password' => 'setPassword', 'author_name' => 'setAuthorName', - 'public_access_rules_enabled' => 'setPublicAccessRulesEnabled', - 'name' => 'setName', 'campaign' => 'setCampaign', + 'created' => 'setCreated', 'id' => 'setId', + 'name' => 'setName', + 'password' => 'setPassword', + 'public_access_rules' => 'setPublicAccessRules', + 'public_access_rules_enabled' => 'setPublicAccessRulesEnabled', + 'publish_date' => 'setPublishDate', + 'slug' => 'setSlug', 'state' => 'setState', - 'updated' => 'setUpdated', - 'slug' => 'setSlug' + 'tag_ids' => 'setTagIds', + 'updated' => 'setUpdated' ]; /** @@ -250,19 +250,19 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'archived_in_dashboard' => 'getArchivedInDashboard', - 'created' => 'getCreated', - 'tag_ids' => 'getTagIds', - 'publish_date' => 'getPublishDate', - 'public_access_rules' => 'getPublicAccessRules', - 'password' => 'getPassword', 'author_name' => 'getAuthorName', - 'public_access_rules_enabled' => 'getPublicAccessRulesEnabled', - 'name' => 'getName', 'campaign' => 'getCampaign', + 'created' => 'getCreated', 'id' => 'getId', + 'name' => 'getName', + 'password' => 'getPassword', + 'public_access_rules' => 'getPublicAccessRules', + 'public_access_rules_enabled' => 'getPublicAccessRulesEnabled', + 'publish_date' => 'getPublishDate', + 'slug' => 'getSlug', 'state' => 'getState', - 'updated' => 'getUpdated', - 'slug' => 'getSlug' + 'tag_ids' => 'getTagIds', + 'updated' => 'getUpdated' ]; /** @@ -323,19 +323,19 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('archived_in_dashboard', $data ?? [], null); - $this->setIfExists('created', $data ?? [], null); - $this->setIfExists('tag_ids', $data ?? [], null); - $this->setIfExists('publish_date', $data ?? [], null); - $this->setIfExists('public_access_rules', $data ?? [], null); - $this->setIfExists('password', $data ?? [], null); $this->setIfExists('author_name', $data ?? [], null); - $this->setIfExists('public_access_rules_enabled', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); $this->setIfExists('campaign', $data ?? [], null); + $this->setIfExists('created', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('password', $data ?? [], null); + $this->setIfExists('public_access_rules', $data ?? [], null); + $this->setIfExists('public_access_rules_enabled', $data ?? [], null); + $this->setIfExists('publish_date', $data ?? [], null); + $this->setIfExists('slug', $data ?? [], null); $this->setIfExists('state', $data ?? [], null); + $this->setIfExists('tag_ids', $data ?? [], null); $this->setIfExists('updated', $data ?? [], null); - $this->setIfExists('slug', $data ?? [], null); } /** @@ -368,32 +368,35 @@ public function listInvalidProperties() if ($this->container['archived_in_dashboard'] === null) { $invalidProperties[] = "'archived_in_dashboard' can't be null"; } + if ($this->container['author_name'] === null) { + $invalidProperties[] = "'author_name' can't be null"; + } + if ($this->container['campaign'] === null) { + $invalidProperties[] = "'campaign' can't be null"; + } if ($this->container['created'] === null) { $invalidProperties[] = "'created' can't be null"; } - if ($this->container['publish_date'] === null) { - $invalidProperties[] = "'publish_date' can't be null"; + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } - if ($this->container['public_access_rules'] === null) { - $invalidProperties[] = "'public_access_rules' can't be null"; + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; } if ($this->container['password'] === null) { $invalidProperties[] = "'password' can't be null"; } - if ($this->container['author_name'] === null) { - $invalidProperties[] = "'author_name' can't be null"; + if ($this->container['public_access_rules'] === null) { + $invalidProperties[] = "'public_access_rules' can't be null"; } if ($this->container['public_access_rules_enabled'] === null) { $invalidProperties[] = "'public_access_rules_enabled' can't be null"; } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['campaign'] === null) { - $invalidProperties[] = "'campaign' can't be null"; + if ($this->container['publish_date'] === null) { + $invalidProperties[] = "'publish_date' can't be null"; } - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; + if ($this->container['slug'] === null) { + $invalidProperties[] = "'slug' can't be null"; } if ($this->container['state'] === null) { $invalidProperties[] = "'state' can't be null"; @@ -401,9 +404,6 @@ public function listInvalidProperties() if ($this->container['updated'] === null) { $invalidProperties[] = "'updated' can't be null"; } - if ($this->container['slug'] === null) { - $invalidProperties[] = "'slug' can't be null"; - } return $invalidProperties; } @@ -432,7 +432,7 @@ public function getArchivedInDashboard() /** * Sets archived_in_dashboard * - * @param bool $archived_in_dashboard archived_in_dashboard + * @param bool $archived_in_dashboard Indicates if the page is hidden from the dashboard, though it may still be live. * * @return self */ @@ -447,271 +447,271 @@ public function setArchivedInDashboard($archived_in_dashboard) } /** - * Gets created + * Gets author_name * - * @return \DateTime + * @return string */ - public function getCreated() + public function getAuthorName() { - return $this->container['created']; + return $this->container['author_name']; } /** - * Sets created + * Sets author_name * - * @param \DateTime $created created + * @param string $author_name The name of the user who updated this page. * * @return self */ - public function setCreated($created) + public function setAuthorName($author_name) { - if (is_null($created)) { - throw new \InvalidArgumentException('non-nullable created cannot be null'); + if (is_null($author_name)) { + throw new \InvalidArgumentException('non-nullable author_name cannot be null'); } - $this->container['created'] = $created; + $this->container['author_name'] = $author_name; return $this; } /** - * Gets tag_ids + * Gets campaign * - * @return int[]|null + * @return string */ - public function getTagIds() + public function getCampaign() { - return $this->container['tag_ids']; + return $this->container['campaign']; } /** - * Sets tag_ids + * Sets campaign * - * @param int[]|null $tag_ids tag_ids + * @param string $campaign The GUID of the marketing campaign this page is a part of. * * @return self */ - public function setTagIds($tag_ids) + public function setCampaign($campaign) { - if (is_null($tag_ids)) { - throw new \InvalidArgumentException('non-nullable tag_ids cannot be null'); + if (is_null($campaign)) { + throw new \InvalidArgumentException('non-nullable campaign cannot be null'); } - $this->container['tag_ids'] = $tag_ids; + $this->container['campaign'] = $campaign; return $this; } /** - * Gets publish_date + * Gets created * * @return \DateTime */ - public function getPublishDate() + public function getCreated() { - return $this->container['publish_date']; + return $this->container['created']; } /** - * Sets publish_date + * Sets created * - * @param \DateTime $publish_date publish_date + * @param \DateTime $created The date and time when the content language variation was created. * * @return self */ - public function setPublishDate($publish_date) + public function setCreated($created) { - if (is_null($publish_date)) { - throw new \InvalidArgumentException('non-nullable publish_date cannot be null'); + if (is_null($created)) { + throw new \InvalidArgumentException('non-nullable created cannot be null'); } - $this->container['publish_date'] = $publish_date; + $this->container['created'] = $created; return $this; } /** - * Gets public_access_rules + * Gets id * - * @return object[] + * @return int */ - public function getPublicAccessRules() + public function getId() { - return $this->container['public_access_rules']; + return $this->container['id']; } /** - * Sets public_access_rules + * Sets id * - * @param object[] $public_access_rules public_access_rules + * @param int $id The unique ID of the content language variation. * * @return self */ - public function setPublicAccessRules($public_access_rules) + public function setId($id) { - if (is_null($public_access_rules)) { - throw new \InvalidArgumentException('non-nullable public_access_rules cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['public_access_rules'] = $public_access_rules; + $this->container['id'] = $id; return $this; } /** - * Gets password + * Gets name * * @return string */ - public function getPassword() + public function getName() { - return $this->container['password']; + return $this->container['name']; } /** - * Sets password + * Sets name * - * @param string $password password + * @param string $name The internal name of the content language variation. * * @return self */ - public function setPassword($password) + public function setName($name) { - if (is_null($password)) { - throw new \InvalidArgumentException('non-nullable password cannot be null'); + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); } - $this->container['password'] = $password; + $this->container['name'] = $name; return $this; } /** - * Gets author_name + * Gets password * * @return string */ - public function getAuthorName() + public function getPassword() { - return $this->container['author_name']; + return $this->container['password']; } /** - * Sets author_name + * Sets password * - * @param string $author_name author_name + * @param string $password A password required to view the page, if set. * * @return self */ - public function setAuthorName($author_name) + public function setPassword($password) { - if (is_null($author_name)) { - throw new \InvalidArgumentException('non-nullable author_name cannot be null'); + if (is_null($password)) { + throw new \InvalidArgumentException('non-nullable password cannot be null'); } - $this->container['author_name'] = $author_name; + $this->container['password'] = $password; return $this; } /** - * Gets public_access_rules_enabled + * Gets public_access_rules * - * @return bool + * @return object[] */ - public function getPublicAccessRulesEnabled() + public function getPublicAccessRules() { - return $this->container['public_access_rules_enabled']; + return $this->container['public_access_rules']; } /** - * Sets public_access_rules_enabled + * Sets public_access_rules * - * @param bool $public_access_rules_enabled public_access_rules_enabled + * @param object[] $public_access_rules public_access_rules * * @return self */ - public function setPublicAccessRulesEnabled($public_access_rules_enabled) + public function setPublicAccessRules($public_access_rules) { - if (is_null($public_access_rules_enabled)) { - throw new \InvalidArgumentException('non-nullable public_access_rules_enabled cannot be null'); + if (is_null($public_access_rules)) { + throw new \InvalidArgumentException('non-nullable public_access_rules cannot be null'); } - $this->container['public_access_rules_enabled'] = $public_access_rules_enabled; + $this->container['public_access_rules'] = $public_access_rules; return $this; } /** - * Gets name + * Gets public_access_rules_enabled * - * @return string + * @return bool */ - public function getName() + public function getPublicAccessRulesEnabled() { - return $this->container['name']; + return $this->container['public_access_rules_enabled']; } /** - * Sets name + * Sets public_access_rules_enabled * - * @param string $name name + * @param bool $public_access_rules_enabled Determines if public access rules should be respected. * * @return self */ - public function setName($name) + public function setPublicAccessRulesEnabled($public_access_rules_enabled) { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); + if (is_null($public_access_rules_enabled)) { + throw new \InvalidArgumentException('non-nullable public_access_rules_enabled cannot be null'); } - $this->container['name'] = $name; + $this->container['public_access_rules_enabled'] = $public_access_rules_enabled; return $this; } /** - * Gets campaign + * Gets publish_date * - * @return string + * @return \DateTime */ - public function getCampaign() + public function getPublishDate() { - return $this->container['campaign']; + return $this->container['publish_date']; } /** - * Sets campaign + * Sets publish_date * - * @param string $campaign campaign + * @param \DateTime $publish_date The date and time when the page is scheduled to be published. * * @return self */ - public function setCampaign($campaign) + public function setPublishDate($publish_date) { - if (is_null($campaign)) { - throw new \InvalidArgumentException('non-nullable campaign cannot be null'); + if (is_null($publish_date)) { + throw new \InvalidArgumentException('non-nullable publish_date cannot be null'); } - $this->container['campaign'] = $campaign; + $this->container['publish_date'] = $publish_date; return $this; } /** - * Gets id + * Gets slug * - * @return int + * @return string */ - public function getId() + public function getSlug() { - return $this->container['id']; + return $this->container['slug']; } /** - * Sets id + * Sets slug * - * @param int $id id + * @param string $slug The path of this page, appended to the domain to construct the URL. * * @return self */ - public function setId($id) + public function setSlug($slug) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($slug)) { + throw new \InvalidArgumentException('non-nullable slug cannot be null'); } - $this->container['id'] = $id; + $this->container['slug'] = $slug; return $this; } @@ -729,7 +729,7 @@ public function getState() /** * Sets state * - * @param string $state state + * @param string $state The current state of the content language variation. * * @return self */ @@ -744,55 +744,55 @@ public function setState($state) } /** - * Gets updated + * Gets tag_ids * - * @return \DateTime + * @return int[]|null */ - public function getUpdated() + public function getTagIds() { - return $this->container['updated']; + return $this->container['tag_ids']; } /** - * Sets updated + * Sets tag_ids * - * @param \DateTime $updated updated + * @param int[]|null $tag_ids tag_ids * * @return self */ - public function setUpdated($updated) + public function setTagIds($tag_ids) { - if (is_null($updated)) { - throw new \InvalidArgumentException('non-nullable updated cannot be null'); + if (is_null($tag_ids)) { + throw new \InvalidArgumentException('non-nullable tag_ids cannot be null'); } - $this->container['updated'] = $updated; + $this->container['tag_ids'] = $tag_ids; return $this; } /** - * Gets slug + * Gets updated * - * @return string + * @return \DateTime */ - public function getSlug() + public function getUpdated() { - return $this->container['slug']; + return $this->container['updated']; } /** - * Sets slug + * Sets updated * - * @param string $slug slug + * @param \DateTime $updated The date and time when the content language variation was last updated. * * @return self */ - public function setSlug($slug) + public function setUpdated($updated) { - if (is_null($slug)) { - throw new \InvalidArgumentException('non-nullable slug cannot be null'); + if (is_null($updated)) { + throw new \InvalidArgumentException('non-nullable updated cannot be null'); } - $this->container['slug'] = $slug; + $this->container['updated'] = $updated; return $this; } diff --git a/codegen/Cms/Pages/Model/ContentScheduleRequestVNext.php b/codegen/Cms/Pages/Model/ContentScheduleRequestVNext.php index 0a5ba781..76d50758 100644 --- a/codegen/Cms/Pages/Model/ContentScheduleRequestVNext.php +++ b/codegen/Cms/Pages/Model/ContentScheduleRequestVNext.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class ContentScheduleRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ - 'publish_date' => '\DateTime', - 'id' => 'string' + 'id' => 'string', + 'publish_date' => '\DateTime' ]; /** @@ -70,8 +70,8 @@ class ContentScheduleRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ - 'publish_date' => 'date-time', - 'id' => null + 'id' => null, + 'publish_date' => 'date-time' ]; /** @@ -80,8 +80,8 @@ class ContentScheduleRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @var boolean[] */ protected static array $openAPINullables = [ - 'publish_date' => false, - 'id' => false + 'id' => false, + 'publish_date' => false ]; /** @@ -170,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'publish_date' => 'publishDate', - 'id' => 'id' + 'id' => 'id', + 'publish_date' => 'publishDate' ]; /** @@ -180,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'publish_date' => 'setPublishDate', - 'id' => 'setId' + 'id' => 'setId', + 'publish_date' => 'setPublishDate' ]; /** @@ -190,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'publish_date' => 'getPublishDate', - 'id' => 'getId' + 'id' => 'getId', + 'publish_date' => 'getPublishDate' ]; /** @@ -251,8 +251,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('publish_date', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('publish_date', $data ?? [], null); } /** @@ -282,12 +282,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['publish_date'] === null) { - $invalidProperties[] = "'publish_date' can't be null"; - } if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } + if ($this->container['publish_date'] === null) { + $invalidProperties[] = "'publish_date' can't be null"; + } return $invalidProperties; } @@ -304,55 +304,55 @@ public function valid() /** - * Gets publish_date + * Gets id * - * @return \DateTime + * @return string */ - public function getPublishDate() + public function getId() { - return $this->container['publish_date']; + return $this->container['id']; } /** - * Sets publish_date + * Sets id * - * @param \DateTime $publish_date The date the object should transition from scheduled to published. + * @param string $id The ID of the object to be scheduled. * * @return self */ - public function setPublishDate($publish_date) + public function setId($id) { - if (is_null($publish_date)) { - throw new \InvalidArgumentException('non-nullable publish_date cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['publish_date'] = $publish_date; + $this->container['id'] = $id; return $this; } /** - * Gets id + * Gets publish_date * - * @return string + * @return \DateTime */ - public function getId() + public function getPublishDate() { - return $this->container['id']; + return $this->container['publish_date']; } /** - * Sets id + * Sets publish_date * - * @param string $id The ID of the object to be scheduled. + * @param \DateTime $publish_date The date the object should transition from scheduled to published. * * @return self */ - public function setId($id) + public function setPublishDate($publish_date) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($publish_date)) { + throw new \InvalidArgumentException('non-nullable publish_date cannot be null'); } - $this->container['id'] = $id; + $this->container['publish_date'] = $publish_date; return $this; } diff --git a/codegen/Cms/Pages/Model/DetachFromLangGroupRequestVNext.php b/codegen/Cms/Pages/Model/DetachFromLangGroupRequestVNext.php index 65fc21ba..5bef1560 100644 --- a/codegen/Cms/Pages/Model/DetachFromLangGroupRequestVNext.php +++ b/codegen/Cms/Pages/Model/DetachFromLangGroupRequestVNext.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/Error.php b/codegen/Cms/Pages/Model/Error.php index 37cb3fb5..1fff1833 100644 --- a/codegen/Cms/Pages/Model/Error.php +++ b/codegen/Cms/Pages/Model/Error.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', + 'category' => 'string', 'context' => 'array', 'correlation_id' => 'string', + 'errors' => '\HubSpot\Client\Cms\Pages\Model\ErrorDetail[]', 'links' => 'array', 'message' => 'string', - 'category' => 'string', - 'errors' => '\HubSpot\Client\Cms\Pages\Model\ErrorDetail[]' + 'sub_category' => 'string' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, + 'category' => null, 'context' => null, 'correlation_id' => 'uuid', + 'errors' => null, 'links' => null, 'message' => null, - 'category' => null, - 'errors' => null + 'sub_category' => null ]; /** @@ -89,13 +89,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, + 'category' => false, 'context' => false, 'correlation_id' => false, + 'errors' => false, 'links' => false, 'message' => false, - 'category' => false, - 'errors' => false + 'sub_category' => false ]; /** @@ -184,13 +184,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', + 'category' => 'category', 'context' => 'context', 'correlation_id' => 'correlationId', + 'errors' => 'errors', 'links' => 'links', 'message' => 'message', - 'category' => 'category', - 'errors' => 'errors' + 'sub_category' => 'subCategory' ]; /** @@ -199,13 +199,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', + 'category' => 'setCategory', 'context' => 'setContext', 'correlation_id' => 'setCorrelationId', + 'errors' => 'setErrors', 'links' => 'setLinks', 'message' => 'setMessage', - 'category' => 'setCategory', - 'errors' => 'setErrors' + 'sub_category' => 'setSubCategory' ]; /** @@ -214,13 +214,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', + 'category' => 'getCategory', 'context' => 'getContext', 'correlation_id' => 'getCorrelationId', + 'errors' => 'getErrors', 'links' => 'getLinks', 'message' => 'getMessage', - 'category' => 'getCategory', - 'errors' => 'getErrors' + 'sub_category' => 'getSubCategory' ]; /** @@ -280,13 +280,13 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); $this->setIfExists('correlation_id', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); $this->setIfExists('links', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -316,15 +316,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; + } if ($this->container['correlation_id'] === null) { $invalidProperties[] = "'correlation_id' can't be null"; } if ($this->container['message'] === null) { $invalidProperties[] = "'message' can't be null"; } - if ($this->container['category'] === null) { - $invalidProperties[] = "'category' can't be null"; - } return $invalidProperties; } @@ -341,28 +341,28 @@ public function valid() /** - * Gets sub_category + * Gets category * - * @return string|null + * @return string */ - public function getSubCategory() + public function getCategory() { - return $this->container['sub_category']; + return $this->container['category']; } /** - * Sets sub_category + * Sets category * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string $category The error category * * @return self */ - public function setSubCategory($sub_category) + public function setCategory($category) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['category'] = $category; return $this; } @@ -421,6 +421,33 @@ public function setCorrelationId($correlation_id) return $this; } + /** + * Gets errors + * + * @return \HubSpot\Client\Cms\Pages\Model\ErrorDetail[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \HubSpot\Client\Cms\Pages\Model\ErrorDetail[]|null $errors further information about the error + * + * @return self + */ + public function setErrors($errors) + { + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); + } + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets links * @@ -476,55 +503,28 @@ public function setMessage($message) } /** - * Gets category - * - * @return string - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param string $category The error category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets errors + * Gets sub_category * - * @return \HubSpot\Client\Cms\Pages\Model\ErrorDetail[]|null + * @return string|null */ - public function getErrors() + public function getSubCategory() { - return $this->container['errors']; + return $this->container['sub_category']; } /** - * Sets errors + * Sets sub_category * - * @param \HubSpot\Client\Cms\Pages\Model\ErrorDetail[]|null $errors further information about the error + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setErrors($errors) + public function setSubCategory($sub_category) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['errors'] = $errors; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/Pages/Model/ErrorDetail.php b/codegen/Cms/Pages/Model/ErrorDetail.php index a55abae1..e05400b9 100644 --- a/codegen/Cms/Pages/Model/ErrorDetail.php +++ b/codegen/Cms/Pages/Model/ErrorDetail.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', 'code' => 'string', - 'in' => 'string', 'context' => 'array', - 'message' => 'string' + 'in' => 'string', + 'message' => 'string', + 'sub_category' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, 'code' => null, - 'in' => null, 'context' => null, - 'message' => null + 'in' => null, + 'message' => null, + 'sub_category' => null ]; /** @@ -85,11 +85,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, 'code' => false, - 'in' => false, 'context' => false, - 'message' => false + 'in' => false, + 'message' => false, + 'sub_category' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', 'code' => 'code', - 'in' => 'in', 'context' => 'context', - 'message' => 'message' + 'in' => 'in', + 'message' => 'message', + 'sub_category' => 'subCategory' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', 'code' => 'setCode', - 'in' => 'setIn', 'context' => 'setContext', - 'message' => 'setMessage' + 'in' => 'setIn', + 'message' => 'setMessage', + 'sub_category' => 'setSubCategory' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', 'code' => 'getCode', - 'in' => 'getIn', 'context' => 'getContext', - 'message' => 'getMessage' + 'in' => 'getIn', + 'message' => 'getMessage', + 'sub_category' => 'getSubCategory' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('in', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); + $this->setIfExists('in', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -321,55 +321,55 @@ public function valid() /** - * Gets sub_category + * Gets code * * @return string|null */ - public function getSubCategory() + public function getCode() { - return $this->container['sub_category']; + return $this->container['code']; } /** - * Sets sub_category + * Sets code * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $code The status code associated with the error detail * * @return self */ - public function setSubCategory($sub_category) + public function setCode($code) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['code'] = $code; return $this; } /** - * Gets code + * Gets context * - * @return string|null + * @return array|null */ - public function getCode() + public function getContext() { - return $this->container['code']; + return $this->container['context']; } /** - * Sets code + * Sets context * - * @param string|null $code The status code associated with the error detail + * @param array|null $context Context about the error condition * * @return self */ - public function setCode($code) + public function setContext($context) { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); + if (is_null($context)) { + throw new \InvalidArgumentException('non-nullable context cannot be null'); } - $this->container['code'] = $code; + $this->container['context'] = $context; return $this; } @@ -402,55 +402,55 @@ public function setIn($in) } /** - * Gets context + * Gets message * - * @return array|null + * @return string */ - public function getContext() + public function getMessage() { - return $this->container['context']; + return $this->container['message']; } /** - * Sets context + * Sets message * - * @param array|null $context Context about the error condition + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setContext($context) + public function setMessage($message) { - if (is_null($context)) { - throw new \InvalidArgumentException('non-nullable context cannot be null'); + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); } - $this->container['context'] = $context; + $this->container['message'] = $message; return $this; } /** - * Gets message + * Gets sub_category * - * @return string + * @return string|null */ - public function getMessage() + public function getSubCategory() { - return $this->container['message']; + return $this->container['sub_category']; } /** - * Sets message + * Sets sub_category * - * @param string $message A human readable message describing the error along with remediation steps where appropriate + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setMessage($message) + public function setSubCategory($sub_category) { - if (is_null($message)) { - throw new \InvalidArgumentException('non-nullable message cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/Pages/Model/ForwardPaging.php b/codegen/Cms/Pages/Model/ForwardPaging.php index a675b693..e192b415 100644 --- a/codegen/Cms/Pages/Model/ForwardPaging.php +++ b/codegen/Cms/Pages/Model/ForwardPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/Gradient.php b/codegen/Cms/Pages/Model/Gradient.php index f9d4cd43..25a99c69 100644 --- a/codegen/Cms/Pages/Model/Gradient.php +++ b/codegen/Cms/Pages/Model/Gradient.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class Gradient implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'angle' => '\HubSpot\Client\Cms\Pages\Model\Angle', - 'side_or_corner' => '\HubSpot\Client\Cms\Pages\Model\SideOrCorner', - 'colors' => '\HubSpot\Client\Cms\Pages\Model\ColorStop[]' + 'colors' => '\HubSpot\Client\Cms\Pages\Model\ColorStop[]', + 'side_or_corner' => '\HubSpot\Client\Cms\Pages\Model\SideOrCorner' ]; /** @@ -71,8 +71,8 @@ class Gradient implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'angle' => null, - 'side_or_corner' => null, - 'colors' => null + 'colors' => null, + 'side_or_corner' => null ]; /** @@ -82,8 +82,8 @@ class Gradient implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static array $openAPINullables = [ 'angle' => false, - 'side_or_corner' => false, - 'colors' => false + 'colors' => false, + 'side_or_corner' => false ]; /** @@ -173,8 +173,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'angle' => 'angle', - 'side_or_corner' => 'sideOrCorner', - 'colors' => 'colors' + 'colors' => 'colors', + 'side_or_corner' => 'sideOrCorner' ]; /** @@ -184,8 +184,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'angle' => 'setAngle', - 'side_or_corner' => 'setSideOrCorner', - 'colors' => 'setColors' + 'colors' => 'setColors', + 'side_or_corner' => 'setSideOrCorner' ]; /** @@ -195,8 +195,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'angle' => 'getAngle', - 'side_or_corner' => 'getSideOrCorner', - 'colors' => 'getColors' + 'colors' => 'getColors', + 'side_or_corner' => 'getSideOrCorner' ]; /** @@ -257,8 +257,8 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('angle', $data ?? [], null); - $this->setIfExists('side_or_corner', $data ?? [], null); $this->setIfExists('colors', $data ?? [], null); + $this->setIfExists('side_or_corner', $data ?? [], null); } /** @@ -291,12 +291,12 @@ public function listInvalidProperties() if ($this->container['angle'] === null) { $invalidProperties[] = "'angle' can't be null"; } - if ($this->container['side_or_corner'] === null) { - $invalidProperties[] = "'side_or_corner' can't be null"; - } if ($this->container['colors'] === null) { $invalidProperties[] = "'colors' can't be null"; } + if ($this->container['side_or_corner'] === null) { + $invalidProperties[] = "'side_or_corner' can't be null"; + } return $invalidProperties; } @@ -340,55 +340,55 @@ public function setAngle($angle) } /** - * Gets side_or_corner + * Gets colors * - * @return \HubSpot\Client\Cms\Pages\Model\SideOrCorner + * @return \HubSpot\Client\Cms\Pages\Model\ColorStop[] */ - public function getSideOrCorner() + public function getColors() { - return $this->container['side_or_corner']; + return $this->container['colors']; } /** - * Sets side_or_corner + * Sets colors * - * @param \HubSpot\Client\Cms\Pages\Model\SideOrCorner $side_or_corner side_or_corner + * @param \HubSpot\Client\Cms\Pages\Model\ColorStop[] $colors colors * * @return self */ - public function setSideOrCorner($side_or_corner) + public function setColors($colors) { - if (is_null($side_or_corner)) { - throw new \InvalidArgumentException('non-nullable side_or_corner cannot be null'); + if (is_null($colors)) { + throw new \InvalidArgumentException('non-nullable colors cannot be null'); } - $this->container['side_or_corner'] = $side_or_corner; + $this->container['colors'] = $colors; return $this; } /** - * Gets colors + * Gets side_or_corner * - * @return \HubSpot\Client\Cms\Pages\Model\ColorStop[] + * @return \HubSpot\Client\Cms\Pages\Model\SideOrCorner */ - public function getColors() + public function getSideOrCorner() { - return $this->container['colors']; + return $this->container['side_or_corner']; } /** - * Sets colors + * Sets side_or_corner * - * @param \HubSpot\Client\Cms\Pages\Model\ColorStop[] $colors colors + * @param \HubSpot\Client\Cms\Pages\Model\SideOrCorner $side_or_corner side_or_corner * * @return self */ - public function setColors($colors) + public function setSideOrCorner($side_or_corner) { - if (is_null($colors)) { - throw new \InvalidArgumentException('non-nullable colors cannot be null'); + if (is_null($side_or_corner)) { + throw new \InvalidArgumentException('non-nullable side_or_corner cannot be null'); } - $this->container['colors'] = $colors; + $this->container['side_or_corner'] = $side_or_corner; return $this; } diff --git a/codegen/Cms/Pages/Model/LayoutSection.php b/codegen/Cms/Pages/Model/LayoutSection.php index 390aa45a..8f8f92c0 100644 --- a/codegen/Cms/Pages/Model/LayoutSection.php +++ b/codegen/Cms/Pages/Model/LayoutSection.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,19 +57,19 @@ class LayoutSection implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'cells' => '\HubSpot\Client\Cms\Pages\Model\LayoutSection[]', + 'css_class' => 'string', + 'css_id' => 'string', 'css_style' => 'string', 'label' => 'string', - 'type' => 'string', + 'name' => 'string', 'params' => 'array', - 'rows' => 'array[]', 'row_meta_data' => '\HubSpot\Client\Cms\Pages\Model\RowMetaData[]', - 'cells' => '\HubSpot\Client\Cms\Pages\Model\LayoutSection[]', - 'css_class' => 'string', + 'rows' => 'array[]', + 'styles' => '\HubSpot\Client\Cms\Pages\Model\Styles', + 'type' => 'string', 'w' => 'int', - 'css_id' => 'string', - 'x' => 'int', - 'name' => 'string', - 'styles' => '\HubSpot\Client\Cms\Pages\Model\Styles' + 'x' => 'int' ]; /** @@ -80,19 +80,19 @@ class LayoutSection implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'cells' => null, + 'css_class' => null, + 'css_id' => null, 'css_style' => null, 'label' => null, - 'type' => null, + 'name' => null, 'params' => null, - 'rows' => null, 'row_meta_data' => null, - 'cells' => null, - 'css_class' => null, + 'rows' => null, + 'styles' => null, + 'type' => null, 'w' => 'int32', - 'css_id' => null, - 'x' => 'int32', - 'name' => null, - 'styles' => null + 'x' => 'int32' ]; /** @@ -101,19 +101,19 @@ class LayoutSection implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ + 'cells' => false, + 'css_class' => false, + 'css_id' => false, 'css_style' => false, 'label' => false, - 'type' => false, + 'name' => false, 'params' => false, - 'rows' => false, 'row_meta_data' => false, - 'cells' => false, - 'css_class' => false, + 'rows' => false, + 'styles' => false, + 'type' => false, 'w' => false, - 'css_id' => false, - 'x' => false, - 'name' => false, - 'styles' => false + 'x' => false ]; /** @@ -202,19 +202,19 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'cells' => 'cells', + 'css_class' => 'cssClass', + 'css_id' => 'cssId', 'css_style' => 'cssStyle', 'label' => 'label', - 'type' => 'type', + 'name' => 'name', 'params' => 'params', - 'rows' => 'rows', 'row_meta_data' => 'rowMetaData', - 'cells' => 'cells', - 'css_class' => 'cssClass', + 'rows' => 'rows', + 'styles' => 'styles', + 'type' => 'type', 'w' => 'w', - 'css_id' => 'cssId', - 'x' => 'x', - 'name' => 'name', - 'styles' => 'styles' + 'x' => 'x' ]; /** @@ -223,19 +223,19 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'cells' => 'setCells', + 'css_class' => 'setCssClass', + 'css_id' => 'setCssId', 'css_style' => 'setCssStyle', 'label' => 'setLabel', - 'type' => 'setType', + 'name' => 'setName', 'params' => 'setParams', - 'rows' => 'setRows', 'row_meta_data' => 'setRowMetaData', - 'cells' => 'setCells', - 'css_class' => 'setCssClass', + 'rows' => 'setRows', + 'styles' => 'setStyles', + 'type' => 'setType', 'w' => 'setW', - 'css_id' => 'setCssId', - 'x' => 'setX', - 'name' => 'setName', - 'styles' => 'setStyles' + 'x' => 'setX' ]; /** @@ -244,19 +244,19 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'cells' => 'getCells', + 'css_class' => 'getCssClass', + 'css_id' => 'getCssId', 'css_style' => 'getCssStyle', 'label' => 'getLabel', - 'type' => 'getType', + 'name' => 'getName', 'params' => 'getParams', - 'rows' => 'getRows', 'row_meta_data' => 'getRowMetaData', - 'cells' => 'getCells', - 'css_class' => 'getCssClass', + 'rows' => 'getRows', + 'styles' => 'getStyles', + 'type' => 'getType', 'w' => 'getW', - 'css_id' => 'getCssId', - 'x' => 'getX', - 'name' => 'getName', - 'styles' => 'getStyles' + 'x' => 'getX' ]; /** @@ -316,19 +316,19 @@ public function getModelName() */ public function __construct(?array $data = null) { + $this->setIfExists('cells', $data ?? [], null); + $this->setIfExists('css_class', $data ?? [], null); + $this->setIfExists('css_id', $data ?? [], null); $this->setIfExists('css_style', $data ?? [], null); $this->setIfExists('label', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); $this->setIfExists('params', $data ?? [], null); - $this->setIfExists('rows', $data ?? [], null); $this->setIfExists('row_meta_data', $data ?? [], null); - $this->setIfExists('cells', $data ?? [], null); - $this->setIfExists('css_class', $data ?? [], null); + $this->setIfExists('rows', $data ?? [], null); + $this->setIfExists('styles', $data ?? [], null); + $this->setIfExists('type', $data ?? [], null); $this->setIfExists('w', $data ?? [], null); - $this->setIfExists('css_id', $data ?? [], null); $this->setIfExists('x', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('styles', $data ?? [], null); } /** @@ -358,45 +358,45 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['cells'] === null) { + $invalidProperties[] = "'cells' can't be null"; + } + if ($this->container['css_class'] === null) { + $invalidProperties[] = "'css_class' can't be null"; + } + if ($this->container['css_id'] === null) { + $invalidProperties[] = "'css_id' can't be null"; + } if ($this->container['css_style'] === null) { $invalidProperties[] = "'css_style' can't be null"; } if ($this->container['label'] === null) { $invalidProperties[] = "'label' can't be null"; } - if ($this->container['type'] === null) { - $invalidProperties[] = "'type' can't be null"; + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; } if ($this->container['params'] === null) { $invalidProperties[] = "'params' can't be null"; } - if ($this->container['rows'] === null) { - $invalidProperties[] = "'rows' can't be null"; - } if ($this->container['row_meta_data'] === null) { $invalidProperties[] = "'row_meta_data' can't be null"; } - if ($this->container['cells'] === null) { - $invalidProperties[] = "'cells' can't be null"; + if ($this->container['rows'] === null) { + $invalidProperties[] = "'rows' can't be null"; } - if ($this->container['css_class'] === null) { - $invalidProperties[] = "'css_class' can't be null"; + if ($this->container['styles'] === null) { + $invalidProperties[] = "'styles' can't be null"; + } + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; } if ($this->container['w'] === null) { $invalidProperties[] = "'w' can't be null"; } - if ($this->container['css_id'] === null) { - $invalidProperties[] = "'css_id' can't be null"; - } if ($this->container['x'] === null) { $invalidProperties[] = "'x' can't be null"; } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['styles'] === null) { - $invalidProperties[] = "'styles' can't be null"; - } return $invalidProperties; } @@ -413,352 +413,352 @@ public function valid() /** - * Gets css_style + * Gets cells * - * @return string + * @return \HubSpot\Client\Cms\Pages\Model\LayoutSection[] */ - public function getCssStyle() + public function getCells() { - return $this->container['css_style']; + return $this->container['cells']; } /** - * Sets css_style + * Sets cells * - * @param string $css_style css_style + * @param \HubSpot\Client\Cms\Pages\Model\LayoutSection[] $cells cells * * @return self */ - public function setCssStyle($css_style) + public function setCells($cells) { - if (is_null($css_style)) { - throw new \InvalidArgumentException('non-nullable css_style cannot be null'); + if (is_null($cells)) { + throw new \InvalidArgumentException('non-nullable cells cannot be null'); } - $this->container['css_style'] = $css_style; + $this->container['cells'] = $cells; return $this; } /** - * Gets label + * Gets css_class * * @return string */ - public function getLabel() + public function getCssClass() { - return $this->container['label']; + return $this->container['css_class']; } /** - * Sets label + * Sets css_class * - * @param string $label label + * @param string $css_class The CSS class applied to the layout section. * * @return self */ - public function setLabel($label) + public function setCssClass($css_class) { - if (is_null($label)) { - throw new \InvalidArgumentException('non-nullable label cannot be null'); + if (is_null($css_class)) { + throw new \InvalidArgumentException('non-nullable css_class cannot be null'); } - $this->container['label'] = $label; + $this->container['css_class'] = $css_class; return $this; } /** - * Gets type + * Gets css_id * * @return string */ - public function getType() + public function getCssId() { - return $this->container['type']; + return $this->container['css_id']; } /** - * Sets type + * Sets css_id * - * @param string $type type + * @param string $css_id The CSS ID applied to the layout section. * * @return self */ - public function setType($type) + public function setCssId($css_id) { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); + if (is_null($css_id)) { + throw new \InvalidArgumentException('non-nullable css_id cannot be null'); } - $this->container['type'] = $type; + $this->container['css_id'] = $css_id; return $this; } /** - * Gets params + * Gets css_style * - * @return array + * @return string */ - public function getParams() + public function getCssStyle() { - return $this->container['params']; + return $this->container['css_style']; } /** - * Sets params + * Sets css_style * - * @param array $params params + * @param string $css_style Custom CSS styles applied to the layout section. * * @return self */ - public function setParams($params) + public function setCssStyle($css_style) { - if (is_null($params)) { - throw new \InvalidArgumentException('non-nullable params cannot be null'); + if (is_null($css_style)) { + throw new \InvalidArgumentException('non-nullable css_style cannot be null'); } - $this->container['params'] = $params; + $this->container['css_style'] = $css_style; return $this; } /** - * Gets rows + * Gets label * - * @return array[] + * @return string */ - public function getRows() + public function getLabel() { - return $this->container['rows']; + return $this->container['label']; } /** - * Sets rows + * Sets label * - * @param array[] $rows rows + * @param string $label The label for the layout section. * * @return self */ - public function setRows($rows) + public function setLabel($label) { - if (is_null($rows)) { - throw new \InvalidArgumentException('non-nullable rows cannot be null'); + if (is_null($label)) { + throw new \InvalidArgumentException('non-nullable label cannot be null'); } - $this->container['rows'] = $rows; + $this->container['label'] = $label; return $this; } /** - * Gets row_meta_data + * Gets name * - * @return \HubSpot\Client\Cms\Pages\Model\RowMetaData[] + * @return string */ - public function getRowMetaData() + public function getName() { - return $this->container['row_meta_data']; + return $this->container['name']; } /** - * Sets row_meta_data + * Sets name * - * @param \HubSpot\Client\Cms\Pages\Model\RowMetaData[] $row_meta_data row_meta_data + * @param string $name The name assigned to the layout section. * * @return self */ - public function setRowMetaData($row_meta_data) + public function setName($name) { - if (is_null($row_meta_data)) { - throw new \InvalidArgumentException('non-nullable row_meta_data cannot be null'); + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); } - $this->container['row_meta_data'] = $row_meta_data; + $this->container['name'] = $name; return $this; } /** - * Gets cells + * Gets params * - * @return \HubSpot\Client\Cms\Pages\Model\LayoutSection[] + * @return array */ - public function getCells() + public function getParams() { - return $this->container['cells']; + return $this->container['params']; } /** - * Sets cells + * Sets params * - * @param \HubSpot\Client\Cms\Pages\Model\LayoutSection[] $cells cells + * @param array $params Parameters associated with the layout section. * * @return self */ - public function setCells($cells) + public function setParams($params) { - if (is_null($cells)) { - throw new \InvalidArgumentException('non-nullable cells cannot be null'); + if (is_null($params)) { + throw new \InvalidArgumentException('non-nullable params cannot be null'); } - $this->container['cells'] = $cells; + $this->container['params'] = $params; return $this; } /** - * Gets css_class + * Gets row_meta_data * - * @return string + * @return \HubSpot\Client\Cms\Pages\Model\RowMetaData[] */ - public function getCssClass() + public function getRowMetaData() { - return $this->container['css_class']; + return $this->container['row_meta_data']; } /** - * Sets css_class + * Sets row_meta_data * - * @param string $css_class css_class + * @param \HubSpot\Client\Cms\Pages\Model\RowMetaData[] $row_meta_data row_meta_data * * @return self */ - public function setCssClass($css_class) + public function setRowMetaData($row_meta_data) { - if (is_null($css_class)) { - throw new \InvalidArgumentException('non-nullable css_class cannot be null'); + if (is_null($row_meta_data)) { + throw new \InvalidArgumentException('non-nullable row_meta_data cannot be null'); } - $this->container['css_class'] = $css_class; + $this->container['row_meta_data'] = $row_meta_data; return $this; } /** - * Gets w + * Gets rows * - * @return int + * @return array[] */ - public function getW() + public function getRows() { - return $this->container['w']; + return $this->container['rows']; } /** - * Sets w + * Sets rows * - * @param int $w w + * @param array[] $rows rows * * @return self */ - public function setW($w) + public function setRows($rows) { - if (is_null($w)) { - throw new \InvalidArgumentException('non-nullable w cannot be null'); + if (is_null($rows)) { + throw new \InvalidArgumentException('non-nullable rows cannot be null'); } - $this->container['w'] = $w; + $this->container['rows'] = $rows; return $this; } /** - * Gets css_id + * Gets styles * - * @return string + * @return \HubSpot\Client\Cms\Pages\Model\Styles */ - public function getCssId() + public function getStyles() { - return $this->container['css_id']; + return $this->container['styles']; } /** - * Sets css_id + * Sets styles * - * @param string $css_id css_id + * @param \HubSpot\Client\Cms\Pages\Model\Styles $styles styles * * @return self */ - public function setCssId($css_id) + public function setStyles($styles) { - if (is_null($css_id)) { - throw new \InvalidArgumentException('non-nullable css_id cannot be null'); + if (is_null($styles)) { + throw new \InvalidArgumentException('non-nullable styles cannot be null'); } - $this->container['css_id'] = $css_id; + $this->container['styles'] = $styles; return $this; } /** - * Gets x + * Gets type * - * @return int + * @return string */ - public function getX() + public function getType() { - return $this->container['x']; + return $this->container['type']; } /** - * Sets x + * Sets type * - * @param int $x x + * @param string $type The type of the layout section. * * @return self */ - public function setX($x) + public function setType($type) { - if (is_null($x)) { - throw new \InvalidArgumentException('non-nullable x cannot be null'); + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); } - $this->container['x'] = $x; + $this->container['type'] = $type; return $this; } /** - * Gets name + * Gets w * - * @return string + * @return int */ - public function getName() + public function getW() { - return $this->container['name']; + return $this->container['w']; } /** - * Sets name + * Sets w * - * @param string $name name + * @param int $w The width of the layout section. * * @return self */ - public function setName($name) + public function setW($w) { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); + if (is_null($w)) { + throw new \InvalidArgumentException('non-nullable w cannot be null'); } - $this->container['name'] = $name; + $this->container['w'] = $w; return $this; } /** - * Gets styles + * Gets x * - * @return \HubSpot\Client\Cms\Pages\Model\Styles + * @return int */ - public function getStyles() + public function getX() { - return $this->container['styles']; + return $this->container['x']; } /** - * Sets styles + * Sets x * - * @param \HubSpot\Client\Cms\Pages\Model\Styles $styles styles + * @param int $x The x-coordinate position of the layout section. * * @return self */ - public function setStyles($styles) + public function setX($x) { - if (is_null($styles)) { - throw new \InvalidArgumentException('non-nullable styles cannot be null'); + if (is_null($x)) { + throw new \InvalidArgumentException('non-nullable x cannot be null'); } - $this->container['styles'] = $styles; + $this->container['x'] = $x; return $this; } diff --git a/codegen/Cms/Pages/Model/ModelInterface.php b/codegen/Cms/Pages/Model/ModelInterface.php index 955c43a2..ef96a995 100644 --- a/codegen/Cms/Pages/Model/ModelInterface.php +++ b/codegen/Cms/Pages/Model/ModelInterface.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/NextPage.php b/codegen/Cms/Pages/Model/NextPage.php index 87436b03..bdd3a78e 100644 --- a/codegen/Cms/Pages/Model/NextPage.php +++ b/codegen/Cms/Pages/Model/NextPage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'link' => 'string', - 'after' => 'string' + 'after' => 'string', + 'link' => 'string' ]; /** @@ -70,8 +70,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'link' => null, - 'after' => null + 'after' => null, + 'link' => null ]; /** @@ -80,8 +80,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'link' => false, - 'after' => false + 'after' => false, + 'link' => false ]; /** @@ -170,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'link' => 'link', - 'after' => 'after' + 'after' => 'after', + 'link' => 'link' ]; /** @@ -180,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'link' => 'setLink', - 'after' => 'setAfter' + 'after' => 'setAfter', + 'link' => 'setLink' ]; /** @@ -190,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'link' => 'getLink', - 'after' => 'getAfter' + 'after' => 'getAfter', + 'link' => 'getLink' ]; /** @@ -251,8 +251,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('link', $data ?? [], null); $this->setIfExists('after', $data ?? [], null); + $this->setIfExists('link', $data ?? [], null); } /** @@ -301,55 +301,55 @@ public function valid() /** - * Gets link + * Gets after * - * @return string|null + * @return string */ - public function getLink() + public function getAfter() { - return $this->container['link']; + return $this->container['after']; } /** - * Sets link + * Sets after * - * @param string|null $link A URL that can be used to retrieve the next page results. + * @param string $after A paging cursor token for retrieving subsequent pages. * * @return self */ - public function setLink($link) + public function setAfter($after) { - if (is_null($link)) { - throw new \InvalidArgumentException('non-nullable link cannot be null'); + if (is_null($after)) { + throw new \InvalidArgumentException('non-nullable after cannot be null'); } - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } /** - * Gets after + * Gets link * - * @return string + * @return string|null */ - public function getAfter() + public function getLink() { - return $this->container['after']; + return $this->container['link']; } /** - * Sets after + * Sets link * - * @param string $after A paging cursor token for retrieving subsequent pages. + * @param string|null $link A URL that can be used to retrieve the next page results. * * @return self */ - public function setAfter($after) + public function setLink($link) { - if (is_null($after)) { - throw new \InvalidArgumentException('non-nullable after cannot be null'); + if (is_null($link)) { + throw new \InvalidArgumentException('non-nullable link cannot be null'); } - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } diff --git a/codegen/Cms/Pages/Model/Page.php b/codegen/Cms/Pages/Model/Page.php index 1aeb100b..49ab6480 100644 --- a/codegen/Cms/Pages/Model/Page.php +++ b/codegen/Cms/Pages/Model/Page.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,63 +58,63 @@ class Page implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'publish_date' => '\DateTime', - 'language' => 'string', - 'enable_layout_stylesheets' => 'bool', - 'meta_description' => 'string', + 'ab_status' => 'string', + 'ab_test_id' => 'string', + 'archived_at' => '\DateTime', + 'archived_in_dashboard' => 'bool', 'attached_stylesheets' => 'array[]', - 'password' => 'string', - 'publish_immediately' => 'bool', - 'html_title' => 'string', - 'translations' => 'array', - 'id' => 'string', - 'state' => 'string', - 'slug' => 'string', + 'author_name' => 'string', + 'campaign' => 'string', + 'category_id' => 'int', + 'content_group_id' => 'string', + 'content_type_category' => 'string', + 'created' => '\DateTime', 'created_by_id' => 'string', + 'current_state' => 'string', 'currently_published' => 'bool', - 'archived_in_dashboard' => 'bool', - 'created' => '\DateTime', - 'content_type_category' => 'string', - 'mab_experiment_id' => 'string', - 'updated_by_id' => 'string', - 'translated_from_id' => 'string', - 'folder_id' => 'string', - 'widget_containers' => 'array', - 'page_expiry_redirect_id' => 'int', - 'dynamic_page_data_source_type' => 'int', - 'featured_image' => 'string', - 'author_name' => 'string', 'domain' => 'string', - 'name' => 'string', - 'dynamic_page_hub_db_table_id' => 'string', - 'campaign' => 'string', 'dynamic_page_data_source_id' => 'string', + 'dynamic_page_data_source_type' => 'int', + 'dynamic_page_hub_db_table_id' => 'string', 'enable_domain_stylesheets' => 'bool', - 'include_default_custom_css' => 'bool', - 'subcategory' => 'string', - 'layout_sections' => 'array', - 'updated' => '\DateTime', + 'enable_layout_stylesheets' => 'bool', + 'featured_image' => 'string', + 'featured_image_alt_text' => 'string', + 'folder_id' => 'string', 'footer_html' => 'string', - 'widgets' => 'array', 'head_html' => 'string', - 'page_expiry_redirect_url' => 'string', - 'ab_status' => 'string', - 'use_featured_image' => 'bool', - 'ab_test_id' => 'string', - 'featured_image_alt_text' => 'string', - 'content_group_id' => 'string', + 'html_title' => 'string', + 'id' => 'string', + 'include_default_custom_css' => 'bool', + 'language' => 'string', + 'layout_sections' => 'array', + 'link_rel_canonical_url' => 'string', + 'mab_experiment_id' => 'string', + 'meta_description' => 'string', + 'name' => 'string', + 'page_expiry_date' => 'int', 'page_expiry_enabled' => 'bool', - 'template_path' => 'string', - 'url' => 'string', + 'page_expiry_redirect_id' => 'int', + 'page_expiry_redirect_url' => 'string', + 'page_redirected' => 'bool', + 'password' => 'string', 'public_access_rules' => 'object[]', - 'archived_at' => '\DateTime', - 'theme_settings_values' => 'array', - 'page_expiry_date' => 'int', 'public_access_rules_enabled' => 'bool', - 'page_redirected' => 'bool', - 'current_state' => 'string', - 'category_id' => 'int', - 'link_rel_canonical_url' => 'string' + 'publish_date' => '\DateTime', + 'publish_immediately' => 'bool', + 'slug' => 'string', + 'state' => 'string', + 'subcategory' => 'string', + 'template_path' => 'string', + 'theme_settings_values' => 'array', + 'translated_from_id' => 'string', + 'translations' => 'array', + 'updated' => '\DateTime', + 'updated_by_id' => 'string', + 'url' => 'string', + 'use_featured_image' => 'bool', + 'widget_containers' => 'array', + 'widgets' => 'array' ]; /** @@ -125,63 +125,63 @@ class Page implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'publish_date' => 'date-time', - 'language' => null, - 'enable_layout_stylesheets' => null, - 'meta_description' => null, + 'ab_status' => null, + 'ab_test_id' => null, + 'archived_at' => 'date-time', + 'archived_in_dashboard' => null, 'attached_stylesheets' => null, - 'password' => null, - 'publish_immediately' => null, - 'html_title' => null, - 'translations' => null, - 'id' => null, - 'state' => null, - 'slug' => null, + 'author_name' => null, + 'campaign' => null, + 'category_id' => 'int32', + 'content_group_id' => null, + 'content_type_category' => null, + 'created' => 'date-time', 'created_by_id' => null, + 'current_state' => null, 'currently_published' => null, - 'archived_in_dashboard' => null, - 'created' => 'date-time', - 'content_type_category' => null, - 'mab_experiment_id' => null, - 'updated_by_id' => null, - 'translated_from_id' => null, - 'folder_id' => null, - 'widget_containers' => null, - 'page_expiry_redirect_id' => 'int64', - 'dynamic_page_data_source_type' => 'int32', - 'featured_image' => null, - 'author_name' => null, 'domain' => null, - 'name' => null, - 'dynamic_page_hub_db_table_id' => null, - 'campaign' => null, 'dynamic_page_data_source_id' => null, + 'dynamic_page_data_source_type' => 'int32', + 'dynamic_page_hub_db_table_id' => null, 'enable_domain_stylesheets' => null, - 'include_default_custom_css' => null, - 'subcategory' => null, - 'layout_sections' => null, - 'updated' => 'date-time', + 'enable_layout_stylesheets' => null, + 'featured_image' => null, + 'featured_image_alt_text' => null, + 'folder_id' => null, 'footer_html' => null, - 'widgets' => null, 'head_html' => null, - 'page_expiry_redirect_url' => null, - 'ab_status' => null, - 'use_featured_image' => null, - 'ab_test_id' => null, - 'featured_image_alt_text' => null, - 'content_group_id' => null, + 'html_title' => null, + 'id' => null, + 'include_default_custom_css' => null, + 'language' => null, + 'layout_sections' => null, + 'link_rel_canonical_url' => null, + 'mab_experiment_id' => null, + 'meta_description' => null, + 'name' => null, + 'page_expiry_date' => 'int64', 'page_expiry_enabled' => null, - 'template_path' => null, - 'url' => null, + 'page_expiry_redirect_id' => 'int64', + 'page_expiry_redirect_url' => null, + 'page_redirected' => null, + 'password' => null, 'public_access_rules' => null, - 'archived_at' => 'date-time', - 'theme_settings_values' => null, - 'page_expiry_date' => 'int64', 'public_access_rules_enabled' => null, - 'page_redirected' => null, - 'current_state' => null, - 'category_id' => 'int32', - 'link_rel_canonical_url' => null + 'publish_date' => 'date-time', + 'publish_immediately' => null, + 'slug' => null, + 'state' => null, + 'subcategory' => null, + 'template_path' => null, + 'theme_settings_values' => null, + 'translated_from_id' => null, + 'translations' => null, + 'updated' => 'date-time', + 'updated_by_id' => null, + 'url' => null, + 'use_featured_image' => null, + 'widget_containers' => null, + 'widgets' => null ]; /** @@ -190,63 +190,63 @@ class Page implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'publish_date' => false, - 'language' => false, - 'enable_layout_stylesheets' => false, - 'meta_description' => false, + 'ab_status' => false, + 'ab_test_id' => false, + 'archived_at' => false, + 'archived_in_dashboard' => false, 'attached_stylesheets' => false, - 'password' => false, - 'publish_immediately' => false, - 'html_title' => false, - 'translations' => false, - 'id' => false, - 'state' => false, - 'slug' => false, + 'author_name' => false, + 'campaign' => false, + 'category_id' => false, + 'content_group_id' => false, + 'content_type_category' => false, + 'created' => false, 'created_by_id' => false, + 'current_state' => false, 'currently_published' => false, - 'archived_in_dashboard' => false, - 'created' => false, - 'content_type_category' => false, - 'mab_experiment_id' => false, - 'updated_by_id' => false, - 'translated_from_id' => false, - 'folder_id' => false, - 'widget_containers' => false, - 'page_expiry_redirect_id' => false, - 'dynamic_page_data_source_type' => false, - 'featured_image' => false, - 'author_name' => false, 'domain' => false, - 'name' => false, - 'dynamic_page_hub_db_table_id' => false, - 'campaign' => false, 'dynamic_page_data_source_id' => false, + 'dynamic_page_data_source_type' => false, + 'dynamic_page_hub_db_table_id' => false, 'enable_domain_stylesheets' => false, - 'include_default_custom_css' => false, - 'subcategory' => false, - 'layout_sections' => false, - 'updated' => false, + 'enable_layout_stylesheets' => false, + 'featured_image' => false, + 'featured_image_alt_text' => false, + 'folder_id' => false, 'footer_html' => false, - 'widgets' => false, 'head_html' => false, - 'page_expiry_redirect_url' => false, - 'ab_status' => false, - 'use_featured_image' => false, - 'ab_test_id' => false, - 'featured_image_alt_text' => false, - 'content_group_id' => false, + 'html_title' => false, + 'id' => false, + 'include_default_custom_css' => false, + 'language' => false, + 'layout_sections' => false, + 'link_rel_canonical_url' => false, + 'mab_experiment_id' => false, + 'meta_description' => false, + 'name' => false, + 'page_expiry_date' => false, 'page_expiry_enabled' => false, - 'template_path' => false, - 'url' => false, + 'page_expiry_redirect_id' => false, + 'page_expiry_redirect_url' => false, + 'page_redirected' => false, + 'password' => false, 'public_access_rules' => false, - 'archived_at' => false, - 'theme_settings_values' => false, - 'page_expiry_date' => false, 'public_access_rules_enabled' => false, - 'page_redirected' => false, - 'current_state' => false, - 'category_id' => false, - 'link_rel_canonical_url' => false + 'publish_date' => false, + 'publish_immediately' => false, + 'slug' => false, + 'state' => false, + 'subcategory' => false, + 'template_path' => false, + 'theme_settings_values' => false, + 'translated_from_id' => false, + 'translations' => false, + 'updated' => false, + 'updated_by_id' => false, + 'url' => false, + 'use_featured_image' => false, + 'widget_containers' => false, + 'widgets' => false ]; /** @@ -335,63 +335,63 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'publish_date' => 'publishDate', - 'language' => 'language', - 'enable_layout_stylesheets' => 'enableLayoutStylesheets', - 'meta_description' => 'metaDescription', + 'ab_status' => 'abStatus', + 'ab_test_id' => 'abTestId', + 'archived_at' => 'archivedAt', + 'archived_in_dashboard' => 'archivedInDashboard', 'attached_stylesheets' => 'attachedStylesheets', - 'password' => 'password', - 'publish_immediately' => 'publishImmediately', - 'html_title' => 'htmlTitle', - 'translations' => 'translations', - 'id' => 'id', - 'state' => 'state', - 'slug' => 'slug', + 'author_name' => 'authorName', + 'campaign' => 'campaign', + 'category_id' => 'categoryId', + 'content_group_id' => 'contentGroupId', + 'content_type_category' => 'contentTypeCategory', + 'created' => 'created', 'created_by_id' => 'createdById', + 'current_state' => 'currentState', 'currently_published' => 'currentlyPublished', - 'archived_in_dashboard' => 'archivedInDashboard', - 'created' => 'created', - 'content_type_category' => 'contentTypeCategory', - 'mab_experiment_id' => 'mabExperimentId', - 'updated_by_id' => 'updatedById', - 'translated_from_id' => 'translatedFromId', - 'folder_id' => 'folderId', - 'widget_containers' => 'widgetContainers', - 'page_expiry_redirect_id' => 'pageExpiryRedirectId', - 'dynamic_page_data_source_type' => 'dynamicPageDataSourceType', - 'featured_image' => 'featuredImage', - 'author_name' => 'authorName', 'domain' => 'domain', - 'name' => 'name', - 'dynamic_page_hub_db_table_id' => 'dynamicPageHubDbTableId', - 'campaign' => 'campaign', 'dynamic_page_data_source_id' => 'dynamicPageDataSourceId', + 'dynamic_page_data_source_type' => 'dynamicPageDataSourceType', + 'dynamic_page_hub_db_table_id' => 'dynamicPageHubDbTableId', 'enable_domain_stylesheets' => 'enableDomainStylesheets', - 'include_default_custom_css' => 'includeDefaultCustomCss', - 'subcategory' => 'subcategory', - 'layout_sections' => 'layoutSections', - 'updated' => 'updated', + 'enable_layout_stylesheets' => 'enableLayoutStylesheets', + 'featured_image' => 'featuredImage', + 'featured_image_alt_text' => 'featuredImageAltText', + 'folder_id' => 'folderId', 'footer_html' => 'footerHtml', - 'widgets' => 'widgets', 'head_html' => 'headHtml', - 'page_expiry_redirect_url' => 'pageExpiryRedirectUrl', - 'ab_status' => 'abStatus', - 'use_featured_image' => 'useFeaturedImage', - 'ab_test_id' => 'abTestId', - 'featured_image_alt_text' => 'featuredImageAltText', - 'content_group_id' => 'contentGroupId', - 'page_expiry_enabled' => 'pageExpiryEnabled', - 'template_path' => 'templatePath', - 'url' => 'url', - 'public_access_rules' => 'publicAccessRules', - 'archived_at' => 'archivedAt', - 'theme_settings_values' => 'themeSettingsValues', + 'html_title' => 'htmlTitle', + 'id' => 'id', + 'include_default_custom_css' => 'includeDefaultCustomCss', + 'language' => 'language', + 'layout_sections' => 'layoutSections', + 'link_rel_canonical_url' => 'linkRelCanonicalUrl', + 'mab_experiment_id' => 'mabExperimentId', + 'meta_description' => 'metaDescription', + 'name' => 'name', 'page_expiry_date' => 'pageExpiryDate', - 'public_access_rules_enabled' => 'publicAccessRulesEnabled', + 'page_expiry_enabled' => 'pageExpiryEnabled', + 'page_expiry_redirect_id' => 'pageExpiryRedirectId', + 'page_expiry_redirect_url' => 'pageExpiryRedirectUrl', 'page_redirected' => 'pageRedirected', - 'current_state' => 'currentState', - 'category_id' => 'categoryId', - 'link_rel_canonical_url' => 'linkRelCanonicalUrl' + 'password' => 'password', + 'public_access_rules' => 'publicAccessRules', + 'public_access_rules_enabled' => 'publicAccessRulesEnabled', + 'publish_date' => 'publishDate', + 'publish_immediately' => 'publishImmediately', + 'slug' => 'slug', + 'state' => 'state', + 'subcategory' => 'subcategory', + 'template_path' => 'templatePath', + 'theme_settings_values' => 'themeSettingsValues', + 'translated_from_id' => 'translatedFromId', + 'translations' => 'translations', + 'updated' => 'updated', + 'updated_by_id' => 'updatedById', + 'url' => 'url', + 'use_featured_image' => 'useFeaturedImage', + 'widget_containers' => 'widgetContainers', + 'widgets' => 'widgets' ]; /** @@ -400,63 +400,63 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'publish_date' => 'setPublishDate', - 'language' => 'setLanguage', - 'enable_layout_stylesheets' => 'setEnableLayoutStylesheets', - 'meta_description' => 'setMetaDescription', + 'ab_status' => 'setAbStatus', + 'ab_test_id' => 'setAbTestId', + 'archived_at' => 'setArchivedAt', + 'archived_in_dashboard' => 'setArchivedInDashboard', 'attached_stylesheets' => 'setAttachedStylesheets', - 'password' => 'setPassword', - 'publish_immediately' => 'setPublishImmediately', - 'html_title' => 'setHtmlTitle', - 'translations' => 'setTranslations', - 'id' => 'setId', - 'state' => 'setState', - 'slug' => 'setSlug', + 'author_name' => 'setAuthorName', + 'campaign' => 'setCampaign', + 'category_id' => 'setCategoryId', + 'content_group_id' => 'setContentGroupId', + 'content_type_category' => 'setContentTypeCategory', + 'created' => 'setCreated', 'created_by_id' => 'setCreatedById', + 'current_state' => 'setCurrentState', 'currently_published' => 'setCurrentlyPublished', - 'archived_in_dashboard' => 'setArchivedInDashboard', - 'created' => 'setCreated', - 'content_type_category' => 'setContentTypeCategory', - 'mab_experiment_id' => 'setMabExperimentId', - 'updated_by_id' => 'setUpdatedById', - 'translated_from_id' => 'setTranslatedFromId', - 'folder_id' => 'setFolderId', - 'widget_containers' => 'setWidgetContainers', - 'page_expiry_redirect_id' => 'setPageExpiryRedirectId', - 'dynamic_page_data_source_type' => 'setDynamicPageDataSourceType', - 'featured_image' => 'setFeaturedImage', - 'author_name' => 'setAuthorName', 'domain' => 'setDomain', - 'name' => 'setName', - 'dynamic_page_hub_db_table_id' => 'setDynamicPageHubDbTableId', - 'campaign' => 'setCampaign', 'dynamic_page_data_source_id' => 'setDynamicPageDataSourceId', + 'dynamic_page_data_source_type' => 'setDynamicPageDataSourceType', + 'dynamic_page_hub_db_table_id' => 'setDynamicPageHubDbTableId', 'enable_domain_stylesheets' => 'setEnableDomainStylesheets', - 'include_default_custom_css' => 'setIncludeDefaultCustomCss', - 'subcategory' => 'setSubcategory', - 'layout_sections' => 'setLayoutSections', - 'updated' => 'setUpdated', + 'enable_layout_stylesheets' => 'setEnableLayoutStylesheets', + 'featured_image' => 'setFeaturedImage', + 'featured_image_alt_text' => 'setFeaturedImageAltText', + 'folder_id' => 'setFolderId', 'footer_html' => 'setFooterHtml', - 'widgets' => 'setWidgets', 'head_html' => 'setHeadHtml', - 'page_expiry_redirect_url' => 'setPageExpiryRedirectUrl', - 'ab_status' => 'setAbStatus', - 'use_featured_image' => 'setUseFeaturedImage', - 'ab_test_id' => 'setAbTestId', - 'featured_image_alt_text' => 'setFeaturedImageAltText', - 'content_group_id' => 'setContentGroupId', + 'html_title' => 'setHtmlTitle', + 'id' => 'setId', + 'include_default_custom_css' => 'setIncludeDefaultCustomCss', + 'language' => 'setLanguage', + 'layout_sections' => 'setLayoutSections', + 'link_rel_canonical_url' => 'setLinkRelCanonicalUrl', + 'mab_experiment_id' => 'setMabExperimentId', + 'meta_description' => 'setMetaDescription', + 'name' => 'setName', + 'page_expiry_date' => 'setPageExpiryDate', 'page_expiry_enabled' => 'setPageExpiryEnabled', - 'template_path' => 'setTemplatePath', - 'url' => 'setUrl', + 'page_expiry_redirect_id' => 'setPageExpiryRedirectId', + 'page_expiry_redirect_url' => 'setPageExpiryRedirectUrl', + 'page_redirected' => 'setPageRedirected', + 'password' => 'setPassword', 'public_access_rules' => 'setPublicAccessRules', - 'archived_at' => 'setArchivedAt', - 'theme_settings_values' => 'setThemeSettingsValues', - 'page_expiry_date' => 'setPageExpiryDate', 'public_access_rules_enabled' => 'setPublicAccessRulesEnabled', - 'page_redirected' => 'setPageRedirected', - 'current_state' => 'setCurrentState', - 'category_id' => 'setCategoryId', - 'link_rel_canonical_url' => 'setLinkRelCanonicalUrl' + 'publish_date' => 'setPublishDate', + 'publish_immediately' => 'setPublishImmediately', + 'slug' => 'setSlug', + 'state' => 'setState', + 'subcategory' => 'setSubcategory', + 'template_path' => 'setTemplatePath', + 'theme_settings_values' => 'setThemeSettingsValues', + 'translated_from_id' => 'setTranslatedFromId', + 'translations' => 'setTranslations', + 'updated' => 'setUpdated', + 'updated_by_id' => 'setUpdatedById', + 'url' => 'setUrl', + 'use_featured_image' => 'setUseFeaturedImage', + 'widget_containers' => 'setWidgetContainers', + 'widgets' => 'setWidgets' ]; /** @@ -465,63 +465,63 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'publish_date' => 'getPublishDate', - 'language' => 'getLanguage', - 'enable_layout_stylesheets' => 'getEnableLayoutStylesheets', - 'meta_description' => 'getMetaDescription', + 'ab_status' => 'getAbStatus', + 'ab_test_id' => 'getAbTestId', + 'archived_at' => 'getArchivedAt', + 'archived_in_dashboard' => 'getArchivedInDashboard', 'attached_stylesheets' => 'getAttachedStylesheets', - 'password' => 'getPassword', - 'publish_immediately' => 'getPublishImmediately', - 'html_title' => 'getHtmlTitle', - 'translations' => 'getTranslations', - 'id' => 'getId', - 'state' => 'getState', - 'slug' => 'getSlug', + 'author_name' => 'getAuthorName', + 'campaign' => 'getCampaign', + 'category_id' => 'getCategoryId', + 'content_group_id' => 'getContentGroupId', + 'content_type_category' => 'getContentTypeCategory', + 'created' => 'getCreated', 'created_by_id' => 'getCreatedById', + 'current_state' => 'getCurrentState', 'currently_published' => 'getCurrentlyPublished', - 'archived_in_dashboard' => 'getArchivedInDashboard', - 'created' => 'getCreated', - 'content_type_category' => 'getContentTypeCategory', - 'mab_experiment_id' => 'getMabExperimentId', - 'updated_by_id' => 'getUpdatedById', - 'translated_from_id' => 'getTranslatedFromId', - 'folder_id' => 'getFolderId', - 'widget_containers' => 'getWidgetContainers', - 'page_expiry_redirect_id' => 'getPageExpiryRedirectId', - 'dynamic_page_data_source_type' => 'getDynamicPageDataSourceType', - 'featured_image' => 'getFeaturedImage', - 'author_name' => 'getAuthorName', 'domain' => 'getDomain', - 'name' => 'getName', - 'dynamic_page_hub_db_table_id' => 'getDynamicPageHubDbTableId', - 'campaign' => 'getCampaign', 'dynamic_page_data_source_id' => 'getDynamicPageDataSourceId', + 'dynamic_page_data_source_type' => 'getDynamicPageDataSourceType', + 'dynamic_page_hub_db_table_id' => 'getDynamicPageHubDbTableId', 'enable_domain_stylesheets' => 'getEnableDomainStylesheets', - 'include_default_custom_css' => 'getIncludeDefaultCustomCss', - 'subcategory' => 'getSubcategory', - 'layout_sections' => 'getLayoutSections', - 'updated' => 'getUpdated', + 'enable_layout_stylesheets' => 'getEnableLayoutStylesheets', + 'featured_image' => 'getFeaturedImage', + 'featured_image_alt_text' => 'getFeaturedImageAltText', + 'folder_id' => 'getFolderId', 'footer_html' => 'getFooterHtml', - 'widgets' => 'getWidgets', 'head_html' => 'getHeadHtml', - 'page_expiry_redirect_url' => 'getPageExpiryRedirectUrl', - 'ab_status' => 'getAbStatus', - 'use_featured_image' => 'getUseFeaturedImage', - 'ab_test_id' => 'getAbTestId', - 'featured_image_alt_text' => 'getFeaturedImageAltText', - 'content_group_id' => 'getContentGroupId', + 'html_title' => 'getHtmlTitle', + 'id' => 'getId', + 'include_default_custom_css' => 'getIncludeDefaultCustomCss', + 'language' => 'getLanguage', + 'layout_sections' => 'getLayoutSections', + 'link_rel_canonical_url' => 'getLinkRelCanonicalUrl', + 'mab_experiment_id' => 'getMabExperimentId', + 'meta_description' => 'getMetaDescription', + 'name' => 'getName', + 'page_expiry_date' => 'getPageExpiryDate', 'page_expiry_enabled' => 'getPageExpiryEnabled', - 'template_path' => 'getTemplatePath', - 'url' => 'getUrl', + 'page_expiry_redirect_id' => 'getPageExpiryRedirectId', + 'page_expiry_redirect_url' => 'getPageExpiryRedirectUrl', + 'page_redirected' => 'getPageRedirected', + 'password' => 'getPassword', 'public_access_rules' => 'getPublicAccessRules', - 'archived_at' => 'getArchivedAt', - 'theme_settings_values' => 'getThemeSettingsValues', - 'page_expiry_date' => 'getPageExpiryDate', 'public_access_rules_enabled' => 'getPublicAccessRulesEnabled', - 'page_redirected' => 'getPageRedirected', - 'current_state' => 'getCurrentState', - 'category_id' => 'getCategoryId', - 'link_rel_canonical_url' => 'getLinkRelCanonicalUrl' + 'publish_date' => 'getPublishDate', + 'publish_immediately' => 'getPublishImmediately', + 'slug' => 'getSlug', + 'state' => 'getState', + 'subcategory' => 'getSubcategory', + 'template_path' => 'getTemplatePath', + 'theme_settings_values' => 'getThemeSettingsValues', + 'translated_from_id' => 'getTranslatedFromId', + 'translations' => 'getTranslations', + 'updated' => 'getUpdated', + 'updated_by_id' => 'getUpdatedById', + 'url' => 'getUrl', + 'use_featured_image' => 'getUseFeaturedImage', + 'widget_containers' => 'getWidgetContainers', + 'widgets' => 'getWidgets' ]; /** @@ -565,6 +565,58 @@ public function getModelName() return self::$openAPIModelName; } + public const AB_STATUS_AUTOMATED_LOSER_VARIANT = 'automated_loser_variant'; + public const AB_STATUS_AUTOMATED_MASTER = 'automated_master'; + public const AB_STATUS_AUTOMATED_VARIANT = 'automated_variant'; + public const AB_STATUS_LOSER_VARIANT = 'loser_variant'; + public const AB_STATUS_MAB_MASTER = 'mab_master'; + public const AB_STATUS_MAB_VARIANT = 'mab_variant'; + public const AB_STATUS_MASTER = 'master'; + public const AB_STATUS_VARIANT = 'variant'; + public const CONTENT_TYPE_CATEGORY__0 = '0'; + public const CONTENT_TYPE_CATEGORY__1 = '1'; + public const CONTENT_TYPE_CATEGORY__10 = '10'; + public const CONTENT_TYPE_CATEGORY__11 = '11'; + public const CONTENT_TYPE_CATEGORY__12 = '12'; + public const CONTENT_TYPE_CATEGORY__2 = '2'; + public const CONTENT_TYPE_CATEGORY__3 = '3'; + public const CONTENT_TYPE_CATEGORY__4 = '4'; + public const CONTENT_TYPE_CATEGORY__5 = '5'; + public const CONTENT_TYPE_CATEGORY__6 = '6'; + public const CONTENT_TYPE_CATEGORY__7 = '7'; + public const CONTENT_TYPE_CATEGORY__8 = '8'; + public const CONTENT_TYPE_CATEGORY__9 = '9'; + public const CURRENT_STATE_AUTOMATED = 'AUTOMATED'; + public const CURRENT_STATE_AUTOMATED_AB = 'AUTOMATED_AB'; + public const CURRENT_STATE_AUTOMATED_AB_VARIANT = 'AUTOMATED_AB_VARIANT'; + public const CURRENT_STATE_AUTOMATED_DRAFT = 'AUTOMATED_DRAFT'; + public const CURRENT_STATE_AUTOMATED_DRAFT_AB = 'AUTOMATED_DRAFT_AB'; + public const CURRENT_STATE_AUTOMATED_DRAFT_ABVARIANT = 'AUTOMATED_DRAFT_ABVARIANT'; + public const CURRENT_STATE_AUTOMATED_FOR_FORM = 'AUTOMATED_FOR_FORM'; + public const CURRENT_STATE_AUTOMATED_FOR_FORM_BUFFER = 'AUTOMATED_FOR_FORM_BUFFER'; + public const CURRENT_STATE_AUTOMATED_FOR_FORM_DRAFT = 'AUTOMATED_FOR_FORM_DRAFT'; + public const CURRENT_STATE_AUTOMATED_FOR_FORM_LEGACY = 'AUTOMATED_FOR_FORM_LEGACY'; + public const CURRENT_STATE_AUTOMATED_LOSER_ABVARIANT = 'AUTOMATED_LOSER_ABVARIANT'; + public const CURRENT_STATE_AUTOMATED_SENDING = 'AUTOMATED_SENDING'; + public const CURRENT_STATE_BLOG_EMAIL_DRAFT = 'BLOG_EMAIL_DRAFT'; + public const CURRENT_STATE_BLOG_EMAIL_PUBLISHED = 'BLOG_EMAIL_PUBLISHED'; + public const CURRENT_STATE_DRAFT = 'DRAFT'; + public const CURRENT_STATE_DRAFT_AB = 'DRAFT_AB'; + public const CURRENT_STATE_DRAFT_AB_VARIANT = 'DRAFT_AB_VARIANT'; + public const CURRENT_STATE_ERROR = 'ERROR'; + public const CURRENT_STATE_LOSER_AB_VARIANT = 'LOSER_AB_VARIANT'; + public const CURRENT_STATE_PAGE_STUB = 'PAGE_STUB'; + public const CURRENT_STATE_PRE_PROCESSING = 'PRE_PROCESSING'; + public const CURRENT_STATE_PROCESSING = 'PROCESSING'; + public const CURRENT_STATE_PUBLISHED = 'PUBLISHED'; + public const CURRENT_STATE_PUBLISHED_AB = 'PUBLISHED_AB'; + public const CURRENT_STATE_PUBLISHED_AB_VARIANT = 'PUBLISHED_AB_VARIANT'; + public const CURRENT_STATE_PUBLISHED_OR_SCHEDULED = 'PUBLISHED_OR_SCHEDULED'; + public const CURRENT_STATE_RSS_TO_EMAIL_DRAFT = 'RSS_TO_EMAIL_DRAFT'; + public const CURRENT_STATE_RSS_TO_EMAIL_PUBLISHED = 'RSS_TO_EMAIL_PUBLISHED'; + public const CURRENT_STATE_SCHEDULED = 'SCHEDULED'; + public const CURRENT_STATE_SCHEDULED_AB = 'SCHEDULED_AB'; + public const CURRENT_STATE_SCHEDULED_OR_PUBLISHED = 'SCHEDULED_OR_PUBLISHED'; public const LANGUAGE_AF = 'af'; public const LANGUAGE_AF_NA = 'af-na'; public const LANGUAGE_AF_ZA = 'af-za'; @@ -938,6 +990,7 @@ public function getModelName() public const LANGUAGE_HAW = 'haw'; public const LANGUAGE_HAW_US = 'haw-us'; public const LANGUAGE_HE = 'he'; + public const LANGUAGE_HE_IL = 'he-il'; public const LANGUAGE_HI = 'hi'; public const LANGUAGE_HI_IN = 'hi-in'; public const LANGUAGE_HR = 'hr'; @@ -952,11 +1005,11 @@ public function getModelName() public const LANGUAGE_IA = 'ia'; public const LANGUAGE_IA_001 = 'ia-001'; public const LANGUAGE_ID = 'id'; + public const LANGUAGE_ID_ID = 'id-id'; public const LANGUAGE_IG = 'ig'; public const LANGUAGE_IG_NG = 'ig-ng'; public const LANGUAGE_II = 'ii'; public const LANGUAGE_II_CN = 'ii-cn'; - public const LANGUAGE_ID_ID = 'id-id'; public const LANGUAGE_IS = 'is'; public const LANGUAGE_IS_IS = 'is-is'; public const LANGUAGE_IT = 'it'; @@ -964,13 +1017,10 @@ public function getModelName() public const LANGUAGE_IT_IT = 'it-it'; public const LANGUAGE_IT_SM = 'it-sm'; public const LANGUAGE_IT_VA = 'it-va'; - public const LANGUAGE_HE_IL = 'he-il'; public const LANGUAGE_JA = 'ja'; public const LANGUAGE_JA_JP = 'ja-jp'; public const LANGUAGE_JGO = 'jgo'; public const LANGUAGE_JGO_CM = 'jgo-cm'; - public const LANGUAGE_YI = 'yi'; - public const LANGUAGE_YI_001 = 'yi-001'; public const LANGUAGE_JMC = 'jmc'; public const LANGUAGE_JMC_TZ = 'jmc-tz'; public const LANGUAGE_JV = 'jv'; @@ -1014,10 +1064,10 @@ public function getModelName() public const LANGUAGE_KSF_CM = 'ksf-cm'; public const LANGUAGE_KSH = 'ksh'; public const LANGUAGE_KSH_DE = 'ksh-de'; - public const LANGUAGE_KW = 'kw'; - public const LANGUAGE_KW_GB = 'kw-gb'; public const LANGUAGE_KU = 'ku'; public const LANGUAGE_KU_TR = 'ku-tr'; + public const LANGUAGE_KW = 'kw'; + public const LANGUAGE_KW_GB = 'kw-gb'; public const LANGUAGE_KY = 'ky'; public const LANGUAGE_KY_KG = 'ky-kg'; public const LANGUAGE_LAG = 'lag'; @@ -1104,8 +1154,8 @@ public function getModelName() public const LANGUAGE_NL = 'nl'; public const LANGUAGE_NL_AW = 'nl-aw'; public const LANGUAGE_NL_BE = 'nl-be'; - public const LANGUAGE_NL_CH = 'nl-ch'; public const LANGUAGE_NL_BQ = 'nl-bq'; + public const LANGUAGE_NL_CH = 'nl-ch'; public const LANGUAGE_NL_CW = 'nl-cw'; public const LANGUAGE_NL_LU = 'nl-lu'; public const LANGUAGE_NL_NL = 'nl-nl'; @@ -1301,6 +1351,8 @@ public function getModelName() public const LANGUAGE_XOG_UG = 'xog-ug'; public const LANGUAGE_YAV = 'yav'; public const LANGUAGE_YAV_CM = 'yav-cm'; + public const LANGUAGE_YI = 'yi'; + public const LANGUAGE_YI_001 = 'yi-001'; public const LANGUAGE_YO = 'yo'; public const LANGUAGE_YO_BJ = 'yo-bj'; public const LANGUAGE_YO_NG = 'yo-ng'; @@ -1311,66 +1363,99 @@ public function getModelName() public const LANGUAGE_ZGH_MA = 'zgh-ma'; public const LANGUAGE_ZH = 'zh'; public const LANGUAGE_ZH_CN = 'zh-cn'; + public const LANGUAGE_ZH_HANS = 'zh-hans'; + public const LANGUAGE_ZH_HANT = 'zh-hant'; public const LANGUAGE_ZH_HK = 'zh-hk'; public const LANGUAGE_ZH_MO = 'zh-mo'; public const LANGUAGE_ZH_SG = 'zh-sg'; public const LANGUAGE_ZH_TW = 'zh-tw'; - public const LANGUAGE_ZH_HANS = 'zh-hans'; - public const LANGUAGE_ZH_HANT = 'zh-hant'; public const LANGUAGE_ZU = 'zu'; public const LANGUAGE_ZU_ZA = 'zu-za'; - public const CONTENT_TYPE_CATEGORY__0 = '0'; - public const CONTENT_TYPE_CATEGORY__1 = '1'; - public const CONTENT_TYPE_CATEGORY__2 = '2'; - public const CONTENT_TYPE_CATEGORY__3 = '3'; - public const CONTENT_TYPE_CATEGORY__4 = '4'; - public const CONTENT_TYPE_CATEGORY__5 = '5'; - public const CONTENT_TYPE_CATEGORY__6 = '6'; - public const CONTENT_TYPE_CATEGORY__7 = '7'; - public const CONTENT_TYPE_CATEGORY__8 = '8'; - public const CONTENT_TYPE_CATEGORY__9 = '9'; - public const CONTENT_TYPE_CATEGORY__10 = '10'; - public const CONTENT_TYPE_CATEGORY__11 = '11'; - public const CONTENT_TYPE_CATEGORY__12 = '12'; - public const AB_STATUS_MASTER = 'master'; - public const AB_STATUS_VARIANT = 'variant'; - public const AB_STATUS_LOSER_VARIANT = 'loser_variant'; - public const AB_STATUS_MAB_MASTER = 'mab_master'; - public const AB_STATUS_MAB_VARIANT = 'mab_variant'; - public const AB_STATUS_AUTOMATED_MASTER = 'automated_master'; - public const AB_STATUS_AUTOMATED_VARIANT = 'automated_variant'; - public const AB_STATUS_AUTOMATED_LOSER_VARIANT = 'automated_loser_variant'; - public const CURRENT_STATE_AUTOMATED = 'AUTOMATED'; - public const CURRENT_STATE_AUTOMATED_DRAFT = 'AUTOMATED_DRAFT'; - public const CURRENT_STATE_AUTOMATED_SENDING = 'AUTOMATED_SENDING'; - public const CURRENT_STATE_AUTOMATED_FOR_FORM = 'AUTOMATED_FOR_FORM'; - public const CURRENT_STATE_AUTOMATED_FOR_FORM_BUFFER = 'AUTOMATED_FOR_FORM_BUFFER'; - public const CURRENT_STATE_AUTOMATED_FOR_FORM_DRAFT = 'AUTOMATED_FOR_FORM_DRAFT'; - public const CURRENT_STATE_AUTOMATED_FOR_FORM_LEGACY = 'AUTOMATED_FOR_FORM_LEGACY'; - public const CURRENT_STATE_BLOG_EMAIL_DRAFT = 'BLOG_EMAIL_DRAFT'; - public const CURRENT_STATE_BLOG_EMAIL_PUBLISHED = 'BLOG_EMAIL_PUBLISHED'; - public const CURRENT_STATE_DRAFT = 'DRAFT'; - public const CURRENT_STATE_DRAFT_AB = 'DRAFT_AB'; - public const CURRENT_STATE_DRAFT_AB_VARIANT = 'DRAFT_AB_VARIANT'; - public const CURRENT_STATE_ERROR = 'ERROR'; - public const CURRENT_STATE_LOSER_AB_VARIANT = 'LOSER_AB_VARIANT'; - public const CURRENT_STATE_PAGE_STUB = 'PAGE_STUB'; - public const CURRENT_STATE_PRE_PROCESSING = 'PRE_PROCESSING'; - public const CURRENT_STATE_PROCESSING = 'PROCESSING'; - public const CURRENT_STATE_PUBLISHED = 'PUBLISHED'; - public const CURRENT_STATE_PUBLISHED_AB = 'PUBLISHED_AB'; - public const CURRENT_STATE_PUBLISHED_AB_VARIANT = 'PUBLISHED_AB_VARIANT'; - public const CURRENT_STATE_PUBLISHED_OR_SCHEDULED = 'PUBLISHED_OR_SCHEDULED'; - public const CURRENT_STATE_RSS_TO_EMAIL_DRAFT = 'RSS_TO_EMAIL_DRAFT'; - public const CURRENT_STATE_RSS_TO_EMAIL_PUBLISHED = 'RSS_TO_EMAIL_PUBLISHED'; - public const CURRENT_STATE_SCHEDULED = 'SCHEDULED'; - public const CURRENT_STATE_SCHEDULED_AB = 'SCHEDULED_AB'; - public const CURRENT_STATE_SCHEDULED_OR_PUBLISHED = 'SCHEDULED_OR_PUBLISHED'; - public const CURRENT_STATE_AUTOMATED_AB = 'AUTOMATED_AB'; - public const CURRENT_STATE_AUTOMATED_AB_VARIANT = 'AUTOMATED_AB_VARIANT'; - public const CURRENT_STATE_AUTOMATED_DRAFT_AB = 'AUTOMATED_DRAFT_AB'; - public const CURRENT_STATE_AUTOMATED_DRAFT_ABVARIANT = 'AUTOMATED_DRAFT_ABVARIANT'; - public const CURRENT_STATE_AUTOMATED_LOSER_ABVARIANT = 'AUTOMATED_LOSER_ABVARIANT'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAbStatusAllowableValues() + { + return [ + self::AB_STATUS_AUTOMATED_LOSER_VARIANT, + self::AB_STATUS_AUTOMATED_MASTER, + self::AB_STATUS_AUTOMATED_VARIANT, + self::AB_STATUS_LOSER_VARIANT, + self::AB_STATUS_MAB_MASTER, + self::AB_STATUS_MAB_VARIANT, + self::AB_STATUS_MASTER, + self::AB_STATUS_VARIANT, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getContentTypeCategoryAllowableValues() + { + return [ + self::CONTENT_TYPE_CATEGORY__0, + self::CONTENT_TYPE_CATEGORY__1, + self::CONTENT_TYPE_CATEGORY__10, + self::CONTENT_TYPE_CATEGORY__11, + self::CONTENT_TYPE_CATEGORY__12, + self::CONTENT_TYPE_CATEGORY__2, + self::CONTENT_TYPE_CATEGORY__3, + self::CONTENT_TYPE_CATEGORY__4, + self::CONTENT_TYPE_CATEGORY__5, + self::CONTENT_TYPE_CATEGORY__6, + self::CONTENT_TYPE_CATEGORY__7, + self::CONTENT_TYPE_CATEGORY__8, + self::CONTENT_TYPE_CATEGORY__9, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getCurrentStateAllowableValues() + { + return [ + self::CURRENT_STATE_AUTOMATED, + self::CURRENT_STATE_AUTOMATED_AB, + self::CURRENT_STATE_AUTOMATED_AB_VARIANT, + self::CURRENT_STATE_AUTOMATED_DRAFT, + self::CURRENT_STATE_AUTOMATED_DRAFT_AB, + self::CURRENT_STATE_AUTOMATED_DRAFT_ABVARIANT, + self::CURRENT_STATE_AUTOMATED_FOR_FORM, + self::CURRENT_STATE_AUTOMATED_FOR_FORM_BUFFER, + self::CURRENT_STATE_AUTOMATED_FOR_FORM_DRAFT, + self::CURRENT_STATE_AUTOMATED_FOR_FORM_LEGACY, + self::CURRENT_STATE_AUTOMATED_LOSER_ABVARIANT, + self::CURRENT_STATE_AUTOMATED_SENDING, + self::CURRENT_STATE_BLOG_EMAIL_DRAFT, + self::CURRENT_STATE_BLOG_EMAIL_PUBLISHED, + self::CURRENT_STATE_DRAFT, + self::CURRENT_STATE_DRAFT_AB, + self::CURRENT_STATE_DRAFT_AB_VARIANT, + self::CURRENT_STATE_ERROR, + self::CURRENT_STATE_LOSER_AB_VARIANT, + self::CURRENT_STATE_PAGE_STUB, + self::CURRENT_STATE_PRE_PROCESSING, + self::CURRENT_STATE_PROCESSING, + self::CURRENT_STATE_PUBLISHED, + self::CURRENT_STATE_PUBLISHED_AB, + self::CURRENT_STATE_PUBLISHED_AB_VARIANT, + self::CURRENT_STATE_PUBLISHED_OR_SCHEDULED, + self::CURRENT_STATE_RSS_TO_EMAIL_DRAFT, + self::CURRENT_STATE_RSS_TO_EMAIL_PUBLISHED, + self::CURRENT_STATE_SCHEDULED, + self::CURRENT_STATE_SCHEDULED_AB, + self::CURRENT_STATE_SCHEDULED_OR_PUBLISHED, + ]; + } /** * Gets allowable values of the enum @@ -1753,6 +1838,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_HAW, self::LANGUAGE_HAW_US, self::LANGUAGE_HE, + self::LANGUAGE_HE_IL, self::LANGUAGE_HI, self::LANGUAGE_HI_IN, self::LANGUAGE_HR, @@ -1767,11 +1853,11 @@ public function getLanguageAllowableValues() self::LANGUAGE_IA, self::LANGUAGE_IA_001, self::LANGUAGE_ID, + self::LANGUAGE_ID_ID, self::LANGUAGE_IG, self::LANGUAGE_IG_NG, self::LANGUAGE_II, self::LANGUAGE_II_CN, - self::LANGUAGE_ID_ID, self::LANGUAGE_IS, self::LANGUAGE_IS_IS, self::LANGUAGE_IT, @@ -1779,13 +1865,10 @@ public function getLanguageAllowableValues() self::LANGUAGE_IT_IT, self::LANGUAGE_IT_SM, self::LANGUAGE_IT_VA, - self::LANGUAGE_HE_IL, self::LANGUAGE_JA, self::LANGUAGE_JA_JP, self::LANGUAGE_JGO, self::LANGUAGE_JGO_CM, - self::LANGUAGE_YI, - self::LANGUAGE_YI_001, self::LANGUAGE_JMC, self::LANGUAGE_JMC_TZ, self::LANGUAGE_JV, @@ -1829,10 +1912,10 @@ public function getLanguageAllowableValues() self::LANGUAGE_KSF_CM, self::LANGUAGE_KSH, self::LANGUAGE_KSH_DE, - self::LANGUAGE_KW, - self::LANGUAGE_KW_GB, self::LANGUAGE_KU, self::LANGUAGE_KU_TR, + self::LANGUAGE_KW, + self::LANGUAGE_KW_GB, self::LANGUAGE_KY, self::LANGUAGE_KY_KG, self::LANGUAGE_LAG, @@ -1919,8 +2002,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_NL, self::LANGUAGE_NL_AW, self::LANGUAGE_NL_BE, - self::LANGUAGE_NL_CH, self::LANGUAGE_NL_BQ, + self::LANGUAGE_NL_CH, self::LANGUAGE_NL_CW, self::LANGUAGE_NL_LU, self::LANGUAGE_NL_NL, @@ -2116,6 +2199,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_XOG_UG, self::LANGUAGE_YAV, self::LANGUAGE_YAV_CM, + self::LANGUAGE_YI, + self::LANGUAGE_YI_001, self::LANGUAGE_YO, self::LANGUAGE_YO_BJ, self::LANGUAGE_YO_NG, @@ -2126,99 +2211,14 @@ public function getLanguageAllowableValues() self::LANGUAGE_ZGH_MA, self::LANGUAGE_ZH, self::LANGUAGE_ZH_CN, + self::LANGUAGE_ZH_HANS, + self::LANGUAGE_ZH_HANT, self::LANGUAGE_ZH_HK, self::LANGUAGE_ZH_MO, self::LANGUAGE_ZH_SG, self::LANGUAGE_ZH_TW, - self::LANGUAGE_ZH_HANS, - self::LANGUAGE_ZH_HANT, - self::LANGUAGE_ZU, - self::LANGUAGE_ZU_ZA, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getContentTypeCategoryAllowableValues() - { - return [ - self::CONTENT_TYPE_CATEGORY__0, - self::CONTENT_TYPE_CATEGORY__1, - self::CONTENT_TYPE_CATEGORY__2, - self::CONTENT_TYPE_CATEGORY__3, - self::CONTENT_TYPE_CATEGORY__4, - self::CONTENT_TYPE_CATEGORY__5, - self::CONTENT_TYPE_CATEGORY__6, - self::CONTENT_TYPE_CATEGORY__7, - self::CONTENT_TYPE_CATEGORY__8, - self::CONTENT_TYPE_CATEGORY__9, - self::CONTENT_TYPE_CATEGORY__10, - self::CONTENT_TYPE_CATEGORY__11, - self::CONTENT_TYPE_CATEGORY__12, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getAbStatusAllowableValues() - { - return [ - self::AB_STATUS_MASTER, - self::AB_STATUS_VARIANT, - self::AB_STATUS_LOSER_VARIANT, - self::AB_STATUS_MAB_MASTER, - self::AB_STATUS_MAB_VARIANT, - self::AB_STATUS_AUTOMATED_MASTER, - self::AB_STATUS_AUTOMATED_VARIANT, - self::AB_STATUS_AUTOMATED_LOSER_VARIANT, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCurrentStateAllowableValues() - { - return [ - self::CURRENT_STATE_AUTOMATED, - self::CURRENT_STATE_AUTOMATED_DRAFT, - self::CURRENT_STATE_AUTOMATED_SENDING, - self::CURRENT_STATE_AUTOMATED_FOR_FORM, - self::CURRENT_STATE_AUTOMATED_FOR_FORM_BUFFER, - self::CURRENT_STATE_AUTOMATED_FOR_FORM_DRAFT, - self::CURRENT_STATE_AUTOMATED_FOR_FORM_LEGACY, - self::CURRENT_STATE_BLOG_EMAIL_DRAFT, - self::CURRENT_STATE_BLOG_EMAIL_PUBLISHED, - self::CURRENT_STATE_DRAFT, - self::CURRENT_STATE_DRAFT_AB, - self::CURRENT_STATE_DRAFT_AB_VARIANT, - self::CURRENT_STATE_ERROR, - self::CURRENT_STATE_LOSER_AB_VARIANT, - self::CURRENT_STATE_PAGE_STUB, - self::CURRENT_STATE_PRE_PROCESSING, - self::CURRENT_STATE_PROCESSING, - self::CURRENT_STATE_PUBLISHED, - self::CURRENT_STATE_PUBLISHED_AB, - self::CURRENT_STATE_PUBLISHED_AB_VARIANT, - self::CURRENT_STATE_PUBLISHED_OR_SCHEDULED, - self::CURRENT_STATE_RSS_TO_EMAIL_DRAFT, - self::CURRENT_STATE_RSS_TO_EMAIL_PUBLISHED, - self::CURRENT_STATE_SCHEDULED, - self::CURRENT_STATE_SCHEDULED_AB, - self::CURRENT_STATE_SCHEDULED_OR_PUBLISHED, - self::CURRENT_STATE_AUTOMATED_AB, - self::CURRENT_STATE_AUTOMATED_AB_VARIANT, - self::CURRENT_STATE_AUTOMATED_DRAFT_AB, - self::CURRENT_STATE_AUTOMATED_DRAFT_ABVARIANT, - self::CURRENT_STATE_AUTOMATED_LOSER_ABVARIANT, + self::LANGUAGE_ZU, + self::LANGUAGE_ZU_ZA, ]; } @@ -2237,63 +2237,63 @@ public function getCurrentStateAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('publish_date', $data ?? [], null); - $this->setIfExists('language', $data ?? [], null); - $this->setIfExists('enable_layout_stylesheets', $data ?? [], null); - $this->setIfExists('meta_description', $data ?? [], null); + $this->setIfExists('ab_status', $data ?? [], null); + $this->setIfExists('ab_test_id', $data ?? [], null); + $this->setIfExists('archived_at', $data ?? [], null); + $this->setIfExists('archived_in_dashboard', $data ?? [], null); $this->setIfExists('attached_stylesheets', $data ?? [], null); - $this->setIfExists('password', $data ?? [], null); - $this->setIfExists('publish_immediately', $data ?? [], null); - $this->setIfExists('html_title', $data ?? [], null); - $this->setIfExists('translations', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('state', $data ?? [], null); - $this->setIfExists('slug', $data ?? [], null); + $this->setIfExists('author_name', $data ?? [], null); + $this->setIfExists('campaign', $data ?? [], null); + $this->setIfExists('category_id', $data ?? [], null); + $this->setIfExists('content_group_id', $data ?? [], null); + $this->setIfExists('content_type_category', $data ?? [], null); + $this->setIfExists('created', $data ?? [], null); $this->setIfExists('created_by_id', $data ?? [], null); + $this->setIfExists('current_state', $data ?? [], null); $this->setIfExists('currently_published', $data ?? [], null); - $this->setIfExists('archived_in_dashboard', $data ?? [], null); - $this->setIfExists('created', $data ?? [], null); - $this->setIfExists('content_type_category', $data ?? [], null); - $this->setIfExists('mab_experiment_id', $data ?? [], null); - $this->setIfExists('updated_by_id', $data ?? [], null); - $this->setIfExists('translated_from_id', $data ?? [], null); - $this->setIfExists('folder_id', $data ?? [], null); - $this->setIfExists('widget_containers', $data ?? [], null); - $this->setIfExists('page_expiry_redirect_id', $data ?? [], null); - $this->setIfExists('dynamic_page_data_source_type', $data ?? [], null); - $this->setIfExists('featured_image', $data ?? [], null); - $this->setIfExists('author_name', $data ?? [], null); $this->setIfExists('domain', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('dynamic_page_hub_db_table_id', $data ?? [], null); - $this->setIfExists('campaign', $data ?? [], null); $this->setIfExists('dynamic_page_data_source_id', $data ?? [], null); + $this->setIfExists('dynamic_page_data_source_type', $data ?? [], null); + $this->setIfExists('dynamic_page_hub_db_table_id', $data ?? [], null); $this->setIfExists('enable_domain_stylesheets', $data ?? [], null); - $this->setIfExists('include_default_custom_css', $data ?? [], null); - $this->setIfExists('subcategory', $data ?? [], null); - $this->setIfExists('layout_sections', $data ?? [], null); - $this->setIfExists('updated', $data ?? [], null); + $this->setIfExists('enable_layout_stylesheets', $data ?? [], null); + $this->setIfExists('featured_image', $data ?? [], null); + $this->setIfExists('featured_image_alt_text', $data ?? [], null); + $this->setIfExists('folder_id', $data ?? [], null); $this->setIfExists('footer_html', $data ?? [], null); - $this->setIfExists('widgets', $data ?? [], null); $this->setIfExists('head_html', $data ?? [], null); - $this->setIfExists('page_expiry_redirect_url', $data ?? [], null); - $this->setIfExists('ab_status', $data ?? [], null); - $this->setIfExists('use_featured_image', $data ?? [], null); - $this->setIfExists('ab_test_id', $data ?? [], null); - $this->setIfExists('featured_image_alt_text', $data ?? [], null); - $this->setIfExists('content_group_id', $data ?? [], null); + $this->setIfExists('html_title', $data ?? [], null); + $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('include_default_custom_css', $data ?? [], null); + $this->setIfExists('language', $data ?? [], null); + $this->setIfExists('layout_sections', $data ?? [], null); + $this->setIfExists('link_rel_canonical_url', $data ?? [], null); + $this->setIfExists('mab_experiment_id', $data ?? [], null); + $this->setIfExists('meta_description', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('page_expiry_date', $data ?? [], null); $this->setIfExists('page_expiry_enabled', $data ?? [], null); - $this->setIfExists('template_path', $data ?? [], null); - $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('page_expiry_redirect_id', $data ?? [], null); + $this->setIfExists('page_expiry_redirect_url', $data ?? [], null); + $this->setIfExists('page_redirected', $data ?? [], null); + $this->setIfExists('password', $data ?? [], null); $this->setIfExists('public_access_rules', $data ?? [], null); - $this->setIfExists('archived_at', $data ?? [], null); - $this->setIfExists('theme_settings_values', $data ?? [], null); - $this->setIfExists('page_expiry_date', $data ?? [], null); $this->setIfExists('public_access_rules_enabled', $data ?? [], null); - $this->setIfExists('page_redirected', $data ?? [], null); - $this->setIfExists('current_state', $data ?? [], null); - $this->setIfExists('category_id', $data ?? [], null); - $this->setIfExists('link_rel_canonical_url', $data ?? [], null); + $this->setIfExists('publish_date', $data ?? [], null); + $this->setIfExists('publish_immediately', $data ?? [], null); + $this->setIfExists('slug', $data ?? [], null); + $this->setIfExists('state', $data ?? [], null); + $this->setIfExists('subcategory', $data ?? [], null); + $this->setIfExists('template_path', $data ?? [], null); + $this->setIfExists('theme_settings_values', $data ?? [], null); + $this->setIfExists('translated_from_id', $data ?? [], null); + $this->setIfExists('translations', $data ?? [], null); + $this->setIfExists('updated', $data ?? [], null); + $this->setIfExists('updated_by_id', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('use_featured_image', $data ?? [], null); + $this->setIfExists('widget_containers', $data ?? [], null); + $this->setIfExists('widgets', $data ?? [], null); } /** @@ -2323,66 +2323,41 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['publish_date'] === null) { - $invalidProperties[] = "'publish_date' can't be null"; - } - if ($this->container['language'] === null) { - $invalidProperties[] = "'language' can't be null"; + if ($this->container['ab_status'] === null) { + $invalidProperties[] = "'ab_status' can't be null"; } - $allowedValues = $this->getLanguageAllowableValues(); - if (!is_null($this->container['language']) && !in_array($this->container['language'], $allowedValues, true)) { + $allowedValues = $this->getAbStatusAllowableValues(); + if (!is_null($this->container['ab_status']) && !in_array($this->container['ab_status'], $allowedValues, true)) { $invalidProperties[] = sprintf( - "invalid value '%s' for 'language', must be one of '%s'", - $this->container['language'], + "invalid value '%s' for 'ab_status', must be one of '%s'", + $this->container['ab_status'], implode("', '", $allowedValues) ); } - if ($this->container['enable_layout_stylesheets'] === null) { - $invalidProperties[] = "'enable_layout_stylesheets' can't be null"; + if ($this->container['ab_test_id'] === null) { + $invalidProperties[] = "'ab_test_id' can't be null"; } - if ($this->container['meta_description'] === null) { - $invalidProperties[] = "'meta_description' can't be null"; + if ($this->container['archived_at'] === null) { + $invalidProperties[] = "'archived_at' can't be null"; + } + if ($this->container['archived_in_dashboard'] === null) { + $invalidProperties[] = "'archived_in_dashboard' can't be null"; } if ($this->container['attached_stylesheets'] === null) { $invalidProperties[] = "'attached_stylesheets' can't be null"; } - if ($this->container['password'] === null) { - $invalidProperties[] = "'password' can't be null"; - } - if ($this->container['publish_immediately'] === null) { - $invalidProperties[] = "'publish_immediately' can't be null"; - } - if ($this->container['html_title'] === null) { - $invalidProperties[] = "'html_title' can't be null"; - } - if ($this->container['translations'] === null) { - $invalidProperties[] = "'translations' can't be null"; - } - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['state'] === null) { - $invalidProperties[] = "'state' can't be null"; - } - if ((mb_strlen($this->container['state']) > 25)) { - $invalidProperties[] = "invalid value for 'state', the character length must be smaller than or equal to 25."; - } - - if ($this->container['slug'] === null) { - $invalidProperties[] = "'slug' can't be null"; - } - if ($this->container['created_by_id'] === null) { - $invalidProperties[] = "'created_by_id' can't be null"; + if ($this->container['author_name'] === null) { + $invalidProperties[] = "'author_name' can't be null"; } - if ($this->container['currently_published'] === null) { - $invalidProperties[] = "'currently_published' can't be null"; + if ($this->container['campaign'] === null) { + $invalidProperties[] = "'campaign' can't be null"; } - if ($this->container['archived_in_dashboard'] === null) { - $invalidProperties[] = "'archived_in_dashboard' can't be null"; + if ($this->container['category_id'] === null) { + $invalidProperties[] = "'category_id' can't be null"; } - if ($this->container['created'] === null) { - $invalidProperties[] = "'created' can't be null"; + if ($this->container['content_group_id'] === null) { + $invalidProperties[] = "'content_group_id' can't be null"; } if ($this->container['content_type_category'] === null) { $invalidProperties[] = "'content_type_category' can't be null"; @@ -2396,143 +2371,168 @@ public function listInvalidProperties() ); } - if ($this->container['mab_experiment_id'] === null) { - $invalidProperties[] = "'mab_experiment_id' can't be null"; + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; } - if ($this->container['updated_by_id'] === null) { - $invalidProperties[] = "'updated_by_id' can't be null"; + if ($this->container['created_by_id'] === null) { + $invalidProperties[] = "'created_by_id' can't be null"; } - if ($this->container['translated_from_id'] === null) { - $invalidProperties[] = "'translated_from_id' can't be null"; + if ($this->container['current_state'] === null) { + $invalidProperties[] = "'current_state' can't be null"; } - if ($this->container['folder_id'] === null) { - $invalidProperties[] = "'folder_id' can't be null"; + $allowedValues = $this->getCurrentStateAllowableValues(); + if (!is_null($this->container['current_state']) && !in_array($this->container['current_state'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'current_state', must be one of '%s'", + $this->container['current_state'], + implode("', '", $allowedValues) + ); } - if ($this->container['widget_containers'] === null) { - $invalidProperties[] = "'widget_containers' can't be null"; + + if ($this->container['currently_published'] === null) { + $invalidProperties[] = "'currently_published' can't be null"; } - if ($this->container['page_expiry_redirect_id'] === null) { - $invalidProperties[] = "'page_expiry_redirect_id' can't be null"; + if ($this->container['domain'] === null) { + $invalidProperties[] = "'domain' can't be null"; + } + if ($this->container['dynamic_page_data_source_id'] === null) { + $invalidProperties[] = "'dynamic_page_data_source_id' can't be null"; } if ($this->container['dynamic_page_data_source_type'] === null) { $invalidProperties[] = "'dynamic_page_data_source_type' can't be null"; } + if ($this->container['dynamic_page_hub_db_table_id'] === null) { + $invalidProperties[] = "'dynamic_page_hub_db_table_id' can't be null"; + } + if ($this->container['enable_domain_stylesheets'] === null) { + $invalidProperties[] = "'enable_domain_stylesheets' can't be null"; + } + if ($this->container['enable_layout_stylesheets'] === null) { + $invalidProperties[] = "'enable_layout_stylesheets' can't be null"; + } if ($this->container['featured_image'] === null) { $invalidProperties[] = "'featured_image' can't be null"; } - if ($this->container['author_name'] === null) { - $invalidProperties[] = "'author_name' can't be null"; - } - if ($this->container['domain'] === null) { - $invalidProperties[] = "'domain' can't be null"; + if ($this->container['featured_image_alt_text'] === null) { + $invalidProperties[] = "'featured_image_alt_text' can't be null"; } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; + if ($this->container['folder_id'] === null) { + $invalidProperties[] = "'folder_id' can't be null"; } - if ($this->container['dynamic_page_hub_db_table_id'] === null) { - $invalidProperties[] = "'dynamic_page_hub_db_table_id' can't be null"; + if ($this->container['footer_html'] === null) { + $invalidProperties[] = "'footer_html' can't be null"; } - if ($this->container['campaign'] === null) { - $invalidProperties[] = "'campaign' can't be null"; + if ($this->container['head_html'] === null) { + $invalidProperties[] = "'head_html' can't be null"; } - if ($this->container['dynamic_page_data_source_id'] === null) { - $invalidProperties[] = "'dynamic_page_data_source_id' can't be null"; + if ($this->container['html_title'] === null) { + $invalidProperties[] = "'html_title' can't be null"; } - if ($this->container['enable_domain_stylesheets'] === null) { - $invalidProperties[] = "'enable_domain_stylesheets' can't be null"; + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } if ($this->container['include_default_custom_css'] === null) { $invalidProperties[] = "'include_default_custom_css' can't be null"; } - if ($this->container['subcategory'] === null) { - $invalidProperties[] = "'subcategory' can't be null"; + if ($this->container['language'] === null) { + $invalidProperties[] = "'language' can't be null"; + } + $allowedValues = $this->getLanguageAllowableValues(); + if (!is_null($this->container['language']) && !in_array($this->container['language'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'language', must be one of '%s'", + $this->container['language'], + implode("', '", $allowedValues) + ); } + if ($this->container['layout_sections'] === null) { $invalidProperties[] = "'layout_sections' can't be null"; } - if ($this->container['updated'] === null) { - $invalidProperties[] = "'updated' can't be null"; + if ($this->container['link_rel_canonical_url'] === null) { + $invalidProperties[] = "'link_rel_canonical_url' can't be null"; + } + if ($this->container['mab_experiment_id'] === null) { + $invalidProperties[] = "'mab_experiment_id' can't be null"; + } + if ($this->container['meta_description'] === null) { + $invalidProperties[] = "'meta_description' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; } - if ($this->container['footer_html'] === null) { - $invalidProperties[] = "'footer_html' can't be null"; + if ($this->container['page_expiry_date'] === null) { + $invalidProperties[] = "'page_expiry_date' can't be null"; } - if ($this->container['widgets'] === null) { - $invalidProperties[] = "'widgets' can't be null"; + if ($this->container['page_expiry_enabled'] === null) { + $invalidProperties[] = "'page_expiry_enabled' can't be null"; } - if ($this->container['head_html'] === null) { - $invalidProperties[] = "'head_html' can't be null"; + if ($this->container['page_expiry_redirect_id'] === null) { + $invalidProperties[] = "'page_expiry_redirect_id' can't be null"; } if ($this->container['page_expiry_redirect_url'] === null) { $invalidProperties[] = "'page_expiry_redirect_url' can't be null"; } - if ($this->container['ab_status'] === null) { - $invalidProperties[] = "'ab_status' can't be null"; + if ($this->container['page_redirected'] === null) { + $invalidProperties[] = "'page_redirected' can't be null"; } - $allowedValues = $this->getAbStatusAllowableValues(); - if (!is_null($this->container['ab_status']) && !in_array($this->container['ab_status'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'ab_status', must be one of '%s'", - $this->container['ab_status'], - implode("', '", $allowedValues) - ); + if ($this->container['password'] === null) { + $invalidProperties[] = "'password' can't be null"; } - - if ($this->container['use_featured_image'] === null) { - $invalidProperties[] = "'use_featured_image' can't be null"; + if ($this->container['public_access_rules'] === null) { + $invalidProperties[] = "'public_access_rules' can't be null"; } - if ($this->container['ab_test_id'] === null) { - $invalidProperties[] = "'ab_test_id' can't be null"; + if ($this->container['public_access_rules_enabled'] === null) { + $invalidProperties[] = "'public_access_rules_enabled' can't be null"; } - if ($this->container['featured_image_alt_text'] === null) { - $invalidProperties[] = "'featured_image_alt_text' can't be null"; + if ($this->container['publish_date'] === null) { + $invalidProperties[] = "'publish_date' can't be null"; } - if ($this->container['content_group_id'] === null) { - $invalidProperties[] = "'content_group_id' can't be null"; + if ($this->container['publish_immediately'] === null) { + $invalidProperties[] = "'publish_immediately' can't be null"; } - if ($this->container['page_expiry_enabled'] === null) { - $invalidProperties[] = "'page_expiry_enabled' can't be null"; + if ($this->container['slug'] === null) { + $invalidProperties[] = "'slug' can't be null"; } - if ($this->container['template_path'] === null) { - $invalidProperties[] = "'template_path' can't be null"; + if ($this->container['state'] === null) { + $invalidProperties[] = "'state' can't be null"; } - if ($this->container['url'] === null) { - $invalidProperties[] = "'url' can't be null"; + if ((mb_strlen($this->container['state']) > 25)) { + $invalidProperties[] = "invalid value for 'state', the character length must be smaller than or equal to 25."; } - if ($this->container['public_access_rules'] === null) { - $invalidProperties[] = "'public_access_rules' can't be null"; + + if ($this->container['subcategory'] === null) { + $invalidProperties[] = "'subcategory' can't be null"; } - if ($this->container['archived_at'] === null) { - $invalidProperties[] = "'archived_at' can't be null"; + if ($this->container['template_path'] === null) { + $invalidProperties[] = "'template_path' can't be null"; } if ($this->container['theme_settings_values'] === null) { $invalidProperties[] = "'theme_settings_values' can't be null"; } - if ($this->container['page_expiry_date'] === null) { - $invalidProperties[] = "'page_expiry_date' can't be null"; + if ($this->container['translated_from_id'] === null) { + $invalidProperties[] = "'translated_from_id' can't be null"; } - if ($this->container['public_access_rules_enabled'] === null) { - $invalidProperties[] = "'public_access_rules_enabled' can't be null"; + if ($this->container['translations'] === null) { + $invalidProperties[] = "'translations' can't be null"; } - if ($this->container['page_redirected'] === null) { - $invalidProperties[] = "'page_redirected' can't be null"; + if ($this->container['updated'] === null) { + $invalidProperties[] = "'updated' can't be null"; } - if ($this->container['current_state'] === null) { - $invalidProperties[] = "'current_state' can't be null"; + if ($this->container['updated_by_id'] === null) { + $invalidProperties[] = "'updated_by_id' can't be null"; } - $allowedValues = $this->getCurrentStateAllowableValues(); - if (!is_null($this->container['current_state']) && !in_array($this->container['current_state'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'current_state', must be one of '%s'", - $this->container['current_state'], - implode("', '", $allowedValues) - ); + if ($this->container['url'] === null) { + $invalidProperties[] = "'url' can't be null"; } - - if ($this->container['category_id'] === null) { - $invalidProperties[] = "'category_id' can't be null"; + if ($this->container['use_featured_image'] === null) { + $invalidProperties[] = "'use_featured_image' can't be null"; } - if ($this->container['link_rel_canonical_url'] === null) { - $invalidProperties[] = "'link_rel_canonical_url' can't be null"; + if ($this->container['widget_containers'] === null) { + $invalidProperties[] = "'widget_containers' can't be null"; + } + if ($this->container['widgets'] === null) { + $invalidProperties[] = "'widgets' can't be null"; } return $invalidProperties; } @@ -2550,119 +2550,119 @@ public function valid() /** - * Gets publish_date + * Gets ab_status * - * @return \DateTime + * @return string */ - public function getPublishDate() + public function getAbStatus() { - return $this->container['publish_date']; + return $this->container['ab_status']; } /** - * Sets publish_date + * Sets ab_status * - * @param \DateTime $publish_date The date (ISO8601 format) the page is to be published at. + * @param string $ab_status The status of the AB test associated with this page, if applicable * * @return self */ - public function setPublishDate($publish_date) + public function setAbStatus($ab_status) { - if (is_null($publish_date)) { - throw new \InvalidArgumentException('non-nullable publish_date cannot be null'); + if (is_null($ab_status)) { + throw new \InvalidArgumentException('non-nullable ab_status cannot be null'); } - $this->container['publish_date'] = $publish_date; + $allowedValues = $this->getAbStatusAllowableValues(); + if (!in_array($ab_status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'ab_status', must be one of '%s'", + $ab_status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['ab_status'] = $ab_status; return $this; } /** - * Gets language + * Gets ab_test_id * * @return string */ - public function getLanguage() + public function getAbTestId() { - return $this->container['language']; + return $this->container['ab_test_id']; } /** - * Sets language + * Sets ab_test_id * - * @param string $language The explicitly defined ISO 639 language code of the page. If null, the page will default to the language of the Domain. + * @param string $ab_test_id The ID of the AB test associated with this page, if applicable * * @return self */ - public function setLanguage($language) + public function setAbTestId($ab_test_id) { - if (is_null($language)) { - throw new \InvalidArgumentException('non-nullable language cannot be null'); - } - $allowedValues = $this->getLanguageAllowableValues(); - if (!in_array($language, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'language', must be one of '%s'", - $language, - implode("', '", $allowedValues) - ) - ); + if (is_null($ab_test_id)) { + throw new \InvalidArgumentException('non-nullable ab_test_id cannot be null'); } - $this->container['language'] = $language; + $this->container['ab_test_id'] = $ab_test_id; return $this; } /** - * Gets enable_layout_stylesheets + * Gets archived_at * - * @return bool + * @return \DateTime */ - public function getEnableLayoutStylesheets() + public function getArchivedAt() { - return $this->container['enable_layout_stylesheets']; + return $this->container['archived_at']; } /** - * Sets enable_layout_stylesheets + * Sets archived_at * - * @param bool $enable_layout_stylesheets Boolean to determine whether or not the styles from the template should be applied. + * @param \DateTime $archived_at The timestamp (ISO8601 format) when this page was deleted. * * @return self */ - public function setEnableLayoutStylesheets($enable_layout_stylesheets) + public function setArchivedAt($archived_at) { - if (is_null($enable_layout_stylesheets)) { - throw new \InvalidArgumentException('non-nullable enable_layout_stylesheets cannot be null'); + if (is_null($archived_at)) { + throw new \InvalidArgumentException('non-nullable archived_at cannot be null'); } - $this->container['enable_layout_stylesheets'] = $enable_layout_stylesheets; + $this->container['archived_at'] = $archived_at; return $this; } /** - * Gets meta_description + * Gets archived_in_dashboard * - * @return string + * @return bool */ - public function getMetaDescription() + public function getArchivedInDashboard() { - return $this->container['meta_description']; + return $this->container['archived_in_dashboard']; } /** - * Sets meta_description + * Sets archived_in_dashboard * - * @param string $meta_description A description that goes in tag on the page. + * @param bool $archived_in_dashboard If True, the page will not show up in your dashboard, although the page could still be live. * * @return self */ - public function setMetaDescription($meta_description) + public function setArchivedInDashboard($archived_in_dashboard) { - if (is_null($meta_description)) { - throw new \InvalidArgumentException('non-nullable meta_description cannot be null'); + if (is_null($archived_in_dashboard)) { + throw new \InvalidArgumentException('non-nullable archived_in_dashboard cannot be null'); } - $this->container['meta_description'] = $meta_description; + $this->container['archived_in_dashboard'] = $archived_in_dashboard; return $this; } @@ -2695,420 +2695,480 @@ public function setAttachedStylesheets($attached_stylesheets) } /** - * Gets password + * Gets author_name * * @return string */ - public function getPassword() + public function getAuthorName() + { + return $this->container['author_name']; + } + + /** + * Sets author_name + * + * @param string $author_name The name of the user that updated this page. + * + * @return self + */ + public function setAuthorName($author_name) + { + if (is_null($author_name)) { + throw new \InvalidArgumentException('non-nullable author_name cannot be null'); + } + $this->container['author_name'] = $author_name; + + return $this; + } + + /** + * Gets campaign + * + * @return string + */ + public function getCampaign() + { + return $this->container['campaign']; + } + + /** + * Sets campaign + * + * @param string $campaign The GUID of the marketing campaign this page is a part of. + * + * @return self + */ + public function setCampaign($campaign) + { + if (is_null($campaign)) { + throw new \InvalidArgumentException('non-nullable campaign cannot be null'); + } + $this->container['campaign'] = $campaign; + + return $this; + } + + /** + * Gets category_id + * + * @return int + */ + public function getCategoryId() { - return $this->container['password']; + return $this->container['category_id']; } /** - * Sets password + * Sets category_id * - * @param string $password Set this to create a password protected page. Entering the password will be required to view the page. + * @param int $category_id ID of the type of object this is. Should always . * * @return self */ - public function setPassword($password) + public function setCategoryId($category_id) { - if (is_null($password)) { - throw new \InvalidArgumentException('non-nullable password cannot be null'); + if (is_null($category_id)) { + throw new \InvalidArgumentException('non-nullable category_id cannot be null'); } - $this->container['password'] = $password; + $this->container['category_id'] = $category_id; return $this; } /** - * Gets publish_immediately + * Gets content_group_id * - * @return bool + * @return string */ - public function getPublishImmediately() + public function getContentGroupId() { - return $this->container['publish_immediately']; + return $this->container['content_group_id']; } /** - * Sets publish_immediately + * Sets content_group_id * - * @param bool $publish_immediately Set this to true if you want to be published immediately when the schedule publish endpoint is called, and to ignore the publish_date setting. + * @param string $content_group_id The unique identifier for the content group associated with the page. * * @return self */ - public function setPublishImmediately($publish_immediately) + public function setContentGroupId($content_group_id) { - if (is_null($publish_immediately)) { - throw new \InvalidArgumentException('non-nullable publish_immediately cannot be null'); + if (is_null($content_group_id)) { + throw new \InvalidArgumentException('non-nullable content_group_id cannot be null'); } - $this->container['publish_immediately'] = $publish_immediately; + $this->container['content_group_id'] = $content_group_id; return $this; } /** - * Gets html_title + * Gets content_type_category * * @return string */ - public function getHtmlTitle() + public function getContentTypeCategory() { - return $this->container['html_title']; + return $this->container['content_type_category']; } /** - * Sets html_title + * Sets content_type_category * - * @param string $html_title The html title of this page. + * @param string $content_type_category An ENUM descibing the type of this object. Should be either LANDING_PAGE or SITE_PAGE. * * @return self */ - public function setHtmlTitle($html_title) + public function setContentTypeCategory($content_type_category) { - if (is_null($html_title)) { - throw new \InvalidArgumentException('non-nullable html_title cannot be null'); + if (is_null($content_type_category)) { + throw new \InvalidArgumentException('non-nullable content_type_category cannot be null'); } - $this->container['html_title'] = $html_title; + $allowedValues = $this->getContentTypeCategoryAllowableValues(); + if (!in_array($content_type_category, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'content_type_category', must be one of '%s'", + $content_type_category, + implode("', '", $allowedValues) + ) + ); + } + $this->container['content_type_category'] = $content_type_category; return $this; } /** - * Gets translations + * Gets created * - * @return array + * @return \DateTime */ - public function getTranslations() + public function getCreated() { - return $this->container['translations']; + return $this->container['created']; } /** - * Sets translations + * Sets created * - * @param array $translations translations + * @param \DateTime $created The timestamp indicating when the page was created. * * @return self */ - public function setTranslations($translations) + public function setCreated($created) { - if (is_null($translations)) { - throw new \InvalidArgumentException('non-nullable translations cannot be null'); + if (is_null($created)) { + throw new \InvalidArgumentException('non-nullable created cannot be null'); } - $this->container['translations'] = $translations; + $this->container['created'] = $created; return $this; } /** - * Gets id + * Gets created_by_id * * @return string */ - public function getId() + public function getCreatedById() { - return $this->container['id']; + return $this->container['created_by_id']; } /** - * Sets id + * Sets created_by_id * - * @param string $id The unique ID of the page. + * @param string $created_by_id The ID of the user that created this page. * * @return self */ - public function setId($id) + public function setCreatedById($created_by_id) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($created_by_id)) { + throw new \InvalidArgumentException('non-nullable created_by_id cannot be null'); } - $this->container['id'] = $id; + $this->container['created_by_id'] = $created_by_id; return $this; } /** - * Gets state + * Gets current_state * * @return string */ - public function getState() + public function getCurrentState() { - return $this->container['state']; + return $this->container['current_state']; } /** - * Sets state + * Sets current_state * - * @param string $state An ENUM descibing the current state of this page. + * @param string $current_state A generated ENUM descibing the current state of this page. * * @return self */ - public function setState($state) + public function setCurrentState($current_state) { - if (is_null($state)) { - throw new \InvalidArgumentException('non-nullable state cannot be null'); + if (is_null($current_state)) { + throw new \InvalidArgumentException('non-nullable current_state cannot be null'); } - if ((mb_strlen($state) > 25)) { - throw new \InvalidArgumentException('invalid length for $state when calling Page., must be smaller than or equal to 25.'); + $allowedValues = $this->getCurrentStateAllowableValues(); + if (!in_array($current_state, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'current_state', must be one of '%s'", + $current_state, + implode("', '", $allowedValues) + ) + ); } - - $this->container['state'] = $state; + $this->container['current_state'] = $current_state; return $this; } /** - * Gets slug + * Gets currently_published * - * @return string + * @return bool */ - public function getSlug() + public function getCurrentlyPublished() { - return $this->container['slug']; + return $this->container['currently_published']; } /** - * Sets slug + * Sets currently_published * - * @param string $slug The path of the this page. This field is appended to the domain to construct the url of this page. + * @param bool $currently_published Indicates whether the page is currently published. * * @return self */ - public function setSlug($slug) + public function setCurrentlyPublished($currently_published) { - if (is_null($slug)) { - throw new \InvalidArgumentException('non-nullable slug cannot be null'); + if (is_null($currently_published)) { + throw new \InvalidArgumentException('non-nullable currently_published cannot be null'); } - $this->container['slug'] = $slug; + $this->container['currently_published'] = $currently_published; return $this; } /** - * Gets created_by_id + * Gets domain * * @return string */ - public function getCreatedById() + public function getDomain() { - return $this->container['created_by_id']; + return $this->container['domain']; } /** - * Sets created_by_id + * Sets domain * - * @param string $created_by_id The ID of the user that created this page. + * @param string $domain The domain this page will resolve to. If null, the page will default to the primary domain for this content type. * * @return self */ - public function setCreatedById($created_by_id) + public function setDomain($domain) { - if (is_null($created_by_id)) { - throw new \InvalidArgumentException('non-nullable created_by_id cannot be null'); + if (is_null($domain)) { + throw new \InvalidArgumentException('non-nullable domain cannot be null'); } - $this->container['created_by_id'] = $created_by_id; + $this->container['domain'] = $domain; return $this; } /** - * Gets currently_published + * Gets dynamic_page_data_source_id * - * @return bool + * @return string */ - public function getCurrentlyPublished() + public function getDynamicPageDataSourceId() { - return $this->container['currently_published']; + return $this->container['dynamic_page_data_source_id']; } /** - * Sets currently_published + * Sets dynamic_page_data_source_id * - * @param bool $currently_published currently_published + * @param string $dynamic_page_data_source_id The identifier for the data source used by the dynamic page. * * @return self */ - public function setCurrentlyPublished($currently_published) + public function setDynamicPageDataSourceId($dynamic_page_data_source_id) { - if (is_null($currently_published)) { - throw new \InvalidArgumentException('non-nullable currently_published cannot be null'); + if (is_null($dynamic_page_data_source_id)) { + throw new \InvalidArgumentException('non-nullable dynamic_page_data_source_id cannot be null'); } - $this->container['currently_published'] = $currently_published; + $this->container['dynamic_page_data_source_id'] = $dynamic_page_data_source_id; return $this; } /** - * Gets archived_in_dashboard + * Gets dynamic_page_data_source_type * - * @return bool + * @return int */ - public function getArchivedInDashboard() + public function getDynamicPageDataSourceType() { - return $this->container['archived_in_dashboard']; + return $this->container['dynamic_page_data_source_type']; } /** - * Sets archived_in_dashboard + * Sets dynamic_page_data_source_type * - * @param bool $archived_in_dashboard If True, the page will not show up in your dashboard, although the page could still be live. + * @param int $dynamic_page_data_source_type The type of data source used by the dynamic page. * * @return self */ - public function setArchivedInDashboard($archived_in_dashboard) + public function setDynamicPageDataSourceType($dynamic_page_data_source_type) { - if (is_null($archived_in_dashboard)) { - throw new \InvalidArgumentException('non-nullable archived_in_dashboard cannot be null'); + if (is_null($dynamic_page_data_source_type)) { + throw new \InvalidArgumentException('non-nullable dynamic_page_data_source_type cannot be null'); } - $this->container['archived_in_dashboard'] = $archived_in_dashboard; + $this->container['dynamic_page_data_source_type'] = $dynamic_page_data_source_type; return $this; } /** - * Gets created + * Gets dynamic_page_hub_db_table_id * - * @return \DateTime + * @return string */ - public function getCreated() + public function getDynamicPageHubDbTableId() { - return $this->container['created']; + return $this->container['dynamic_page_hub_db_table_id']; } /** - * Sets created + * Sets dynamic_page_hub_db_table_id * - * @param \DateTime $created created + * @param string $dynamic_page_hub_db_table_id The ID of the HubDB table this page references, if applicable * * @return self */ - public function setCreated($created) + public function setDynamicPageHubDbTableId($dynamic_page_hub_db_table_id) { - if (is_null($created)) { - throw new \InvalidArgumentException('non-nullable created cannot be null'); + if (is_null($dynamic_page_hub_db_table_id)) { + throw new \InvalidArgumentException('non-nullable dynamic_page_hub_db_table_id cannot be null'); } - $this->container['created'] = $created; + $this->container['dynamic_page_hub_db_table_id'] = $dynamic_page_hub_db_table_id; return $this; } /** - * Gets content_type_category + * Gets enable_domain_stylesheets * - * @return string + * @return bool */ - public function getContentTypeCategory() + public function getEnableDomainStylesheets() { - return $this->container['content_type_category']; + return $this->container['enable_domain_stylesheets']; } /** - * Sets content_type_category + * Sets enable_domain_stylesheets * - * @param string $content_type_category An ENUM descibing the type of this object. Should be either LANDING_PAGE or SITE_PAGE. + * @param bool $enable_domain_stylesheets Boolean to determine whether or not the styles from the template should be applied. * * @return self */ - public function setContentTypeCategory($content_type_category) + public function setEnableDomainStylesheets($enable_domain_stylesheets) { - if (is_null($content_type_category)) { - throw new \InvalidArgumentException('non-nullable content_type_category cannot be null'); - } - $allowedValues = $this->getContentTypeCategoryAllowableValues(); - if (!in_array($content_type_category, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'content_type_category', must be one of '%s'", - $content_type_category, - implode("', '", $allowedValues) - ) - ); + if (is_null($enable_domain_stylesheets)) { + throw new \InvalidArgumentException('non-nullable enable_domain_stylesheets cannot be null'); } - $this->container['content_type_category'] = $content_type_category; + $this->container['enable_domain_stylesheets'] = $enable_domain_stylesheets; return $this; } /** - * Gets mab_experiment_id + * Gets enable_layout_stylesheets * - * @return string + * @return bool */ - public function getMabExperimentId() + public function getEnableLayoutStylesheets() { - return $this->container['mab_experiment_id']; + return $this->container['enable_layout_stylesheets']; } /** - * Sets mab_experiment_id + * Sets enable_layout_stylesheets * - * @param string $mab_experiment_id The ID of the MAB test (or dynamic test) associated with this page, if applicable + * @param bool $enable_layout_stylesheets Boolean to determine whether or not the styles from the template should be applied. * * @return self */ - public function setMabExperimentId($mab_experiment_id) + public function setEnableLayoutStylesheets($enable_layout_stylesheets) { - if (is_null($mab_experiment_id)) { - throw new \InvalidArgumentException('non-nullable mab_experiment_id cannot be null'); + if (is_null($enable_layout_stylesheets)) { + throw new \InvalidArgumentException('non-nullable enable_layout_stylesheets cannot be null'); } - $this->container['mab_experiment_id'] = $mab_experiment_id; + $this->container['enable_layout_stylesheets'] = $enable_layout_stylesheets; return $this; } /** - * Gets updated_by_id + * Gets featured_image * * @return string */ - public function getUpdatedById() + public function getFeaturedImage() { - return $this->container['updated_by_id']; + return $this->container['featured_image']; } /** - * Sets updated_by_id + * Sets featured_image * - * @param string $updated_by_id The ID of the user that updated this page. + * @param string $featured_image The featuredImage of this page. * * @return self */ - public function setUpdatedById($updated_by_id) + public function setFeaturedImage($featured_image) { - if (is_null($updated_by_id)) { - throw new \InvalidArgumentException('non-nullable updated_by_id cannot be null'); + if (is_null($featured_image)) { + throw new \InvalidArgumentException('non-nullable featured_image cannot be null'); } - $this->container['updated_by_id'] = $updated_by_id; + $this->container['featured_image'] = $featured_image; return $this; } /** - * Gets translated_from_id + * Gets featured_image_alt_text * * @return string */ - public function getTranslatedFromId() + public function getFeaturedImageAltText() { - return $this->container['translated_from_id']; + return $this->container['featured_image_alt_text']; } /** - * Sets translated_from_id + * Sets featured_image_alt_text * - * @param string $translated_from_id ID of the primary page this object was translated from. + * @param string $featured_image_alt_text Alt Text of the featuredImage. * * @return self */ - public function setTranslatedFromId($translated_from_id) + public function setFeaturedImageAltText($featured_image_alt_text) { - if (is_null($translated_from_id)) { - throw new \InvalidArgumentException('non-nullable translated_from_id cannot be null'); + if (is_null($featured_image_alt_text)) { + throw new \InvalidArgumentException('non-nullable featured_image_alt_text cannot be null'); } - $this->container['translated_from_id'] = $translated_from_id; + $this->container['featured_image_alt_text'] = $featured_image_alt_text; return $this; } @@ -3141,686 +3201,663 @@ public function setFolderId($folder_id) } /** - * Gets widget_containers - * - * @return array - */ - public function getWidgetContainers() - { - return $this->container['widget_containers']; - } - - /** - * Sets widget_containers - * - * @param array $widget_containers A data structure containing the data for all the modules inside the containers for this page. This will only be populated if the page has widget containers. - * - * @return self - */ - public function setWidgetContainers($widget_containers) - { - if (is_null($widget_containers)) { - throw new \InvalidArgumentException('non-nullable widget_containers cannot be null'); - } - $this->container['widget_containers'] = $widget_containers; - - return $this; - } - - /** - * Gets page_expiry_redirect_id + * Gets footer_html * - * @return int + * @return string */ - public function getPageExpiryRedirectId() + public function getFooterHtml() { - return $this->container['page_expiry_redirect_id']; + return $this->container['footer_html']; } /** - * Sets page_expiry_redirect_id + * Sets footer_html * - * @param int $page_expiry_redirect_id The ID of another page this page's url should redirect to once this page expires. Should only set this or pageExpiryRedirectUrl. + * @param string $footer_html Custom HTML for embed codes, javascript that should be placed before the tag of the page. * * @return self */ - public function setPageExpiryRedirectId($page_expiry_redirect_id) + public function setFooterHtml($footer_html) { - if (is_null($page_expiry_redirect_id)) { - throw new \InvalidArgumentException('non-nullable page_expiry_redirect_id cannot be null'); + if (is_null($footer_html)) { + throw new \InvalidArgumentException('non-nullable footer_html cannot be null'); } - $this->container['page_expiry_redirect_id'] = $page_expiry_redirect_id; + $this->container['footer_html'] = $footer_html; return $this; } /** - * Gets dynamic_page_data_source_type + * Gets head_html * - * @return int + * @return string */ - public function getDynamicPageDataSourceType() + public function getHeadHtml() { - return $this->container['dynamic_page_data_source_type']; + return $this->container['head_html']; } /** - * Sets dynamic_page_data_source_type + * Sets head_html * - * @param int $dynamic_page_data_source_type dynamic_page_data_source_type + * @param string $head_html Custom HTML for embed codes, javascript, etc. that goes in the tag of the page. * * @return self */ - public function setDynamicPageDataSourceType($dynamic_page_data_source_type) + public function setHeadHtml($head_html) { - if (is_null($dynamic_page_data_source_type)) { - throw new \InvalidArgumentException('non-nullable dynamic_page_data_source_type cannot be null'); + if (is_null($head_html)) { + throw new \InvalidArgumentException('non-nullable head_html cannot be null'); } - $this->container['dynamic_page_data_source_type'] = $dynamic_page_data_source_type; + $this->container['head_html'] = $head_html; return $this; } /** - * Gets featured_image + * Gets html_title * * @return string */ - public function getFeaturedImage() + public function getHtmlTitle() { - return $this->container['featured_image']; + return $this->container['html_title']; } /** - * Sets featured_image + * Sets html_title * - * @param string $featured_image The featuredImage of this page. + * @param string $html_title The html title of this page. * * @return self */ - public function setFeaturedImage($featured_image) + public function setHtmlTitle($html_title) { - if (is_null($featured_image)) { - throw new \InvalidArgumentException('non-nullable featured_image cannot be null'); + if (is_null($html_title)) { + throw new \InvalidArgumentException('non-nullable html_title cannot be null'); } - $this->container['featured_image'] = $featured_image; + $this->container['html_title'] = $html_title; return $this; } /** - * Gets author_name + * Gets id * * @return string */ - public function getAuthorName() + public function getId() { - return $this->container['author_name']; + return $this->container['id']; } /** - * Sets author_name + * Sets id * - * @param string $author_name The name of the user that updated this page. + * @param string $id The unique ID of the page. * * @return self */ - public function setAuthorName($author_name) + public function setId($id) { - if (is_null($author_name)) { - throw new \InvalidArgumentException('non-nullable author_name cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['author_name'] = $author_name; + $this->container['id'] = $id; return $this; } /** - * Gets domain + * Gets include_default_custom_css * - * @return string + * @return bool */ - public function getDomain() + public function getIncludeDefaultCustomCss() { - return $this->container['domain']; + return $this->container['include_default_custom_css']; } /** - * Sets domain + * Sets include_default_custom_css * - * @param string $domain The domain this page will resolve to. If null, the page will default to the primary domain for this content type. + * @param bool $include_default_custom_css Boolean to determine whether or not the Primary CSS Files should be applied. * * @return self */ - public function setDomain($domain) + public function setIncludeDefaultCustomCss($include_default_custom_css) { - if (is_null($domain)) { - throw new \InvalidArgumentException('non-nullable domain cannot be null'); + if (is_null($include_default_custom_css)) { + throw new \InvalidArgumentException('non-nullable include_default_custom_css cannot be null'); } - $this->container['domain'] = $domain; + $this->container['include_default_custom_css'] = $include_default_custom_css; return $this; } /** - * Gets name + * Gets language * * @return string */ - public function getName() + public function getLanguage() { - return $this->container['name']; + return $this->container['language']; } /** - * Sets name + * Sets language * - * @param string $name The internal name of the page. + * @param string $language The explicitly defined ISO 639 language code of the page. If null, the page will default to the language of the Domain. * * @return self */ - public function setName($name) + public function setLanguage($language) { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); + if (is_null($language)) { + throw new \InvalidArgumentException('non-nullable language cannot be null'); } - $this->container['name'] = $name; + $allowedValues = $this->getLanguageAllowableValues(); + if (!in_array($language, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'language', must be one of '%s'", + $language, + implode("', '", $allowedValues) + ) + ); + } + $this->container['language'] = $language; return $this; } /** - * Gets dynamic_page_hub_db_table_id + * Gets layout_sections * - * @return string + * @return array */ - public function getDynamicPageHubDbTableId() + public function getLayoutSections() { - return $this->container['dynamic_page_hub_db_table_id']; + return $this->container['layout_sections']; } /** - * Sets dynamic_page_hub_db_table_id + * Sets layout_sections * - * @param string $dynamic_page_hub_db_table_id The ID of the HubDB table this page references, if applicable + * @param array $layout_sections A structure detailing the layout sections of the page. * * @return self */ - public function setDynamicPageHubDbTableId($dynamic_page_hub_db_table_id) + public function setLayoutSections($layout_sections) { - if (is_null($dynamic_page_hub_db_table_id)) { - throw new \InvalidArgumentException('non-nullable dynamic_page_hub_db_table_id cannot be null'); + if (is_null($layout_sections)) { + throw new \InvalidArgumentException('non-nullable layout_sections cannot be null'); } - $this->container['dynamic_page_hub_db_table_id'] = $dynamic_page_hub_db_table_id; + $this->container['layout_sections'] = $layout_sections; return $this; } /** - * Gets campaign + * Gets link_rel_canonical_url * * @return string */ - public function getCampaign() + public function getLinkRelCanonicalUrl() { - return $this->container['campaign']; + return $this->container['link_rel_canonical_url']; } /** - * Sets campaign + * Sets link_rel_canonical_url * - * @param string $campaign The GUID of the marketing campaign this page is a part of. + * @param string $link_rel_canonical_url Optional override to set the URL to be used in the rel=canonical link tag on the page. * * @return self */ - public function setCampaign($campaign) + public function setLinkRelCanonicalUrl($link_rel_canonical_url) { - if (is_null($campaign)) { - throw new \InvalidArgumentException('non-nullable campaign cannot be null'); + if (is_null($link_rel_canonical_url)) { + throw new \InvalidArgumentException('non-nullable link_rel_canonical_url cannot be null'); } - $this->container['campaign'] = $campaign; + $this->container['link_rel_canonical_url'] = $link_rel_canonical_url; return $this; } /** - * Gets dynamic_page_data_source_id + * Gets mab_experiment_id * * @return string */ - public function getDynamicPageDataSourceId() + public function getMabExperimentId() { - return $this->container['dynamic_page_data_source_id']; + return $this->container['mab_experiment_id']; } /** - * Sets dynamic_page_data_source_id + * Sets mab_experiment_id * - * @param string $dynamic_page_data_source_id dynamic_page_data_source_id + * @param string $mab_experiment_id The ID of the MAB test (or dynamic test) associated with this page, if applicable * * @return self */ - public function setDynamicPageDataSourceId($dynamic_page_data_source_id) + public function setMabExperimentId($mab_experiment_id) { - if (is_null($dynamic_page_data_source_id)) { - throw new \InvalidArgumentException('non-nullable dynamic_page_data_source_id cannot be null'); + if (is_null($mab_experiment_id)) { + throw new \InvalidArgumentException('non-nullable mab_experiment_id cannot be null'); } - $this->container['dynamic_page_data_source_id'] = $dynamic_page_data_source_id; + $this->container['mab_experiment_id'] = $mab_experiment_id; return $this; } /** - * Gets enable_domain_stylesheets + * Gets meta_description * - * @return bool + * @return string */ - public function getEnableDomainStylesheets() + public function getMetaDescription() { - return $this->container['enable_domain_stylesheets']; + return $this->container['meta_description']; } /** - * Sets enable_domain_stylesheets + * Sets meta_description * - * @param bool $enable_domain_stylesheets Boolean to determine whether or not the styles from the template should be applied. + * @param string $meta_description A description that goes in tag on the page. * * @return self */ - public function setEnableDomainStylesheets($enable_domain_stylesheets) + public function setMetaDescription($meta_description) { - if (is_null($enable_domain_stylesheets)) { - throw new \InvalidArgumentException('non-nullable enable_domain_stylesheets cannot be null'); + if (is_null($meta_description)) { + throw new \InvalidArgumentException('non-nullable meta_description cannot be null'); } - $this->container['enable_domain_stylesheets'] = $enable_domain_stylesheets; + $this->container['meta_description'] = $meta_description; return $this; } /** - * Gets include_default_custom_css + * Gets name * - * @return bool + * @return string */ - public function getIncludeDefaultCustomCss() + public function getName() { - return $this->container['include_default_custom_css']; + return $this->container['name']; } /** - * Sets include_default_custom_css + * Sets name * - * @param bool $include_default_custom_css Boolean to determine whether or not the Primary CSS Files should be applied. + * @param string $name The internal name of the page. * * @return self */ - public function setIncludeDefaultCustomCss($include_default_custom_css) + public function setName($name) { - if (is_null($include_default_custom_css)) { - throw new \InvalidArgumentException('non-nullable include_default_custom_css cannot be null'); + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); } - $this->container['include_default_custom_css'] = $include_default_custom_css; + $this->container['name'] = $name; return $this; } /** - * Gets subcategory + * Gets page_expiry_date * - * @return string + * @return int */ - public function getSubcategory() + public function getPageExpiryDate() { - return $this->container['subcategory']; + return $this->container['page_expiry_date']; } /** - * Sets subcategory + * Sets page_expiry_date * - * @param string $subcategory Details the type of page this is. Should always be landing_page or site_page + * @param int $page_expiry_date The date at which this page should expire and begin redirecting to another url or page. * * @return self */ - public function setSubcategory($subcategory) + public function setPageExpiryDate($page_expiry_date) { - if (is_null($subcategory)) { - throw new \InvalidArgumentException('non-nullable subcategory cannot be null'); + if (is_null($page_expiry_date)) { + throw new \InvalidArgumentException('non-nullable page_expiry_date cannot be null'); } - $this->container['subcategory'] = $subcategory; + $this->container['page_expiry_date'] = $page_expiry_date; return $this; } /** - * Gets layout_sections + * Gets page_expiry_enabled * - * @return array + * @return bool */ - public function getLayoutSections() + public function getPageExpiryEnabled() { - return $this->container['layout_sections']; + return $this->container['page_expiry_enabled']; } /** - * Sets layout_sections + * Sets page_expiry_enabled * - * @param array $layout_sections layout_sections + * @param bool $page_expiry_enabled Boolean describing if the page expiration feature is enabled for this page * * @return self */ - public function setLayoutSections($layout_sections) + public function setPageExpiryEnabled($page_expiry_enabled) { - if (is_null($layout_sections)) { - throw new \InvalidArgumentException('non-nullable layout_sections cannot be null'); + if (is_null($page_expiry_enabled)) { + throw new \InvalidArgumentException('non-nullable page_expiry_enabled cannot be null'); } - $this->container['layout_sections'] = $layout_sections; + $this->container['page_expiry_enabled'] = $page_expiry_enabled; return $this; } /** - * Gets updated + * Gets page_expiry_redirect_id * - * @return \DateTime + * @return int */ - public function getUpdated() + public function getPageExpiryRedirectId() { - return $this->container['updated']; + return $this->container['page_expiry_redirect_id']; } /** - * Sets updated + * Sets page_expiry_redirect_id * - * @param \DateTime $updated updated + * @param int $page_expiry_redirect_id The ID of another page this page's url should redirect to once this page expires. Should only set this or pageExpiryRedirectUrl. * * @return self */ - public function setUpdated($updated) + public function setPageExpiryRedirectId($page_expiry_redirect_id) { - if (is_null($updated)) { - throw new \InvalidArgumentException('non-nullable updated cannot be null'); + if (is_null($page_expiry_redirect_id)) { + throw new \InvalidArgumentException('non-nullable page_expiry_redirect_id cannot be null'); } - $this->container['updated'] = $updated; + $this->container['page_expiry_redirect_id'] = $page_expiry_redirect_id; return $this; } /** - * Gets footer_html + * Gets page_expiry_redirect_url * * @return string */ - public function getFooterHtml() + public function getPageExpiryRedirectUrl() { - return $this->container['footer_html']; + return $this->container['page_expiry_redirect_url']; } /** - * Sets footer_html + * Sets page_expiry_redirect_url * - * @param string $footer_html Custom HTML for embed codes, javascript that should be placed before the tag of the page. + * @param string $page_expiry_redirect_url The URL this page's url should redirect to once this page expires. Should only set this or pageExpiryRedirectId. * * @return self */ - public function setFooterHtml($footer_html) + public function setPageExpiryRedirectUrl($page_expiry_redirect_url) { - if (is_null($footer_html)) { - throw new \InvalidArgumentException('non-nullable footer_html cannot be null'); + if (is_null($page_expiry_redirect_url)) { + throw new \InvalidArgumentException('non-nullable page_expiry_redirect_url cannot be null'); } - $this->container['footer_html'] = $footer_html; + $this->container['page_expiry_redirect_url'] = $page_expiry_redirect_url; return $this; } /** - * Gets widgets + * Gets page_redirected * - * @return array + * @return bool */ - public function getWidgets() + public function getPageRedirected() { - return $this->container['widgets']; + return $this->container['page_redirected']; } /** - * Sets widgets + * Sets page_redirected * - * @param array $widgets A data structure containing the data for all the modules for this page. + * @param bool $page_redirected A generated Boolean describing whether or not this page is currently expired and being redirected. * * @return self */ - public function setWidgets($widgets) + public function setPageRedirected($page_redirected) { - if (is_null($widgets)) { - throw new \InvalidArgumentException('non-nullable widgets cannot be null'); + if (is_null($page_redirected)) { + throw new \InvalidArgumentException('non-nullable page_redirected cannot be null'); } - $this->container['widgets'] = $widgets; + $this->container['page_redirected'] = $page_redirected; return $this; } /** - * Gets head_html + * Gets password * * @return string */ - public function getHeadHtml() + public function getPassword() { - return $this->container['head_html']; + return $this->container['password']; } /** - * Sets head_html + * Sets password * - * @param string $head_html Custom HTML for embed codes, javascript, etc. that goes in the tag of the page. + * @param string $password Set this to create a password protected page. Entering the password will be required to view the page. * * @return self */ - public function setHeadHtml($head_html) + public function setPassword($password) { - if (is_null($head_html)) { - throw new \InvalidArgumentException('non-nullable head_html cannot be null'); + if (is_null($password)) { + throw new \InvalidArgumentException('non-nullable password cannot be null'); } - $this->container['head_html'] = $head_html; + $this->container['password'] = $password; return $this; } /** - * Gets page_expiry_redirect_url + * Gets public_access_rules * - * @return string + * @return object[] */ - public function getPageExpiryRedirectUrl() + public function getPublicAccessRules() { - return $this->container['page_expiry_redirect_url']; + return $this->container['public_access_rules']; } /** - * Sets page_expiry_redirect_url + * Sets public_access_rules * - * @param string $page_expiry_redirect_url The URL this page's url should redirect to once this page expires. Should only set this or pageExpiryRedirectId. + * @param object[] $public_access_rules Rules for require member registration to access private content. * * @return self */ - public function setPageExpiryRedirectUrl($page_expiry_redirect_url) + public function setPublicAccessRules($public_access_rules) { - if (is_null($page_expiry_redirect_url)) { - throw new \InvalidArgumentException('non-nullable page_expiry_redirect_url cannot be null'); + if (is_null($public_access_rules)) { + throw new \InvalidArgumentException('non-nullable public_access_rules cannot be null'); } - $this->container['page_expiry_redirect_url'] = $page_expiry_redirect_url; + $this->container['public_access_rules'] = $public_access_rules; return $this; } /** - * Gets ab_status + * Gets public_access_rules_enabled * - * @return string + * @return bool */ - public function getAbStatus() + public function getPublicAccessRulesEnabled() { - return $this->container['ab_status']; + return $this->container['public_access_rules_enabled']; } /** - * Sets ab_status + * Sets public_access_rules_enabled * - * @param string $ab_status The status of the AB test associated with this page, if applicable + * @param bool $public_access_rules_enabled Boolean to determine whether or not to respect publicAccessRules. * * @return self */ - public function setAbStatus($ab_status) + public function setPublicAccessRulesEnabled($public_access_rules_enabled) { - if (is_null($ab_status)) { - throw new \InvalidArgumentException('non-nullable ab_status cannot be null'); - } - $allowedValues = $this->getAbStatusAllowableValues(); - if (!in_array($ab_status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'ab_status', must be one of '%s'", - $ab_status, - implode("', '", $allowedValues) - ) - ); + if (is_null($public_access_rules_enabled)) { + throw new \InvalidArgumentException('non-nullable public_access_rules_enabled cannot be null'); } - $this->container['ab_status'] = $ab_status; + $this->container['public_access_rules_enabled'] = $public_access_rules_enabled; return $this; } /** - * Gets use_featured_image + * Gets publish_date * - * @return bool + * @return \DateTime */ - public function getUseFeaturedImage() + public function getPublishDate() { - return $this->container['use_featured_image']; + return $this->container['publish_date']; } /** - * Sets use_featured_image + * Sets publish_date * - * @param bool $use_featured_image Boolean to determine if this page should use a featuredImage. + * @param \DateTime $publish_date The date (ISO8601 format) the page is to be published at. * * @return self */ - public function setUseFeaturedImage($use_featured_image) + public function setPublishDate($publish_date) { - if (is_null($use_featured_image)) { - throw new \InvalidArgumentException('non-nullable use_featured_image cannot be null'); + if (is_null($publish_date)) { + throw new \InvalidArgumentException('non-nullable publish_date cannot be null'); } - $this->container['use_featured_image'] = $use_featured_image; + $this->container['publish_date'] = $publish_date; return $this; } /** - * Gets ab_test_id + * Gets publish_immediately * - * @return string + * @return bool */ - public function getAbTestId() + public function getPublishImmediately() { - return $this->container['ab_test_id']; + return $this->container['publish_immediately']; } /** - * Sets ab_test_id + * Sets publish_immediately * - * @param string $ab_test_id The ID of the AB test associated with this page, if applicable + * @param bool $publish_immediately Set this to true if you want to be published immediately when the schedule publish endpoint is called, and to ignore the publish_date setting. * * @return self */ - public function setAbTestId($ab_test_id) + public function setPublishImmediately($publish_immediately) { - if (is_null($ab_test_id)) { - throw new \InvalidArgumentException('non-nullable ab_test_id cannot be null'); + if (is_null($publish_immediately)) { + throw new \InvalidArgumentException('non-nullable publish_immediately cannot be null'); } - $this->container['ab_test_id'] = $ab_test_id; + $this->container['publish_immediately'] = $publish_immediately; return $this; } /** - * Gets featured_image_alt_text + * Gets slug * * @return string */ - public function getFeaturedImageAltText() + public function getSlug() { - return $this->container['featured_image_alt_text']; + return $this->container['slug']; } /** - * Sets featured_image_alt_text + * Sets slug * - * @param string $featured_image_alt_text Alt Text of the featuredImage. + * @param string $slug The path of the this page. This field is appended to the domain to construct the url of this page. * * @return self */ - public function setFeaturedImageAltText($featured_image_alt_text) + public function setSlug($slug) { - if (is_null($featured_image_alt_text)) { - throw new \InvalidArgumentException('non-nullable featured_image_alt_text cannot be null'); + if (is_null($slug)) { + throw new \InvalidArgumentException('non-nullable slug cannot be null'); } - $this->container['featured_image_alt_text'] = $featured_image_alt_text; + $this->container['slug'] = $slug; return $this; } /** - * Gets content_group_id + * Gets state * * @return string */ - public function getContentGroupId() + public function getState() { - return $this->container['content_group_id']; + return $this->container['state']; } /** - * Sets content_group_id + * Sets state * - * @param string $content_group_id content_group_id + * @param string $state An ENUM descibing the current state of this page. * * @return self */ - public function setContentGroupId($content_group_id) + public function setState($state) { - if (is_null($content_group_id)) { - throw new \InvalidArgumentException('non-nullable content_group_id cannot be null'); + if (is_null($state)) { + throw new \InvalidArgumentException('non-nullable state cannot be null'); } - $this->container['content_group_id'] = $content_group_id; + if ((mb_strlen($state) > 25)) { + throw new \InvalidArgumentException('invalid length for $state when calling Page., must be smaller than or equal to 25.'); + } + + $this->container['state'] = $state; return $this; } /** - * Gets page_expiry_enabled + * Gets subcategory * - * @return bool + * @return string */ - public function getPageExpiryEnabled() + public function getSubcategory() { - return $this->container['page_expiry_enabled']; + return $this->container['subcategory']; } /** - * Sets page_expiry_enabled + * Sets subcategory * - * @param bool $page_expiry_enabled Boolean describing if the page expiration feature is enabled for this page + * @param string $subcategory Details the type of page this is. Should always be landing_page or site_page * * @return self */ - public function setPageExpiryEnabled($page_expiry_enabled) + public function setSubcategory($subcategory) { - if (is_null($page_expiry_enabled)) { - throw new \InvalidArgumentException('non-nullable page_expiry_enabled cannot be null'); + if (is_null($subcategory)) { + throw new \InvalidArgumentException('non-nullable subcategory cannot be null'); } - $this->container['page_expiry_enabled'] = $page_expiry_enabled; + $this->container['subcategory'] = $subcategory; return $this; } @@ -3853,281 +3890,244 @@ public function setTemplatePath($template_path) } /** - * Gets url + * Gets theme_settings_values * - * @return string + * @return array */ - public function getUrl() + public function getThemeSettingsValues() { - return $this->container['url']; + return $this->container['theme_settings_values']; } /** - * Sets url + * Sets theme_settings_values * - * @param string $url A generated field representing the URL of this page. + * @param array $theme_settings_values A collection of settings specific to the theme applied to the page. * * @return self */ - public function setUrl($url) + public function setThemeSettingsValues($theme_settings_values) { - if (is_null($url)) { - throw new \InvalidArgumentException('non-nullable url cannot be null'); + if (is_null($theme_settings_values)) { + throw new \InvalidArgumentException('non-nullable theme_settings_values cannot be null'); } - $this->container['url'] = $url; + $this->container['theme_settings_values'] = $theme_settings_values; return $this; } /** - * Gets public_access_rules + * Gets translated_from_id * - * @return object[] + * @return string */ - public function getPublicAccessRules() + public function getTranslatedFromId() { - return $this->container['public_access_rules']; + return $this->container['translated_from_id']; } /** - * Sets public_access_rules + * Sets translated_from_id * - * @param object[] $public_access_rules Rules for require member registration to access private content. + * @param string $translated_from_id ID of the primary page this object was translated from. * * @return self */ - public function setPublicAccessRules($public_access_rules) + public function setTranslatedFromId($translated_from_id) { - if (is_null($public_access_rules)) { - throw new \InvalidArgumentException('non-nullable public_access_rules cannot be null'); + if (is_null($translated_from_id)) { + throw new \InvalidArgumentException('non-nullable translated_from_id cannot be null'); } - $this->container['public_access_rules'] = $public_access_rules; + $this->container['translated_from_id'] = $translated_from_id; return $this; } /** - * Gets archived_at + * Gets translations * - * @return \DateTime + * @return array */ - public function getArchivedAt() + public function getTranslations() { - return $this->container['archived_at']; + return $this->container['translations']; } /** - * Sets archived_at + * Sets translations * - * @param \DateTime $archived_at The timestamp (ISO8601 format) when this page was deleted. + * @param array $translations A map of translations for the page, each associated with a specific language variation. * * @return self */ - public function setArchivedAt($archived_at) + public function setTranslations($translations) { - if (is_null($archived_at)) { - throw new \InvalidArgumentException('non-nullable archived_at cannot be null'); + if (is_null($translations)) { + throw new \InvalidArgumentException('non-nullable translations cannot be null'); } - $this->container['archived_at'] = $archived_at; + $this->container['translations'] = $translations; return $this; } /** - * Gets theme_settings_values + * Gets updated * - * @return array + * @return \DateTime */ - public function getThemeSettingsValues() + public function getUpdated() { - return $this->container['theme_settings_values']; + return $this->container['updated']; } /** - * Sets theme_settings_values + * Sets updated * - * @param array $theme_settings_values theme_settings_values + * @param \DateTime $updated The timestamp indicating when the page was last updated. * * @return self */ - public function setThemeSettingsValues($theme_settings_values) + public function setUpdated($updated) { - if (is_null($theme_settings_values)) { - throw new \InvalidArgumentException('non-nullable theme_settings_values cannot be null'); + if (is_null($updated)) { + throw new \InvalidArgumentException('non-nullable updated cannot be null'); } - $this->container['theme_settings_values'] = $theme_settings_values; + $this->container['updated'] = $updated; return $this; } /** - * Gets page_expiry_date + * Gets updated_by_id * - * @return int + * @return string */ - public function getPageExpiryDate() + public function getUpdatedById() { - return $this->container['page_expiry_date']; + return $this->container['updated_by_id']; } /** - * Sets page_expiry_date + * Sets updated_by_id * - * @param int $page_expiry_date The date at which this page should expire and begin redirecting to another url or page. + * @param string $updated_by_id The ID of the user that updated this page. * * @return self */ - public function setPageExpiryDate($page_expiry_date) + public function setUpdatedById($updated_by_id) { - if (is_null($page_expiry_date)) { - throw new \InvalidArgumentException('non-nullable page_expiry_date cannot be null'); + if (is_null($updated_by_id)) { + throw new \InvalidArgumentException('non-nullable updated_by_id cannot be null'); } - $this->container['page_expiry_date'] = $page_expiry_date; + $this->container['updated_by_id'] = $updated_by_id; return $this; } /** - * Gets public_access_rules_enabled + * Gets url * - * @return bool + * @return string */ - public function getPublicAccessRulesEnabled() + public function getUrl() { - return $this->container['public_access_rules_enabled']; + return $this->container['url']; } /** - * Sets public_access_rules_enabled + * Sets url * - * @param bool $public_access_rules_enabled Boolean to determine whether or not to respect publicAccessRules. + * @param string $url A generated field representing the URL of this page. * * @return self */ - public function setPublicAccessRulesEnabled($public_access_rules_enabled) + public function setUrl($url) { - if (is_null($public_access_rules_enabled)) { - throw new \InvalidArgumentException('non-nullable public_access_rules_enabled cannot be null'); + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); } - $this->container['public_access_rules_enabled'] = $public_access_rules_enabled; + $this->container['url'] = $url; return $this; } /** - * Gets page_redirected + * Gets use_featured_image * * @return bool */ - public function getPageRedirected() - { - return $this->container['page_redirected']; - } - - /** - * Sets page_redirected - * - * @param bool $page_redirected A generated Boolean describing whether or not this page is currently expired and being redirected. - * - * @return self - */ - public function setPageRedirected($page_redirected) - { - if (is_null($page_redirected)) { - throw new \InvalidArgumentException('non-nullable page_redirected cannot be null'); - } - $this->container['page_redirected'] = $page_redirected; - - return $this; - } - - /** - * Gets current_state - * - * @return string - */ - public function getCurrentState() + public function getUseFeaturedImage() { - return $this->container['current_state']; + return $this->container['use_featured_image']; } /** - * Sets current_state + * Sets use_featured_image * - * @param string $current_state A generated ENUM descibing the current state of this page. + * @param bool $use_featured_image Boolean to determine if this page should use a featuredImage. * * @return self */ - public function setCurrentState($current_state) + public function setUseFeaturedImage($use_featured_image) { - if (is_null($current_state)) { - throw new \InvalidArgumentException('non-nullable current_state cannot be null'); - } - $allowedValues = $this->getCurrentStateAllowableValues(); - if (!in_array($current_state, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'current_state', must be one of '%s'", - $current_state, - implode("', '", $allowedValues) - ) - ); + if (is_null($use_featured_image)) { + throw new \InvalidArgumentException('non-nullable use_featured_image cannot be null'); } - $this->container['current_state'] = $current_state; + $this->container['use_featured_image'] = $use_featured_image; return $this; } /** - * Gets category_id + * Gets widget_containers * - * @return int + * @return array */ - public function getCategoryId() + public function getWidgetContainers() { - return $this->container['category_id']; + return $this->container['widget_containers']; } /** - * Sets category_id + * Sets widget_containers * - * @param int $category_id ID of the type of object this is. Should always . + * @param array $widget_containers A data structure containing the data for all the modules inside the containers for this page. This will only be populated if the page has widget containers. * * @return self */ - public function setCategoryId($category_id) + public function setWidgetContainers($widget_containers) { - if (is_null($category_id)) { - throw new \InvalidArgumentException('non-nullable category_id cannot be null'); + if (is_null($widget_containers)) { + throw new \InvalidArgumentException('non-nullable widget_containers cannot be null'); } - $this->container['category_id'] = $category_id; + $this->container['widget_containers'] = $widget_containers; return $this; } /** - * Gets link_rel_canonical_url + * Gets widgets * - * @return string + * @return array */ - public function getLinkRelCanonicalUrl() + public function getWidgets() { - return $this->container['link_rel_canonical_url']; + return $this->container['widgets']; } /** - * Sets link_rel_canonical_url + * Sets widgets * - * @param string $link_rel_canonical_url Optional override to set the URL to be used in the rel=canonical link tag on the page. + * @param array $widgets A data structure containing the data for all the modules for this page. * * @return self */ - public function setLinkRelCanonicalUrl($link_rel_canonical_url) + public function setWidgets($widgets) { - if (is_null($link_rel_canonical_url)) { - throw new \InvalidArgumentException('non-nullable link_rel_canonical_url cannot be null'); + if (is_null($widgets)) { + throw new \InvalidArgumentException('non-nullable widgets cannot be null'); } - $this->container['link_rel_canonical_url'] = $link_rel_canonical_url; + $this->container['widgets'] = $widgets; return $this; } diff --git a/codegen/Cms/Pages/Model/Paging.php b/codegen/Cms/Pages/Model/Paging.php index 9a1ee098..222c12eb 100644 --- a/codegen/Cms/Pages/Model/Paging.php +++ b/codegen/Cms/Pages/Model/Paging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/PreviousPage.php b/codegen/Cms/Pages/Model/PreviousPage.php index 147f4d0e..27821bd1 100644 --- a/codegen/Cms/Pages/Model/PreviousPage.php +++ b/codegen/Cms/Pages/Model/PreviousPage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/RGBAColor.php b/codegen/Cms/Pages/Model/RGBAColor.php index 0c43bd90..8e365c1f 100644 --- a/codegen/Cms/Pages/Model/RGBAColor.php +++ b/codegen/Cms/Pages/Model/RGBAColor.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -59,9 +59,9 @@ class RGBAColor implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'a' => 'float', - 'r' => 'int', 'b' => 'int', - 'g' => 'int' + 'g' => 'int', + 'r' => 'int' ]; /** @@ -73,9 +73,9 @@ class RGBAColor implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'a' => null, - 'r' => 'int32', 'b' => 'int32', - 'g' => 'int32' + 'g' => 'int32', + 'r' => 'int32' ]; /** @@ -85,9 +85,9 @@ class RGBAColor implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static array $openAPINullables = [ 'a' => false, - 'r' => false, 'b' => false, - 'g' => false + 'g' => false, + 'r' => false ]; /** @@ -177,9 +177,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'a' => 'a', - 'r' => 'r', 'b' => 'b', - 'g' => 'g' + 'g' => 'g', + 'r' => 'r' ]; /** @@ -189,9 +189,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'a' => 'setA', - 'r' => 'setR', 'b' => 'setB', - 'g' => 'setG' + 'g' => 'setG', + 'r' => 'setR' ]; /** @@ -201,9 +201,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'a' => 'getA', - 'r' => 'getR', 'b' => 'getB', - 'g' => 'getG' + 'g' => 'getG', + 'r' => 'getR' ]; /** @@ -264,9 +264,9 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('a', $data ?? [], null); - $this->setIfExists('r', $data ?? [], null); $this->setIfExists('b', $data ?? [], null); $this->setIfExists('g', $data ?? [], null); + $this->setIfExists('r', $data ?? [], null); } /** @@ -299,15 +299,15 @@ public function listInvalidProperties() if ($this->container['a'] === null) { $invalidProperties[] = "'a' can't be null"; } - if ($this->container['r'] === null) { - $invalidProperties[] = "'r' can't be null"; - } if ($this->container['b'] === null) { $invalidProperties[] = "'b' can't be null"; } if ($this->container['g'] === null) { $invalidProperties[] = "'g' can't be null"; } + if ($this->container['r'] === null) { + $invalidProperties[] = "'r' can't be null"; + } return $invalidProperties; } @@ -350,33 +350,6 @@ public function setA($a) return $this; } - /** - * Gets r - * - * @return int - */ - public function getR() - { - return $this->container['r']; - } - - /** - * Sets r - * - * @param int $r Red. - * - * @return self - */ - public function setR($r) - { - if (is_null($r)) { - throw new \InvalidArgumentException('non-nullable r cannot be null'); - } - $this->container['r'] = $r; - - return $this; - } - /** * Gets b * @@ -430,6 +403,33 @@ public function setG($g) return $this; } + + /** + * Gets r + * + * @return int + */ + public function getR() + { + return $this->container['r']; + } + + /** + * Sets r + * + * @param int $r Red. + * + * @return self + */ + public function setR($r) + { + if (is_null($r)) { + throw new \InvalidArgumentException('non-nullable r cannot be null'); + } + $this->container['r'] = $r; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Pages/Model/RowMetaData.php b/codegen/Cms/Pages/Model/RowMetaData.php index e6179cf8..007d1da9 100644 --- a/codegen/Cms/Pages/Model/RowMetaData.php +++ b/codegen/Cms/Pages/Model/RowMetaData.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -315,7 +315,7 @@ public function getCssClass() /** * Sets css_class * - * @param string $css_class css_class + * @param string $css_class The CSS class applied to the row metadata. * * @return self */ diff --git a/codegen/Cms/Pages/Model/SetNewLanguagePrimaryRequestVNext.php b/codegen/Cms/Pages/Model/SetNewLanguagePrimaryRequestVNext.php index a8b6c920..89bfd1a2 100644 --- a/codegen/Cms/Pages/Model/SetNewLanguagePrimaryRequestVNext.php +++ b/codegen/Cms/Pages/Model/SetNewLanguagePrimaryRequestVNext.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/SideOrCorner.php b/codegen/Cms/Pages/Model/SideOrCorner.php index 13d75753..0fe3f9ac 100644 --- a/codegen/Cms/Pages/Model/SideOrCorner.php +++ b/codegen/Cms/Pages/Model/SideOrCorner.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -315,7 +315,7 @@ public function getHorizontalSide() /** * Sets horizontal_side * - * @param string $horizontal_side horizontal_side + * @param string $horizontal_side Specifies the horizontal side of an element. * * @return self */ @@ -342,7 +342,7 @@ public function getVerticalSide() /** * Sets vertical_side * - * @param string $vertical_side vertical_side + * @param string $vertical_side Specifies the vertical side of an element. * * @return self */ diff --git a/codegen/Cms/Pages/Model/StandardError.php b/codegen/Cms/Pages/Model/StandardError.php index cfdbcf19..498f7adc 100644 --- a/codegen/Cms/Pages/Model/StandardError.php +++ b/codegen/Cms/Pages/Model/StandardError.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,14 +58,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'object', + 'category' => 'string', 'context' => 'array', - 'links' => 'array', + 'errors' => '\HubSpot\Client\Cms\Pages\Model\ErrorDetail[]', 'id' => 'string', - 'category' => 'string', + 'links' => 'array', 'message' => 'string', - 'errors' => '\HubSpot\Client\Cms\Pages\Model\ErrorDetail[]', - 'status' => 'string' + 'status' => 'string', + 'sub_category' => 'object' ]; /** @@ -76,14 +76,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, + 'category' => null, 'context' => null, - 'links' => null, + 'errors' => null, 'id' => null, - 'category' => null, + 'links' => null, 'message' => null, - 'errors' => null, - 'status' => null + 'status' => null, + 'sub_category' => null ]; /** @@ -92,14 +92,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, + 'category' => false, 'context' => false, - 'links' => false, + 'errors' => false, 'id' => false, - 'category' => false, + 'links' => false, 'message' => false, - 'errors' => false, - 'status' => false + 'status' => false, + 'sub_category' => false ]; /** @@ -188,14 +188,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', + 'category' => 'category', 'context' => 'context', - 'links' => 'links', + 'errors' => 'errors', 'id' => 'id', - 'category' => 'category', + 'links' => 'links', 'message' => 'message', - 'errors' => 'errors', - 'status' => 'status' + 'status' => 'status', + 'sub_category' => 'subCategory' ]; /** @@ -204,14 +204,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', + 'category' => 'setCategory', 'context' => 'setContext', - 'links' => 'setLinks', + 'errors' => 'setErrors', 'id' => 'setId', - 'category' => 'setCategory', + 'links' => 'setLinks', 'message' => 'setMessage', - 'errors' => 'setErrors', - 'status' => 'setStatus' + 'status' => 'setStatus', + 'sub_category' => 'setSubCategory' ]; /** @@ -220,14 +220,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', + 'category' => 'getCategory', 'context' => 'getContext', - 'links' => 'getLinks', + 'errors' => 'getErrors', 'id' => 'getId', - 'category' => 'getCategory', + 'links' => 'getLinks', 'message' => 'getMessage', - 'errors' => 'getErrors', - 'status' => 'getStatus' + 'status' => 'getStatus', + 'sub_category' => 'getSubCategory' ]; /** @@ -287,14 +287,14 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); - $this->setIfExists('links', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); + $this->setIfExists('links', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -324,21 +324,21 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; + } if ($this->container['context'] === null) { $invalidProperties[] = "'context' can't be null"; } + if ($this->container['errors'] === null) { + $invalidProperties[] = "'errors' can't be null"; + } if ($this->container['links'] === null) { $invalidProperties[] = "'links' can't be null"; } - if ($this->container['category'] === null) { - $invalidProperties[] = "'category' can't be null"; - } if ($this->container['message'] === null) { $invalidProperties[] = "'message' can't be null"; } - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -358,28 +358,28 @@ public function valid() /** - * Gets sub_category + * Gets category * - * @return object|null + * @return string */ - public function getSubCategory() + public function getCategory() { - return $this->container['sub_category']; + return $this->container['category']; } /** - * Sets sub_category + * Sets category * - * @param object|null $sub_category Error subcategory. + * @param string $category Error category. * * @return self */ - public function setSubCategory($sub_category) + public function setCategory($category) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['category'] = $category; return $this; } @@ -412,28 +412,28 @@ public function setContext($context) } /** - * Gets links + * Gets errors * - * @return array + * @return \HubSpot\Client\Cms\Pages\Model\ErrorDetail[] */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array $links Error links. + * @param \HubSpot\Client\Cms\Pages\Model\ErrorDetail[] $errors List of error details. * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - if (is_null($links)) { - throw new \InvalidArgumentException('non-nullable links cannot be null'); + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); } - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } @@ -466,28 +466,28 @@ public function setId($id) } /** - * Gets category + * Gets links * - * @return string + * @return array */ - public function getCategory() + public function getLinks() { - return $this->container['category']; + return $this->container['links']; } /** - * Sets category + * Sets links * - * @param string $category Error category. + * @param array $links Error links. * * @return self */ - public function setCategory($category) + public function setLinks($links) { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); + if (is_null($links)) { + throw new \InvalidArgumentException('non-nullable links cannot be null'); } - $this->container['category'] = $category; + $this->container['links'] = $links; return $this; } @@ -520,55 +520,55 @@ public function setMessage($message) } /** - * Gets errors + * Gets status * - * @return \HubSpot\Client\Cms\Pages\Model\ErrorDetail[] + * @return string */ - public function getErrors() + public function getStatus() { - return $this->container['errors']; + return $this->container['status']; } /** - * Sets errors + * Sets status * - * @param \HubSpot\Client\Cms\Pages\Model\ErrorDetail[] $errors List of error details. + * @param string $status Error status. * * @return self */ - public function setErrors($errors) + public function setStatus($status) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); } - $this->container['errors'] = $errors; + $this->container['status'] = $status; return $this; } /** - * Gets status + * Gets sub_category * - * @return string + * @return object|null */ - public function getStatus() + public function getSubCategory() { - return $this->container['status']; + return $this->container['sub_category']; } /** - * Sets status + * Sets sub_category * - * @param string $status Error status. + * @param object|null $sub_category Error subcategory. * * @return self */ - public function setStatus($status) + public function setSubCategory($sub_category) { - if (is_null($status)) { - throw new \InvalidArgumentException('non-nullable status cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['status'] = $status; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/Pages/Model/Styles.php b/codegen/Cms/Pages/Model/Styles.php index d137f0b4..91f7ae2b 100644 --- a/codegen/Cms/Pages/Model/Styles.php +++ b/codegen/Cms/Pages/Model/Styles.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,12 +58,12 @@ class Styles implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'background_color' => '\HubSpot\Client\Cms\Pages\Model\RGBAColor', - 'flexbox_positioning' => 'string', + 'background_gradient' => '\HubSpot\Client\Cms\Pages\Model\Gradient', 'background_image' => '\HubSpot\Client\Cms\Pages\Model\BackgroundImage', + 'flexbox_positioning' => 'string', 'force_full_width_section' => 'bool', - 'vertical_alignment' => 'string', 'max_width_section_centering' => 'int', - 'background_gradient' => '\HubSpot\Client\Cms\Pages\Model\Gradient' + 'vertical_alignment' => 'string' ]; /** @@ -75,12 +75,12 @@ class Styles implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'background_color' => null, - 'flexbox_positioning' => null, + 'background_gradient' => null, 'background_image' => null, + 'flexbox_positioning' => null, 'force_full_width_section' => null, - 'vertical_alignment' => null, 'max_width_section_centering' => 'int32', - 'background_gradient' => null + 'vertical_alignment' => null ]; /** @@ -90,12 +90,12 @@ class Styles implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static array $openAPINullables = [ 'background_color' => false, - 'flexbox_positioning' => false, + 'background_gradient' => false, 'background_image' => false, + 'flexbox_positioning' => false, 'force_full_width_section' => false, - 'vertical_alignment' => false, 'max_width_section_centering' => false, - 'background_gradient' => false + 'vertical_alignment' => false ]; /** @@ -185,12 +185,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'background_color' => 'backgroundColor', - 'flexbox_positioning' => 'flexboxPositioning', + 'background_gradient' => 'backgroundGradient', 'background_image' => 'backgroundImage', + 'flexbox_positioning' => 'flexboxPositioning', 'force_full_width_section' => 'forceFullWidthSection', - 'vertical_alignment' => 'verticalAlignment', 'max_width_section_centering' => 'maxWidthSectionCentering', - 'background_gradient' => 'backgroundGradient' + 'vertical_alignment' => 'verticalAlignment' ]; /** @@ -200,12 +200,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'background_color' => 'setBackgroundColor', - 'flexbox_positioning' => 'setFlexboxPositioning', + 'background_gradient' => 'setBackgroundGradient', 'background_image' => 'setBackgroundImage', + 'flexbox_positioning' => 'setFlexboxPositioning', 'force_full_width_section' => 'setForceFullWidthSection', - 'vertical_alignment' => 'setVerticalAlignment', 'max_width_section_centering' => 'setMaxWidthSectionCentering', - 'background_gradient' => 'setBackgroundGradient' + 'vertical_alignment' => 'setVerticalAlignment' ]; /** @@ -215,12 +215,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'background_color' => 'getBackgroundColor', - 'flexbox_positioning' => 'getFlexboxPositioning', + 'background_gradient' => 'getBackgroundGradient', 'background_image' => 'getBackgroundImage', + 'flexbox_positioning' => 'getFlexboxPositioning', 'force_full_width_section' => 'getForceFullWidthSection', - 'vertical_alignment' => 'getVerticalAlignment', 'max_width_section_centering' => 'getMaxWidthSectionCentering', - 'background_gradient' => 'getBackgroundGradient' + 'vertical_alignment' => 'getVerticalAlignment' ]; /** @@ -281,12 +281,12 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('background_color', $data ?? [], null); - $this->setIfExists('flexbox_positioning', $data ?? [], null); + $this->setIfExists('background_gradient', $data ?? [], null); $this->setIfExists('background_image', $data ?? [], null); + $this->setIfExists('flexbox_positioning', $data ?? [], null); $this->setIfExists('force_full_width_section', $data ?? [], null); - $this->setIfExists('vertical_alignment', $data ?? [], null); $this->setIfExists('max_width_section_centering', $data ?? [], null); - $this->setIfExists('background_gradient', $data ?? [], null); + $this->setIfExists('vertical_alignment', $data ?? [], null); } /** @@ -319,23 +319,23 @@ public function listInvalidProperties() if ($this->container['background_color'] === null) { $invalidProperties[] = "'background_color' can't be null"; } - if ($this->container['flexbox_positioning'] === null) { - $invalidProperties[] = "'flexbox_positioning' can't be null"; + if ($this->container['background_gradient'] === null) { + $invalidProperties[] = "'background_gradient' can't be null"; } if ($this->container['background_image'] === null) { $invalidProperties[] = "'background_image' can't be null"; } + if ($this->container['flexbox_positioning'] === null) { + $invalidProperties[] = "'flexbox_positioning' can't be null"; + } if ($this->container['force_full_width_section'] === null) { $invalidProperties[] = "'force_full_width_section' can't be null"; } - if ($this->container['vertical_alignment'] === null) { - $invalidProperties[] = "'vertical_alignment' can't be null"; - } if ($this->container['max_width_section_centering'] === null) { $invalidProperties[] = "'max_width_section_centering' can't be null"; } - if ($this->container['background_gradient'] === null) { - $invalidProperties[] = "'background_gradient' can't be null"; + if ($this->container['vertical_alignment'] === null) { + $invalidProperties[] = "'vertical_alignment' can't be null"; } return $invalidProperties; } @@ -380,28 +380,28 @@ public function setBackgroundColor($background_color) } /** - * Gets flexbox_positioning + * Gets background_gradient * - * @return string + * @return \HubSpot\Client\Cms\Pages\Model\Gradient */ - public function getFlexboxPositioning() + public function getBackgroundGradient() { - return $this->container['flexbox_positioning']; + return $this->container['background_gradient']; } /** - * Sets flexbox_positioning + * Sets background_gradient * - * @param string $flexbox_positioning flexbox_positioning + * @param \HubSpot\Client\Cms\Pages\Model\Gradient $background_gradient background_gradient * * @return self */ - public function setFlexboxPositioning($flexbox_positioning) + public function setBackgroundGradient($background_gradient) { - if (is_null($flexbox_positioning)) { - throw new \InvalidArgumentException('non-nullable flexbox_positioning cannot be null'); + if (is_null($background_gradient)) { + throw new \InvalidArgumentException('non-nullable background_gradient cannot be null'); } - $this->container['flexbox_positioning'] = $flexbox_positioning; + $this->container['background_gradient'] = $background_gradient; return $this; } @@ -434,55 +434,55 @@ public function setBackgroundImage($background_image) } /** - * Gets force_full_width_section + * Gets flexbox_positioning * - * @return bool + * @return string */ - public function getForceFullWidthSection() + public function getFlexboxPositioning() { - return $this->container['force_full_width_section']; + return $this->container['flexbox_positioning']; } /** - * Sets force_full_width_section + * Sets flexbox_positioning * - * @param bool $force_full_width_section force_full_width_section + * @param string $flexbox_positioning Indicates whether flexbox positioning is enabled for the section. * * @return self */ - public function setForceFullWidthSection($force_full_width_section) + public function setFlexboxPositioning($flexbox_positioning) { - if (is_null($force_full_width_section)) { - throw new \InvalidArgumentException('non-nullable force_full_width_section cannot be null'); + if (is_null($flexbox_positioning)) { + throw new \InvalidArgumentException('non-nullable flexbox_positioning cannot be null'); } - $this->container['force_full_width_section'] = $force_full_width_section; + $this->container['flexbox_positioning'] = $flexbox_positioning; return $this; } /** - * Gets vertical_alignment + * Gets force_full_width_section * - * @return string + * @return bool */ - public function getVerticalAlignment() + public function getForceFullWidthSection() { - return $this->container['vertical_alignment']; + return $this->container['force_full_width_section']; } /** - * Sets vertical_alignment + * Sets force_full_width_section * - * @param string $vertical_alignment vertical_alignment + * @param bool $force_full_width_section Determines if the section should be forced to full width. * * @return self */ - public function setVerticalAlignment($vertical_alignment) + public function setForceFullWidthSection($force_full_width_section) { - if (is_null($vertical_alignment)) { - throw new \InvalidArgumentException('non-nullable vertical_alignment cannot be null'); + if (is_null($force_full_width_section)) { + throw new \InvalidArgumentException('non-nullable force_full_width_section cannot be null'); } - $this->container['vertical_alignment'] = $vertical_alignment; + $this->container['force_full_width_section'] = $force_full_width_section; return $this; } @@ -500,7 +500,7 @@ public function getMaxWidthSectionCentering() /** * Sets max_width_section_centering * - * @param int $max_width_section_centering max_width_section_centering + * @param int $max_width_section_centering Defines the maximum width for centering the section. * * @return self */ @@ -515,28 +515,28 @@ public function setMaxWidthSectionCentering($max_width_section_centering) } /** - * Gets background_gradient + * Gets vertical_alignment * - * @return \HubSpot\Client\Cms\Pages\Model\Gradient + * @return string */ - public function getBackgroundGradient() + public function getVerticalAlignment() { - return $this->container['background_gradient']; + return $this->container['vertical_alignment']; } /** - * Sets background_gradient + * Sets vertical_alignment * - * @param \HubSpot\Client\Cms\Pages\Model\Gradient $background_gradient background_gradient + * @param string $vertical_alignment Specifies the vertical alignment of elements within the section. * * @return self */ - public function setBackgroundGradient($background_gradient) + public function setVerticalAlignment($vertical_alignment) { - if (is_null($background_gradient)) { - throw new \InvalidArgumentException('non-nullable background_gradient cannot be null'); + if (is_null($vertical_alignment)) { + throw new \InvalidArgumentException('non-nullable vertical_alignment cannot be null'); } - $this->container['background_gradient'] = $background_gradient; + $this->container['vertical_alignment'] = $vertical_alignment; return $this; } diff --git a/codegen/Cms/Pages/Model/UpdateLanguagesRequestVNext.php b/codegen/Cms/Pages/Model/UpdateLanguagesRequestVNext.php index a1836bbe..eea18c7e 100644 --- a/codegen/Cms/Pages/Model/UpdateLanguagesRequestVNext.php +++ b/codegen/Cms/Pages/Model/UpdateLanguagesRequestVNext.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/Pages/Model/VersionContentFolder.php b/codegen/Cms/Pages/Model/VersionContentFolder.php index 959d402a..73f05957 100644 --- a/codegen/Cms/Pages/Model/VersionContentFolder.php +++ b/codegen/Cms/Pages/Model/VersionContentFolder.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -59,9 +59,9 @@ class VersionContentFolder implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static $openAPITypes = [ 'id' => 'string', - 'user' => '\HubSpot\Client\Cms\Pages\Model\VersionUser', 'object' => '\HubSpot\Client\Cms\Pages\Model\ContentFolder', - 'updated_at' => '\DateTime' + 'updated_at' => '\DateTime', + 'user' => '\HubSpot\Client\Cms\Pages\Model\VersionUser' ]; /** @@ -73,9 +73,9 @@ class VersionContentFolder implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static $openAPIFormats = [ 'id' => null, - 'user' => null, 'object' => null, - 'updated_at' => 'date-time' + 'updated_at' => 'date-time', + 'user' => null ]; /** @@ -85,9 +85,9 @@ class VersionContentFolder implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static array $openAPINullables = [ 'id' => false, - 'user' => false, 'object' => false, - 'updated_at' => false + 'updated_at' => false, + 'user' => false ]; /** @@ -177,9 +177,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'id' => 'id', - 'user' => 'user', 'object' => 'object', - 'updated_at' => 'updatedAt' + 'updated_at' => 'updatedAt', + 'user' => 'user' ]; /** @@ -189,9 +189,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'id' => 'setId', - 'user' => 'setUser', 'object' => 'setObject', - 'updated_at' => 'setUpdatedAt' + 'updated_at' => 'setUpdatedAt', + 'user' => 'setUser' ]; /** @@ -201,9 +201,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'id' => 'getId', - 'user' => 'getUser', 'object' => 'getObject', - 'updated_at' => 'getUpdatedAt' + 'updated_at' => 'getUpdatedAt', + 'user' => 'getUser' ]; /** @@ -264,9 +264,9 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('user', $data ?? [], null); $this->setIfExists('object', $data ?? [], null); $this->setIfExists('updated_at', $data ?? [], null); + $this->setIfExists('user', $data ?? [], null); } /** @@ -299,15 +299,15 @@ public function listInvalidProperties() if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } - if ($this->container['user'] === null) { - $invalidProperties[] = "'user' can't be null"; - } if ($this->container['object'] === null) { $invalidProperties[] = "'object' can't be null"; } if ($this->container['updated_at'] === null) { $invalidProperties[] = "'updated_at' can't be null"; } + if ($this->container['user'] === null) { + $invalidProperties[] = "'user' can't be null"; + } return $invalidProperties; } @@ -350,33 +350,6 @@ public function setId($id) return $this; } - /** - * Gets user - * - * @return \HubSpot\Client\Cms\Pages\Model\VersionUser - */ - public function getUser() - { - return $this->container['user']; - } - - /** - * Sets user - * - * @param \HubSpot\Client\Cms\Pages\Model\VersionUser $user user - * - * @return self - */ - public function setUser($user) - { - if (is_null($user)) { - throw new \InvalidArgumentException('non-nullable user cannot be null'); - } - $this->container['user'] = $user; - - return $this; - } - /** * Gets object * @@ -417,7 +390,7 @@ public function getUpdatedAt() /** * Sets updated_at * - * @param \DateTime $updated_at updated_at + * @param \DateTime $updated_at The timestamp indicating when this version of the content folder was last updated. * * @return self */ @@ -430,6 +403,33 @@ public function setUpdatedAt($updated_at) return $this; } + + /** + * Gets user + * + * @return \HubSpot\Client\Cms\Pages\Model\VersionUser + */ + public function getUser() + { + return $this->container['user']; + } + + /** + * Sets user + * + * @param \HubSpot\Client\Cms\Pages\Model\VersionUser $user user + * + * @return self + */ + public function setUser($user) + { + if (is_null($user)) { + throw new \InvalidArgumentException('non-nullable user cannot be null'); + } + $this->container['user'] = $user; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Pages/Model/VersionPage.php b/codegen/Cms/Pages/Model/VersionPage.php index 8f7dcf53..ccfd8e85 100644 --- a/codegen/Cms/Pages/Model/VersionPage.php +++ b/codegen/Cms/Pages/Model/VersionPage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -59,9 +59,9 @@ class VersionPage implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'id' => 'string', - 'user' => '\HubSpot\Client\Cms\Pages\Model\VersionUser', 'object' => '\HubSpot\Client\Cms\Pages\Model\Page', - 'updated_at' => '\DateTime' + 'updated_at' => '\DateTime', + 'user' => '\HubSpot\Client\Cms\Pages\Model\VersionUser' ]; /** @@ -73,9 +73,9 @@ class VersionPage implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'id' => null, - 'user' => null, 'object' => null, - 'updated_at' => 'date-time' + 'updated_at' => 'date-time', + 'user' => null ]; /** @@ -85,9 +85,9 @@ class VersionPage implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static array $openAPINullables = [ 'id' => false, - 'user' => false, 'object' => false, - 'updated_at' => false + 'updated_at' => false, + 'user' => false ]; /** @@ -177,9 +177,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'id' => 'id', - 'user' => 'user', 'object' => 'object', - 'updated_at' => 'updatedAt' + 'updated_at' => 'updatedAt', + 'user' => 'user' ]; /** @@ -189,9 +189,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'id' => 'setId', - 'user' => 'setUser', 'object' => 'setObject', - 'updated_at' => 'setUpdatedAt' + 'updated_at' => 'setUpdatedAt', + 'user' => 'setUser' ]; /** @@ -201,9 +201,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'id' => 'getId', - 'user' => 'getUser', 'object' => 'getObject', - 'updated_at' => 'getUpdatedAt' + 'updated_at' => 'getUpdatedAt', + 'user' => 'getUser' ]; /** @@ -264,9 +264,9 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('user', $data ?? [], null); $this->setIfExists('object', $data ?? [], null); $this->setIfExists('updated_at', $data ?? [], null); + $this->setIfExists('user', $data ?? [], null); } /** @@ -299,15 +299,15 @@ public function listInvalidProperties() if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } - if ($this->container['user'] === null) { - $invalidProperties[] = "'user' can't be null"; - } if ($this->container['object'] === null) { $invalidProperties[] = "'object' can't be null"; } if ($this->container['updated_at'] === null) { $invalidProperties[] = "'updated_at' can't be null"; } + if ($this->container['user'] === null) { + $invalidProperties[] = "'user' can't be null"; + } return $invalidProperties; } @@ -350,33 +350,6 @@ public function setId($id) return $this; } - /** - * Gets user - * - * @return \HubSpot\Client\Cms\Pages\Model\VersionUser - */ - public function getUser() - { - return $this->container['user']; - } - - /** - * Sets user - * - * @param \HubSpot\Client\Cms\Pages\Model\VersionUser $user user - * - * @return self - */ - public function setUser($user) - { - if (is_null($user)) { - throw new \InvalidArgumentException('non-nullable user cannot be null'); - } - $this->container['user'] = $user; - - return $this; - } - /** * Gets object * @@ -417,7 +390,7 @@ public function getUpdatedAt() /** * Sets updated_at * - * @param \DateTime $updated_at updated_at + * @param \DateTime $updated_at The timestamp indicating when the page version was last updated. * * @return self */ @@ -430,6 +403,33 @@ public function setUpdatedAt($updated_at) return $this; } + + /** + * Gets user + * + * @return \HubSpot\Client\Cms\Pages\Model\VersionUser + */ + public function getUser() + { + return $this->container['user']; + } + + /** + * Sets user + * + * @param \HubSpot\Client\Cms\Pages\Model\VersionUser $user user + * + * @return self + */ + public function setUser($user) + { + if (is_null($user)) { + throw new \InvalidArgumentException('non-nullable user cannot be null'); + } + $this->container['user'] = $user; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Pages/Model/VersionUser.php b/codegen/Cms/Pages/Model/VersionUser.php index 68a01c69..b0c7a65d 100644 --- a/codegen/Cms/Pages/Model/VersionUser.php +++ b/codegen/Cms/Pages/Model/VersionUser.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,9 +58,9 @@ class VersionUser implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'email' => 'string', 'full_name' => 'string', - 'id' => 'string', - 'email' => 'string' + 'id' => 'string' ]; /** @@ -71,9 +71,9 @@ class VersionUser implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'email' => null, 'full_name' => null, - 'id' => null, - 'email' => null + 'id' => null ]; /** @@ -82,9 +82,9 @@ class VersionUser implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ + 'email' => false, 'full_name' => false, - 'id' => false, - 'email' => false + 'id' => false ]; /** @@ -173,9 +173,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'email' => 'email', 'full_name' => 'fullName', - 'id' => 'id', - 'email' => 'email' + 'id' => 'id' ]; /** @@ -184,9 +184,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'email' => 'setEmail', 'full_name' => 'setFullName', - 'id' => 'setId', - 'email' => 'setEmail' + 'id' => 'setId' ]; /** @@ -195,9 +195,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'email' => 'getEmail', 'full_name' => 'getFullName', - 'id' => 'getId', - 'email' => 'getEmail' + 'id' => 'getId' ]; /** @@ -257,9 +257,9 @@ public function getModelName() */ public function __construct(?array $data = null) { + $this->setIfExists('email', $data ?? [], null); $this->setIfExists('full_name', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('email', $data ?? [], null); } /** @@ -289,15 +289,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['email'] === null) { + $invalidProperties[] = "'email' can't be null"; + } if ($this->container['full_name'] === null) { $invalidProperties[] = "'full_name' can't be null"; } if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } - if ($this->container['email'] === null) { - $invalidProperties[] = "'email' can't be null"; - } return $invalidProperties; } @@ -314,82 +314,82 @@ public function valid() /** - * Gets full_name + * Gets email * * @return string */ - public function getFullName() + public function getEmail() { - return $this->container['full_name']; + return $this->container['email']; } /** - * Sets full_name + * Sets email * - * @param string $full_name First and last name of the user. + * @param string $email Email address of the user. * * @return self */ - public function setFullName($full_name) + public function setEmail($email) { - if (is_null($full_name)) { - throw new \InvalidArgumentException('non-nullable full_name cannot be null'); + if (is_null($email)) { + throw new \InvalidArgumentException('non-nullable email cannot be null'); } - $this->container['full_name'] = $full_name; + $this->container['email'] = $email; return $this; } /** - * Gets id + * Gets full_name * * @return string */ - public function getId() + public function getFullName() { - return $this->container['id']; + return $this->container['full_name']; } /** - * Sets id + * Sets full_name * - * @param string $id ID of the user. + * @param string $full_name First and last name of the user. * * @return self */ - public function setId($id) + public function setFullName($full_name) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($full_name)) { + throw new \InvalidArgumentException('non-nullable full_name cannot be null'); } - $this->container['id'] = $id; + $this->container['full_name'] = $full_name; return $this; } /** - * Gets email + * Gets id * * @return string */ - public function getEmail() + public function getId() { - return $this->container['email']; + return $this->container['id']; } /** - * Sets email + * Sets id * - * @param string $email Email address of the user. + * @param string $id ID of the user. * * @return self */ - public function setEmail($email) + public function setId($id) { - if (is_null($email)) { - throw new \InvalidArgumentException('non-nullable email cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['email'] = $email; + $this->container['id'] = $id; return $this; } diff --git a/codegen/Cms/Pages/ObjectSerializer.php b/codegen/Cms/Pages/ObjectSerializer.php index 02d6dc63..f6d15065 100644 --- a/codegen/Cms/Pages/ObjectSerializer.php +++ b/codegen/Cms/Pages/ObjectSerializer.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** From 02267aaed23c93b882970c160e851c6c1a3f9bdf Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 6 Feb 2026 16:26:21 +0300 Subject: [PATCH 4/6] Codegen: CMS Site Search --- codegen/Cms/SiteSearch/Api/PublicApi.php | 28 +- codegen/Cms/SiteSearch/ApiException.php | 2 +- codegen/Cms/SiteSearch/Configuration.php | 2 +- codegen/Cms/SiteSearch/FormDataProcessor.php | 2 +- codegen/Cms/SiteSearch/HeaderSelector.php | 2 +- .../SiteSearch/Model/ContentSearchResult.php | 564 +++++++++--------- codegen/Cms/SiteSearch/Model/Error.php | 144 ++--- codegen/Cms/SiteSearch/Model/ErrorDetail.php | 120 ++-- codegen/Cms/SiteSearch/Model/IndexedData.php | 96 +-- codegen/Cms/SiteSearch/Model/IndexedField.php | 82 +-- .../Cms/SiteSearch/Model/ModelInterface.php | 2 +- .../SiteSearch/Model/PublicSearchResults.php | 182 +++--- codegen/Cms/SiteSearch/ObjectSerializer.php | 2 +- 13 files changed, 614 insertions(+), 614 deletions(-) diff --git a/codegen/Cms/SiteSearch/Api/PublicApi.php b/codegen/Cms/SiteSearch/Api/PublicApi.php index 932a8f84..b6d09e92 100644 --- a/codegen/Cms/SiteSearch/Api/PublicApi.php +++ b/codegen/Cms/SiteSearch/Api/PublicApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -131,7 +131,7 @@ public function getConfig() /** * Operation getById * - * Get indexed properties. + * Get indexed properties * * @param string $content_id ID of the target document when searching for indexed properties. (required) * @param string|null $type The type of document. Can be one of `SITE_PAGE`, `BLOG_POST`, or `KNOWLEDGE_ARTICLE`. (optional) @@ -150,7 +150,7 @@ public function getById($content_id, $type = null, string $contentType = self::c /** * Operation getByIdWithHttpInfo * - * Get indexed properties. + * Get indexed properties * * @param string $content_id ID of the target document when searching for indexed properties. (required) * @param string|null $type The type of document. Can be one of `SITE_PAGE`, `BLOG_POST`, or `KNOWLEDGE_ARTICLE`. (optional) @@ -250,7 +250,7 @@ public function getByIdWithHttpInfo($content_id, $type = null, string $contentTy /** * Operation getByIdAsync * - * Get indexed properties. + * Get indexed properties * * @param string $content_id ID of the target document when searching for indexed properties. (required) * @param string|null $type The type of document. Can be one of `SITE_PAGE`, `BLOG_POST`, or `KNOWLEDGE_ARTICLE`. (optional) @@ -272,7 +272,7 @@ function ($response) { /** * Operation getByIdAsyncWithHttpInfo * - * Get indexed properties. + * Get indexed properties * * @param string $content_id ID of the target document when searching for indexed properties. (required) * @param string|null $type The type of document. Can be one of `SITE_PAGE`, `BLOG_POST`, or `KNOWLEDGE_ARTICLE`. (optional) @@ -435,12 +435,12 @@ public function getByIdRequest($content_id, $type = null, string $contentType = /** * Operation search * - * Search your site. + * Search your site * * @param string|null $q The term to search for. (optional) * @param int|null $limit Specifies the number of results to be returned in a single response. Defaults to `10`. Maximum value is `100`. (optional) * @param int|null $offset Used to page through the results. If there are more results than specified by the `limit` parameter, you will need to use the value of offset returned in the previous request to get the next set of results. (optional) - * @param string|null $language Specifies the language of content to be searched. This value must be a valid [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `es` for Spanish) (optional) + * @param string|null $language Specifies the language of content to be searched. This value must be a valid [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `es` for Spanish). (optional) * @param bool|null $match_prefix Inverts the behavior of the pathPrefix filter when set to `false`. Defaults to `true`. (optional) * @param bool|null $autocomplete Specifies whether or not you are showing autocomplete results. Defaults to false. (optional) * @param float|null $popularity_boost Specifies how strongly a result is boosted based on its view count. Defaults to 1.0. (optional) @@ -469,12 +469,12 @@ public function search($q = null, $limit = null, $offset = null, $language = nul /** * Operation searchWithHttpInfo * - * Search your site. + * Search your site * * @param string|null $q The term to search for. (optional) * @param int|null $limit Specifies the number of results to be returned in a single response. Defaults to `10`. Maximum value is `100`. (optional) * @param int|null $offset Used to page through the results. If there are more results than specified by the `limit` parameter, you will need to use the value of offset returned in the previous request to get the next set of results. (optional) - * @param string|null $language Specifies the language of content to be searched. This value must be a valid [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `es` for Spanish) (optional) + * @param string|null $language Specifies the language of content to be searched. This value must be a valid [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `es` for Spanish). (optional) * @param bool|null $match_prefix Inverts the behavior of the pathPrefix filter when set to `false`. Defaults to `true`. (optional) * @param bool|null $autocomplete Specifies whether or not you are showing autocomplete results. Defaults to false. (optional) * @param float|null $popularity_boost Specifies how strongly a result is boosted based on its view count. Defaults to 1.0. (optional) @@ -584,12 +584,12 @@ public function searchWithHttpInfo($q = null, $limit = null, $offset = null, $la /** * Operation searchAsync * - * Search your site. + * Search your site * * @param string|null $q The term to search for. (optional) * @param int|null $limit Specifies the number of results to be returned in a single response. Defaults to `10`. Maximum value is `100`. (optional) * @param int|null $offset Used to page through the results. If there are more results than specified by the `limit` parameter, you will need to use the value of offset returned in the previous request to get the next set of results. (optional) - * @param string|null $language Specifies the language of content to be searched. This value must be a valid [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `es` for Spanish) (optional) + * @param string|null $language Specifies the language of content to be searched. This value must be a valid [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `es` for Spanish). (optional) * @param bool|null $match_prefix Inverts the behavior of the pathPrefix filter when set to `false`. Defaults to `true`. (optional) * @param bool|null $autocomplete Specifies whether or not you are showing autocomplete results. Defaults to false. (optional) * @param float|null $popularity_boost Specifies how strongly a result is boosted based on its view count. Defaults to 1.0. (optional) @@ -621,12 +621,12 @@ function ($response) { /** * Operation searchAsyncWithHttpInfo * - * Search your site. + * Search your site * * @param string|null $q The term to search for. (optional) * @param int|null $limit Specifies the number of results to be returned in a single response. Defaults to `10`. Maximum value is `100`. (optional) * @param int|null $offset Used to page through the results. If there are more results than specified by the `limit` parameter, you will need to use the value of offset returned in the previous request to get the next set of results. (optional) - * @param string|null $language Specifies the language of content to be searched. This value must be a valid [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `es` for Spanish) (optional) + * @param string|null $language Specifies the language of content to be searched. This value must be a valid [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `es` for Spanish). (optional) * @param bool|null $match_prefix Inverts the behavior of the pathPrefix filter when set to `false`. Defaults to `true`. (optional) * @param bool|null $autocomplete Specifies whether or not you are showing autocomplete results. Defaults to false. (optional) * @param float|null $popularity_boost Specifies how strongly a result is boosted based on its view count. Defaults to 1.0. (optional) @@ -692,7 +692,7 @@ function ($exception) { * @param string|null $q The term to search for. (optional) * @param int|null $limit Specifies the number of results to be returned in a single response. Defaults to `10`. Maximum value is `100`. (optional) * @param int|null $offset Used to page through the results. If there are more results than specified by the `limit` parameter, you will need to use the value of offset returned in the previous request to get the next set of results. (optional) - * @param string|null $language Specifies the language of content to be searched. This value must be a valid [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `es` for Spanish) (optional) + * @param string|null $language Specifies the language of content to be searched. This value must be a valid [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `es` for Spanish). (optional) * @param bool|null $match_prefix Inverts the behavior of the pathPrefix filter when set to `false`. Defaults to `true`. (optional) * @param bool|null $autocomplete Specifies whether or not you are showing autocomplete results. Defaults to false. (optional) * @param float|null $popularity_boost Specifies how strongly a result is boosted based on its view count. Defaults to 1.0. (optional) diff --git a/codegen/Cms/SiteSearch/ApiException.php b/codegen/Cms/SiteSearch/ApiException.php index bb4f8032..3f3e0f39 100644 --- a/codegen/Cms/SiteSearch/ApiException.php +++ b/codegen/Cms/SiteSearch/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SiteSearch/Configuration.php b/codegen/Cms/SiteSearch/Configuration.php index 237d4d66..6727ecdd 100644 --- a/codegen/Cms/SiteSearch/Configuration.php +++ b/codegen/Cms/SiteSearch/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SiteSearch/FormDataProcessor.php b/codegen/Cms/SiteSearch/FormDataProcessor.php index 4ae25f1e..0295aa35 100644 --- a/codegen/Cms/SiteSearch/FormDataProcessor.php +++ b/codegen/Cms/SiteSearch/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SiteSearch/HeaderSelector.php b/codegen/Cms/SiteSearch/HeaderSelector.php index b2d5d492..1327087c 100644 --- a/codegen/Cms/SiteSearch/HeaderSelector.php +++ b/codegen/Cms/SiteSearch/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SiteSearch/Model/ContentSearchResult.php b/codegen/Cms/SiteSearch/Model/ContentSearchResult.php index 78e30a18..04c7b4a2 100644 --- a/codegen/Cms/SiteSearch/Model/ContentSearchResult.php +++ b/codegen/Cms/SiteSearch/Model/ContentSearchResult.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,23 +58,23 @@ class ContentSearchResult implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ + 'author_full_name' => 'string', + 'category' => 'string', 'combined_id' => 'string', 'description' => 'string', + 'domain' => 'string', + 'featured_image_url' => 'string', + 'id' => 'int', 'language' => 'string', - 'type' => 'string', - 'title' => 'string', - 'url' => 'string', - 'tags' => 'string[]', + 'published_date' => 'int', 'row_id' => 'int', - 'featured_image_url' => 'string', 'score' => 'float', - 'author_full_name' => 'string', - 'domain' => 'string', + 'subcategory' => 'string', 'table_id' => 'int', - 'id' => 'int', - 'published_date' => 'int', - 'category' => 'string', - 'subcategory' => 'string' + 'tags' => 'string[]', + 'title' => 'string', + 'type' => 'string', + 'url' => 'string' ]; /** @@ -85,23 +85,23 @@ class ContentSearchResult implements ModelInterface, ArrayAccess, \JsonSerializa * @psalm-var array */ protected static $openAPIFormats = [ + 'author_full_name' => null, + 'category' => null, 'combined_id' => null, 'description' => null, + 'domain' => null, + 'featured_image_url' => null, + 'id' => 'int32', 'language' => null, - 'type' => null, - 'title' => null, - 'url' => null, - 'tags' => null, + 'published_date' => 'int64', 'row_id' => 'int64', - 'featured_image_url' => null, 'score' => null, - 'author_full_name' => null, - 'domain' => null, + 'subcategory' => null, 'table_id' => 'int64', - 'id' => 'int32', - 'published_date' => 'int64', - 'category' => null, - 'subcategory' => null + 'tags' => null, + 'title' => null, + 'type' => null, + 'url' => null ]; /** @@ -110,23 +110,23 @@ class ContentSearchResult implements ModelInterface, ArrayAccess, \JsonSerializa * @var boolean[] */ protected static array $openAPINullables = [ + 'author_full_name' => false, + 'category' => false, 'combined_id' => false, 'description' => false, + 'domain' => false, + 'featured_image_url' => false, + 'id' => false, 'language' => false, - 'type' => false, - 'title' => false, - 'url' => false, - 'tags' => false, + 'published_date' => false, 'row_id' => false, - 'featured_image_url' => false, 'score' => false, - 'author_full_name' => false, - 'domain' => false, + 'subcategory' => false, 'table_id' => false, - 'id' => false, - 'published_date' => false, - 'category' => false, - 'subcategory' => false + 'tags' => false, + 'title' => false, + 'type' => false, + 'url' => false ]; /** @@ -215,23 +215,23 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'author_full_name' => 'authorFullName', + 'category' => 'category', 'combined_id' => 'combinedId', 'description' => 'description', + 'domain' => 'domain', + 'featured_image_url' => 'featuredImageUrl', + 'id' => 'id', 'language' => 'language', - 'type' => 'type', - 'title' => 'title', - 'url' => 'url', - 'tags' => 'tags', + 'published_date' => 'publishedDate', 'row_id' => 'rowId', - 'featured_image_url' => 'featuredImageUrl', 'score' => 'score', - 'author_full_name' => 'authorFullName', - 'domain' => 'domain', + 'subcategory' => 'subcategory', 'table_id' => 'tableId', - 'id' => 'id', - 'published_date' => 'publishedDate', - 'category' => 'category', - 'subcategory' => 'subcategory' + 'tags' => 'tags', + 'title' => 'title', + 'type' => 'type', + 'url' => 'url' ]; /** @@ -240,23 +240,23 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'author_full_name' => 'setAuthorFullName', + 'category' => 'setCategory', 'combined_id' => 'setCombinedId', 'description' => 'setDescription', + 'domain' => 'setDomain', + 'featured_image_url' => 'setFeaturedImageUrl', + 'id' => 'setId', 'language' => 'setLanguage', - 'type' => 'setType', - 'title' => 'setTitle', - 'url' => 'setUrl', - 'tags' => 'setTags', + 'published_date' => 'setPublishedDate', 'row_id' => 'setRowId', - 'featured_image_url' => 'setFeaturedImageUrl', 'score' => 'setScore', - 'author_full_name' => 'setAuthorFullName', - 'domain' => 'setDomain', + 'subcategory' => 'setSubcategory', 'table_id' => 'setTableId', - 'id' => 'setId', - 'published_date' => 'setPublishedDate', - 'category' => 'setCategory', - 'subcategory' => 'setSubcategory' + 'tags' => 'setTags', + 'title' => 'setTitle', + 'type' => 'setType', + 'url' => 'setUrl' ]; /** @@ -265,23 +265,23 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'author_full_name' => 'getAuthorFullName', + 'category' => 'getCategory', 'combined_id' => 'getCombinedId', 'description' => 'getDescription', + 'domain' => 'getDomain', + 'featured_image_url' => 'getFeaturedImageUrl', + 'id' => 'getId', 'language' => 'getLanguage', - 'type' => 'getType', - 'title' => 'getTitle', - 'url' => 'getUrl', - 'tags' => 'getTags', + 'published_date' => 'getPublishedDate', 'row_id' => 'getRowId', - 'featured_image_url' => 'getFeaturedImageUrl', 'score' => 'getScore', - 'author_full_name' => 'getAuthorFullName', - 'domain' => 'getDomain', + 'subcategory' => 'getSubcategory', 'table_id' => 'getTableId', - 'id' => 'getId', - 'published_date' => 'getPublishedDate', - 'category' => 'getCategory', - 'subcategory' => 'getSubcategory' + 'tags' => 'getTags', + 'title' => 'getTitle', + 'type' => 'getType', + 'url' => 'getUrl' ]; /** @@ -698,6 +698,7 @@ public function getModelName() public const LANGUAGE_HAW = 'haw'; public const LANGUAGE_HAW_US = 'haw-us'; public const LANGUAGE_HE = 'he'; + public const LANGUAGE_HE_IL = 'he-il'; public const LANGUAGE_HI = 'hi'; public const LANGUAGE_HI_IN = 'hi-in'; public const LANGUAGE_HR = 'hr'; @@ -712,11 +713,11 @@ public function getModelName() public const LANGUAGE_IA = 'ia'; public const LANGUAGE_IA_001 = 'ia-001'; public const LANGUAGE_ID = 'id'; + public const LANGUAGE_ID_ID = 'id-id'; public const LANGUAGE_IG = 'ig'; public const LANGUAGE_IG_NG = 'ig-ng'; public const LANGUAGE_II = 'ii'; public const LANGUAGE_II_CN = 'ii-cn'; - public const LANGUAGE_ID_ID = 'id-id'; public const LANGUAGE_IS = 'is'; public const LANGUAGE_IS_IS = 'is-is'; public const LANGUAGE_IT = 'it'; @@ -724,13 +725,10 @@ public function getModelName() public const LANGUAGE_IT_IT = 'it-it'; public const LANGUAGE_IT_SM = 'it-sm'; public const LANGUAGE_IT_VA = 'it-va'; - public const LANGUAGE_HE_IL = 'he-il'; public const LANGUAGE_JA = 'ja'; public const LANGUAGE_JA_JP = 'ja-jp'; public const LANGUAGE_JGO = 'jgo'; public const LANGUAGE_JGO_CM = 'jgo-cm'; - public const LANGUAGE_YI = 'yi'; - public const LANGUAGE_YI_001 = 'yi-001'; public const LANGUAGE_JMC = 'jmc'; public const LANGUAGE_JMC_TZ = 'jmc-tz'; public const LANGUAGE_JV = 'jv'; @@ -774,10 +772,10 @@ public function getModelName() public const LANGUAGE_KSF_CM = 'ksf-cm'; public const LANGUAGE_KSH = 'ksh'; public const LANGUAGE_KSH_DE = 'ksh-de'; - public const LANGUAGE_KW = 'kw'; - public const LANGUAGE_KW_GB = 'kw-gb'; public const LANGUAGE_KU = 'ku'; public const LANGUAGE_KU_TR = 'ku-tr'; + public const LANGUAGE_KW = 'kw'; + public const LANGUAGE_KW_GB = 'kw-gb'; public const LANGUAGE_KY = 'ky'; public const LANGUAGE_KY_KG = 'ky-kg'; public const LANGUAGE_LAG = 'lag'; @@ -864,8 +862,8 @@ public function getModelName() public const LANGUAGE_NL = 'nl'; public const LANGUAGE_NL_AW = 'nl-aw'; public const LANGUAGE_NL_BE = 'nl-be'; - public const LANGUAGE_NL_CH = 'nl-ch'; public const LANGUAGE_NL_BQ = 'nl-bq'; + public const LANGUAGE_NL_CH = 'nl-ch'; public const LANGUAGE_NL_CW = 'nl-cw'; public const LANGUAGE_NL_LU = 'nl-lu'; public const LANGUAGE_NL_NL = 'nl-nl'; @@ -1061,6 +1059,8 @@ public function getModelName() public const LANGUAGE_XOG_UG = 'xog-ug'; public const LANGUAGE_YAV = 'yav'; public const LANGUAGE_YAV_CM = 'yav-cm'; + public const LANGUAGE_YI = 'yi'; + public const LANGUAGE_YI_001 = 'yi-001'; public const LANGUAGE_YO = 'yo'; public const LANGUAGE_YO_BJ = 'yo-bj'; public const LANGUAGE_YO_NG = 'yo-ng'; @@ -1071,19 +1071,19 @@ public function getModelName() public const LANGUAGE_ZGH_MA = 'zgh-ma'; public const LANGUAGE_ZH = 'zh'; public const LANGUAGE_ZH_CN = 'zh-cn'; + public const LANGUAGE_ZH_HANS = 'zh-hans'; + public const LANGUAGE_ZH_HANT = 'zh-hant'; public const LANGUAGE_ZH_HK = 'zh-hk'; public const LANGUAGE_ZH_MO = 'zh-mo'; public const LANGUAGE_ZH_SG = 'zh-sg'; public const LANGUAGE_ZH_TW = 'zh-tw'; - public const LANGUAGE_ZH_HANS = 'zh-hans'; - public const LANGUAGE_ZH_HANT = 'zh-hant'; public const LANGUAGE_ZU = 'zu'; public const LANGUAGE_ZU_ZA = 'zu-za'; - public const TYPE_LANDING_PAGE = 'LANDING_PAGE'; public const TYPE_BLOG_POST = 'BLOG_POST'; - public const TYPE_SITE_PAGE = 'SITE_PAGE'; public const TYPE_KNOWLEDGE_ARTICLE = 'KNOWLEDGE_ARTICLE'; + public const TYPE_LANDING_PAGE = 'LANDING_PAGE'; public const TYPE_LISTING_PAGE = 'LISTING_PAGE'; + public const TYPE_SITE_PAGE = 'SITE_PAGE'; /** * Gets allowable values of the enum @@ -1466,6 +1466,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_HAW, self::LANGUAGE_HAW_US, self::LANGUAGE_HE, + self::LANGUAGE_HE_IL, self::LANGUAGE_HI, self::LANGUAGE_HI_IN, self::LANGUAGE_HR, @@ -1480,11 +1481,11 @@ public function getLanguageAllowableValues() self::LANGUAGE_IA, self::LANGUAGE_IA_001, self::LANGUAGE_ID, + self::LANGUAGE_ID_ID, self::LANGUAGE_IG, self::LANGUAGE_IG_NG, self::LANGUAGE_II, self::LANGUAGE_II_CN, - self::LANGUAGE_ID_ID, self::LANGUAGE_IS, self::LANGUAGE_IS_IS, self::LANGUAGE_IT, @@ -1492,13 +1493,10 @@ public function getLanguageAllowableValues() self::LANGUAGE_IT_IT, self::LANGUAGE_IT_SM, self::LANGUAGE_IT_VA, - self::LANGUAGE_HE_IL, self::LANGUAGE_JA, self::LANGUAGE_JA_JP, self::LANGUAGE_JGO, self::LANGUAGE_JGO_CM, - self::LANGUAGE_YI, - self::LANGUAGE_YI_001, self::LANGUAGE_JMC, self::LANGUAGE_JMC_TZ, self::LANGUAGE_JV, @@ -1542,10 +1540,10 @@ public function getLanguageAllowableValues() self::LANGUAGE_KSF_CM, self::LANGUAGE_KSH, self::LANGUAGE_KSH_DE, - self::LANGUAGE_KW, - self::LANGUAGE_KW_GB, self::LANGUAGE_KU, self::LANGUAGE_KU_TR, + self::LANGUAGE_KW, + self::LANGUAGE_KW_GB, self::LANGUAGE_KY, self::LANGUAGE_KY_KG, self::LANGUAGE_LAG, @@ -1632,8 +1630,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_NL, self::LANGUAGE_NL_AW, self::LANGUAGE_NL_BE, - self::LANGUAGE_NL_CH, self::LANGUAGE_NL_BQ, + self::LANGUAGE_NL_CH, self::LANGUAGE_NL_CW, self::LANGUAGE_NL_LU, self::LANGUAGE_NL_NL, @@ -1829,6 +1827,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_XOG_UG, self::LANGUAGE_YAV, self::LANGUAGE_YAV_CM, + self::LANGUAGE_YI, + self::LANGUAGE_YI_001, self::LANGUAGE_YO, self::LANGUAGE_YO_BJ, self::LANGUAGE_YO_NG, @@ -1839,12 +1839,12 @@ public function getLanguageAllowableValues() self::LANGUAGE_ZGH_MA, self::LANGUAGE_ZH, self::LANGUAGE_ZH_CN, + self::LANGUAGE_ZH_HANS, + self::LANGUAGE_ZH_HANT, self::LANGUAGE_ZH_HK, self::LANGUAGE_ZH_MO, self::LANGUAGE_ZH_SG, self::LANGUAGE_ZH_TW, - self::LANGUAGE_ZH_HANS, - self::LANGUAGE_ZH_HANT, self::LANGUAGE_ZU, self::LANGUAGE_ZU_ZA, ]; @@ -1858,11 +1858,11 @@ public function getLanguageAllowableValues() public function getTypeAllowableValues() { return [ - self::TYPE_LANDING_PAGE, self::TYPE_BLOG_POST, - self::TYPE_SITE_PAGE, self::TYPE_KNOWLEDGE_ARTICLE, + self::TYPE_LANDING_PAGE, self::TYPE_LISTING_PAGE, + self::TYPE_SITE_PAGE, ]; } @@ -1881,23 +1881,23 @@ public function getTypeAllowableValues() */ public function __construct(?array $data = null) { + $this->setIfExists('author_full_name', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('combined_id', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); - $this->setIfExists('language', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); - $this->setIfExists('title', $data ?? [], null); - $this->setIfExists('url', $data ?? [], null); - $this->setIfExists('tags', $data ?? [], null); - $this->setIfExists('row_id', $data ?? [], null); - $this->setIfExists('featured_image_url', $data ?? [], null); - $this->setIfExists('score', $data ?? [], null); - $this->setIfExists('author_full_name', $data ?? [], null); $this->setIfExists('domain', $data ?? [], null); - $this->setIfExists('table_id', $data ?? [], null); + $this->setIfExists('featured_image_url', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('language', $data ?? [], null); $this->setIfExists('published_date', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); + $this->setIfExists('row_id', $data ?? [], null); + $this->setIfExists('score', $data ?? [], null); $this->setIfExists('subcategory', $data ?? [], null); + $this->setIfExists('table_id', $data ?? [], null); + $this->setIfExists('tags', $data ?? [], null); + $this->setIfExists('title', $data ?? [], null); + $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); } /** @@ -1927,6 +1927,12 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['domain'] === null) { + $invalidProperties[] = "'domain' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } $allowedValues = $this->getLanguageAllowableValues(); if (!is_null($this->container['language']) && !in_array($this->container['language'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -1936,6 +1942,9 @@ public function listInvalidProperties() ); } + if ($this->container['score'] === null) { + $invalidProperties[] = "'score' can't be null"; + } if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -1951,15 +1960,6 @@ public function listInvalidProperties() if ($this->container['url'] === null) { $invalidProperties[] = "'url' can't be null"; } - if ($this->container['score'] === null) { - $invalidProperties[] = "'score' can't be null"; - } - if ($this->container['domain'] === null) { - $invalidProperties[] = "'domain' can't be null"; - } - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } return $invalidProperties; } @@ -1975,6 +1975,60 @@ public function valid() } + /** + * Gets author_full_name + * + * @return string|null + */ + public function getAuthorFullName() + { + return $this->container['author_full_name']; + } + + /** + * Sets author_full_name + * + * @param string|null $author_full_name Name of the author. + * + * @return self + */ + public function setAuthorFullName($author_full_name) + { + if (is_null($author_full_name)) { + throw new \InvalidArgumentException('non-nullable author_full_name cannot be null'); + } + $this->container['author_full_name'] = $author_full_name; + + return $this; + } + + /** + * Gets category + * + * @return string|null + */ + public function getCategory() + { + return $this->container['category']; + } + + /** + * Sets category + * + * @param string|null $category For knowledge articles, the category of the article. + * + * @return self + */ + public function setCategory($category) + { + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); + } + $this->container['category'] = $category; + + return $this; + } + /** * Gets combined_id * @@ -2030,156 +2084,146 @@ public function setDescription($description) } /** - * Gets language + * Gets domain * - * @return string|null + * @return string */ - public function getLanguage() + public function getDomain() { - return $this->container['language']; + return $this->container['domain']; } /** - * Sets language + * Sets domain * - * @param string|null $language The document's language. + * @param string $domain The domain the document is hosted on. * * @return self */ - public function setLanguage($language) + public function setDomain($domain) { - if (is_null($language)) { - throw new \InvalidArgumentException('non-nullable language cannot be null'); - } - $allowedValues = $this->getLanguageAllowableValues(); - if (!in_array($language, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'language', must be one of '%s'", - $language, - implode("', '", $allowedValues) - ) - ); + if (is_null($domain)) { + throw new \InvalidArgumentException('non-nullable domain cannot be null'); } - $this->container['language'] = $language; + $this->container['domain'] = $domain; return $this; } /** - * Gets type + * Gets featured_image_url * - * @return string + * @return string|null */ - public function getType() + public function getFeaturedImageUrl() { - return $this->container['type']; + return $this->container['featured_image_url']; } /** - * Sets type + * Sets featured_image_url * - * @param string $type The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, `LISTING_PAGE`, or `KNOWLEDGE_ARTICLE`. + * @param string|null $featured_image_url URL of the featured image. * * @return self */ - public function setType($type) + public function setFeaturedImageUrl($featured_image_url) { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); + if (is_null($featured_image_url)) { + throw new \InvalidArgumentException('non-nullable featured_image_url cannot be null'); } - $this->container['type'] = $type; + $this->container['featured_image_url'] = $featured_image_url; return $this; } /** - * Gets title + * Gets id * - * @return string|null + * @return int */ - public function getTitle() + public function getId() { - return $this->container['title']; + return $this->container['id']; } /** - * Sets title + * Sets id * - * @param string|null $title The title of the returned document. + * @param int $id The ID of the content. * * @return self */ - public function setTitle($title) + public function setId($id) { - if (is_null($title)) { - throw new \InvalidArgumentException('non-nullable title cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['title'] = $title; + $this->container['id'] = $id; return $this; } /** - * Gets url + * Gets language * - * @return string + * @return string|null */ - public function getUrl() + public function getLanguage() { - return $this->container['url']; + return $this->container['language']; } /** - * Sets url + * Sets language * - * @param string $url The url of the document. + * @param string|null $language The document's language. * * @return self */ - public function setUrl($url) + public function setLanguage($language) { - if (is_null($url)) { - throw new \InvalidArgumentException('non-nullable url cannot be null'); + if (is_null($language)) { + throw new \InvalidArgumentException('non-nullable language cannot be null'); } - $this->container['url'] = $url; + $allowedValues = $this->getLanguageAllowableValues(); + if (!in_array($language, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'language', must be one of '%s'", + $language, + implode("', '", $allowedValues) + ) + ); + } + $this->container['language'] = $language; return $this; } /** - * Gets tags + * Gets published_date * - * @return string[]|null + * @return int|null */ - public function getTags() + public function getPublishedDate() { - return $this->container['tags']; + return $this->container['published_date']; } /** - * Sets tags + * Sets published_date * - * @param string[]|null $tags If a blog post, the tags associated with it. + * @param int|null $published_date The date the content was published. * * @return self */ - public function setTags($tags) + public function setPublishedDate($published_date) { - if (is_null($tags)) { - throw new \InvalidArgumentException('non-nullable tags cannot be null'); + if (is_null($published_date)) { + throw new \InvalidArgumentException('non-nullable published_date cannot be null'); } - $this->container['tags'] = $tags; + $this->container['published_date'] = $published_date; return $this; } @@ -2211,33 +2255,6 @@ public function setRowId($row_id) return $this; } - /** - * Gets featured_image_url - * - * @return string|null - */ - public function getFeaturedImageUrl() - { - return $this->container['featured_image_url']; - } - - /** - * Sets featured_image_url - * - * @param string|null $featured_image_url URL of the featured image. - * - * @return self - */ - public function setFeaturedImageUrl($featured_image_url) - { - if (is_null($featured_image_url)) { - throw new \InvalidArgumentException('non-nullable featured_image_url cannot be null'); - } - $this->container['featured_image_url'] = $featured_image_url; - - return $this; - } - /** * Gets score * @@ -2266,55 +2283,28 @@ public function setScore($score) } /** - * Gets author_full_name + * Gets subcategory * * @return string|null */ - public function getAuthorFullName() - { - return $this->container['author_full_name']; - } - - /** - * Sets author_full_name - * - * @param string|null $author_full_name Name of the author. - * - * @return self - */ - public function setAuthorFullName($author_full_name) - { - if (is_null($author_full_name)) { - throw new \InvalidArgumentException('non-nullable author_full_name cannot be null'); - } - $this->container['author_full_name'] = $author_full_name; - - return $this; - } - - /** - * Gets domain - * - * @return string - */ - public function getDomain() + public function getSubcategory() { - return $this->container['domain']; + return $this->container['subcategory']; } /** - * Sets domain + * Sets subcategory * - * @param string $domain The domain the document is hosted on. + * @param string|null $subcategory For knowledge articles, the subcategory of the article. * * @return self */ - public function setDomain($domain) + public function setSubcategory($subcategory) { - if (is_null($domain)) { - throw new \InvalidArgumentException('non-nullable domain cannot be null'); + if (is_null($subcategory)) { + throw new \InvalidArgumentException('non-nullable subcategory cannot be null'); } - $this->container['domain'] = $domain; + $this->container['subcategory'] = $subcategory; return $this; } @@ -2347,109 +2337,119 @@ public function setTableId($table_id) } /** - * Gets id + * Gets tags * - * @return int + * @return string[]|null */ - public function getId() + public function getTags() { - return $this->container['id']; + return $this->container['tags']; } /** - * Sets id + * Sets tags * - * @param int $id The ID of the content. + * @param string[]|null $tags If a blog post, the tags associated with it. * * @return self */ - public function setId($id) + public function setTags($tags) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($tags)) { + throw new \InvalidArgumentException('non-nullable tags cannot be null'); } - $this->container['id'] = $id; + $this->container['tags'] = $tags; return $this; } /** - * Gets published_date + * Gets title * - * @return int|null + * @return string|null */ - public function getPublishedDate() + public function getTitle() { - return $this->container['published_date']; + return $this->container['title']; } /** - * Sets published_date + * Sets title * - * @param int|null $published_date The date the content was published. + * @param string|null $title The title of the returned document. * * @return self */ - public function setPublishedDate($published_date) + public function setTitle($title) { - if (is_null($published_date)) { - throw new \InvalidArgumentException('non-nullable published_date cannot be null'); + if (is_null($title)) { + throw new \InvalidArgumentException('non-nullable title cannot be null'); } - $this->container['published_date'] = $published_date; + $this->container['title'] = $title; return $this; } /** - * Gets category + * Gets type * - * @return string|null + * @return string */ - public function getCategory() + public function getType() { - return $this->container['category']; + return $this->container['type']; } /** - * Sets category + * Sets type * - * @param string|null $category For knowledge articles, the category of the article. + * @param string $type The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, `LISTING_PAGE`, or `KNOWLEDGE_ARTICLE`. * * @return self */ - public function setCategory($category) + public function setType($type) { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); } - $this->container['category'] = $category; + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; return $this; } /** - * Gets subcategory + * Gets url * - * @return string|null + * @return string */ - public function getSubcategory() + public function getUrl() { - return $this->container['subcategory']; + return $this->container['url']; } /** - * Sets subcategory + * Sets url * - * @param string|null $subcategory For knowledge articles, the subcategory of the article. + * @param string $url The url of the document. * * @return self */ - public function setSubcategory($subcategory) + public function setUrl($url) { - if (is_null($subcategory)) { - throw new \InvalidArgumentException('non-nullable subcategory cannot be null'); + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); } - $this->container['subcategory'] = $subcategory; + $this->container['url'] = $url; return $this; } diff --git a/codegen/Cms/SiteSearch/Model/Error.php b/codegen/Cms/SiteSearch/Model/Error.php index c97b63d6..520bfe05 100644 --- a/codegen/Cms/SiteSearch/Model/Error.php +++ b/codegen/Cms/SiteSearch/Model/Error.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', + 'category' => 'string', 'context' => 'array', 'correlation_id' => 'string', + 'errors' => '\HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]', 'links' => 'array', 'message' => 'string', - 'category' => 'string', - 'errors' => '\HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]' + 'sub_category' => 'string' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, + 'category' => null, 'context' => null, 'correlation_id' => 'uuid', + 'errors' => null, 'links' => null, 'message' => null, - 'category' => null, - 'errors' => null + 'sub_category' => null ]; /** @@ -89,13 +89,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, + 'category' => false, 'context' => false, 'correlation_id' => false, + 'errors' => false, 'links' => false, 'message' => false, - 'category' => false, - 'errors' => false + 'sub_category' => false ]; /** @@ -184,13 +184,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', + 'category' => 'category', 'context' => 'context', 'correlation_id' => 'correlationId', + 'errors' => 'errors', 'links' => 'links', 'message' => 'message', - 'category' => 'category', - 'errors' => 'errors' + 'sub_category' => 'subCategory' ]; /** @@ -199,13 +199,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', + 'category' => 'setCategory', 'context' => 'setContext', 'correlation_id' => 'setCorrelationId', + 'errors' => 'setErrors', 'links' => 'setLinks', 'message' => 'setMessage', - 'category' => 'setCategory', - 'errors' => 'setErrors' + 'sub_category' => 'setSubCategory' ]; /** @@ -214,13 +214,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', + 'category' => 'getCategory', 'context' => 'getContext', 'correlation_id' => 'getCorrelationId', + 'errors' => 'getErrors', 'links' => 'getLinks', 'message' => 'getMessage', - 'category' => 'getCategory', - 'errors' => 'getErrors' + 'sub_category' => 'getSubCategory' ]; /** @@ -280,13 +280,13 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); $this->setIfExists('correlation_id', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); $this->setIfExists('links', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -316,15 +316,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; + } if ($this->container['correlation_id'] === null) { $invalidProperties[] = "'correlation_id' can't be null"; } if ($this->container['message'] === null) { $invalidProperties[] = "'message' can't be null"; } - if ($this->container['category'] === null) { - $invalidProperties[] = "'category' can't be null"; - } return $invalidProperties; } @@ -341,28 +341,28 @@ public function valid() /** - * Gets sub_category + * Gets category * - * @return string|null + * @return string */ - public function getSubCategory() + public function getCategory() { - return $this->container['sub_category']; + return $this->container['category']; } /** - * Sets sub_category + * Sets category * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string $category The error category * * @return self */ - public function setSubCategory($sub_category) + public function setCategory($category) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['category'] = $category; return $this; } @@ -421,6 +421,33 @@ public function setCorrelationId($correlation_id) return $this; } + /** + * Gets errors + * + * @return \HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]|null $errors further information about the error + * + * @return self + */ + public function setErrors($errors) + { + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); + } + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets links * @@ -476,55 +503,28 @@ public function setMessage($message) } /** - * Gets category - * - * @return string - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param string $category The error category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets errors + * Gets sub_category * - * @return \HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]|null + * @return string|null */ - public function getErrors() + public function getSubCategory() { - return $this->container['errors']; + return $this->container['sub_category']; } /** - * Sets errors + * Sets sub_category * - * @param \HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]|null $errors further information about the error + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setErrors($errors) + public function setSubCategory($sub_category) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['errors'] = $errors; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/SiteSearch/Model/ErrorDetail.php b/codegen/Cms/SiteSearch/Model/ErrorDetail.php index 459f7993..a6057c11 100644 --- a/codegen/Cms/SiteSearch/Model/ErrorDetail.php +++ b/codegen/Cms/SiteSearch/Model/ErrorDetail.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', 'code' => 'string', - 'in' => 'string', 'context' => 'array', - 'message' => 'string' + 'in' => 'string', + 'message' => 'string', + 'sub_category' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, 'code' => null, - 'in' => null, 'context' => null, - 'message' => null + 'in' => null, + 'message' => null, + 'sub_category' => null ]; /** @@ -85,11 +85,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, 'code' => false, - 'in' => false, 'context' => false, - 'message' => false + 'in' => false, + 'message' => false, + 'sub_category' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', 'code' => 'code', - 'in' => 'in', 'context' => 'context', - 'message' => 'message' + 'in' => 'in', + 'message' => 'message', + 'sub_category' => 'subCategory' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', 'code' => 'setCode', - 'in' => 'setIn', 'context' => 'setContext', - 'message' => 'setMessage' + 'in' => 'setIn', + 'message' => 'setMessage', + 'sub_category' => 'setSubCategory' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', 'code' => 'getCode', - 'in' => 'getIn', 'context' => 'getContext', - 'message' => 'getMessage' + 'in' => 'getIn', + 'message' => 'getMessage', + 'sub_category' => 'getSubCategory' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('in', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); + $this->setIfExists('in', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -321,55 +321,55 @@ public function valid() /** - * Gets sub_category + * Gets code * * @return string|null */ - public function getSubCategory() + public function getCode() { - return $this->container['sub_category']; + return $this->container['code']; } /** - * Sets sub_category + * Sets code * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $code The status code associated with the error detail * * @return self */ - public function setSubCategory($sub_category) + public function setCode($code) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['code'] = $code; return $this; } /** - * Gets code + * Gets context * - * @return string|null + * @return array|null */ - public function getCode() + public function getContext() { - return $this->container['code']; + return $this->container['context']; } /** - * Sets code + * Sets context * - * @param string|null $code The status code associated with the error detail + * @param array|null $context Context about the error condition * * @return self */ - public function setCode($code) + public function setContext($context) { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); + if (is_null($context)) { + throw new \InvalidArgumentException('non-nullable context cannot be null'); } - $this->container['code'] = $code; + $this->container['context'] = $context; return $this; } @@ -402,55 +402,55 @@ public function setIn($in) } /** - * Gets context + * Gets message * - * @return array|null + * @return string */ - public function getContext() + public function getMessage() { - return $this->container['context']; + return $this->container['message']; } /** - * Sets context + * Sets message * - * @param array|null $context Context about the error condition + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setContext($context) + public function setMessage($message) { - if (is_null($context)) { - throw new \InvalidArgumentException('non-nullable context cannot be null'); + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); } - $this->container['context'] = $context; + $this->container['message'] = $message; return $this; } /** - * Gets message + * Gets sub_category * - * @return string + * @return string|null */ - public function getMessage() + public function getSubCategory() { - return $this->container['message']; + return $this->container['sub_category']; } /** - * Sets message + * Sets sub_category * - * @param string $message A human readable message describing the error along with remediation steps where appropriate + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setMessage($message) + public function setSubCategory($sub_category) { - if (is_null($message)) { - throw new \InvalidArgumentException('non-nullable message cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/SiteSearch/Model/IndexedData.php b/codegen/Cms/SiteSearch/Model/IndexedData.php index 2c217c5d..8bcd909b 100644 --- a/codegen/Cms/SiteSearch/Model/IndexedData.php +++ b/codegen/Cms/SiteSearch/Model/IndexedData.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,9 +58,9 @@ class IndexedData implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'fields' => 'array', 'id' => 'string', - 'type' => 'string', - 'fields' => 'array' + 'type' => 'string' ]; /** @@ -71,9 +71,9 @@ class IndexedData implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'fields' => null, 'id' => null, - 'type' => null, - 'fields' => null + 'type' => null ]; /** @@ -82,9 +82,9 @@ class IndexedData implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ + 'fields' => false, 'id' => false, - 'type' => false, - 'fields' => false + 'type' => false ]; /** @@ -173,9 +173,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'fields' => 'fields', 'id' => 'id', - 'type' => 'type', - 'fields' => 'fields' + 'type' => 'type' ]; /** @@ -184,9 +184,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'fields' => 'setFields', 'id' => 'setId', - 'type' => 'setType', - 'fields' => 'setFields' + 'type' => 'setType' ]; /** @@ -195,9 +195,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'fields' => 'getFields', 'id' => 'getId', - 'type' => 'getType', - 'fields' => 'getFields' + 'type' => 'getType' ]; /** @@ -241,11 +241,11 @@ public function getModelName() return self::$openAPIModelName; } - public const TYPE_LANDING_PAGE = 'LANDING_PAGE'; public const TYPE_BLOG_POST = 'BLOG_POST'; - public const TYPE_SITE_PAGE = 'SITE_PAGE'; public const TYPE_KNOWLEDGE_ARTICLE = 'KNOWLEDGE_ARTICLE'; + public const TYPE_LANDING_PAGE = 'LANDING_PAGE'; public const TYPE_LISTING_PAGE = 'LISTING_PAGE'; + public const TYPE_SITE_PAGE = 'SITE_PAGE'; /** * Gets allowable values of the enum @@ -255,11 +255,11 @@ public function getModelName() public function getTypeAllowableValues() { return [ - self::TYPE_LANDING_PAGE, self::TYPE_BLOG_POST, - self::TYPE_SITE_PAGE, self::TYPE_KNOWLEDGE_ARTICLE, + self::TYPE_LANDING_PAGE, self::TYPE_LISTING_PAGE, + self::TYPE_SITE_PAGE, ]; } @@ -278,9 +278,9 @@ public function getTypeAllowableValues() */ public function __construct(?array $data = null) { + $this->setIfExists('fields', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); - $this->setIfExists('fields', $data ?? [], null); } /** @@ -310,6 +310,9 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['fields'] === null) { + $invalidProperties[] = "'fields' can't be null"; + } if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -325,9 +328,6 @@ public function listInvalidProperties() ); } - if ($this->container['fields'] === null) { - $invalidProperties[] = "'fields' can't be null"; - } return $invalidProperties; } @@ -343,6 +343,33 @@ public function valid() } + /** + * Gets fields + * + * @return array + */ + public function getFields() + { + return $this->container['fields']; + } + + /** + * Sets fields + * + * @param array $fields The indexed fields in HubSpot. + * + * @return self + */ + public function setFields($fields) + { + if (is_null($fields)) { + throw new \InvalidArgumentException('non-nullable fields cannot be null'); + } + $this->container['fields'] = $fields; + + return $this; + } + /** * Gets id * @@ -406,33 +433,6 @@ public function setType($type) return $this; } - - /** - * Gets fields - * - * @return array - */ - public function getFields() - { - return $this->container['fields']; - } - - /** - * Sets fields - * - * @param array $fields The indexed fields in HubSpot. - * - * @return self - */ - public function setFields($fields) - { - if (is_null($fields)) { - throw new \InvalidArgumentException('non-nullable fields cannot be null'); - } - $this->container['fields'] = $fields; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/SiteSearch/Model/IndexedField.php b/codegen/Cms/SiteSearch/Model/IndexedField.php index 6448ea06..8db6633c 100644 --- a/codegen/Cms/SiteSearch/Model/IndexedField.php +++ b/codegen/Cms/SiteSearch/Model/IndexedField.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,10 +57,10 @@ class IndexedField implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'values' => 'object[]', + 'metadata_field' => 'bool', 'name' => 'string', 'value' => 'object', - 'metadata_field' => 'bool' + 'values' => 'object[]' ]; /** @@ -71,10 +71,10 @@ class IndexedField implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'values' => null, + 'metadata_field' => null, 'name' => null, 'value' => null, - 'metadata_field' => null + 'values' => null ]; /** @@ -83,10 +83,10 @@ class IndexedField implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'values' => false, + 'metadata_field' => false, 'name' => false, 'value' => false, - 'metadata_field' => false + 'values' => false ]; /** @@ -175,10 +175,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'values' => 'values', + 'metadata_field' => 'metadataField', 'name' => 'name', 'value' => 'value', - 'metadata_field' => 'metadataField' + 'values' => 'values' ]; /** @@ -187,10 +187,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'values' => 'setValues', + 'metadata_field' => 'setMetadataField', 'name' => 'setName', 'value' => 'setValue', - 'metadata_field' => 'setMetadataField' + 'values' => 'setValues' ]; /** @@ -199,10 +199,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'values' => 'getValues', + 'metadata_field' => 'getMetadataField', 'name' => 'getName', 'value' => 'getValue', - 'metadata_field' => 'getMetadataField' + 'values' => 'getValues' ]; /** @@ -262,10 +262,10 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('values', $data ?? [], null); + $this->setIfExists('metadata_field', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('value', $data ?? [], null); - $this->setIfExists('metadata_field', $data ?? [], null); + $this->setIfExists('values', $data ?? [], null); } /** @@ -295,8 +295,8 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['values'] === null) { - $invalidProperties[] = "'values' can't be null"; + if ($this->container['metadata_field'] === null) { + $invalidProperties[] = "'metadata_field' can't be null"; } if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; @@ -304,8 +304,8 @@ public function listInvalidProperties() if ($this->container['value'] === null) { $invalidProperties[] = "'value' can't be null"; } - if ($this->container['metadata_field'] === null) { - $invalidProperties[] = "'metadata_field' can't be null"; + if ($this->container['values'] === null) { + $invalidProperties[] = "'values' can't be null"; } return $invalidProperties; } @@ -323,28 +323,28 @@ public function valid() /** - * Gets values + * Gets metadata_field * - * @return object[] + * @return bool */ - public function getValues() + public function getMetadataField() { - return $this->container['values']; + return $this->container['metadata_field']; } /** - * Sets values + * Sets metadata_field * - * @param object[] $values values + * @param bool $metadata_field Indicates whether the field is a metadata field. * * @return self */ - public function setValues($values) + public function setMetadataField($metadata_field) { - if (is_null($values)) { - throw new \InvalidArgumentException('non-nullable values cannot be null'); + if (is_null($metadata_field)) { + throw new \InvalidArgumentException('non-nullable metadata_field cannot be null'); } - $this->container['values'] = $values; + $this->container['metadata_field'] = $metadata_field; return $this; } @@ -362,7 +362,7 @@ public function getName() /** * Sets name * - * @param string $name name + * @param string $name The name of the indexed field. * * @return self */ @@ -389,7 +389,7 @@ public function getValue() /** * Sets value * - * @param object $value value + * @param object $value The primary value of the indexed field. * * @return self */ @@ -404,28 +404,28 @@ public function setValue($value) } /** - * Gets metadata_field + * Gets values * - * @return bool + * @return object[] */ - public function getMetadataField() + public function getValues() { - return $this->container['metadata_field']; + return $this->container['values']; } /** - * Sets metadata_field + * Sets values * - * @param bool $metadata_field metadata_field + * @param object[] $values values * * @return self */ - public function setMetadataField($metadata_field) + public function setValues($values) { - if (is_null($metadata_field)) { - throw new \InvalidArgumentException('non-nullable metadata_field cannot be null'); + if (is_null($values)) { + throw new \InvalidArgumentException('non-nullable values cannot be null'); } - $this->container['metadata_field'] = $metadata_field; + $this->container['values'] = $values; return $this; } diff --git a/codegen/Cms/SiteSearch/Model/ModelInterface.php b/codegen/Cms/SiteSearch/Model/ModelInterface.php index 6c09ca1b..5d2ebf22 100644 --- a/codegen/Cms/SiteSearch/Model/ModelInterface.php +++ b/codegen/Cms/SiteSearch/Model/ModelInterface.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SiteSearch/Model/PublicSearchResults.php b/codegen/Cms/SiteSearch/Model/PublicSearchResults.php index 6a0f0fbf..22b7e66f 100644 --- a/codegen/Cms/SiteSearch/Model/PublicSearchResults.php +++ b/codegen/Cms/SiteSearch/Model/PublicSearchResults.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,12 +57,12 @@ class PublicSearchResults implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'total' => 'int', - 'search_term' => 'string', - 'offset' => 'int', 'limit' => 'int', + 'offset' => 'int', 'page' => 'int', - 'results' => '\HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[]' + 'results' => '\HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[]', + 'search_term' => 'string', + 'total' => 'int' ]; /** @@ -73,12 +73,12 @@ class PublicSearchResults implements ModelInterface, ArrayAccess, \JsonSerializa * @psalm-var array */ protected static $openAPIFormats = [ - 'total' => 'int32', - 'search_term' => null, - 'offset' => 'int32', 'limit' => 'int32', + 'offset' => 'int32', 'page' => 'int32', - 'results' => null + 'results' => null, + 'search_term' => null, + 'total' => 'int32' ]; /** @@ -87,12 +87,12 @@ class PublicSearchResults implements ModelInterface, ArrayAccess, \JsonSerializa * @var boolean[] */ protected static array $openAPINullables = [ - 'total' => false, - 'search_term' => false, - 'offset' => false, 'limit' => false, + 'offset' => false, 'page' => false, - 'results' => false + 'results' => false, + 'search_term' => false, + 'total' => false ]; /** @@ -181,12 +181,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'total' => 'total', - 'search_term' => 'searchTerm', - 'offset' => 'offset', 'limit' => 'limit', + 'offset' => 'offset', 'page' => 'page', - 'results' => 'results' + 'results' => 'results', + 'search_term' => 'searchTerm', + 'total' => 'total' ]; /** @@ -195,12 +195,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'total' => 'setTotal', - 'search_term' => 'setSearchTerm', - 'offset' => 'setOffset', 'limit' => 'setLimit', + 'offset' => 'setOffset', 'page' => 'setPage', - 'results' => 'setResults' + 'results' => 'setResults', + 'search_term' => 'setSearchTerm', + 'total' => 'setTotal' ]; /** @@ -209,12 +209,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'total' => 'getTotal', - 'search_term' => 'getSearchTerm', - 'offset' => 'getOffset', 'limit' => 'getLimit', + 'offset' => 'getOffset', 'page' => 'getPage', - 'results' => 'getResults' + 'results' => 'getResults', + 'search_term' => 'getSearchTerm', + 'total' => 'getTotal' ]; /** @@ -274,12 +274,12 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('total', $data ?? [], null); - $this->setIfExists('search_term', $data ?? [], null); - $this->setIfExists('offset', $data ?? [], null); $this->setIfExists('limit', $data ?? [], null); + $this->setIfExists('offset', $data ?? [], null); $this->setIfExists('page', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); + $this->setIfExists('search_term', $data ?? [], null); + $this->setIfExists('total', $data ?? [], null); } /** @@ -309,21 +309,21 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['total'] === null) { - $invalidProperties[] = "'total' can't be null"; + if ($this->container['limit'] === null) { + $invalidProperties[] = "'limit' can't be null"; } if ($this->container['offset'] === null) { $invalidProperties[] = "'offset' can't be null"; } - if ($this->container['limit'] === null) { - $invalidProperties[] = "'limit' can't be null"; - } if ($this->container['page'] === null) { $invalidProperties[] = "'page' can't be null"; } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } return $invalidProperties; } @@ -340,163 +340,163 @@ public function valid() /** - * Gets total + * Gets limit * * @return int */ - public function getTotal() + public function getLimit() { - return $this->container['total']; + return $this->container['limit']; } /** - * Sets total + * Sets limit * - * @param int $total total + * @param int $limit The number of results returned in a single response. * * @return self */ - public function setTotal($total) + public function setLimit($limit) { - if (is_null($total)) { - throw new \InvalidArgumentException('non-nullable total cannot be null'); + if (is_null($limit)) { + throw new \InvalidArgumentException('non-nullable limit cannot be null'); } - $this->container['total'] = $total; + $this->container['limit'] = $limit; return $this; } /** - * Gets search_term + * Gets offset * - * @return string|null + * @return int */ - public function getSearchTerm() + public function getOffset() { - return $this->container['search_term']; + return $this->container['offset']; } /** - * Sets search_term + * Sets offset * - * @param string|null $search_term search_term + * @param int $offset The starting point for the next set of results in pagination. * * @return self */ - public function setSearchTerm($search_term) + public function setOffset($offset) { - if (is_null($search_term)) { - throw new \InvalidArgumentException('non-nullable search_term cannot be null'); + if (is_null($offset)) { + throw new \InvalidArgumentException('non-nullable offset cannot be null'); } - $this->container['search_term'] = $search_term; + $this->container['offset'] = $offset; return $this; } /** - * Gets offset + * Gets page * * @return int */ - public function getOffset() + public function getPage() { - return $this->container['offset']; + return $this->container['page']; } /** - * Sets offset + * Sets page * - * @param int $offset offset + * @param int $page The current page number in the paginated results. * * @return self */ - public function setOffset($offset) + public function setPage($page) { - if (is_null($offset)) { - throw new \InvalidArgumentException('non-nullable offset cannot be null'); + if (is_null($page)) { + throw new \InvalidArgumentException('non-nullable page cannot be null'); } - $this->container['offset'] = $offset; + $this->container['page'] = $page; return $this; } /** - * Gets limit + * Gets results * - * @return int + * @return \HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[] */ - public function getLimit() + public function getResults() { - return $this->container['limit']; + return $this->container['results']; } /** - * Sets limit + * Sets results * - * @param int $limit limit + * @param \HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[] $results results * * @return self */ - public function setLimit($limit) + public function setResults($results) { - if (is_null($limit)) { - throw new \InvalidArgumentException('non-nullable limit cannot be null'); + if (is_null($results)) { + throw new \InvalidArgumentException('non-nullable results cannot be null'); } - $this->container['limit'] = $limit; + $this->container['results'] = $results; return $this; } /** - * Gets page + * Gets search_term * - * @return int + * @return string|null */ - public function getPage() + public function getSearchTerm() { - return $this->container['page']; + return $this->container['search_term']; } /** - * Sets page + * Sets search_term * - * @param int $page page + * @param string|null $search_term The term used in the search query. * * @return self */ - public function setPage($page) + public function setSearchTerm($search_term) { - if (is_null($page)) { - throw new \InvalidArgumentException('non-nullable page cannot be null'); + if (is_null($search_term)) { + throw new \InvalidArgumentException('non-nullable search_term cannot be null'); } - $this->container['page'] = $page; + $this->container['search_term'] = $search_term; return $this; } /** - * Gets results + * Gets total * - * @return \HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[] + * @return int */ - public function getResults() + public function getTotal() { - return $this->container['results']; + return $this->container['total']; } /** - * Sets results + * Sets total * - * @param \HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[] $results results + * @param int $total The total number of results found for the search term. * * @return self */ - public function setResults($results) + public function setTotal($total) { - if (is_null($results)) { - throw new \InvalidArgumentException('non-nullable results cannot be null'); + if (is_null($total)) { + throw new \InvalidArgumentException('non-nullable total cannot be null'); } - $this->container['results'] = $results; + $this->container['total'] = $total; return $this; } diff --git a/codegen/Cms/SiteSearch/ObjectSerializer.php b/codegen/Cms/SiteSearch/ObjectSerializer.php index a63ade05..ea9cb164 100644 --- a/codegen/Cms/SiteSearch/ObjectSerializer.php +++ b/codegen/Cms/SiteSearch/ObjectSerializer.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** From c7007dd285eff2a2560ffa5a0e5bbe4e602b5de8 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 6 Feb 2026 16:28:35 +0300 Subject: [PATCH 5/6] Codegen: CMS Source Code --- codegen/Cms/SourceCode/Api/ContentApi.php | 2 +- codegen/Cms/SourceCode/Api/ExtractApi.php | 2 +- codegen/Cms/SourceCode/Api/MetadataApi.php | 12 ++++++------ codegen/Cms/SourceCode/Api/ValidationApi.php | 2 +- codegen/Cms/SourceCode/ApiException.php | 2 +- codegen/Cms/SourceCode/Configuration.php | 2 +- codegen/Cms/SourceCode/FormDataProcessor.php | 2 +- codegen/Cms/SourceCode/HeaderSelector.php | 2 +- codegen/Cms/SourceCode/Model/ActionResponse.php | 12 ++++++------ codegen/Cms/SourceCode/Model/AssetFileMetadata.php | 4 ++-- codegen/Cms/SourceCode/Model/Error.php | 2 +- codegen/Cms/SourceCode/Model/ErrorDetail.php | 2 +- codegen/Cms/SourceCode/Model/FileExtractRequest.php | 4 ++-- codegen/Cms/SourceCode/Model/ModelInterface.php | 2 +- codegen/Cms/SourceCode/Model/TaskLocator.php | 6 +++--- codegen/Cms/SourceCode/ObjectSerializer.php | 2 +- 16 files changed, 30 insertions(+), 30 deletions(-) diff --git a/codegen/Cms/SourceCode/Api/ContentApi.php b/codegen/Cms/SourceCode/Api/ContentApi.php index 084a7eb8..b164e362 100644 --- a/codegen/Cms/SourceCode/Api/ContentApi.php +++ b/codegen/Cms/SourceCode/Api/ContentApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SourceCode/Api/ExtractApi.php b/codegen/Cms/SourceCode/Api/ExtractApi.php index e3af2db9..bbe1377b 100644 --- a/codegen/Cms/SourceCode/Api/ExtractApi.php +++ b/codegen/Cms/SourceCode/Api/ExtractApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SourceCode/Api/MetadataApi.php b/codegen/Cms/SourceCode/Api/MetadataApi.php index a3f30d26..e2f2847d 100644 --- a/codegen/Cms/SourceCode/Api/MetadataApi.php +++ b/codegen/Cms/SourceCode/Api/MetadataApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -132,7 +132,7 @@ public function getConfig() * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) - * @param string|null $properties properties (optional) + * @param string|null $properties environment: Either \"draft\" or \"published\", decides what version of the asset to return path: the path of the CMS asset being downloaded (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \HubSpot\Client\Cms\SourceCode\ApiException on non-2xx response or if the response body is not in the expected format @@ -152,7 +152,7 @@ public function get($environment, $path, $properties = null, string $contentType * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) - * @param string|null $properties (optional) + * @param string|null $properties environment: Either \"draft\" or \"published\", decides what version of the asset to return path: the path of the CMS asset being downloaded (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \HubSpot\Client\Cms\SourceCode\ApiException on non-2xx response or if the response body is not in the expected format @@ -253,7 +253,7 @@ public function getWithHttpInfo($environment, $path, $properties = null, string * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) - * @param string|null $properties (optional) + * @param string|null $properties environment: Either \"draft\" or \"published\", decides what version of the asset to return path: the path of the CMS asset being downloaded (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -276,7 +276,7 @@ function ($response) { * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) - * @param string|null $properties (optional) + * @param string|null $properties environment: Either \"draft\" or \"published\", decides what version of the asset to return path: the path of the CMS asset being downloaded (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -328,7 +328,7 @@ function ($exception) { * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) - * @param string|null $properties (optional) + * @param string|null $properties environment: Either \"draft\" or \"published\", decides what version of the asset to return path: the path of the CMS asset being downloaded (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['get'] to see the possible values for this operation * * @throws \InvalidArgumentException diff --git a/codegen/Cms/SourceCode/Api/ValidationApi.php b/codegen/Cms/SourceCode/Api/ValidationApi.php index 737196f6..66dbbce0 100644 --- a/codegen/Cms/SourceCode/Api/ValidationApi.php +++ b/codegen/Cms/SourceCode/Api/ValidationApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SourceCode/ApiException.php b/codegen/Cms/SourceCode/ApiException.php index 668d7d3a..d30a4f90 100644 --- a/codegen/Cms/SourceCode/ApiException.php +++ b/codegen/Cms/SourceCode/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SourceCode/Configuration.php b/codegen/Cms/SourceCode/Configuration.php index 477a4609..dc952baa 100644 --- a/codegen/Cms/SourceCode/Configuration.php +++ b/codegen/Cms/SourceCode/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SourceCode/FormDataProcessor.php b/codegen/Cms/SourceCode/FormDataProcessor.php index 8802fca9..aabc2065 100644 --- a/codegen/Cms/SourceCode/FormDataProcessor.php +++ b/codegen/Cms/SourceCode/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SourceCode/HeaderSelector.php b/codegen/Cms/SourceCode/HeaderSelector.php index 74dda36d..7606fe57 100644 --- a/codegen/Cms/SourceCode/HeaderSelector.php +++ b/codegen/Cms/SourceCode/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SourceCode/Model/ActionResponse.php b/codegen/Cms/SourceCode/Model/ActionResponse.php index 80231f92..3d8773b8 100644 --- a/codegen/Cms/SourceCode/Model/ActionResponse.php +++ b/codegen/Cms/SourceCode/Model/ActionResponse.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -367,7 +367,7 @@ public function getCompletedAt() /** * Sets completed_at * - * @param \DateTime $completed_at completed_at + * @param \DateTime $completed_at The timestamp indicating when the action was completed. * * @return self */ @@ -394,7 +394,7 @@ public function getLinks() /** * Sets links * - * @param array|null $links links + * @param array|null $links A collection of related links associated with the action. * * @return self */ @@ -421,7 +421,7 @@ public function getRequestedAt() /** * Sets requested_at * - * @param \DateTime|null $requested_at requested_at + * @param \DateTime|null $requested_at The timestamp indicating when the action was requested. * * @return self */ @@ -448,7 +448,7 @@ public function getStartedAt() /** * Sets started_at * - * @param \DateTime $started_at started_at + * @param \DateTime $started_at The timestamp indicating when the action was started. * * @return self */ @@ -475,7 +475,7 @@ public function getStatus() /** * Sets status * - * @param string $status status + * @param string $status The current status of the action, with possible values: CANCELED, COMPLETE, PENDING, PROCESSING. * * @return self */ diff --git a/codegen/Cms/SourceCode/Model/AssetFileMetadata.php b/codegen/Cms/SourceCode/Model/AssetFileMetadata.php index dc68baac..06d100da 100644 --- a/codegen/Cms/SourceCode/Model/AssetFileMetadata.php +++ b/codegen/Cms/SourceCode/Model/AssetFileMetadata.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -474,7 +474,7 @@ public function getHash() /** * Sets hash * - * @param string|null $hash hash + * @param string|null $hash A unique identifier for the file's content, used to verify data integrity. * * @return self */ diff --git a/codegen/Cms/SourceCode/Model/Error.php b/codegen/Cms/SourceCode/Model/Error.php index c6e60c5f..8adefdfa 100644 --- a/codegen/Cms/SourceCode/Model/Error.php +++ b/codegen/Cms/SourceCode/Model/Error.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SourceCode/Model/ErrorDetail.php b/codegen/Cms/SourceCode/Model/ErrorDetail.php index b0314f65..bc8d2c55 100644 --- a/codegen/Cms/SourceCode/Model/ErrorDetail.php +++ b/codegen/Cms/SourceCode/Model/ErrorDetail.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SourceCode/Model/FileExtractRequest.php b/codegen/Cms/SourceCode/Model/FileExtractRequest.php index cdbba30c..c6758739 100644 --- a/codegen/Cms/SourceCode/Model/FileExtractRequest.php +++ b/codegen/Cms/SourceCode/Model/FileExtractRequest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -305,7 +305,7 @@ public function getPath() /** * Sets path * - * @param string $path path + * @param string $path The file system location where the zip file is to be extracted. * * @return self */ diff --git a/codegen/Cms/SourceCode/Model/ModelInterface.php b/codegen/Cms/SourceCode/Model/ModelInterface.php index 3d00273c..ccaf9755 100644 --- a/codegen/Cms/SourceCode/Model/ModelInterface.php +++ b/codegen/Cms/SourceCode/Model/ModelInterface.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/SourceCode/Model/TaskLocator.php b/codegen/Cms/SourceCode/Model/TaskLocator.php index 0613eed2..51c992ab 100644 --- a/codegen/Cms/SourceCode/Model/TaskLocator.php +++ b/codegen/Cms/SourceCode/Model/TaskLocator.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -312,7 +312,7 @@ public function getId() /** * Sets id * - * @param string $id id + * @param string $id The unique identifier for the task. * * @return self */ @@ -339,7 +339,7 @@ public function getLinks() /** * Sets links * - * @param array|null $links links + * @param array|null $links A collection of link names mapped to their corresponding URIs. * * @return self */ diff --git a/codegen/Cms/SourceCode/ObjectSerializer.php b/codegen/Cms/SourceCode/ObjectSerializer.php index fc66ab33..1af13356 100644 --- a/codegen/Cms/SourceCode/ObjectSerializer.php +++ b/codegen/Cms/SourceCode/ObjectSerializer.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** From 128537b9d2376d4f16077a074b316ad3e7c1f3dc Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 6 Feb 2026 16:38:48 +0300 Subject: [PATCH 6/6] Codegen: CMS Url Redirects --- codegen/Cms/UrlRedirects/Api/RedirectsApi.php | 22 +- codegen/Cms/UrlRedirects/ApiException.php | 2 +- codegen/Cms/UrlRedirects/Configuration.php | 2 +- .../Cms/UrlRedirects/FormDataProcessor.php | 2 +- codegen/Cms/UrlRedirects/HeaderSelector.php | 2 +- ...sponseWithTotalUrlMappingForwardPaging.php | 88 ++--- codegen/Cms/UrlRedirects/Model/Error.php | 144 ++++---- .../Cms/UrlRedirects/Model/ErrorDetail.php | 120 +++---- .../Cms/UrlRedirects/Model/ForwardPaging.php | 2 +- .../Cms/UrlRedirects/Model/ModelInterface.php | 2 +- codegen/Cms/UrlRedirects/Model/NextPage.php | 68 ++-- codegen/Cms/UrlRedirects/Model/UrlMapping.php | 330 +++++++++--------- .../Model/UrlMappingCreateRequestBody.php | 282 +++++++-------- codegen/Cms/UrlRedirects/ObjectSerializer.php | 2 +- 14 files changed, 534 insertions(+), 534 deletions(-) diff --git a/codegen/Cms/UrlRedirects/Api/RedirectsApi.php b/codegen/Cms/UrlRedirects/Api/RedirectsApi.php index 8903801c..b066f522 100644 --- a/codegen/Cms/UrlRedirects/Api/RedirectsApi.php +++ b/codegen/Cms/UrlRedirects/Api/RedirectsApi.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -949,7 +949,7 @@ public function getByIdRequest($url_redirect_id, string $contentType = self::con * @param \DateTime|null $updated_at Only return redirects last updated on exactly this date. (optional) * @param \DateTime|null $updated_after Only return redirects last updated after this date. (optional) * @param \DateTime|null $updated_before Only return redirects last updated before this date. (optional) - * @param string[]|null $sort sort (optional) + * @param string[]|null $sort A query parameter to specify the order in which the URL redirects are returned. (optional) * @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 Maximum number of result per page (optional) * @param bool|null $archived Whether to return only results that have been archived. (optional) @@ -976,7 +976,7 @@ public function getPage($created_at = null, $created_after = null, $created_befo * @param \DateTime|null $updated_at Only return redirects last updated on exactly this date. (optional) * @param \DateTime|null $updated_after Only return redirects last updated after this date. (optional) * @param \DateTime|null $updated_before Only return redirects last updated before this date. (optional) - * @param string[]|null $sort (optional) + * @param string[]|null $sort A query parameter to specify the order in which the URL redirects are returned. (optional) * @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 Maximum number of result per page (optional) * @param bool|null $archived Whether to return only results that have been archived. (optional) @@ -1084,7 +1084,7 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ * @param \DateTime|null $updated_at Only return redirects last updated on exactly this date. (optional) * @param \DateTime|null $updated_after Only return redirects last updated after this date. (optional) * @param \DateTime|null $updated_before Only return redirects last updated before this date. (optional) - * @param string[]|null $sort (optional) + * @param string[]|null $sort A query parameter to specify the order in which the URL redirects are returned. (optional) * @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 Maximum number of result per page (optional) * @param bool|null $archived Whether to return only results that have been archived. (optional) @@ -1114,7 +1114,7 @@ function ($response) { * @param \DateTime|null $updated_at Only return redirects last updated on exactly this date. (optional) * @param \DateTime|null $updated_after Only return redirects last updated after this date. (optional) * @param \DateTime|null $updated_before Only return redirects last updated before this date. (optional) - * @param string[]|null $sort (optional) + * @param string[]|null $sort A query parameter to specify the order in which the URL redirects are returned. (optional) * @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 Maximum number of result per page (optional) * @param bool|null $archived Whether to return only results that have been archived. (optional) @@ -1173,7 +1173,7 @@ function ($exception) { * @param \DateTime|null $updated_at Only return redirects last updated on exactly this date. (optional) * @param \DateTime|null $updated_after Only return redirects last updated after this date. (optional) * @param \DateTime|null $updated_before Only return redirects last updated before this date. (optional) - * @param string[]|null $sort (optional) + * @param string[]|null $sort A query parameter to specify the order in which the URL redirects are returned. (optional) * @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 Maximum number of result per page (optional) * @param bool|null $archived Whether to return only results that have been archived. (optional) @@ -1359,7 +1359,7 @@ public function getPageRequest($created_at = null, $created_after = null, $creat * * Update a redirect * - * @param string $url_redirect_id url_redirect_id (required) + * @param string $url_redirect_id The ID of the target url redirect to update. (required) * @param \HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping $url_mapping url_mapping (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1378,7 +1378,7 @@ public function update($url_redirect_id, $url_mapping, string $contentType = sel * * Update a redirect * - * @param string $url_redirect_id (required) + * @param string $url_redirect_id The ID of the target url redirect to update. (required) * @param \HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping $url_mapping (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1478,7 +1478,7 @@ public function updateWithHttpInfo($url_redirect_id, $url_mapping, string $conte * * Update a redirect * - * @param string $url_redirect_id (required) + * @param string $url_redirect_id The ID of the target url redirect to update. (required) * @param \HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping $url_mapping (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1500,7 +1500,7 @@ function ($response) { * * Update a redirect * - * @param string $url_redirect_id (required) + * @param string $url_redirect_id The ID of the target url redirect to update. (required) * @param \HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping $url_mapping (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * @@ -1551,7 +1551,7 @@ function ($exception) { /** * Create request for operation 'update' * - * @param string $url_redirect_id (required) + * @param string $url_redirect_id The ID of the target url redirect to update. (required) * @param \HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping $url_mapping (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['update'] to see the possible values for this operation * diff --git a/codegen/Cms/UrlRedirects/ApiException.php b/codegen/Cms/UrlRedirects/ApiException.php index 016a67ab..c0675c1d 100644 --- a/codegen/Cms/UrlRedirects/ApiException.php +++ b/codegen/Cms/UrlRedirects/ApiException.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/UrlRedirects/Configuration.php b/codegen/Cms/UrlRedirects/Configuration.php index 31784640..b270045e 100644 --- a/codegen/Cms/UrlRedirects/Configuration.php +++ b/codegen/Cms/UrlRedirects/Configuration.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/UrlRedirects/FormDataProcessor.php b/codegen/Cms/UrlRedirects/FormDataProcessor.php index 23f32f37..aebbb209 100644 --- a/codegen/Cms/UrlRedirects/FormDataProcessor.php +++ b/codegen/Cms/UrlRedirects/FormDataProcessor.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/UrlRedirects/HeaderSelector.php b/codegen/Cms/UrlRedirects/HeaderSelector.php index b40f4ef6..50880076 100644 --- a/codegen/Cms/UrlRedirects/HeaderSelector.php +++ b/codegen/Cms/UrlRedirects/HeaderSelector.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/UrlRedirects/Model/CollectionResponseWithTotalUrlMappingForwardPaging.php b/codegen/Cms/UrlRedirects/Model/CollectionResponseWithTotalUrlMappingForwardPaging.php index e4178205..5f9ec118 100644 --- a/codegen/Cms/UrlRedirects/Model/CollectionResponseWithTotalUrlMappingForwardPaging.php +++ b/codegen/Cms/UrlRedirects/Model/CollectionResponseWithTotalUrlMappingForwardPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,9 +57,9 @@ class CollectionResponseWithTotalUrlMappingForwardPaging implements ModelInterfa * @var string[] */ protected static $openAPITypes = [ - 'total' => 'int', 'paging' => '\HubSpot\Client\Cms\UrlRedirects\Model\ForwardPaging', - 'results' => '\HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping[]' + 'results' => '\HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping[]', + 'total' => 'int' ]; /** @@ -70,9 +70,9 @@ class CollectionResponseWithTotalUrlMappingForwardPaging implements ModelInterfa * @psalm-var array */ protected static $openAPIFormats = [ - 'total' => 'int32', 'paging' => null, - 'results' => null + 'results' => null, + 'total' => 'int32' ]; /** @@ -81,9 +81,9 @@ class CollectionResponseWithTotalUrlMappingForwardPaging implements ModelInterfa * @var boolean[] */ protected static array $openAPINullables = [ - 'total' => false, 'paging' => false, - 'results' => false + 'results' => false, + 'total' => false ]; /** @@ -172,9 +172,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'total' => 'total', 'paging' => 'paging', - 'results' => 'results' + 'results' => 'results', + 'total' => 'total' ]; /** @@ -183,9 +183,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'total' => 'setTotal', 'paging' => 'setPaging', - 'results' => 'setResults' + 'results' => 'setResults', + 'total' => 'setTotal' ]; /** @@ -194,9 +194,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'total' => 'getTotal', 'paging' => 'getPaging', - 'results' => 'getResults' + 'results' => 'getResults', + 'total' => 'getTotal' ]; /** @@ -256,9 +256,9 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('total', $data ?? [], null); $this->setIfExists('paging', $data ?? [], null); $this->setIfExists('results', $data ?? [], null); + $this->setIfExists('total', $data ?? [], null); } /** @@ -288,12 +288,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['total'] === null) { - $invalidProperties[] = "'total' can't be null"; - } if ($this->container['results'] === null) { $invalidProperties[] = "'results' can't be null"; } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } return $invalidProperties; } @@ -309,33 +309,6 @@ public function valid() } - /** - * Gets total - * - * @return int - */ - public function getTotal() - { - return $this->container['total']; - } - - /** - * Sets total - * - * @param int $total total - * - * @return self - */ - public function setTotal($total) - { - if (is_null($total)) { - throw new \InvalidArgumentException('non-nullable total cannot be null'); - } - $this->container['total'] = $total; - - return $this; - } - /** * Gets paging * @@ -389,6 +362,33 @@ public function setResults($results) return $this; } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total The total number of URL mappings available. + * + * @return self + */ + public function setTotal($total) + { + if (is_null($total)) { + throw new \InvalidArgumentException('non-nullable total cannot be null'); + } + $this->container['total'] = $total; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/UrlRedirects/Model/Error.php b/codegen/Cms/UrlRedirects/Model/Error.php index 937b1d7b..41084b1a 100644 --- a/codegen/Cms/UrlRedirects/Model/Error.php +++ b/codegen/Cms/UrlRedirects/Model/Error.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', + 'category' => 'string', 'context' => 'array', 'correlation_id' => 'string', + 'errors' => '\HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]', 'links' => 'array', 'message' => 'string', - 'category' => 'string', - 'errors' => '\HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]' + 'sub_category' => 'string' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, + 'category' => null, 'context' => null, 'correlation_id' => 'uuid', + 'errors' => null, 'links' => null, 'message' => null, - 'category' => null, - 'errors' => null + 'sub_category' => null ]; /** @@ -89,13 +89,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, + 'category' => false, 'context' => false, 'correlation_id' => false, + 'errors' => false, 'links' => false, 'message' => false, - 'category' => false, - 'errors' => false + 'sub_category' => false ]; /** @@ -184,13 +184,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', + 'category' => 'category', 'context' => 'context', 'correlation_id' => 'correlationId', + 'errors' => 'errors', 'links' => 'links', 'message' => 'message', - 'category' => 'category', - 'errors' => 'errors' + 'sub_category' => 'subCategory' ]; /** @@ -199,13 +199,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', + 'category' => 'setCategory', 'context' => 'setContext', 'correlation_id' => 'setCorrelationId', + 'errors' => 'setErrors', 'links' => 'setLinks', 'message' => 'setMessage', - 'category' => 'setCategory', - 'errors' => 'setErrors' + 'sub_category' => 'setSubCategory' ]; /** @@ -214,13 +214,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', + 'category' => 'getCategory', 'context' => 'getContext', 'correlation_id' => 'getCorrelationId', + 'errors' => 'getErrors', 'links' => 'getLinks', 'message' => 'getMessage', - 'category' => 'getCategory', - 'errors' => 'getErrors' + 'sub_category' => 'getSubCategory' ]; /** @@ -280,13 +280,13 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); $this->setIfExists('correlation_id', $data ?? [], null); + $this->setIfExists('errors', $data ?? [], null); $this->setIfExists('links', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); - $this->setIfExists('category', $data ?? [], null); - $this->setIfExists('errors', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -316,15 +316,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['category'] === null) { + $invalidProperties[] = "'category' can't be null"; + } if ($this->container['correlation_id'] === null) { $invalidProperties[] = "'correlation_id' can't be null"; } if ($this->container['message'] === null) { $invalidProperties[] = "'message' can't be null"; } - if ($this->container['category'] === null) { - $invalidProperties[] = "'category' can't be null"; - } return $invalidProperties; } @@ -341,28 +341,28 @@ public function valid() /** - * Gets sub_category + * Gets category * - * @return string|null + * @return string */ - public function getSubCategory() + public function getCategory() { - return $this->container['sub_category']; + return $this->container['category']; } /** - * Sets sub_category + * Sets category * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string $category The error category * * @return self */ - public function setSubCategory($sub_category) + public function setCategory($category) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['category'] = $category; return $this; } @@ -421,6 +421,33 @@ public function setCorrelationId($correlation_id) return $this; } + /** + * Gets errors + * + * @return \HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]|null $errors further information about the error + * + * @return self + */ + public function setErrors($errors) + { + if (is_null($errors)) { + throw new \InvalidArgumentException('non-nullable errors cannot be null'); + } + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets links * @@ -476,55 +503,28 @@ public function setMessage($message) } /** - * Gets category - * - * @return string - */ - public function getCategory() - { - return $this->container['category']; - } - - /** - * Sets category - * - * @param string $category The error category - * - * @return self - */ - public function setCategory($category) - { - if (is_null($category)) { - throw new \InvalidArgumentException('non-nullable category cannot be null'); - } - $this->container['category'] = $category; - - return $this; - } - - /** - * Gets errors + * Gets sub_category * - * @return \HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]|null + * @return string|null */ - public function getErrors() + public function getSubCategory() { - return $this->container['errors']; + return $this->container['sub_category']; } /** - * Sets errors + * Sets sub_category * - * @param \HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]|null $errors further information about the error + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setErrors($errors) + public function setSubCategory($sub_category) { - if (is_null($errors)) { - throw new \InvalidArgumentException('non-nullable errors cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['errors'] = $errors; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/UrlRedirects/Model/ErrorDetail.php b/codegen/Cms/UrlRedirects/Model/ErrorDetail.php index e5fc20f8..f7cc23b6 100644 --- a/codegen/Cms/UrlRedirects/Model/ErrorDetail.php +++ b/codegen/Cms/UrlRedirects/Model/ErrorDetail.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'sub_category' => 'string', 'code' => 'string', - 'in' => 'string', 'context' => 'array', - 'message' => 'string' + 'in' => 'string', + 'message' => 'string', + 'sub_category' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'sub_category' => null, 'code' => null, - 'in' => null, 'context' => null, - 'message' => null + 'in' => null, + 'message' => null, + 'sub_category' => null ]; /** @@ -85,11 +85,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'sub_category' => false, 'code' => false, - 'in' => false, 'context' => false, - 'message' => false + 'in' => false, + 'message' => false, + 'sub_category' => false ]; /** @@ -178,11 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'sub_category' => 'subCategory', 'code' => 'code', - 'in' => 'in', 'context' => 'context', - 'message' => 'message' + 'in' => 'in', + 'message' => 'message', + 'sub_category' => 'subCategory' ]; /** @@ -191,11 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'sub_category' => 'setSubCategory', 'code' => 'setCode', - 'in' => 'setIn', 'context' => 'setContext', - 'message' => 'setMessage' + 'in' => 'setIn', + 'message' => 'setMessage', + 'sub_category' => 'setSubCategory' ]; /** @@ -204,11 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'sub_category' => 'getSubCategory', 'code' => 'getCode', - 'in' => 'getIn', 'context' => 'getContext', - 'message' => 'getMessage' + 'in' => 'getIn', + 'message' => 'getMessage', + 'sub_category' => 'getSubCategory' ]; /** @@ -268,11 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('sub_category', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); - $this->setIfExists('in', $data ?? [], null); $this->setIfExists('context', $data ?? [], null); + $this->setIfExists('in', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('sub_category', $data ?? [], null); } /** @@ -321,55 +321,55 @@ public function valid() /** - * Gets sub_category + * Gets code * * @return string|null */ - public function getSubCategory() + public function getCode() { - return $this->container['sub_category']; + return $this->container['code']; } /** - * Sets sub_category + * Sets code * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $code The status code associated with the error detail * * @return self */ - public function setSubCategory($sub_category) + public function setCode($code) { - if (is_null($sub_category)) { - throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); } - $this->container['sub_category'] = $sub_category; + $this->container['code'] = $code; return $this; } /** - * Gets code + * Gets context * - * @return string|null + * @return array|null */ - public function getCode() + public function getContext() { - return $this->container['code']; + return $this->container['context']; } /** - * Sets code + * Sets context * - * @param string|null $code The status code associated with the error detail + * @param array|null $context Context about the error condition * * @return self */ - public function setCode($code) + public function setContext($context) { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); + if (is_null($context)) { + throw new \InvalidArgumentException('non-nullable context cannot be null'); } - $this->container['code'] = $code; + $this->container['context'] = $context; return $this; } @@ -402,55 +402,55 @@ public function setIn($in) } /** - * Gets context + * Gets message * - * @return array|null + * @return string */ - public function getContext() + public function getMessage() { - return $this->container['context']; + return $this->container['message']; } /** - * Sets context + * Sets message * - * @param array|null $context Context about the error condition + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setContext($context) + public function setMessage($message) { - if (is_null($context)) { - throw new \InvalidArgumentException('non-nullable context cannot be null'); + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); } - $this->container['context'] = $context; + $this->container['message'] = $message; return $this; } /** - * Gets message + * Gets sub_category * - * @return string + * @return string|null */ - public function getMessage() + public function getSubCategory() { - return $this->container['message']; + return $this->container['sub_category']; } /** - * Sets message + * Sets sub_category * - * @param string $message A human readable message describing the error along with remediation steps where appropriate + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setMessage($message) + public function setSubCategory($sub_category) { - if (is_null($message)) { - throw new \InvalidArgumentException('non-nullable message cannot be null'); + if (is_null($sub_category)) { + throw new \InvalidArgumentException('non-nullable sub_category cannot be null'); } - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } diff --git a/codegen/Cms/UrlRedirects/Model/ForwardPaging.php b/codegen/Cms/UrlRedirects/Model/ForwardPaging.php index c1427985..58b00330 100644 --- a/codegen/Cms/UrlRedirects/Model/ForwardPaging.php +++ b/codegen/Cms/UrlRedirects/Model/ForwardPaging.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/UrlRedirects/Model/ModelInterface.php b/codegen/Cms/UrlRedirects/Model/ModelInterface.php index aee43cb8..d142bc2d 100644 --- a/codegen/Cms/UrlRedirects/Model/ModelInterface.php +++ b/codegen/Cms/UrlRedirects/Model/ModelInterface.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** diff --git a/codegen/Cms/UrlRedirects/Model/NextPage.php b/codegen/Cms/UrlRedirects/Model/NextPage.php index df122b6d..7314bd01 100644 --- a/codegen/Cms/UrlRedirects/Model/NextPage.php +++ b/codegen/Cms/UrlRedirects/Model/NextPage.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -58,8 +58,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'link' => 'string', - 'after' => 'string' + 'after' => 'string', + 'link' => 'string' ]; /** @@ -70,8 +70,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'link' => null, - 'after' => null + 'after' => null, + 'link' => null ]; /** @@ -80,8 +80,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'link' => false, - 'after' => false + 'after' => false, + 'link' => false ]; /** @@ -170,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'link' => 'link', - 'after' => 'after' + 'after' => 'after', + 'link' => 'link' ]; /** @@ -180,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'link' => 'setLink', - 'after' => 'setAfter' + 'after' => 'setAfter', + 'link' => 'setLink' ]; /** @@ -190,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'link' => 'getLink', - 'after' => 'getAfter' + 'after' => 'getAfter', + 'link' => 'getLink' ]; /** @@ -251,8 +251,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('link', $data ?? [], null); $this->setIfExists('after', $data ?? [], null); + $this->setIfExists('link', $data ?? [], null); } /** @@ -301,55 +301,55 @@ public function valid() /** - * Gets link + * Gets after * - * @return string|null + * @return string */ - public function getLink() + public function getAfter() { - return $this->container['link']; + return $this->container['after']; } /** - * Sets link + * Sets after * - * @param string|null $link A URL that can be used to retrieve the next page results. + * @param string $after The cursor value indicating where to begin fetching the next page of results in a paginated collection. * * @return self */ - public function setLink($link) + public function setAfter($after) { - if (is_null($link)) { - throw new \InvalidArgumentException('non-nullable link cannot be null'); + if (is_null($after)) { + throw new \InvalidArgumentException('non-nullable after cannot be null'); } - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } /** - * Gets after + * Gets link * - * @return string + * @return string|null */ - public function getAfter() + public function getLink() { - return $this->container['after']; + return $this->container['link']; } /** - * Sets after + * Sets link * - * @param string $after A paging cursor token for retrieving subsequent pages. + * @param string|null $link An optional URL for directly accessing the next page of results. * * @return self */ - public function setAfter($after) + public function setLink($link) { - if (is_null($after)) { - throw new \InvalidArgumentException('non-nullable after cannot be null'); + if (is_null($link)) { + throw new \InvalidArgumentException('non-nullable link cannot be null'); } - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } diff --git a/codegen/Cms/UrlRedirects/Model/UrlMapping.php b/codegen/Cms/UrlRedirects/Model/UrlMapping.php index 8436e8d6..425c5f34 100644 --- a/codegen/Cms/UrlRedirects/Model/UrlMapping.php +++ b/codegen/Cms/UrlRedirects/Model/UrlMapping.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,18 +57,18 @@ class UrlMapping implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'is_trailing_slash_optional' => 'bool', - 'redirect_style' => 'int', - 'is_match_query_string' => 'bool', 'created' => '\DateTime', - 'is_match_full_url' => 'bool', 'destination' => 'string', + 'id' => 'string', + 'is_match_full_url' => 'bool', + 'is_match_query_string' => 'bool', 'is_only_after_not_found' => 'bool', 'is_pattern' => 'bool', + 'is_protocol_agnostic' => 'bool', + 'is_trailing_slash_optional' => 'bool', 'precedence' => 'int', + 'redirect_style' => 'int', 'route_prefix' => 'string', - 'is_protocol_agnostic' => 'bool', - 'id' => 'string', 'updated' => '\DateTime' ]; @@ -80,18 +80,18 @@ class UrlMapping implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'is_trailing_slash_optional' => null, - 'redirect_style' => 'int32', - 'is_match_query_string' => null, 'created' => 'date-time', - 'is_match_full_url' => null, 'destination' => null, + 'id' => null, + 'is_match_full_url' => null, + 'is_match_query_string' => null, 'is_only_after_not_found' => null, 'is_pattern' => null, + 'is_protocol_agnostic' => null, + 'is_trailing_slash_optional' => null, 'precedence' => 'int32', + 'redirect_style' => 'int32', 'route_prefix' => null, - 'is_protocol_agnostic' => null, - 'id' => null, 'updated' => 'date-time' ]; @@ -101,18 +101,18 @@ class UrlMapping implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'is_trailing_slash_optional' => false, - 'redirect_style' => false, - 'is_match_query_string' => false, 'created' => false, - 'is_match_full_url' => false, 'destination' => false, + 'id' => false, + 'is_match_full_url' => false, + 'is_match_query_string' => false, 'is_only_after_not_found' => false, 'is_pattern' => false, + 'is_protocol_agnostic' => false, + 'is_trailing_slash_optional' => false, 'precedence' => false, + 'redirect_style' => false, 'route_prefix' => false, - 'is_protocol_agnostic' => false, - 'id' => false, 'updated' => false ]; @@ -202,18 +202,18 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'is_trailing_slash_optional' => 'isTrailingSlashOptional', - 'redirect_style' => 'redirectStyle', - 'is_match_query_string' => 'isMatchQueryString', 'created' => 'created', - 'is_match_full_url' => 'isMatchFullUrl', 'destination' => 'destination', + 'id' => 'id', + 'is_match_full_url' => 'isMatchFullUrl', + 'is_match_query_string' => 'isMatchQueryString', 'is_only_after_not_found' => 'isOnlyAfterNotFound', 'is_pattern' => 'isPattern', + 'is_protocol_agnostic' => 'isProtocolAgnostic', + 'is_trailing_slash_optional' => 'isTrailingSlashOptional', 'precedence' => 'precedence', + 'redirect_style' => 'redirectStyle', 'route_prefix' => 'routePrefix', - 'is_protocol_agnostic' => 'isProtocolAgnostic', - 'id' => 'id', 'updated' => 'updated' ]; @@ -223,18 +223,18 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'is_trailing_slash_optional' => 'setIsTrailingSlashOptional', - 'redirect_style' => 'setRedirectStyle', - 'is_match_query_string' => 'setIsMatchQueryString', 'created' => 'setCreated', - 'is_match_full_url' => 'setIsMatchFullUrl', 'destination' => 'setDestination', + 'id' => 'setId', + 'is_match_full_url' => 'setIsMatchFullUrl', + 'is_match_query_string' => 'setIsMatchQueryString', 'is_only_after_not_found' => 'setIsOnlyAfterNotFound', 'is_pattern' => 'setIsPattern', + 'is_protocol_agnostic' => 'setIsProtocolAgnostic', + 'is_trailing_slash_optional' => 'setIsTrailingSlashOptional', 'precedence' => 'setPrecedence', + 'redirect_style' => 'setRedirectStyle', 'route_prefix' => 'setRoutePrefix', - 'is_protocol_agnostic' => 'setIsProtocolAgnostic', - 'id' => 'setId', 'updated' => 'setUpdated' ]; @@ -244,18 +244,18 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'is_trailing_slash_optional' => 'getIsTrailingSlashOptional', - 'redirect_style' => 'getRedirectStyle', - 'is_match_query_string' => 'getIsMatchQueryString', 'created' => 'getCreated', - 'is_match_full_url' => 'getIsMatchFullUrl', 'destination' => 'getDestination', + 'id' => 'getId', + 'is_match_full_url' => 'getIsMatchFullUrl', + 'is_match_query_string' => 'getIsMatchQueryString', 'is_only_after_not_found' => 'getIsOnlyAfterNotFound', 'is_pattern' => 'getIsPattern', + 'is_protocol_agnostic' => 'getIsProtocolAgnostic', + 'is_trailing_slash_optional' => 'getIsTrailingSlashOptional', 'precedence' => 'getPrecedence', + 'redirect_style' => 'getRedirectStyle', 'route_prefix' => 'getRoutePrefix', - 'is_protocol_agnostic' => 'getIsProtocolAgnostic', - 'id' => 'getId', 'updated' => 'getUpdated' ]; @@ -316,18 +316,18 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('is_trailing_slash_optional', $data ?? [], null); - $this->setIfExists('redirect_style', $data ?? [], null); - $this->setIfExists('is_match_query_string', $data ?? [], null); $this->setIfExists('created', $data ?? [], null); - $this->setIfExists('is_match_full_url', $data ?? [], null); $this->setIfExists('destination', $data ?? [], null); + $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('is_match_full_url', $data ?? [], null); + $this->setIfExists('is_match_query_string', $data ?? [], null); $this->setIfExists('is_only_after_not_found', $data ?? [], null); $this->setIfExists('is_pattern', $data ?? [], null); + $this->setIfExists('is_protocol_agnostic', $data ?? [], null); + $this->setIfExists('is_trailing_slash_optional', $data ?? [], null); $this->setIfExists('precedence', $data ?? [], null); + $this->setIfExists('redirect_style', $data ?? [], null); $this->setIfExists('route_prefix', $data ?? [], null); - $this->setIfExists('is_protocol_agnostic', $data ?? [], null); - $this->setIfExists('id', $data ?? [], null); $this->setIfExists('updated', $data ?? [], null); } @@ -358,20 +358,17 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['is_trailing_slash_optional'] === null) { - $invalidProperties[] = "'is_trailing_slash_optional' can't be null"; - } - if ($this->container['redirect_style'] === null) { - $invalidProperties[] = "'redirect_style' can't be null"; + if ($this->container['destination'] === null) { + $invalidProperties[] = "'destination' can't be null"; } - if ($this->container['is_match_query_string'] === null) { - $invalidProperties[] = "'is_match_query_string' can't be null"; + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } if ($this->container['is_match_full_url'] === null) { $invalidProperties[] = "'is_match_full_url' can't be null"; } - if ($this->container['destination'] === null) { - $invalidProperties[] = "'destination' can't be null"; + if ($this->container['is_match_query_string'] === null) { + $invalidProperties[] = "'is_match_query_string' can't be null"; } if ($this->container['is_only_after_not_found'] === null) { $invalidProperties[] = "'is_only_after_not_found' can't be null"; @@ -379,18 +376,21 @@ public function listInvalidProperties() if ($this->container['is_pattern'] === null) { $invalidProperties[] = "'is_pattern' can't be null"; } + if ($this->container['is_protocol_agnostic'] === null) { + $invalidProperties[] = "'is_protocol_agnostic' can't be null"; + } + if ($this->container['is_trailing_slash_optional'] === null) { + $invalidProperties[] = "'is_trailing_slash_optional' can't be null"; + } if ($this->container['precedence'] === null) { $invalidProperties[] = "'precedence' can't be null"; } + if ($this->container['redirect_style'] === null) { + $invalidProperties[] = "'redirect_style' can't be null"; + } if ($this->container['route_prefix'] === null) { $invalidProperties[] = "'route_prefix' can't be null"; } - if ($this->container['is_protocol_agnostic'] === null) { - $invalidProperties[] = "'is_protocol_agnostic' can't be null"; - } - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } return $invalidProperties; } @@ -407,109 +407,82 @@ public function valid() /** - * Gets is_trailing_slash_optional - * - * @return bool - */ - public function getIsTrailingSlashOptional() - { - return $this->container['is_trailing_slash_optional']; - } - - /** - * Sets is_trailing_slash_optional - * - * @param bool $is_trailing_slash_optional Whether a trailing slash will be ignored. - * - * @return self - */ - public function setIsTrailingSlashOptional($is_trailing_slash_optional) - { - if (is_null($is_trailing_slash_optional)) { - throw new \InvalidArgumentException('non-nullable is_trailing_slash_optional cannot be null'); - } - $this->container['is_trailing_slash_optional'] = $is_trailing_slash_optional; - - return $this; - } - - /** - * Gets redirect_style + * Gets created * - * @return int + * @return \DateTime|null */ - public function getRedirectStyle() + public function getCreated() { - return $this->container['redirect_style']; + return $this->container['created']; } /** - * Sets redirect_style + * Sets created * - * @param int $redirect_style The type of redirect to create. Options include: 301 (permanent), 302 (temporary), or 305 (proxy). Find more details [here](https://knowledge.hubspot.com/cos-general/how-to-redirect-a-hubspot-page). + * @param \DateTime|null $created The date and time when the URL mapping was initially created. * * @return self */ - public function setRedirectStyle($redirect_style) + public function setCreated($created) { - if (is_null($redirect_style)) { - throw new \InvalidArgumentException('non-nullable redirect_style cannot be null'); + if (is_null($created)) { + throw new \InvalidArgumentException('non-nullable created cannot be null'); } - $this->container['redirect_style'] = $redirect_style; + $this->container['created'] = $created; return $this; } /** - * Gets is_match_query_string + * Gets destination * - * @return bool + * @return string */ - public function getIsMatchQueryString() + public function getDestination() { - return $this->container['is_match_query_string']; + return $this->container['destination']; } /** - * Sets is_match_query_string + * Sets destination * - * @param bool $is_match_query_string Whether the `routePrefix` should match on the entire URL path, including the query string. + * @param string $destination The destination URL, where the target URL should be redirected if it matches the `routePrefix`. * * @return self */ - public function setIsMatchQueryString($is_match_query_string) + public function setDestination($destination) { - if (is_null($is_match_query_string)) { - throw new \InvalidArgumentException('non-nullable is_match_query_string cannot be null'); + if (is_null($destination)) { + throw new \InvalidArgumentException('non-nullable destination cannot be null'); } - $this->container['is_match_query_string'] = $is_match_query_string; + $this->container['destination'] = $destination; return $this; } /** - * Gets created + * Gets id * - * @return \DateTime|null + * @return string */ - public function getCreated() + public function getId() { - return $this->container['created']; + return $this->container['id']; } /** - * Sets created + * Sets id * - * @param \DateTime|null $created created + * @param string $id The unique ID of this URL redirect. * * @return self */ - public function setCreated($created) + public function setId($id) { - if (is_null($created)) { - throw new \InvalidArgumentException('non-nullable created cannot be null'); + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); } - $this->container['created'] = $created; + $this->container['id'] = $id; return $this; } @@ -542,28 +515,28 @@ public function setIsMatchFullUrl($is_match_full_url) } /** - * Gets destination + * Gets is_match_query_string * - * @return string + * @return bool */ - public function getDestination() + public function getIsMatchQueryString() { - return $this->container['destination']; + return $this->container['is_match_query_string']; } /** - * Sets destination + * Sets is_match_query_string * - * @param string $destination The destination URL, where the target URL should be redirected if it matches the `routePrefix`. + * @param bool $is_match_query_string Whether the `routePrefix` should match on the entire URL path, including the query string. * * @return self */ - public function setDestination($destination) + public function setIsMatchQueryString($is_match_query_string) { - if (is_null($destination)) { - throw new \InvalidArgumentException('non-nullable destination cannot be null'); + if (is_null($is_match_query_string)) { + throw new \InvalidArgumentException('non-nullable is_match_query_string cannot be null'); } - $this->container['destination'] = $destination; + $this->container['is_match_query_string'] = $is_match_query_string; return $this; } @@ -623,109 +596,136 @@ public function setIsPattern($is_pattern) } /** - * Gets precedence + * Gets is_protocol_agnostic * - * @return int + * @return bool */ - public function getPrecedence() + public function getIsProtocolAgnostic() { - return $this->container['precedence']; + return $this->container['is_protocol_agnostic']; } /** - * Sets precedence + * Sets is_protocol_agnostic * - * @param int $precedence Used to prioritize URL redirection. If a given URL matches more than one redirect, the one with the **lower** precedence will be used. + * @param bool $is_protocol_agnostic Whether the `routePrefix` should match both HTTP and HTTPS protocols. * * @return self */ - public function setPrecedence($precedence) + public function setIsProtocolAgnostic($is_protocol_agnostic) { - if (is_null($precedence)) { - throw new \InvalidArgumentException('non-nullable precedence cannot be null'); + if (is_null($is_protocol_agnostic)) { + throw new \InvalidArgumentException('non-nullable is_protocol_agnostic cannot be null'); } - $this->container['precedence'] = $precedence; + $this->container['is_protocol_agnostic'] = $is_protocol_agnostic; return $this; } /** - * Gets route_prefix + * Gets is_trailing_slash_optional * - * @return string + * @return bool */ - public function getRoutePrefix() + public function getIsTrailingSlashOptional() { - return $this->container['route_prefix']; + return $this->container['is_trailing_slash_optional']; } /** - * Sets route_prefix + * Sets is_trailing_slash_optional * - * @param string $route_prefix The target incoming URL, path, or pattern to match for redirection. + * @param bool $is_trailing_slash_optional Whether a trailing slash will be ignored. * * @return self */ - public function setRoutePrefix($route_prefix) + public function setIsTrailingSlashOptional($is_trailing_slash_optional) { - if (is_null($route_prefix)) { - throw new \InvalidArgumentException('non-nullable route_prefix cannot be null'); + if (is_null($is_trailing_slash_optional)) { + throw new \InvalidArgumentException('non-nullable is_trailing_slash_optional cannot be null'); } - $this->container['route_prefix'] = $route_prefix; + $this->container['is_trailing_slash_optional'] = $is_trailing_slash_optional; return $this; } /** - * Gets is_protocol_agnostic + * Gets precedence * - * @return bool + * @return int */ - public function getIsProtocolAgnostic() + public function getPrecedence() { - return $this->container['is_protocol_agnostic']; + return $this->container['precedence']; } /** - * Sets is_protocol_agnostic + * Sets precedence * - * @param bool $is_protocol_agnostic Whether the `routePrefix` should match both HTTP and HTTPS protocols. + * @param int $precedence Used to prioritize URL redirection. If a given URL matches more than one redirect, the one with the **lower** precedence will be used. * * @return self */ - public function setIsProtocolAgnostic($is_protocol_agnostic) + public function setPrecedence($precedence) { - if (is_null($is_protocol_agnostic)) { - throw new \InvalidArgumentException('non-nullable is_protocol_agnostic cannot be null'); + if (is_null($precedence)) { + throw new \InvalidArgumentException('non-nullable precedence cannot be null'); } - $this->container['is_protocol_agnostic'] = $is_protocol_agnostic; + $this->container['precedence'] = $precedence; return $this; } /** - * Gets id + * Gets redirect_style + * + * @return int + */ + public function getRedirectStyle() + { + return $this->container['redirect_style']; + } + + /** + * Sets redirect_style + * + * @param int $redirect_style The type of redirect to create. Options include: 301 (permanent), 302 (temporary), or 305 (proxy). Find more details [here](https://knowledge.hubspot.com/cos-general/how-to-redirect-a-hubspot-page). + * + * @return self + */ + public function setRedirectStyle($redirect_style) + { + if (is_null($redirect_style)) { + throw new \InvalidArgumentException('non-nullable redirect_style cannot be null'); + } + $this->container['redirect_style'] = $redirect_style; + + return $this; + } + + /** + * Gets route_prefix * * @return string */ - public function getId() + public function getRoutePrefix() { - return $this->container['id']; + return $this->container['route_prefix']; } /** - * Sets id + * Sets route_prefix * - * @param string $id The unique ID of this URL redirect. + * @param string $route_prefix The target incoming URL, path, or pattern to match for redirection. * * @return self */ - public function setId($id) + public function setRoutePrefix($route_prefix) { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); + if (is_null($route_prefix)) { + throw new \InvalidArgumentException('non-nullable route_prefix cannot be null'); } - $this->container['id'] = $id; + $this->container['route_prefix'] = $route_prefix; return $this; } @@ -743,7 +743,7 @@ public function getUpdated() /** * Sets updated * - * @param \DateTime|null $updated updated + * @param \DateTime|null $updated The date and time when the URL mapping was last modified. * * @return self */ diff --git a/codegen/Cms/UrlRedirects/Model/UrlMappingCreateRequestBody.php b/codegen/Cms/UrlRedirects/Model/UrlMappingCreateRequestBody.php index 2dd531cc..ec7bb342 100644 --- a/codegen/Cms/UrlRedirects/Model/UrlMappingCreateRequestBody.php +++ b/codegen/Cms/UrlRedirects/Model/UrlMappingCreateRequestBody.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /** @@ -57,16 +57,16 @@ class UrlMappingCreateRequestBody implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ - 'is_trailing_slash_optional' => 'bool', - 'is_match_query_string' => 'bool', - 'redirect_style' => 'int', - 'route_prefix' => 'string', - 'is_match_full_url' => 'bool', - 'is_protocol_agnostic' => 'bool', 'destination' => 'string', + 'is_match_full_url' => 'bool', + 'is_match_query_string' => 'bool', 'is_only_after_not_found' => 'bool', 'is_pattern' => 'bool', - 'precedence' => 'int' + 'is_protocol_agnostic' => 'bool', + 'is_trailing_slash_optional' => 'bool', + 'precedence' => 'int', + 'redirect_style' => 'int', + 'route_prefix' => 'string' ]; /** @@ -77,16 +77,16 @@ class UrlMappingCreateRequestBody implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ - 'is_trailing_slash_optional' => null, - 'is_match_query_string' => null, - 'redirect_style' => 'int32', - 'route_prefix' => null, - 'is_match_full_url' => null, - 'is_protocol_agnostic' => null, 'destination' => null, + 'is_match_full_url' => null, + 'is_match_query_string' => null, 'is_only_after_not_found' => null, 'is_pattern' => null, - 'precedence' => 'int32' + 'is_protocol_agnostic' => null, + 'is_trailing_slash_optional' => null, + 'precedence' => 'int32', + 'redirect_style' => 'int32', + 'route_prefix' => null ]; /** @@ -95,16 +95,16 @@ class UrlMappingCreateRequestBody implements ModelInterface, ArrayAccess, \JsonS * @var boolean[] */ protected static array $openAPINullables = [ - 'is_trailing_slash_optional' => false, - 'is_match_query_string' => false, - 'redirect_style' => false, - 'route_prefix' => false, - 'is_match_full_url' => false, - 'is_protocol_agnostic' => false, 'destination' => false, + 'is_match_full_url' => false, + 'is_match_query_string' => false, 'is_only_after_not_found' => false, 'is_pattern' => false, - 'precedence' => false + 'is_protocol_agnostic' => false, + 'is_trailing_slash_optional' => false, + 'precedence' => false, + 'redirect_style' => false, + 'route_prefix' => false ]; /** @@ -193,16 +193,16 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'is_trailing_slash_optional' => 'isTrailingSlashOptional', - 'is_match_query_string' => 'isMatchQueryString', - 'redirect_style' => 'redirectStyle', - 'route_prefix' => 'routePrefix', - 'is_match_full_url' => 'isMatchFullUrl', - 'is_protocol_agnostic' => 'isProtocolAgnostic', 'destination' => 'destination', + 'is_match_full_url' => 'isMatchFullUrl', + 'is_match_query_string' => 'isMatchQueryString', 'is_only_after_not_found' => 'isOnlyAfterNotFound', 'is_pattern' => 'isPattern', - 'precedence' => 'precedence' + 'is_protocol_agnostic' => 'isProtocolAgnostic', + 'is_trailing_slash_optional' => 'isTrailingSlashOptional', + 'precedence' => 'precedence', + 'redirect_style' => 'redirectStyle', + 'route_prefix' => 'routePrefix' ]; /** @@ -211,16 +211,16 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'is_trailing_slash_optional' => 'setIsTrailingSlashOptional', - 'is_match_query_string' => 'setIsMatchQueryString', - 'redirect_style' => 'setRedirectStyle', - 'route_prefix' => 'setRoutePrefix', - 'is_match_full_url' => 'setIsMatchFullUrl', - 'is_protocol_agnostic' => 'setIsProtocolAgnostic', 'destination' => 'setDestination', + 'is_match_full_url' => 'setIsMatchFullUrl', + 'is_match_query_string' => 'setIsMatchQueryString', 'is_only_after_not_found' => 'setIsOnlyAfterNotFound', 'is_pattern' => 'setIsPattern', - 'precedence' => 'setPrecedence' + 'is_protocol_agnostic' => 'setIsProtocolAgnostic', + 'is_trailing_slash_optional' => 'setIsTrailingSlashOptional', + 'precedence' => 'setPrecedence', + 'redirect_style' => 'setRedirectStyle', + 'route_prefix' => 'setRoutePrefix' ]; /** @@ -229,16 +229,16 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'is_trailing_slash_optional' => 'getIsTrailingSlashOptional', - 'is_match_query_string' => 'getIsMatchQueryString', - 'redirect_style' => 'getRedirectStyle', - 'route_prefix' => 'getRoutePrefix', - 'is_match_full_url' => 'getIsMatchFullUrl', - 'is_protocol_agnostic' => 'getIsProtocolAgnostic', 'destination' => 'getDestination', + 'is_match_full_url' => 'getIsMatchFullUrl', + 'is_match_query_string' => 'getIsMatchQueryString', 'is_only_after_not_found' => 'getIsOnlyAfterNotFound', 'is_pattern' => 'getIsPattern', - 'precedence' => 'getPrecedence' + 'is_protocol_agnostic' => 'getIsProtocolAgnostic', + 'is_trailing_slash_optional' => 'getIsTrailingSlashOptional', + 'precedence' => 'getPrecedence', + 'redirect_style' => 'getRedirectStyle', + 'route_prefix' => 'getRoutePrefix' ]; /** @@ -298,16 +298,16 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('is_trailing_slash_optional', $data ?? [], null); - $this->setIfExists('is_match_query_string', $data ?? [], null); - $this->setIfExists('redirect_style', $data ?? [], null); - $this->setIfExists('route_prefix', $data ?? [], null); - $this->setIfExists('is_match_full_url', $data ?? [], null); - $this->setIfExists('is_protocol_agnostic', $data ?? [], null); $this->setIfExists('destination', $data ?? [], null); + $this->setIfExists('is_match_full_url', $data ?? [], null); + $this->setIfExists('is_match_query_string', $data ?? [], null); $this->setIfExists('is_only_after_not_found', $data ?? [], null); $this->setIfExists('is_pattern', $data ?? [], null); + $this->setIfExists('is_protocol_agnostic', $data ?? [], null); + $this->setIfExists('is_trailing_slash_optional', $data ?? [], null); $this->setIfExists('precedence', $data ?? [], null); + $this->setIfExists('redirect_style', $data ?? [], null); + $this->setIfExists('route_prefix', $data ?? [], null); } /** @@ -337,15 +337,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['destination'] === null) { + $invalidProperties[] = "'destination' can't be null"; + } if ($this->container['redirect_style'] === null) { $invalidProperties[] = "'redirect_style' can't be null"; } if ($this->container['route_prefix'] === null) { $invalidProperties[] = "'route_prefix' can't be null"; } - if ($this->container['destination'] === null) { - $invalidProperties[] = "'destination' can't be null"; - } return $invalidProperties; } @@ -362,136 +362,136 @@ public function valid() /** - * Gets is_trailing_slash_optional + * Gets destination * - * @return bool|null + * @return string */ - public function getIsTrailingSlashOptional() + public function getDestination() { - return $this->container['is_trailing_slash_optional']; + return $this->container['destination']; } /** - * Sets is_trailing_slash_optional + * Sets destination * - * @param bool|null $is_trailing_slash_optional is_trailing_slash_optional + * @param string $destination The destination URL, where the target URL should be redirected if it matches the routePrefix. * * @return self */ - public function setIsTrailingSlashOptional($is_trailing_slash_optional) + public function setDestination($destination) { - if (is_null($is_trailing_slash_optional)) { - throw new \InvalidArgumentException('non-nullable is_trailing_slash_optional cannot be null'); + if (is_null($destination)) { + throw new \InvalidArgumentException('non-nullable destination cannot be null'); } - $this->container['is_trailing_slash_optional'] = $is_trailing_slash_optional; + $this->container['destination'] = $destination; return $this; } /** - * Gets is_match_query_string + * Gets is_match_full_url * * @return bool|null */ - public function getIsMatchQueryString() + public function getIsMatchFullUrl() { - return $this->container['is_match_query_string']; + return $this->container['is_match_full_url']; } /** - * Sets is_match_query_string + * Sets is_match_full_url * - * @param bool|null $is_match_query_string is_match_query_string + * @param bool|null $is_match_full_url Whether the routePrefix should match on the entire URL, including the domain. * * @return self */ - public function setIsMatchQueryString($is_match_query_string) + public function setIsMatchFullUrl($is_match_full_url) { - if (is_null($is_match_query_string)) { - throw new \InvalidArgumentException('non-nullable is_match_query_string cannot be null'); + if (is_null($is_match_full_url)) { + throw new \InvalidArgumentException('non-nullable is_match_full_url cannot be null'); } - $this->container['is_match_query_string'] = $is_match_query_string; + $this->container['is_match_full_url'] = $is_match_full_url; return $this; } /** - * Gets redirect_style + * Gets is_match_query_string * - * @return int + * @return bool|null */ - public function getRedirectStyle() + public function getIsMatchQueryString() { - return $this->container['redirect_style']; + return $this->container['is_match_query_string']; } /** - * Sets redirect_style + * Sets is_match_query_string * - * @param int $redirect_style redirect_style + * @param bool|null $is_match_query_string Whether the routePrefix should match on the entire URL path, including the query string. * * @return self */ - public function setRedirectStyle($redirect_style) + public function setIsMatchQueryString($is_match_query_string) { - if (is_null($redirect_style)) { - throw new \InvalidArgumentException('non-nullable redirect_style cannot be null'); + if (is_null($is_match_query_string)) { + throw new \InvalidArgumentException('non-nullable is_match_query_string cannot be null'); } - $this->container['redirect_style'] = $redirect_style; + $this->container['is_match_query_string'] = $is_match_query_string; return $this; } /** - * Gets route_prefix + * Gets is_only_after_not_found * - * @return string + * @return bool|null */ - public function getRoutePrefix() + public function getIsOnlyAfterNotFound() { - return $this->container['route_prefix']; + return $this->container['is_only_after_not_found']; } /** - * Sets route_prefix + * Sets is_only_after_not_found * - * @param string $route_prefix route_prefix + * @param bool|null $is_only_after_not_found Whether the URL redirect mapping should apply only if a live page on the URL isn't found. If False, the URL redirect mapping will take precedence over any existing page. * * @return self */ - public function setRoutePrefix($route_prefix) + public function setIsOnlyAfterNotFound($is_only_after_not_found) { - if (is_null($route_prefix)) { - throw new \InvalidArgumentException('non-nullable route_prefix cannot be null'); + if (is_null($is_only_after_not_found)) { + throw new \InvalidArgumentException('non-nullable is_only_after_not_found cannot be null'); } - $this->container['route_prefix'] = $route_prefix; + $this->container['is_only_after_not_found'] = $is_only_after_not_found; return $this; } /** - * Gets is_match_full_url + * Gets is_pattern * * @return bool|null */ - public function getIsMatchFullUrl() + public function getIsPattern() { - return $this->container['is_match_full_url']; + return $this->container['is_pattern']; } /** - * Sets is_match_full_url + * Sets is_pattern * - * @param bool|null $is_match_full_url is_match_full_url + * @param bool|null $is_pattern Whether the routePrefix should match based on pattern. * * @return self */ - public function setIsMatchFullUrl($is_match_full_url) + public function setIsPattern($is_pattern) { - if (is_null($is_match_full_url)) { - throw new \InvalidArgumentException('non-nullable is_match_full_url cannot be null'); + if (is_null($is_pattern)) { + throw new \InvalidArgumentException('non-nullable is_pattern cannot be null'); } - $this->container['is_match_full_url'] = $is_match_full_url; + $this->container['is_pattern'] = $is_pattern; return $this; } @@ -509,7 +509,7 @@ public function getIsProtocolAgnostic() /** * Sets is_protocol_agnostic * - * @param bool|null $is_protocol_agnostic is_protocol_agnostic + * @param bool|null $is_protocol_agnostic Whether the routePrefix should match both HTTP and HTTPS protocols. * * @return self */ @@ -524,109 +524,109 @@ public function setIsProtocolAgnostic($is_protocol_agnostic) } /** - * Gets destination + * Gets is_trailing_slash_optional * - * @return string + * @return bool|null */ - public function getDestination() + public function getIsTrailingSlashOptional() { - return $this->container['destination']; + return $this->container['is_trailing_slash_optional']; } /** - * Sets destination + * Sets is_trailing_slash_optional * - * @param string $destination destination + * @param bool|null $is_trailing_slash_optional Whether a trailing slash will be ignored. * * @return self */ - public function setDestination($destination) + public function setIsTrailingSlashOptional($is_trailing_slash_optional) { - if (is_null($destination)) { - throw new \InvalidArgumentException('non-nullable destination cannot be null'); + if (is_null($is_trailing_slash_optional)) { + throw new \InvalidArgumentException('non-nullable is_trailing_slash_optional cannot be null'); } - $this->container['destination'] = $destination; + $this->container['is_trailing_slash_optional'] = $is_trailing_slash_optional; return $this; } /** - * Gets is_only_after_not_found + * Gets precedence * - * @return bool|null + * @return int|null */ - public function getIsOnlyAfterNotFound() + public function getPrecedence() { - return $this->container['is_only_after_not_found']; + return $this->container['precedence']; } /** - * Sets is_only_after_not_found + * Sets precedence * - * @param bool|null $is_only_after_not_found is_only_after_not_found + * @param int|null $precedence Used to prioritize URL redirection. If a given URL matches more than one redirect, the one with the lower precedence will be used. * * @return self */ - public function setIsOnlyAfterNotFound($is_only_after_not_found) + public function setPrecedence($precedence) { - if (is_null($is_only_after_not_found)) { - throw new \InvalidArgumentException('non-nullable is_only_after_not_found cannot be null'); + if (is_null($precedence)) { + throw new \InvalidArgumentException('non-nullable precedence cannot be null'); } - $this->container['is_only_after_not_found'] = $is_only_after_not_found; + $this->container['precedence'] = $precedence; return $this; } /** - * Gets is_pattern + * Gets redirect_style * - * @return bool|null + * @return int */ - public function getIsPattern() + public function getRedirectStyle() { - return $this->container['is_pattern']; + return $this->container['redirect_style']; } /** - * Sets is_pattern + * Sets redirect_style * - * @param bool|null $is_pattern is_pattern + * @param int $redirect_style The type of redirect to create. Options include: 301 (permanent), 302 (temporary), or 305 (proxy). * * @return self */ - public function setIsPattern($is_pattern) + public function setRedirectStyle($redirect_style) { - if (is_null($is_pattern)) { - throw new \InvalidArgumentException('non-nullable is_pattern cannot be null'); + if (is_null($redirect_style)) { + throw new \InvalidArgumentException('non-nullable redirect_style cannot be null'); } - $this->container['is_pattern'] = $is_pattern; + $this->container['redirect_style'] = $redirect_style; return $this; } /** - * Gets precedence + * Gets route_prefix * - * @return int|null + * @return string */ - public function getPrecedence() + public function getRoutePrefix() { - return $this->container['precedence']; + return $this->container['route_prefix']; } /** - * Sets precedence + * Sets route_prefix * - * @param int|null $precedence precedence + * @param string $route_prefix The target incoming URL, path, or pattern to match for redirection. * * @return self */ - public function setPrecedence($precedence) + public function setRoutePrefix($route_prefix) { - if (is_null($precedence)) { - throw new \InvalidArgumentException('non-nullable precedence cannot be null'); + if (is_null($route_prefix)) { + throw new \InvalidArgumentException('non-nullable route_prefix cannot be null'); } - $this->container['precedence'] = $precedence; + $this->container['route_prefix'] = $route_prefix; return $this; } diff --git a/codegen/Cms/UrlRedirects/ObjectSerializer.php b/codegen/Cms/UrlRedirects/ObjectSerializer.php index 14bd582e..9f5a6d15 100644 --- a/codegen/Cms/UrlRedirects/ObjectSerializer.php +++ b/codegen/Cms/UrlRedirects/ObjectSerializer.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: v3 * Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.19.0 */ /**